Merge branch 'upstream' into tizen
[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.13.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@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.13.0'
595 PACKAGE_STRING='fontconfig 2.13.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig'
597 PACKAGE_URL=''
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gt_needs=
636 ac_header_list=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 PKGCONFIG_REQUIRES_PRIVATELY
642 PKGCONFIG_REQUIRES
643 DOCMAN3
644 ENABLE_DOCS_FALSE
645 ENABLE_DOCS_TRUE
646 USEDOCBOOK_FALSE
647 USEDOCBOOK_TRUE
648 HASDOCBOOK
649 HAVE_PTHREAD_FALSE
650 HAVE_PTHREAD_TRUE
651 PTHREAD_CFLAGS
652 PTHREAD_LIBS
653 PTHREAD_CC
654 ax_pthread_config
655 XMLDIR
656 CONFIGDIR
657 BASECONFIGDIR
658 TEMPLATEDIR
659 FC_FONTDATE
660 FC_CACHEDIR
661 fc_cachedir
662 FC_FONTPATH
663 FC_ADD_FONTS
664 FC_DEFAULT_FONTS
665 PREFERRED_HINTING
666 LIBXML2_LIBS
667 LIBXML2_CFLAGS
668 PKG_EXPAT_LIBS
669 PKG_EXPAT_CFLAGS
670 HAVE_XMLPARSE_H
671 EXPAT_LIBS
672 EXPAT_CFLAGS
673 UUID_LIBS
674 UUID_CFLAGS
675 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
676 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
677 FREETYPE_LIBS
678 FREETYPE_CFLAGS
679 ICONV_LIBS
680 ICONV_CFLAGS
681 ENABLE_SHARED_FALSE
682 ENABLE_SHARED_TRUE
683 CROSS_COMPILING_FALSE
684 CROSS_COMPILING_TRUE
685 EXEEXT_FOR_BUILD
686 CC_FOR_BUILD
687 WARN_CFLAGS
688 MS_LIB_AVAILABLE_FALSE
689 MS_LIB_AVAILABLE_TRUE
690 ms_librarian
691 POSUB
692 LTLIBINTL
693 LIBINTL
694 INTLLIBS
695 LTLIBICONV
696 LIBICONV
697 INTL_MACOSX_LIBS
698 XGETTEXT_EXTRA_OPTIONS
699 MSGMERGE
700 XGETTEXT_015
701 XGETTEXT
702 GMSGFMT_015
703 MSGFMT_015
704 GMSGFMT
705 MSGFMT
706 GETTEXT_MACRO_VERSION
707 USE_NLS
708 GETTEXT_PACKAGE
709 OS_WIN32_FALSE
710 OS_WIN32_TRUE
711 LIBT_CURRENT_MINUS_AGE
712 LIBT_VERSION_INFO
713 LIBT_REVISION
714 LIBT_CURRENT
715 LT_SYS_LIBRARY_PATH
716 OTOOL64
717 OTOOL
718 LIPO
719 NMEDIT
720 DSYMUTIL
721 MANIFEST_TOOL
722 RANLIB
723 ac_ct_AR
724 AR
725 NM
726 ac_ct_DUMPBIN
727 DUMPBIN
728 LD
729 FGREP
730 SED
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 LIBTOOL
740 OBJDUMP
741 DLLTOOL
742 AS
743 RM
744 GPERF
745 GIT
746 pkgconfigdir
747 PKG_CONFIG_LIBDIR
748 PKG_CONFIG_PATH
749 PKG_CONFIG
750 LN_S
751 EGREP
752 GREP
753 CPP
754 am__fastdepCC_FALSE
755 am__fastdepCC_TRUE
756 CCDEPMODE
757 am__nodep
758 AMDEPBACKSLASH
759 AMDEP_FALSE
760 AMDEP_TRUE
761 am__quote
762 am__include
763 DEPDIR
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 AM_BACKSLASH
772 AM_DEFAULT_VERBOSITY
773 AM_DEFAULT_V
774 AM_V
775 am__untar
776 am__tar
777 AMTAR
778 am__leading_dot
779 SET_MAKE
780 AWK
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 STRIP
785 install_sh
786 MAKEINFO
787 AUTOHEADER
788 AUTOMAKE
789 AUTOCONF
790 ACLOCAL
791 VERSION
792 PACKAGE
793 CYGPATH_W
794 am__isrc
795 INSTALL_DATA
796 INSTALL_SCRIPT
797 INSTALL_PROGRAM
798 target_alias
799 host_alias
800 build_alias
801 LIBS
802 ECHO_T
803 ECHO_N
804 ECHO_C
805 DEFS
806 mandir
807 localedir
808 libdir
809 psdir
810 pdfdir
811 dvidir
812 htmldir
813 infodir
814 docdir
815 oldincludedir
816 includedir
817 localstatedir
818 sharedstatedir
819 sysconfdir
820 datadir
821 datarootdir
822 libexecdir
823 sbindir
824 bindir
825 program_transform_name
826 prefix
827 exec_prefix
828 PACKAGE_URL
829 PACKAGE_BUGREPORT
830 PACKAGE_STRING
831 PACKAGE_VERSION
832 PACKAGE_TARNAME
833 PACKAGE_NAME
834 PATH_SEPARATOR
835 SHELL'
836 ac_subst_files=''
837 ac_user_opts='
838 enable_option_checking
839 enable_silent_rules
840 enable_dependency_tracking
841 enable_largefile
842 with_pkgconfigdir
843 enable_static
844 enable_shared
845 with_pic
846 enable_fast_install
847 with_aix_soname
848 with_gnu_ld
849 with_sysroot
850 enable_libtool_lock
851 enable_nls
852 enable_rpath
853 with_libiconv_prefix
854 with_libintl_prefix
855 with_arch
856 enable_iconv
857 with_libiconv
858 with_libiconv_includes
859 with_libiconv_lib
860 with_expat
861 with_expat_includes
862 with_expat_lib
863 enable_libxml2
864 with_default_hinting
865 with_default_fonts
866 with_add_fonts
867 with_cache_dir
868 with_templatedir
869 with_baseconfigdir
870 with_configdir
871 with_xmldir
872 enable_docs
873 '
874       ac_precious_vars='build_alias
875 host_alias
876 target_alias
877 CC
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
882 CPP
883 PKG_CONFIG
884 PKG_CONFIG_PATH
885 PKG_CONFIG_LIBDIR
886 LT_SYS_LIBRARY_PATH
887 CC_FOR_BUILD
888 FREETYPE_CFLAGS
889 FREETYPE_LIBS
890 UUID_CFLAGS
891 UUID_LIBS
892 EXPAT_CFLAGS
893 EXPAT_LIBS
894 LIBXML2_CFLAGS
895 LIBXML2_LIBS'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 ac_unrecognized_opts=
902 ac_unrecognized_sep=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
938 htmldir='${docdir}'
939 dvidir='${docdir}'
940 pdfdir='${docdir}'
941 psdir='${docdir}'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
945
946 ac_prev=
947 ac_dashdash=
948 for ac_option
949 do
950   # If the previous option needs an argument, assign it.
951   if test -n "$ac_prev"; then
952     eval $ac_prev=\$ac_option
953     ac_prev=
954     continue
955   fi
956
957   case $ac_option in
958   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959   *=)   ac_optarg= ;;
960   *)    ac_optarg=yes ;;
961   esac
962
963   # Accept the important Cygnus configure options, so we can diagnose typos.
964
965   case $ac_dashdash$ac_option in
966   --)
967     ac_dashdash=yes ;;
968
969   -bindir | --bindir | --bindi | --bind | --bin | --bi)
970     ac_prev=bindir ;;
971   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972     bindir=$ac_optarg ;;
973
974   -build | --build | --buil | --bui | --bu)
975     ac_prev=build_alias ;;
976   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977     build_alias=$ac_optarg ;;
978
979   -cache-file | --cache-file | --cache-fil | --cache-fi \
980   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981     ac_prev=cache_file ;;
982   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984     cache_file=$ac_optarg ;;
985
986   --config-cache | -C)
987     cache_file=config.cache ;;
988
989   -datadir | --datadir | --datadi | --datad)
990     ac_prev=datadir ;;
991   -datadir=* | --datadir=* | --datadi=* | --datad=*)
992     datadir=$ac_optarg ;;
993
994   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995   | --dataroo | --dataro | --datar)
996     ac_prev=datarootdir ;;
997   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999     datarootdir=$ac_optarg ;;
1000
1001   -disable-* | --disable-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error $? "invalid feature name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval enable_$ac_useropt=no ;;
1016
1017   -docdir | --docdir | --docdi | --doc | --do)
1018     ac_prev=docdir ;;
1019   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020     docdir=$ac_optarg ;;
1021
1022   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023     ac_prev=dvidir ;;
1024   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025     dvidir=$ac_optarg ;;
1026
1027   -enable-* | --enable-*)
1028     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029     # Reject names that are not valid shell variable names.
1030     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031       as_fn_error $? "invalid feature name: $ac_useropt"
1032     ac_useropt_orig=$ac_useropt
1033     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034     case $ac_user_opts in
1035       *"
1036 "enable_$ac_useropt"
1037 "*) ;;
1038       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039          ac_unrecognized_sep=', ';;
1040     esac
1041     eval enable_$ac_useropt=\$ac_optarg ;;
1042
1043   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045   | --exec | --exe | --ex)
1046     ac_prev=exec_prefix ;;
1047   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049   | --exec=* | --exe=* | --ex=*)
1050     exec_prefix=$ac_optarg ;;
1051
1052   -gas | --gas | --ga | --g)
1053     # Obsolete; use --with-gas.
1054     with_gas=yes ;;
1055
1056   -help | --help | --hel | --he | -h)
1057     ac_init_help=long ;;
1058   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059     ac_init_help=recursive ;;
1060   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061     ac_init_help=short ;;
1062
1063   -host | --host | --hos | --ho)
1064     ac_prev=host_alias ;;
1065   -host=* | --host=* | --hos=* | --ho=*)
1066     host_alias=$ac_optarg ;;
1067
1068   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069     ac_prev=htmldir ;;
1070   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071   | --ht=*)
1072     htmldir=$ac_optarg ;;
1073
1074   -includedir | --includedir | --includedi | --included | --include \
1075   | --includ | --inclu | --incl | --inc)
1076     ac_prev=includedir ;;
1077   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078   | --includ=* | --inclu=* | --incl=* | --inc=*)
1079     includedir=$ac_optarg ;;
1080
1081   -infodir | --infodir | --infodi | --infod | --info | --inf)
1082     ac_prev=infodir ;;
1083   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084     infodir=$ac_optarg ;;
1085
1086   -libdir | --libdir | --libdi | --libd)
1087     ac_prev=libdir ;;
1088   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089     libdir=$ac_optarg ;;
1090
1091   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092   | --libexe | --libex | --libe)
1093     ac_prev=libexecdir ;;
1094   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095   | --libexe=* | --libex=* | --libe=*)
1096     libexecdir=$ac_optarg ;;
1097
1098   -localedir | --localedir | --localedi | --localed | --locale)
1099     ac_prev=localedir ;;
1100   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101     localedir=$ac_optarg ;;
1102
1103   -localstatedir | --localstatedir | --localstatedi | --localstated \
1104   | --localstate | --localstat | --localsta | --localst | --locals)
1105     ac_prev=localstatedir ;;
1106   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108     localstatedir=$ac_optarg ;;
1109
1110   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111     ac_prev=mandir ;;
1112   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113     mandir=$ac_optarg ;;
1114
1115   -nfp | --nfp | --nf)
1116     # Obsolete; use --without-fp.
1117     with_fp=no ;;
1118
1119   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120   | --no-cr | --no-c | -n)
1121     no_create=yes ;;
1122
1123   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125     no_recursion=yes ;;
1126
1127   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129   | --oldin | --oldi | --old | --ol | --o)
1130     ac_prev=oldincludedir ;;
1131   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134     oldincludedir=$ac_optarg ;;
1135
1136   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137     ac_prev=prefix ;;
1138   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139     prefix=$ac_optarg ;;
1140
1141   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142   | --program-pre | --program-pr | --program-p)
1143     ac_prev=program_prefix ;;
1144   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146     program_prefix=$ac_optarg ;;
1147
1148   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149   | --program-suf | --program-su | --program-s)
1150     ac_prev=program_suffix ;;
1151   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153     program_suffix=$ac_optarg ;;
1154
1155   -program-transform-name | --program-transform-name \
1156   | --program-transform-nam | --program-transform-na \
1157   | --program-transform-n | --program-transform- \
1158   | --program-transform | --program-transfor \
1159   | --program-transfo | --program-transf \
1160   | --program-trans | --program-tran \
1161   | --progr-tra | --program-tr | --program-t)
1162     ac_prev=program_transform_name ;;
1163   -program-transform-name=* | --program-transform-name=* \
1164   | --program-transform-nam=* | --program-transform-na=* \
1165   | --program-transform-n=* | --program-transform-=* \
1166   | --program-transform=* | --program-transfor=* \
1167   | --program-transfo=* | --program-transf=* \
1168   | --program-trans=* | --program-tran=* \
1169   | --progr-tra=* | --program-tr=* | --program-t=*)
1170     program_transform_name=$ac_optarg ;;
1171
1172   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173     ac_prev=pdfdir ;;
1174   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175     pdfdir=$ac_optarg ;;
1176
1177   -psdir | --psdir | --psdi | --psd | --ps)
1178     ac_prev=psdir ;;
1179   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180     psdir=$ac_optarg ;;
1181
1182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183   | -silent | --silent | --silen | --sile | --sil)
1184     silent=yes ;;
1185
1186   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187     ac_prev=sbindir ;;
1188   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189   | --sbi=* | --sb=*)
1190     sbindir=$ac_optarg ;;
1191
1192   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194   | --sharedst | --shareds | --shared | --share | --shar \
1195   | --sha | --sh)
1196     ac_prev=sharedstatedir ;;
1197   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200   | --sha=* | --sh=*)
1201     sharedstatedir=$ac_optarg ;;
1202
1203   -site | --site | --sit)
1204     ac_prev=site ;;
1205   -site=* | --site=* | --sit=*)
1206     site=$ac_optarg ;;
1207
1208   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209     ac_prev=srcdir ;;
1210   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211     srcdir=$ac_optarg ;;
1212
1213   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214   | --syscon | --sysco | --sysc | --sys | --sy)
1215     ac_prev=sysconfdir ;;
1216   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218     sysconfdir=$ac_optarg ;;
1219
1220   -target | --target | --targe | --targ | --tar | --ta | --t)
1221     ac_prev=target_alias ;;
1222   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223     target_alias=$ac_optarg ;;
1224
1225   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226     verbose=yes ;;
1227
1228   -version | --version | --versio | --versi | --vers | -V)
1229     ac_init_version=: ;;
1230
1231   -with-* | --with-*)
1232     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233     # Reject names that are not valid shell variable names.
1234     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235       as_fn_error $? "invalid package name: $ac_useropt"
1236     ac_useropt_orig=$ac_useropt
1237     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238     case $ac_user_opts in
1239       *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243          ac_unrecognized_sep=', ';;
1244     esac
1245     eval with_$ac_useropt=\$ac_optarg ;;
1246
1247   -without-* | --without-*)
1248     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251       as_fn_error $? "invalid package name: $ac_useropt"
1252     ac_useropt_orig=$ac_useropt
1253     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254     case $ac_user_opts in
1255       *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259          ac_unrecognized_sep=', ';;
1260     esac
1261     eval with_$ac_useropt=no ;;
1262
1263   --x)
1264     # Obsolete; use --with-x.
1265     with_x=yes ;;
1266
1267   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268   | --x-incl | --x-inc | --x-in | --x-i)
1269     ac_prev=x_includes ;;
1270   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272     x_includes=$ac_optarg ;;
1273
1274   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276     ac_prev=x_libraries ;;
1277   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279     x_libraries=$ac_optarg ;;
1280
1281   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information"
1283     ;;
1284
1285   *=*)
1286     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287     # Reject names that are not valid shell variable names.
1288     case $ac_envvar in #(
1289       '' | [0-9]* | *[!_$as_cr_alnum]* )
1290       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1291     esac
1292     eval $ac_envvar=\$ac_optarg
1293     export $ac_envvar ;;
1294
1295   *)
1296     # FIXME: should be removed in autoconf 3.0.
1297     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301     ;;
1302
1303   esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308   as_fn_error $? "missing argument to $ac_option"
1309 fi
1310
1311 if test -n "$ac_unrecognized_opts"; then
1312   case $enable_option_checking in
1313     no) ;;
1314     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316   esac
1317 fi
1318
1319 # Check all directory arguments for consistency.
1320 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321                 datadir sysconfdir sharedstatedir localstatedir includedir \
1322                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323                 libdir localedir mandir
1324 do
1325   eval ac_val=\$$ac_var
1326   # Remove trailing slashes.
1327   case $ac_val in
1328     */ )
1329       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330       eval $ac_var=\$ac_val;;
1331   esac
1332   # Be sure to have absolute directory names.
1333   case $ac_val in
1334     [\\/$]* | ?:[\\/]* )  continue;;
1335     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336   esac
1337   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338 done
1339
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1346
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349   if test "x$build_alias" = x; then
1350     cross_compiling=maybe
1351   elif test "x$build_alias" != "x$host_alias"; then
1352     cross_compiling=yes
1353   fi
1354 fi
1355
1356 ac_tool_prefix=
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359 test "$silent" = yes && exec 6>/dev/null
1360
1361
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365   as_fn_error $? "working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367   as_fn_error $? "pwd does not report name of working directory"
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372   ac_srcdir_defaulted=yes
1373   # Try the directory containing this script, then the parent directory.
1374   ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376          X"$as_myself" : 'X\(//\)[^/]' \| \
1377          X"$as_myself" : 'X\(//\)$' \| \
1378          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\/\)[^/].*/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\/\)$/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\).*/{
1393             s//\1/
1394             q
1395           }
1396           s/.*/./; q'`
1397   srcdir=$ac_confdir
1398   if test ! -r "$srcdir/$ac_unique_file"; then
1399     srcdir=..
1400   fi
1401 else
1402   ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411         pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414   srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424   eval ac_env_${ac_var}_value=\$${ac_var}
1425   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433   # Omit some internal or obsolete options to make the list less imposing.
1434   # This message is too long to be a string in the A/UX 3.1 sh.
1435   cat <<_ACEOF
1436 \`configure' configures fontconfig 2.13.0 to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE.  See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446   -h, --help              display this help and exit
1447       --help=short        display options specific to this package
1448       --help=recursive    display the short help of all the included packages
1449   -V, --version           display version information and exit
1450   -q, --quiet, --silent   do not print \`checking ...' messages
1451       --cache-file=FILE   cache test results in FILE [disabled]
1452   -C, --config-cache      alias for \`--cache-file=config.cache'
1453   -n, --no-create         do not create output files
1454       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1455
1456 Installation directories:
1457   --prefix=PREFIX         install architecture-independent files in PREFIX
1458                           [$ac_default_prefix]
1459   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1460                           [PREFIX]
1461
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470   --bindir=DIR            user executables [EPREFIX/bin]
1471   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1472   --libexecdir=DIR        program executables [EPREFIX/libexec]
1473   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1474   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1475   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1476   --libdir=DIR            object code libraries [EPREFIX/lib]
1477   --includedir=DIR        C header files [PREFIX/include]
1478   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1479   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1480   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1481   --infodir=DIR           info documentation [DATAROOTDIR/info]
1482   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1483   --mandir=DIR            man documentation [DATAROOTDIR/man]
1484   --docdir=DIR            documentation root [DATAROOTDIR/doc/fontconfig]
1485   --htmldir=DIR           html documentation [DOCDIR]
1486   --dvidir=DIR            dvi documentation [DOCDIR]
1487   --pdfdir=DIR            pdf documentation [DOCDIR]
1488   --psdir=DIR             ps documentation [DOCDIR]
1489 _ACEOF
1490
1491   cat <<\_ACEOF
1492
1493 Program names:
1494   --program-prefix=PREFIX            prepend PREFIX to installed program names
1495   --program-suffix=SUFFIX            append SUFFIX to installed program names
1496   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1497
1498 System types:
1499   --build=BUILD     configure for building on BUILD [guessed]
1500   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1501 _ACEOF
1502 fi
1503
1504 if test -n "$ac_init_help"; then
1505   case $ac_init_help in
1506      short | recursive ) echo "Configuration of fontconfig 2.13.0:";;
1507    esac
1508   cat <<\_ACEOF
1509
1510 Optional Features:
1511   --disable-option-checking  ignore unrecognized --enable/--with options
1512   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1513   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1514   --enable-silent-rules   less verbose build output (undo: "make V=1")
1515   --disable-silent-rules  verbose build output (undo: "make V=0")
1516   --enable-dependency-tracking
1517                           do not reject slow dependency extractors
1518   --disable-dependency-tracking
1519                           speeds up one-time build
1520   --disable-largefile     omit support for large files
1521   --enable-static[=PKGS]  build static libraries [default=no]
1522   --enable-shared[=PKGS]  build shared libraries [default=yes]
1523   --enable-fast-install[=PKGS]
1524                           optimize for fast installation [default=yes]
1525   --disable-libtool-lock  avoid locking (might break parallel builds)
1526   --disable-nls           do not use Native Language Support
1527   --disable-rpath         do not hardcode runtime library paths
1528   --enable-iconv          Use iconv to support non-Unicode SFNT name
1529   --enable-libxml2        Use libxml2 instead of Expat
1530   --disable-docs          Don't build and install documentation
1531
1532 Optional Packages:
1533   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535   --with-pkgconfigdir     pkg-config installation directory
1536                           ['${libdir}/pkgconfig']
1537   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1538                           both]
1539   --with-aix-soname=aix|svr4|both
1540                           shared library versioning (aka "SONAME") variant to
1541                           provide on AIX, [default=aix].
1542   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1543   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1544                           compiler's sysroot if not specified).
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1547   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1548   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1549   --without-libintl-prefix     don't search for libintl in includedir and libdir
1550   --with-arch=ARCH        Force architecture to ARCH
1551   --with-libiconv=DIR     Use libiconv in DIR
1552   --with-libiconv-includes=DIR
1553                           Use libiconv includes in DIR
1554   --with-libiconv-lib=DIR Use libiconv library in DIR
1555   --with-expat=DIR        Use Expat in DIR
1556   --with-expat-includes=DIR
1557                           Use Expat includes in DIR
1558   --with-expat-lib=DIR
1559   --with-default-hinting=NAME
1560                           Enable your preferred hinting configuration
1561                           (none/slight/medium/full) [default=slight]
1562   --with-default-fonts=DIR
1563                           Use fonts from DIR when config is busted
1564   --with-add-fonts=DIR1,DIR2,...
1565                           Find additional fonts in DIR1,DIR2,...
1566   --with-cache-dir=DIR    Use DIR to store cache files
1567                           [default=LOCALSTATEDIR/cache/fontconfig]
1568   --with-templatedir=DIR  Use DIR to store the configuration template files
1569                           [default=DATADIR/fontconfig/conf.avail]
1570   --with-baseconfigdir=DIR
1571                           Use DIR to store the base configuration files
1572                           [default=SYSCONFDIR/fonts]
1573   --with-configdir=DIR    Use DIR to store active configuration files
1574                           [default=BASECONFIGDIR/conf.d]
1575   --with-xmldir=DIR       Use DIR to store XML schema files
1576                           [default=DATADIR/xml/fontconfig]
1577
1578 Some influential environment variables:
1579   CC          C compiler command
1580   CFLAGS      C compiler flags
1581   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1582               nonstandard directory <lib dir>
1583   LIBS        libraries to pass to the linker, e.g. -l<library>
1584   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1585               you have headers in a nonstandard directory <include dir>
1586   CPP         C preprocessor
1587   PKG_CONFIG  path to pkg-config utility
1588   PKG_CONFIG_PATH
1589               directories to add to pkg-config's search path
1590   PKG_CONFIG_LIBDIR
1591               path overriding pkg-config's built-in search path
1592   LT_SYS_LIBRARY_PATH
1593               User-defined run-time library search path.
1594   CC_FOR_BUILD
1595               build system C compiler
1596   FREETYPE_CFLAGS
1597               C compiler flags for FREETYPE, overriding pkg-config
1598   FREETYPE_LIBS
1599               linker flags for FREETYPE, overriding pkg-config
1600   UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1601   UUID_LIBS   linker flags for UUID, overriding pkg-config
1602   EXPAT_CFLAGS
1603               C compiler flags for EXPAT, overriding pkg-config
1604   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1605   LIBXML2_CFLAGS
1606               C compiler flags for LIBXML2, overriding pkg-config
1607   LIBXML2_LIBS
1608               linker flags for LIBXML2, overriding pkg-config
1609
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1612
1613 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1614 _ACEOF
1615 ac_status=$?
1616 fi
1617
1618 if test "$ac_init_help" = "recursive"; then
1619   # If there are subdirs, report their specific --help.
1620   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621     test -d "$ac_dir" ||
1622       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623       continue
1624     ac_builddir=.
1625
1626 case "$ac_dir" in
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *)
1629   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630   # A ".." for each directory in $ac_dir_suffix.
1631   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632   case $ac_top_builddir_sub in
1633   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635   esac ;;
1636 esac
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1641
1642 case $srcdir in
1643   .)  # We are building in place.
1644     ac_srcdir=.
1645     ac_top_srcdir=$ac_top_builddir_sub
1646     ac_abs_top_srcdir=$ac_pwd ;;
1647   [\\/]* | ?:[\\/]* )  # Absolute name.
1648     ac_srcdir=$srcdir$ac_dir_suffix;
1649     ac_top_srcdir=$srcdir
1650     ac_abs_top_srcdir=$srcdir ;;
1651   *) # Relative name.
1652     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653     ac_top_srcdir=$ac_top_build_prefix$srcdir
1654     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 esac
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658     cd "$ac_dir" || { ac_status=$?; continue; }
1659     # Check for guested configure.
1660     if test -f "$ac_srcdir/configure.gnu"; then
1661       echo &&
1662       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663     elif test -f "$ac_srcdir/configure"; then
1664       echo &&
1665       $SHELL "$ac_srcdir/configure" --help=recursive
1666     else
1667       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668     fi || ac_status=$?
1669     cd "$ac_pwd" || { ac_status=$?; break; }
1670   done
1671 fi
1672
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1675   cat <<\_ACEOF
1676 fontconfig configure 2.13.0
1677 generated by GNU Autoconf 2.69
1678
1679 Copyright (C) 2012 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683   exit
1684 fi
1685
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1689
1690 # ac_fn_c_try_compile LINENO
1691 # --------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_compile ()
1694 {
1695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696   rm -f conftest.$ac_objext
1697   if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_compile") 2>conftest.err
1705   ac_status=$?
1706   if test -s conftest.err; then
1707     grep -v '^ *+' conftest.err >conftest.er1
1708     cat conftest.er1 >&5
1709     mv -f conftest.er1 conftest.err
1710   fi
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } && {
1713          test -z "$ac_c_werror_flag" ||
1714          test ! -s conftest.err
1715        } && test -s conftest.$ac_objext; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721         ac_retval=1
1722 fi
1723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724   as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_compile
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } > conftest.i && {
1750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751          test ! -s conftest.err
1752        }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758     ac_retval=1
1759 fi
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768 # the include files in INCLUDES and setting the cache variable VAR
1769 # accordingly.
1770 ac_fn_c_check_header_mongrel ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   if eval \${$3+:} false; then :
1774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777   $as_echo_n "(cached) " >&6
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 else
1783   # Is the header compilable?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785 $as_echo_n "checking $2 usability... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792   ac_header_compiler=yes
1793 else
1794   ac_header_compiler=no
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798 $as_echo "$ac_header_compiler" >&6; }
1799
1800 # Is the header present?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802 $as_echo_n "checking $2 presence... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_cpp "$LINENO"; then :
1808   ac_header_preproc=yes
1809 else
1810   ac_header_preproc=no
1811 fi
1812 rm -f conftest.err conftest.i conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814 $as_echo "$ac_header_preproc" >&6; }
1815
1816 # So?  What about this header?
1817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818   yes:no: )
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823     ;;
1824   no:yes:* )
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1828 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1832 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ( $as_echo "## ---------------------------------------------------------------------------- ##
1836 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1837 ## ---------------------------------------------------------------------------- ##"
1838      ) | sed "s/^/$as_me: WARNING:     /" >&2
1839     ;;
1840 esac
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   eval "$3=\$ac_header_compiler"
1847 fi
1848 eval ac_res=\$$3
1849                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 fi
1852   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_header_mongrel
1855
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_link") 2>&5
1871   ac_status=$?
1872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874   { { case "(($ac_try" in
1875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876   *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880   (eval "$ac_try") 2>&5
1881   ac_status=$?
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; }; }; then :
1884   ac_retval=0
1885 else
1886   $as_echo "$as_me: program exited with status $ac_status" >&5
1887        $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890        ac_retval=$ac_status
1891 fi
1892   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_run
1897
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908   $as_echo_n "(cached) " >&6
1909 else
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   eval "$3=yes"
1917 else
1918   eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_compile
1928
1929 # ac_fn_c_try_link LINENO
1930 # -----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_c_try_link ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   rm -f conftest.$ac_objext conftest$ac_exeext
1936   if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939   *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943   (eval "$ac_link") 2>conftest.err
1944   ac_status=$?
1945   if test -s conftest.err; then
1946     grep -v '^ *+' conftest.err >conftest.er1
1947     cat conftest.er1 >&5
1948     mv -f conftest.er1 conftest.err
1949   fi
1950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951   test $ac_status = 0; } && {
1952          test -z "$ac_c_werror_flag" ||
1953          test ! -s conftest.err
1954        } && test -s conftest$ac_exeext && {
1955          test "$cross_compiling" = yes ||
1956          test -x conftest$ac_exeext
1957        }; then :
1958   ac_retval=0
1959 else
1960   $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963         ac_retval=1
1964 fi
1965   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967   # interfere with the next link command; also delete a directory that is
1968   # left behind by Apple's compiler.  We do this before executing the actions.
1969   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971   as_fn_set_status $ac_retval
1972
1973 } # ac_fn_c_try_link
1974
1975 # ac_fn_c_check_func LINENO FUNC VAR
1976 # ----------------------------------
1977 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1978 ac_fn_c_check_func ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984   $as_echo_n "(cached) " >&6
1985 else
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1990 #define $2 innocuous_$2
1991
1992 /* System header to define __stub macros and hopefully few prototypes,
1993     which can conflict with char $2 (); below.
1994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1995     <limits.h> exists even on freestanding compilers.  */
1996
1997 #ifdef __STDC__
1998 # include <limits.h>
1999 #else
2000 # include <assert.h>
2001 #endif
2002
2003 #undef $2
2004
2005 /* Override any GCC internal prototype to avoid an error.
2006    Use char because int might match the return type of a GCC
2007    builtin and then its argument prototype would still apply.  */
2008 #ifdef __cplusplus
2009 extern "C"
2010 #endif
2011 char $2 ();
2012 /* The GNU C library defines this for functions which it implements
2013     to always fail with ENOSYS.  Some functions are actually named
2014     something starting with __ and the normal name is an alias.  */
2015 #if defined __stub_$2 || defined __stub___$2
2016 choke me
2017 #endif
2018
2019 int
2020 main ()
2021 {
2022 return $2 ();
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_link "$LINENO"; then :
2028   eval "$3=yes"
2029 else
2030   eval "$3=no"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext \
2033     conftest$ac_exeext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$3
2036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_func
2041
2042 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2043 # ---------------------------------------------
2044 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2045 # accordingly.
2046 ac_fn_c_check_decl ()
2047 {
2048   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049   as_decl_name=`echo $2|sed 's/ *(.*//'`
2050   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2052 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2053 if eval \${$3+:} false; then :
2054   $as_echo_n "(cached) " >&6
2055 else
2056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int
2060 main ()
2061 {
2062 #ifndef $as_decl_name
2063 #ifdef __cplusplus
2064   (void) $as_decl_use;
2065 #else
2066   (void) $as_decl_name;
2067 #endif
2068 #endif
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   eval "$3=yes"
2076 else
2077   eval "$3=no"
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 fi
2081 eval ac_res=\$$3
2082                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086 } # ac_fn_c_check_decl
2087
2088 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2089 # -------------------------------------------
2090 # Tests whether TYPE exists after having included INCLUDES, setting cache
2091 # variable VAR accordingly.
2092 ac_fn_c_check_type ()
2093 {
2094   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval \${$3+:} false; then :
2098   $as_echo_n "(cached) " >&6
2099 else
2100   eval "$3=no"
2101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $4
2104 int
2105 main ()
2106 {
2107 if (sizeof ($2))
2108          return 0;
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 int
2118 main ()
2119 {
2120 if (sizeof (($2)))
2121             return 0;
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127
2128 else
2129   eval "$3=yes"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 fi
2135 eval ac_res=\$$3
2136                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139
2140 } # ac_fn_c_check_type
2141
2142 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2143 # --------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 # computed
2147 ac_fn_c_compute_int ()
2148 {
2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150   if test "$cross_compiling" = yes; then
2151     # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h.  */
2154 $4
2155 int
2156 main ()
2157 {
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2159 test_array [0] = 0;
2160 return test_array [0];
2161
2162   ;
2163   return 0;
2164 }
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   ac_lo=0 ac_mid=0
2168   while :; do
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) <= $ac_mid)];
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=$ac_mid; break
2185 else
2186   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2187                         if test $ac_lo -le $ac_mid; then
2188                           ac_lo= ac_hi=
2189                           break
2190                         fi
2191                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194   done
2195 else
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main ()
2201 {
2202 static int test_array [1 - 2 * !(($2) < 0)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211   ac_hi=-1 ac_mid=-1
2212   while :; do
2213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h.  */
2215 $4
2216 int
2217 main ()
2218 {
2219 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2220 test_array [0] = 0;
2221 return test_array [0];
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228   ac_lo=$ac_mid; break
2229 else
2230   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231                         if test $ac_mid -le $ac_hi; then
2232                           ac_lo= ac_hi=
2233                           break
2234                         fi
2235                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238   done
2239 else
2240   ac_lo= ac_hi=
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0;
2256 return test_array [0];
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263   ac_hi=$ac_mid
2264 else
2265   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 done
2269 case $ac_lo in #((
2270 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2271 '') ac_retval=1 ;;
2272 esac
2273   else
2274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $4
2277 static long int longval () { return $2; }
2278 static unsigned long int ulongval () { return $2; }
2279 #include <stdio.h>
2280 #include <stdlib.h>
2281 int
2282 main ()
2283 {
2284
2285   FILE *f = fopen ("conftest.val", "w");
2286   if (! f)
2287     return 1;
2288   if (($2) < 0)
2289     {
2290       long int i = longval ();
2291       if (i != ($2))
2292         return 1;
2293       fprintf (f, "%ld", i);
2294     }
2295   else
2296     {
2297       unsigned long int i = ulongval ();
2298       if (i != ($2))
2299         return 1;
2300       fprintf (f, "%lu", i);
2301     }
2302   /* Do not output a trailing newline, as this causes \r\n confusion
2303      on some platforms.  */
2304   return ferror (f) || fclose (f) != 0;
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_run "$LINENO"; then :
2311   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2312 else
2313   ac_retval=1
2314 fi
2315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316   conftest.$ac_objext conftest.beam conftest.$ac_ext
2317 rm -f conftest.val
2318
2319   fi
2320   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321   as_fn_set_status $ac_retval
2322
2323 } # ac_fn_c_compute_int
2324
2325 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2326 # ----------------------------------------------------
2327 # Tries to find if the field MEMBER exists in type AGGR, after including
2328 # INCLUDES, setting cache variable VAR accordingly.
2329 ac_fn_c_check_member ()
2330 {
2331   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2333 $as_echo_n "checking for $2.$3... " >&6; }
2334 if eval \${$4+:} false; then :
2335   $as_echo_n "(cached) " >&6
2336 else
2337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h.  */
2339 $5
2340 int
2341 main ()
2342 {
2343 static $2 ac_aggr;
2344 if (ac_aggr.$3)
2345 return 0;
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351   eval "$4=yes"
2352 else
2353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h.  */
2355 $5
2356 int
2357 main ()
2358 {
2359 static $2 ac_aggr;
2360 if (sizeof ac_aggr.$3)
2361 return 0;
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367   eval "$4=yes"
2368 else
2369   eval "$4=no"
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$4
2376                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379
2380 } # ac_fn_c_check_member
2381 cat >config.log <<_ACEOF
2382 This file contains any messages produced by compilers while
2383 running configure, to aid debugging if configure makes a mistake.
2384
2385 It was created by fontconfig $as_me 2.13.0, which was
2386 generated by GNU Autoconf 2.69.  Invocation command line was
2387
2388   $ $0 $@
2389
2390 _ACEOF
2391 exec 5>>config.log
2392 {
2393 cat <<_ASUNAME
2394 ## --------- ##
2395 ## Platform. ##
2396 ## --------- ##
2397
2398 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2399 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2400 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2401 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2402 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2403
2404 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2405 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2406
2407 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2408 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2409 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2410 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2411 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2412 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2413 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2414
2415 _ASUNAME
2416
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422     $as_echo "PATH: $as_dir"
2423   done
2424 IFS=$as_save_IFS
2425
2426 } >&5
2427
2428 cat >&5 <<_ACEOF
2429
2430
2431 ## ----------- ##
2432 ## Core tests. ##
2433 ## ----------- ##
2434
2435 _ACEOF
2436
2437
2438 # Keep a trace of the command line.
2439 # Strip out --no-create and --no-recursion so they do not pile up.
2440 # Strip out --silent because we don't want to record it for future runs.
2441 # Also quote any args containing shell meta-characters.
2442 # Make two passes to allow for proper duplicate-argument suppression.
2443 ac_configure_args=
2444 ac_configure_args0=
2445 ac_configure_args1=
2446 ac_must_keep_next=false
2447 for ac_pass in 1 2
2448 do
2449   for ac_arg
2450   do
2451     case $ac_arg in
2452     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2453     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2454     | -silent | --silent | --silen | --sile | --sil)
2455       continue ;;
2456     *\'*)
2457       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2458     esac
2459     case $ac_pass in
2460     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2461     2)
2462       as_fn_append ac_configure_args1 " '$ac_arg'"
2463       if test $ac_must_keep_next = true; then
2464         ac_must_keep_next=false # Got value, back to normal.
2465       else
2466         case $ac_arg in
2467           *=* | --config-cache | -C | -disable-* | --disable-* \
2468           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2469           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2470           | -with-* | --with-* | -without-* | --without-* | --x)
2471             case "$ac_configure_args0 " in
2472               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2473             esac
2474             ;;
2475           -* ) ac_must_keep_next=true ;;
2476         esac
2477       fi
2478       as_fn_append ac_configure_args " '$ac_arg'"
2479       ;;
2480     esac
2481   done
2482 done
2483 { ac_configure_args0=; unset ac_configure_args0;}
2484 { ac_configure_args1=; unset ac_configure_args1;}
2485
2486 # When interrupted or exit'd, cleanup temporary files, and complete
2487 # config.log.  We remove comments because anyway the quotes in there
2488 # would cause problems or look ugly.
2489 # WARNING: Use '\'' to represent an apostrophe within the trap.
2490 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2491 trap 'exit_status=$?
2492   # Save into config.log some information that might help in debugging.
2493   {
2494     echo
2495
2496     $as_echo "## ---------------- ##
2497 ## Cache variables. ##
2498 ## ---------------- ##"
2499     echo
2500     # The following way of writing the cache mishandles newlines in values,
2501 (
2502   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2503     eval ac_val=\$$ac_var
2504     case $ac_val in #(
2505     *${as_nl}*)
2506       case $ac_var in #(
2507       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2508 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2509       esac
2510       case $ac_var in #(
2511       _ | IFS | as_nl) ;; #(
2512       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2513       *) { eval $ac_var=; unset $ac_var;} ;;
2514       esac ;;
2515     esac
2516   done
2517   (set) 2>&1 |
2518     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2519     *${as_nl}ac_space=\ *)
2520       sed -n \
2521         "s/'\''/'\''\\\\'\'''\''/g;
2522           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2523       ;; #(
2524     *)
2525       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2526       ;;
2527     esac |
2528     sort
2529 )
2530     echo
2531
2532     $as_echo "## ----------------- ##
2533 ## Output variables. ##
2534 ## ----------------- ##"
2535     echo
2536     for ac_var in $ac_subst_vars
2537     do
2538       eval ac_val=\$$ac_var
2539       case $ac_val in
2540       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541       esac
2542       $as_echo "$ac_var='\''$ac_val'\''"
2543     done | sort
2544     echo
2545
2546     if test -n "$ac_subst_files"; then
2547       $as_echo "## ------------------- ##
2548 ## File substitutions. ##
2549 ## ------------------- ##"
2550       echo
2551       for ac_var in $ac_subst_files
2552       do
2553         eval ac_val=\$$ac_var
2554         case $ac_val in
2555         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556         esac
2557         $as_echo "$ac_var='\''$ac_val'\''"
2558       done | sort
2559       echo
2560     fi
2561
2562     if test -s confdefs.h; then
2563       $as_echo "## ----------- ##
2564 ## confdefs.h. ##
2565 ## ----------- ##"
2566       echo
2567       cat confdefs.h
2568       echo
2569     fi
2570     test "$ac_signal" != 0 &&
2571       $as_echo "$as_me: caught signal $ac_signal"
2572     $as_echo "$as_me: exit $exit_status"
2573   } >&5
2574   rm -f core *.core core.conftest.* &&
2575     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2576     exit $exit_status
2577 ' 0
2578 for ac_signal in 1 2 13 15; do
2579   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2580 done
2581 ac_signal=0
2582
2583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2584 rm -f -r conftest* confdefs.h
2585
2586 $as_echo "/* confdefs.h */" > confdefs.h
2587
2588 # Predefined preprocessor variables.
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_NAME "$PACKAGE_NAME"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_STRING "$PACKAGE_STRING"
2604 _ACEOF
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2608 _ACEOF
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_URL "$PACKAGE_URL"
2612 _ACEOF
2613
2614
2615 # Let the site file select an alternate cache file if it wants to.
2616 # Prefer an explicitly selected file to automatically selected ones.
2617 ac_site_file1=NONE
2618 ac_site_file2=NONE
2619 if test -n "$CONFIG_SITE"; then
2620   # We do not want a PATH search for config.site.
2621   case $CONFIG_SITE in #((
2622     -*)  ac_site_file1=./$CONFIG_SITE;;
2623     */*) ac_site_file1=$CONFIG_SITE;;
2624     *)   ac_site_file1=./$CONFIG_SITE;;
2625   esac
2626 elif test "x$prefix" != xNONE; then
2627   ac_site_file1=$prefix/share/config.site
2628   ac_site_file2=$prefix/etc/config.site
2629 else
2630   ac_site_file1=$ac_default_prefix/share/config.site
2631   ac_site_file2=$ac_default_prefix/etc/config.site
2632 fi
2633 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2634 do
2635   test "x$ac_site_file" = xNONE && continue
2636   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2637     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2638 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2639     sed 's/^/| /' "$ac_site_file" >&5
2640     . "$ac_site_file" \
2641       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 as_fn_error $? "failed to load site script $ac_site_file
2644 See \`config.log' for more details" "$LINENO" 5; }
2645   fi
2646 done
2647
2648 if test -r "$cache_file"; then
2649   # Some versions of bash will fail to source /dev/null (special files
2650   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2651   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2652     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2653 $as_echo "$as_me: loading cache $cache_file" >&6;}
2654     case $cache_file in
2655       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2656       *)                      . "./$cache_file";;
2657     esac
2658   fi
2659 else
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2661 $as_echo "$as_me: creating cache $cache_file" >&6;}
2662   >$cache_file
2663 fi
2664
2665 gt_needs="$gt_needs "
2666 as_fn_append ac_header_list " stdlib.h"
2667 as_fn_append ac_header_list " unistd.h"
2668 as_fn_append ac_header_list " sys/param.h"
2669 # Check that the precious variables saved in the cache have kept the same
2670 # value.
2671 ac_cache_corrupted=false
2672 for ac_var in $ac_precious_vars; do
2673   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2674   eval ac_new_set=\$ac_env_${ac_var}_set
2675   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2676   eval ac_new_val=\$ac_env_${ac_var}_value
2677   case $ac_old_set,$ac_new_set in
2678     set,)
2679       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2680 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2681       ac_cache_corrupted=: ;;
2682     ,set)
2683       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2684 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2685       ac_cache_corrupted=: ;;
2686     ,);;
2687     *)
2688       if test "x$ac_old_val" != "x$ac_new_val"; then
2689         # differences in whitespace do not lead to failure.
2690         ac_old_val_w=`echo x $ac_old_val`
2691         ac_new_val_w=`echo x $ac_new_val`
2692         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2693           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2694 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2695           ac_cache_corrupted=:
2696         else
2697           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2698 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2699           eval $ac_var=\$ac_old_val
2700         fi
2701         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2702 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2703         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2704 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2705       fi;;
2706   esac
2707   # Pass precious variables to config.status.
2708   if test "$ac_new_set" = set; then
2709     case $ac_new_val in
2710     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2711     *) ac_arg=$ac_var=$ac_new_val ;;
2712     esac
2713     case " $ac_configure_args " in
2714       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2715       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2716     esac
2717   fi
2718 done
2719 if $ac_cache_corrupted; then
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2723 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2724   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2725 fi
2726 ## -------------------- ##
2727 ## Main body of script. ##
2728 ## -------------------- ##
2729
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
2736
2737 am__api_version='1.15'
2738
2739 ac_aux_dir=
2740 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2741   if test -f "$ac_dir/install-sh"; then
2742     ac_aux_dir=$ac_dir
2743     ac_install_sh="$ac_aux_dir/install-sh -c"
2744     break
2745   elif test -f "$ac_dir/install.sh"; then
2746     ac_aux_dir=$ac_dir
2747     ac_install_sh="$ac_aux_dir/install.sh -c"
2748     break
2749   elif test -f "$ac_dir/shtool"; then
2750     ac_aux_dir=$ac_dir
2751     ac_install_sh="$ac_aux_dir/shtool install -c"
2752     break
2753   fi
2754 done
2755 if test -z "$ac_aux_dir"; then
2756   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2757 fi
2758
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2766
2767
2768 # Find a good install program.  We prefer a C program (faster),
2769 # so one script is as good as another.  But avoid the broken or
2770 # incompatible versions:
2771 # SysV /etc/install, /usr/sbin/install
2772 # SunOS /usr/etc/install
2773 # IRIX /sbin/install
2774 # AIX /bin/install
2775 # AmigaOS /C/install, which installs bootblocks on floppy discs
2776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779 # OS/2's system install, which has a completely different semantic
2780 # ./install, which can be erroneously created by make from ./install.sh.
2781 # Reject install programs that cannot install multiple files.
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2784 if test -z "$INSTALL"; then
2785 if ${ac_cv_path_install+:} false; then :
2786   $as_echo_n "(cached) " >&6
2787 else
2788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     # Account for people who put trailing slashes in PATH elements.
2794 case $as_dir/ in #((
2795   ./ | .// | /[cC]/* | \
2796   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798   /usr/ucb/* ) ;;
2799   *)
2800     # OSF1 and SCO ODT 3.0 have their own names for install.
2801     # Don't use installbsd from OSF since it installs stuff as root
2802     # by default.
2803     for ac_prog in ginstall scoinst install; do
2804       for ac_exec_ext in '' $ac_executable_extensions; do
2805         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2806           if test $ac_prog = install &&
2807             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808             # AIX install.  It has an incompatible calling convention.
2809             :
2810           elif test $ac_prog = install &&
2811             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812             # program-specific install script used by HP pwplus--don't use.
2813             :
2814           else
2815             rm -rf conftest.one conftest.two conftest.dir
2816             echo one > conftest.one
2817             echo two > conftest.two
2818             mkdir conftest.dir
2819             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820               test -s conftest.one && test -s conftest.two &&
2821               test -s conftest.dir/conftest.one &&
2822               test -s conftest.dir/conftest.two
2823             then
2824               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2825               break 3
2826             fi
2827           fi
2828         fi
2829       done
2830     done
2831     ;;
2832 esac
2833
2834   done
2835 IFS=$as_save_IFS
2836
2837 rm -rf conftest.one conftest.two conftest.dir
2838
2839 fi
2840   if test "${ac_cv_path_install+set}" = set; then
2841     INSTALL=$ac_cv_path_install
2842   else
2843     # As a last resort, use the slow shell script.  Don't cache a
2844     # value for INSTALL within a source directory, because that will
2845     # break other packages using the cache if that directory is
2846     # removed, or if the value is a relative name.
2847     INSTALL=$ac_install_sh
2848   fi
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851 $as_echo "$INSTALL" >&6; }
2852
2853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854 # It thinks the first close brace ends the variable substitution.
2855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856
2857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858
2859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862 $as_echo_n "checking whether build environment is sane... " >&6; }
2863 # Reject unsafe characters in $srcdir or the absolute working directory
2864 # name.  Accept space and tab only in the latter.
2865 am_lf='
2866 '
2867 case `pwd` in
2868   *[\\\"\#\$\&\'\`$am_lf]*)
2869     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2870 esac
2871 case $srcdir in
2872   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2873     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2874 esac
2875
2876 # Do 'set' in a subshell so we don't clobber the current shell's
2877 # arguments.  Must try -L first in case configure is actually a
2878 # symlink; some systems play weird games with the mod time of symlinks
2879 # (eg FreeBSD returns the mod time of the symlink's containing
2880 # directory).
2881 if (
2882    am_has_slept=no
2883    for am_try in 1 2; do
2884      echo "timestamp, slept: $am_has_slept" > conftest.file
2885      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886      if test "$*" = "X"; then
2887         # -L didn't work.
2888         set X `ls -t "$srcdir/configure" conftest.file`
2889      fi
2890      if test "$*" != "X $srcdir/configure conftest.file" \
2891         && test "$*" != "X conftest.file $srcdir/configure"; then
2892
2893         # If neither matched, then we have a broken ls.  This can happen
2894         # if, for instance, CONFIG_SHELL is bash and it inherits a
2895         # broken ls alias from the environment.  This has actually
2896         # happened.  Such a system could not be considered "sane".
2897         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2898   alias in your environment" "$LINENO" 5
2899      fi
2900      if test "$2" = conftest.file || test $am_try -eq 2; then
2901        break
2902      fi
2903      # Just in case.
2904      sleep 1
2905      am_has_slept=yes
2906    done
2907    test "$2" = conftest.file
2908    )
2909 then
2910    # Ok.
2911    :
2912 else
2913    as_fn_error $? "newly created file is older than distributed files!
2914 Check your system clock" "$LINENO" 5
2915 fi
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917 $as_echo "yes" >&6; }
2918 # If we didn't sleep, we still need to ensure time stamps of config.status and
2919 # generated files are strictly newer.
2920 am_sleep_pid=
2921 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2922   ( sleep 1 ) &
2923   am_sleep_pid=$!
2924 fi
2925
2926 rm -f conftest.file
2927
2928 test "$program_prefix" != NONE &&
2929   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2930 # Use a double $ so make ignores it.
2931 test "$program_suffix" != NONE &&
2932   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2933 # Double any \ or $.
2934 # By default was `s,x,x', remove it if useless.
2935 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2936 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2937
2938 # Expand $ac_aux_dir to an absolute path.
2939 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2940
2941 if test x"${MISSING+set}" != xset; then
2942   case $am_aux_dir in
2943   *\ * | *\     *)
2944     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2945   *)
2946     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2947   esac
2948 fi
2949 # Use eval to expand $SHELL
2950 if eval "$MISSING --is-lightweight"; then
2951   am_missing_run="$MISSING "
2952 else
2953   am_missing_run=
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2955 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2956 fi
2957
2958 if test x"${install_sh+set}" != xset; then
2959   case $am_aux_dir in
2960   *\ * | *\     *)
2961     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2962   *)
2963     install_sh="\${SHELL} $am_aux_dir/install-sh"
2964   esac
2965 fi
2966
2967 # Installed binaries are usually stripped using 'strip' when the user
2968 # run "make install-strip".  However 'strip' might not be the right
2969 # tool to use in cross-compilation environments, therefore Automake
2970 # will honor the 'STRIP' environment variable to overrule this program.
2971 if test "$cross_compiling" != no; then
2972   if test -n "$ac_tool_prefix"; then
2973   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}strip; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_STRIP+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$STRIP"; then
2981   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 STRIP=$ac_cv_prog_STRIP
3001 if test -n "$STRIP"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3003 $as_echo "$STRIP" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010 fi
3011 if test -z "$ac_cv_prog_STRIP"; then
3012   ac_ct_STRIP=$STRIP
3013   # Extract the first word of "strip", so it can be a program name with args.
3014 set dummy strip; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$ac_ct_STRIP"; then
3021   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028     for ac_exec_ext in '' $ac_executable_extensions; do
3029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030     ac_cv_prog_ac_ct_STRIP="strip"
3031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035   done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3041 if test -n "$ac_ct_STRIP"; then
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3043 $as_echo "$ac_ct_STRIP" >&6; }
3044 else
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049   if test "x$ac_ct_STRIP" = x; then
3050     STRIP=":"
3051   else
3052     case $cross_compiling:$ac_tool_warned in
3053 yes:)
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3057 esac
3058     STRIP=$ac_ct_STRIP
3059   fi
3060 else
3061   STRIP="$ac_cv_prog_STRIP"
3062 fi
3063
3064 fi
3065 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3066
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3068 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3069 if test -z "$MKDIR_P"; then
3070   if ${ac_cv_path_mkdir+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078     for ac_prog in mkdir gmkdir; do
3079          for ac_exec_ext in '' $ac_executable_extensions; do
3080            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3081            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3082              'mkdir (GNU coreutils) '* | \
3083              'mkdir (coreutils) '* | \
3084              'mkdir (fileutils) '4.1*)
3085                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3086                break 3;;
3087            esac
3088          done
3089        done
3090   done
3091 IFS=$as_save_IFS
3092
3093 fi
3094
3095   test -d ./--version && rmdir ./--version
3096   if test "${ac_cv_path_mkdir+set}" = set; then
3097     MKDIR_P="$ac_cv_path_mkdir -p"
3098   else
3099     # As a last resort, use the slow shell script.  Don't cache a
3100     # value for MKDIR_P within a source directory, because that will
3101     # break other packages using the cache if that directory is
3102     # removed, or if the value is a relative name.
3103     MKDIR_P="$ac_install_sh -d"
3104   fi
3105 fi
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3107 $as_echo "$MKDIR_P" >&6; }
3108
3109 for ac_prog in gawk mawk nawk awk
3110 do
3111   # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_AWK+:} false; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   if test -n "$AWK"; then
3119   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     for ac_exec_ext in '' $ac_executable_extensions; do
3127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128     ac_cv_prog_AWK="$ac_prog"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 AWK=$ac_cv_prog_AWK
3139 if test -n "$AWK"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141 $as_echo "$AWK" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148   test -n "$AWK" && break
3149 done
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3153 set x ${MAKE-make}
3154 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3155 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   cat >conftest.make <<\_ACEOF
3159 SHELL = /bin/sh
3160 all:
3161         @echo '@@@%%%=$(MAKE)=@@@%%%'
3162 _ACEOF
3163 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3164 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3165   *@@@%%%=?*=@@@%%%*)
3166     eval ac_cv_prog_make_${ac_make}_set=yes;;
3167   *)
3168     eval ac_cv_prog_make_${ac_make}_set=no;;
3169 esac
3170 rm -f conftest.make
3171 fi
3172 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3175   SET_MAKE=
3176 else
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179   SET_MAKE="MAKE=${MAKE-make}"
3180 fi
3181
3182 rm -rf .tst 2>/dev/null
3183 mkdir .tst 2>/dev/null
3184 if test -d .tst; then
3185   am__leading_dot=.
3186 else
3187   am__leading_dot=_
3188 fi
3189 rmdir .tst 2>/dev/null
3190
3191 # Check whether --enable-silent-rules was given.
3192 if test "${enable_silent_rules+set}" = set; then :
3193   enableval=$enable_silent_rules;
3194 fi
3195
3196 case $enable_silent_rules in # (((
3197   yes) AM_DEFAULT_VERBOSITY=0;;
3198    no) AM_DEFAULT_VERBOSITY=1;;
3199     *) AM_DEFAULT_VERBOSITY=1;;
3200 esac
3201 am_make=${MAKE-make}
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3203 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3204 if ${am_cv_make_support_nested_variables+:} false; then :
3205   $as_echo_n "(cached) " >&6
3206 else
3207   if $as_echo 'TRUE=$(BAR$(V))
3208 BAR0=false
3209 BAR1=true
3210 V=1
3211 am__doit:
3212         @$(TRUE)
3213 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3214   am_cv_make_support_nested_variables=yes
3215 else
3216   am_cv_make_support_nested_variables=no
3217 fi
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3220 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3221 if test $am_cv_make_support_nested_variables = yes; then
3222     AM_V='$(V)'
3223   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3224 else
3225   AM_V=$AM_DEFAULT_VERBOSITY
3226   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3227 fi
3228 AM_BACKSLASH='\'
3229
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232   # is not polluted with repeated "-I."
3233   am__isrc=' -I$(srcdir)'
3234   # test to see if srcdir already configured
3235   if test -f $srcdir/config.status; then
3236     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3237   fi
3238 fi
3239
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242   if (cygpath --version) >/dev/null 2>/dev/null; then
3243     CYGPATH_W='cygpath -w'
3244   else
3245     CYGPATH_W=echo
3246   fi
3247 fi
3248
3249
3250 # Define the identity of the package.
3251  PACKAGE='fontconfig'
3252  VERSION='2.13.0'
3253
3254
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3257 _ACEOF
3258
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define VERSION "$VERSION"
3262 _ACEOF
3263
3264 # Some tools Automake needs.
3265
3266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3267
3268
3269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3270
3271
3272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3273
3274
3275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3276
3277
3278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3279
3280 # For better backward compatibility.  To be removed once Automake 1.9.x
3281 # dies out for good.  For more background, see:
3282 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3283 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3284 mkdir_p='$(MKDIR_P)'
3285
3286 # We need awk for the "check" target (and possibly the TAP driver).  The
3287 # system "awk" is bad on some platforms.
3288 # Always define AMTAR for backward compatibility.  Yes, it's still used
3289 # in the wild :-(  We should find a proper way to deprecate it ...
3290 AMTAR='$${TAR-tar}'
3291
3292
3293 # We'll loop over all known methods to create a tar archive until one works.
3294 _am_tools='gnutar  pax cpio none'
3295
3296 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3297
3298
3299
3300
3301
3302
3303 # POSIX will say in a future version that running "rm -f" with no argument
3304 # is OK; and we want to be able to make that assumption in our Makefile
3305 # recipes.  So use an aggressive probe to check that the usage we want is
3306 # actually supported "in the wild" to an acceptable degree.
3307 # See automake bug#10828.
3308 # To make any issue more visible, cause the running configure to be aborted
3309 # by default if the 'rm' program in use doesn't match our expectations; the
3310 # user can still override this though.
3311 if rm -f && rm -fr && rm -rf; then : OK; else
3312   cat >&2 <<'END'
3313 Oops!
3314
3315 Your 'rm' program seems unable to run without file operands specified
3316 on the command line, even when the '-f' option is present.  This is contrary
3317 to the behaviour of most rm programs out there, and not conforming with
3318 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3319
3320 Please tell bug-automake@gnu.org about your system, including the value
3321 of your $PATH and any error possibly output before this message.  This
3322 can help us improve future automake versions.
3323
3324 END
3325   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3326     echo 'Configuration will proceed anyway, since you have set the' >&2
3327     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3328     echo >&2
3329   else
3330     cat >&2 <<'END'
3331 Aborting the configuration process, to ensure you take notice of the issue.
3332
3333 You can download and install GNU coreutils to get an 'rm' implementation
3334 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3335
3336 If you want to complete the configuration process using your problematic
3337 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3338 to "yes", and re-run configure.
3339
3340 END
3341     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3342   fi
3343 fi
3344
3345 # Check whether --enable-silent-rules was given.
3346 if test "${enable_silent_rules+set}" = set; then :
3347   enableval=$enable_silent_rules;
3348 fi
3349
3350 case $enable_silent_rules in # (((
3351   yes) AM_DEFAULT_VERBOSITY=0;;
3352    no) AM_DEFAULT_VERBOSITY=1;;
3353     *) AM_DEFAULT_VERBOSITY=0;;
3354 esac
3355 am_make=${MAKE-make}
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3357 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3358 if ${am_cv_make_support_nested_variables+:} false; then :
3359   $as_echo_n "(cached) " >&6
3360 else
3361   if $as_echo 'TRUE=$(BAR$(V))
3362 BAR0=false
3363 BAR1=true
3364 V=1
3365 am__doit:
3366         @$(TRUE)
3367 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3368   am_cv_make_support_nested_variables=yes
3369 else
3370   am_cv_make_support_nested_variables=no
3371 fi
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3374 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3375 if test $am_cv_make_support_nested_variables = yes; then
3376     AM_V='$(V)'
3377   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3378 else
3379   AM_V=$AM_DEFAULT_VERBOSITY
3380   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3381 fi
3382 AM_BACKSLASH='\'
3383
3384
3385
3386 ac_config_headers="$ac_config_headers config.h"
3387
3388
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 if test -n "$ac_tool_prefix"; then
3396   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   if test -n "$CC"; then
3404   ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433 fi
3434 if test -z "$ac_cv_prog_CC"; then
3435   ac_ct_CC=$CC
3436   # Extract the first word of "gcc", so it can be a program name with args.
3437 set dummy gcc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   if test -n "$ac_ct_CC"; then
3444   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449   IFS=$as_save_IFS
3450   test -z "$as_dir" && as_dir=.
3451     for ac_exec_ext in '' $ac_executable_extensions; do
3452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453     ac_cv_prog_ac_ct_CC="gcc"
3454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458   done
3459 IFS=$as_save_IFS
3460
3461 fi
3462 fi
3463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464 if test -n "$ac_ct_CC"; then
3465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466 $as_echo "$ac_ct_CC" >&6; }
3467 else
3468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 fi
3471
3472   if test "x$ac_ct_CC" = x; then
3473     CC=""
3474   else
3475     case $cross_compiling:$ac_tool_warned in
3476 yes:)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3480 esac
3481     CC=$ac_ct_CC
3482   fi
3483 else
3484   CC="$ac_cv_prog_CC"
3485 fi
3486
3487 if test -z "$CC"; then
3488           if test -n "$ac_tool_prefix"; then
3489     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}cc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if ${ac_cv_prog_CC+:} false; then :
3494   $as_echo_n "(cached) " >&6
3495 else
3496   if test -n "$CC"; then
3497   ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502   IFS=$as_save_IFS
3503   test -z "$as_dir" && as_dir=.
3504     for ac_exec_ext in '' $ac_executable_extensions; do
3505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506     ac_cv_prog_CC="${ac_tool_prefix}cc"
3507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508     break 2
3509   fi
3510 done
3511   done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3520 else
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 fi
3524
3525
3526   fi
3527 fi
3528 if test -z "$CC"; then
3529   # Extract the first word of "cc", so it can be a program name with args.
3530 set dummy cc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_CC+:} false; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   if test -n "$CC"; then
3537   ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539   ac_prog_rejected=no
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545     for ac_exec_ext in '' $ac_executable_extensions; do
3546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3548        ac_prog_rejected=yes
3549        continue
3550      fi
3551     ac_cv_prog_CC="cc"
3552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556   done
3557 IFS=$as_save_IFS
3558
3559 if test $ac_prog_rejected = yes; then
3560   # We found a bogon in the path, so make sure we never use it.
3561   set dummy $ac_cv_prog_CC
3562   shift
3563   if test $# != 0; then
3564     # We chose a different compiler from the bogus one.
3565     # However, it has the same basename, so the bogon will be chosen
3566     # first if we set CC to just the basename; use the full file name.
3567     shift
3568     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3569   fi
3570 fi
3571 fi
3572 fi
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3577 else
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582
3583 fi
3584 if test -z "$CC"; then
3585   if test -n "$ac_tool_prefix"; then
3586   for ac_prog in cl.exe
3587   do
3588     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_CC+:} false; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$CC"; then
3596   ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625     test -n "$CC" && break
3626   done
3627 fi
3628 if test -z "$CC"; then
3629   ac_ct_CC=$CC
3630   for ac_prog in cl.exe
3631 do
3632   # Extract the first word of "$ac_prog", so it can be a program name with args.
3633 set dummy $ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3637   $as_echo_n "(cached) " >&6
3638 else
3639   if test -n "$ac_ct_CC"; then
3640   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647     for ac_exec_ext in '' $ac_executable_extensions; do
3648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649     ac_cv_prog_ac_ct_CC="$ac_prog"
3650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654   done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660 if test -n "$ac_ct_CC"; then
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662 $as_echo "$ac_ct_CC" >&6; }
3663 else
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 fi
3667
3668
3669   test -n "$ac_ct_CC" && break
3670 done
3671
3672   if test "x$ac_ct_CC" = x; then
3673     CC=""
3674   else
3675     case $cross_compiling:$ac_tool_warned in
3676 yes:)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679 ac_tool_warned=yes ;;
3680 esac
3681     CC=$ac_ct_CC
3682   fi
3683 fi
3684
3685 fi
3686
3687
3688 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "no acceptable C compiler found in \$PATH
3691 See \`config.log' for more details" "$LINENO" 5; }
3692
3693 # Provide some information about the compiler.
3694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3695 set X $ac_compile
3696 ac_compiler=$2
3697 for ac_option in --version -v -V -qversion; do
3698   { { ac_try="$ac_compiler $ac_option >&5"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3706   ac_status=$?
3707   if test -s conftest.err; then
3708     sed '10a\
3709 ... rest of stderr output deleted ...
3710          10q' conftest.err >conftest.er1
3711     cat conftest.er1 >&5
3712   fi
3713   rm -f conftest.er1 conftest.err
3714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715   test $ac_status = 0; }
3716 done
3717
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h.  */
3720
3721 int
3722 main ()
3723 {
3724
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 ac_clean_files_save=$ac_clean_files
3730 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3731 # Try to create an executable without -o first, disregard a.out.
3732 # It will help us diagnose broken compilers, and finding out an intuition
3733 # of exeext.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3735 $as_echo_n "checking whether the C compiler works... " >&6; }
3736 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3737
3738 # The possible output files:
3739 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3740
3741 ac_rmfiles=
3742 for ac_file in $ac_files
3743 do
3744   case $ac_file in
3745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3747   esac
3748 done
3749 rm -f $ac_rmfiles
3750
3751 if { { ac_try="$ac_link_default"
3752 case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758   (eval "$ac_link_default") 2>&5
3759   ac_status=$?
3760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761   test $ac_status = 0; }; then :
3762   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3763 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3764 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3765 # so that the user can short-circuit this test for compilers unknown to
3766 # Autoconf.
3767 for ac_file in $ac_files ''
3768 do
3769   test -f "$ac_file" || continue
3770   case $ac_file in
3771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3772         ;;
3773     [ab].out )
3774         # We found the default executable, but exeext='' is most
3775         # certainly right.
3776         break;;
3777     *.* )
3778         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3779         then :; else
3780            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781         fi
3782         # We set ac_cv_exeext here because the later test for it is not
3783         # safe: cross compilers may not add the suffix if given an `-o'
3784         # argument, so we may need to know it at that point already.
3785         # Even if this section looks crufty: it has the advantage of
3786         # actually working.
3787         break;;
3788     * )
3789         break;;
3790   esac
3791 done
3792 test "$ac_cv_exeext" = no && ac_cv_exeext=
3793
3794 else
3795   ac_file=''
3796 fi
3797 if test -z "$ac_file"; then :
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error 77 "C compiler cannot create executables
3806 See \`config.log' for more details" "$LINENO" 5; }
3807 else
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809 $as_echo "yes" >&6; }
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812 $as_echo_n "checking for C compiler default output file name... " >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814 $as_echo "$ac_file" >&6; }
3815 ac_exeext=$ac_cv_exeext
3816
3817 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820 $as_echo_n "checking for suffix of executables... " >&6; }
3821 if { { ac_try="$ac_link"
3822 case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828   (eval "$ac_link") 2>&5
3829   ac_status=$?
3830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831   test $ac_status = 0; }; then :
3832   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3834 # work properly (i.e., refer to `conftest.exe'), while it won't with
3835 # `rm'.
3836 for ac_file in conftest.exe conftest conftest.*; do
3837   test -f "$ac_file" || continue
3838   case $ac_file in
3839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841           break;;
3842     * ) break;;
3843   esac
3844 done
3845 else
3846   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3849 See \`config.log' for more details" "$LINENO" 5; }
3850 fi
3851 rm -f conftest conftest$ac_cv_exeext
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853 $as_echo "$ac_cv_exeext" >&6; }
3854
3855 rm -f conftest.$ac_ext
3856 EXEEXT=$ac_cv_exeext
3857 ac_exeext=$EXEEXT
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h.  */
3860 #include <stdio.h>
3861 int
3862 main ()
3863 {
3864 FILE *f = fopen ("conftest.out", "w");
3865  return ferror (f) || fclose (f) != 0;
3866
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 ac_clean_files="$ac_clean_files conftest.out"
3872 # Check that the compiler produces executables we can run.  If not, either
3873 # the compiler is broken, or we cross compile.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3875 $as_echo_n "checking whether we are cross compiling... " >&6; }
3876 if test "$cross_compiling" != yes; then
3877   { { ac_try="$ac_link"
3878 case "(($ac_try" in
3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880   *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884   (eval "$ac_link") 2>&5
3885   ac_status=$?
3886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887   test $ac_status = 0; }
3888   if { ac_try='./conftest$ac_cv_exeext'
3889   { { case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895   (eval "$ac_try") 2>&5
3896   ac_status=$?
3897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898   test $ac_status = 0; }; }; then
3899     cross_compiling=no
3900   else
3901     if test "$cross_compiling" = maybe; then
3902         cross_compiling=yes
3903     else
3904         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "cannot run C compiled programs.
3907 If you meant to cross compile, use \`--host'.
3908 See \`config.log' for more details" "$LINENO" 5; }
3909     fi
3910   fi
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3914
3915 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3916 ac_clean_files=$ac_clean_files_save
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918 $as_echo_n "checking for suffix of object files... " >&6; }
3919 if ${ac_cv_objext+:} false; then :
3920   $as_echo_n "(cached) " >&6
3921 else
3922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h.  */
3924
3925 int
3926 main ()
3927 {
3928
3929   ;
3930   return 0;
3931 }
3932 _ACEOF
3933 rm -f conftest.o conftest.obj
3934 if { { ac_try="$ac_compile"
3935 case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941   (eval "$ac_compile") 2>&5
3942   ac_status=$?
3943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944   test $ac_status = 0; }; then :
3945   for ac_file in conftest.o conftest.obj conftest.*; do
3946   test -f "$ac_file" || continue;
3947   case $ac_file in
3948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950        break;;
3951   esac
3952 done
3953 else
3954   $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of object files: cannot compile
3960 See \`config.log' for more details" "$LINENO" 5; }
3961 fi
3962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965 $as_echo "$ac_cv_objext" >&6; }
3966 OBJEXT=$ac_cv_objext
3967 ac_objext=$OBJEXT
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if ${ac_cv_c_compiler_gnu+:} false; then :
3971   $as_echo_n "(cached) " >&6
3972 else
3973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h.  */
3975
3976 int
3977 main ()
3978 {
3979 #ifndef __GNUC__
3980        choke me
3981 #endif
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988   ac_compiler_gnu=yes
3989 else
3990   ac_compiler_gnu=no
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3994
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998 if test $ac_compiler_gnu = yes; then
3999   GCC=yes
4000 else
4001   GCC=
4002 fi
4003 ac_test_CFLAGS=${CFLAGS+set}
4004 ac_save_CFLAGS=$CFLAGS
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4007 if ${ac_cv_prog_cc_g+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   ac_save_c_werror_flag=$ac_c_werror_flag
4011    ac_c_werror_flag=yes
4012    ac_cv_prog_cc_g=no
4013    CFLAGS="-g"
4014    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016
4017 int
4018 main ()
4019 {
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026   ac_cv_prog_cc_g=yes
4027 else
4028   CFLAGS=""
4029       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041
4042 else
4043   ac_c_werror_flag=$ac_save_c_werror_flag
4044          CFLAGS="-g"
4045          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057   ac_cv_prog_cc_g=yes
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 fi
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064    ac_c_werror_flag=$ac_save_c_werror_flag
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067 $as_echo "$ac_cv_prog_cc_g" >&6; }
4068 if test "$ac_test_CFLAGS" = set; then
4069   CFLAGS=$ac_save_CFLAGS
4070 elif test $ac_cv_prog_cc_g = yes; then
4071   if test "$GCC" = yes; then
4072     CFLAGS="-g -O2"
4073   else
4074     CFLAGS="-g"
4075   fi
4076 else
4077   if test "$GCC" = yes; then
4078     CFLAGS="-O2"
4079   else
4080     CFLAGS=
4081   fi
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085 if ${ac_cv_prog_cc_c89+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   ac_cv_prog_cc_c89=no
4089 ac_save_CC=$CC
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h.  */
4092 #include <stdarg.h>
4093 #include <stdio.h>
4094 struct stat;
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4099      char **p;
4100      int i;
4101 {
4102   return p[i];
4103 }
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4105 {
4106   char *s;
4107   va_list v;
4108   va_start (v,p);
4109   s = g (p, va_arg (v,int));
4110   va_end (v);
4111   return s;
4112 }
4113
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4115    function prototypes and stuff, but not '\xHH' hex character constants.
4116    These don't provoke an error unfortunately, instead are silently treated
4117    as 'x'.  The following induces an error, until -std is added to get
4118    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4119    array size at least.  It's necessary to write '\x00'==0 to get something
4120    that's true only with -std.  */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124    inside strings and character constants.  */
4125 #define FOO(x) 'x'
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 int argc;
4133 char **argv;
4134 int
4135 main ()
4136 {
4137 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145   CC="$ac_save_CC $ac_arg"
4146   if ac_fn_c_try_compile "$LINENO"; then :
4147   ac_cv_prog_cc_c89=$ac_arg
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext
4150   test "x$ac_cv_prog_cc_c89" != "xno" && break
4151 done
4152 rm -f conftest.$ac_ext
4153 CC=$ac_save_CC
4154
4155 fi
4156 # AC_CACHE_VAL
4157 case "x$ac_cv_prog_cc_c89" in
4158   x)
4159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4161   xno)
4162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4164   *)
4165     CC="$CC $ac_cv_prog_cc_c89"
4166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168 esac
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171 fi
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4185 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4186 if ${am_cv_prog_cc_c_o+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191
4192 int
4193 main ()
4194 {
4195
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200   # Make sure it works both with $CC and with simple cc.
4201   # Following AC_PROG_CC_C_O, we do the test twice because some
4202   # compilers refuse to overwrite an existing .o file with -o,
4203   # though they will create one.
4204   am_cv_prog_cc_c_o=yes
4205   for am_i in 1 2; do
4206     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4207    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4208    ac_status=$?
4209    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210    (exit $ac_status); } \
4211          && test -f conftest2.$ac_objext; then
4212       : OK
4213     else
4214       am_cv_prog_cc_c_o=no
4215       break
4216     fi
4217   done
4218   rm -f core conftest*
4219   unset am_i
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4222 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4223 if test "$am_cv_prog_cc_c_o" != yes; then
4224    # Losing compiler, so override with the script.
4225    # FIXME: It is wrong to rewrite CC.
4226    # But if we don't then we get into trouble of one sort or another.
4227    # A longer-term fix would be to have automake use am__CC in this case,
4228    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229    CC="$am_aux_dir/compile $CC"
4230 fi
4231 ac_ext=c
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
4237 DEPDIR="${am__leading_dot}deps"
4238
4239 ac_config_commands="$ac_config_commands depfiles"
4240
4241
4242 am_make=${MAKE-make}
4243 cat > confinc << 'END'
4244 am__doit:
4245         @echo this is the am__doit target
4246 .PHONY: am__doit
4247 END
4248 # If we don't find an include directive, just comment out the code.
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4250 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4251 am__include="#"
4252 am__quote=
4253 _am_result=none
4254 # First try GNU make style include.
4255 echo "include confinc" > confmf
4256 # Ignore all kinds of additional output from 'make'.
4257 case `$am_make -s -f confmf 2> /dev/null` in #(
4258 *the\ am__doit\ target*)
4259   am__include=include
4260   am__quote=
4261   _am_result=GNU
4262   ;;
4263 esac
4264 # Now try BSD make style include.
4265 if test "$am__include" = "#"; then
4266    echo '.include "confinc"' > confmf
4267    case `$am_make -s -f confmf 2> /dev/null` in #(
4268    *the\ am__doit\ target*)
4269      am__include=.include
4270      am__quote="\""
4271      _am_result=BSD
4272      ;;
4273    esac
4274 fi
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4278 $as_echo "$_am_result" >&6; }
4279 rm -f confinc confmf
4280
4281 # Check whether --enable-dependency-tracking was given.
4282 if test "${enable_dependency_tracking+set}" = set; then :
4283   enableval=$enable_dependency_tracking;
4284 fi
4285
4286 if test "x$enable_dependency_tracking" != xno; then
4287   am_depcomp="$ac_aux_dir/depcomp"
4288   AMDEPBACKSLASH='\'
4289   am__nodep='_no'
4290 fi
4291  if test "x$enable_dependency_tracking" != xno; then
4292   AMDEP_TRUE=
4293   AMDEP_FALSE='#'
4294 else
4295   AMDEP_TRUE='#'
4296   AMDEP_FALSE=
4297 fi
4298
4299
4300
4301 depcc="$CC"   am_compiler_list=
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304 $as_echo_n "checking dependency style of $depcc... " >&6; }
4305 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4309   # We make a subdir and do the tests there.  Otherwise we can end up
4310   # making bogus files that we don't know about and never remove.  For
4311   # instance it was reported that on HP-UX the gcc test will end up
4312   # making a dummy file named 'D' -- because '-MD' means "put the output
4313   # in D".
4314   rm -rf conftest.dir
4315   mkdir conftest.dir
4316   # Copy depcomp to subdir because otherwise we won't find it if we're
4317   # using a relative directory.
4318   cp "$am_depcomp" conftest.dir
4319   cd conftest.dir
4320   # We will build objects and dependencies in a subdirectory because
4321   # it helps to detect inapplicable dependency modes.  For instance
4322   # both Tru64's cc and ICC support -MD to output dependencies as a
4323   # side effect of compilation, but ICC will put the dependencies in
4324   # the current directory while Tru64 will put them in the object
4325   # directory.
4326   mkdir sub
4327
4328   am_cv_CC_dependencies_compiler_type=none
4329   if test "$am_compiler_list" = ""; then
4330      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4331   fi
4332   am__universal=false
4333   case " $depcc " in #(
4334      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4335      esac
4336
4337   for depmode in $am_compiler_list; do
4338     # Setup a source with many dependencies, because some compilers
4339     # like to wrap large dependency lists on column 80 (with \), and
4340     # we should not choose a depcomp mode which is confused by this.
4341     #
4342     # We need to recreate these files for each test, as the compiler may
4343     # overwrite some of them when testing with obscure command lines.
4344     # This happens at least with the AIX C compiler.
4345     : > sub/conftest.c
4346     for i in 1 2 3 4 5 6; do
4347       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4348       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4349       # Solaris 10 /bin/sh.
4350       echo '/* dummy */' > sub/conftst$i.h
4351     done
4352     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4353
4354     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4355     # mode.  It turns out that the SunPro C++ compiler does not properly
4356     # handle '-M -o', and we need to detect this.  Also, some Intel
4357     # versions had trouble with output in subdirs.
4358     am__obj=sub/conftest.${OBJEXT-o}
4359     am__minus_obj="-o $am__obj"
4360     case $depmode in
4361     gcc)
4362       # This depmode causes a compiler race in universal mode.
4363       test "$am__universal" = false || continue
4364       ;;
4365     nosideeffect)
4366       # After this tag, mechanisms are not by side-effect, so they'll
4367       # only be used when explicitly requested.
4368       if test "x$enable_dependency_tracking" = xyes; then
4369         continue
4370       else
4371         break
4372       fi
4373       ;;
4374     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4375       # This compiler won't grok '-c -o', but also, the minuso test has
4376       # not run yet.  These depmodes are late enough in the game, and
4377       # so weak that their functioning should not be impacted.
4378       am__obj=conftest.${OBJEXT-o}
4379       am__minus_obj=
4380       ;;
4381     none) break ;;
4382     esac
4383     if depmode=$depmode \
4384        source=sub/conftest.c object=$am__obj \
4385        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4386        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4387          >/dev/null 2>conftest.err &&
4388        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4389        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4390        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4391        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4392       # icc doesn't choke on unknown options, it will just issue warnings
4393       # or remarks (even with -Werror).  So we grep stderr for any message
4394       # that says an option was ignored or not supported.
4395       # When given -MP, icc 7.0 and 7.1 complain thusly:
4396       #   icc: Command line warning: ignoring option '-M'; no argument required
4397       # The diagnosis changed in icc 8.0:
4398       #   icc: Command line remark: option '-MP' not supported
4399       if (grep 'ignoring option' conftest.err ||
4400           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4401         am_cv_CC_dependencies_compiler_type=$depmode
4402         break
4403       fi
4404     fi
4405   done
4406
4407   cd ..
4408   rm -rf conftest.dir
4409 else
4410   am_cv_CC_dependencies_compiler_type=none
4411 fi
4412
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4417
4418  if
4419   test "x$enable_dependency_tracking" != xno \
4420   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4421   am__fastdepCC_TRUE=
4422   am__fastdepCC_FALSE='#'
4423 else
4424   am__fastdepCC_TRUE='#'
4425   am__fastdepCC_FALSE=
4426 fi
4427
4428
4429
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4437 # On Suns, sometimes $CPP names a directory.
4438 if test -n "$CPP" && test -d "$CPP"; then
4439   CPP=
4440 fi
4441 if test -z "$CPP"; then
4442   if ${ac_cv_prog_CPP+:} false; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445       # Double quotes because CPP needs to be expanded
4446     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4447     do
4448       ac_preproc_ok=false
4449 for ac_c_preproc_warn_flag in '' yes
4450 do
4451   # Use a header file that comes with gcc, so configuring glibc
4452   # with a fresh cross-compiler works.
4453   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454   # <limits.h> exists even on freestanding compilers.
4455   # On the NeXT, cc -E runs the code through the compiler's parser,
4456   # not just through cpp. "Syntax error" is here to catch this case.
4457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 #ifdef __STDC__
4460 # include <limits.h>
4461 #else
4462 # include <assert.h>
4463 #endif
4464                      Syntax error
4465 _ACEOF
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4467
4468 else
4469   # Broken: fails on valid input.
4470 continue
4471 fi
4472 rm -f conftest.err conftest.i conftest.$ac_ext
4473
4474   # OK, works on sane cases.  Now check whether nonexistent headers
4475   # can be detected and how.
4476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478 #include <ac_nonexistent.h>
4479 _ACEOF
4480 if ac_fn_c_try_cpp "$LINENO"; then :
4481   # Broken: success on invalid input.
4482 continue
4483 else
4484   # Passes both tests.
4485 ac_preproc_ok=:
4486 break
4487 fi
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4489
4490 done
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.i conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then :
4494   break
4495 fi
4496
4497     done
4498     ac_cv_prog_CPP=$CPP
4499
4500 fi
4501   CPP=$ac_cv_prog_CPP
4502 else
4503   ac_cv_prog_CPP=$CPP
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4506 $as_echo "$CPP" >&6; }
4507 ac_preproc_ok=false
4508 for ac_c_preproc_warn_flag in '' yes
4509 do
4510   # Use a header file that comes with gcc, so configuring glibc
4511   # with a fresh cross-compiler works.
4512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513   # <limits.h> exists even on freestanding compilers.
4514   # On the NeXT, cc -E runs the code through the compiler's parser,
4515   # not just through cpp. "Syntax error" is here to catch this case.
4516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518 #ifdef __STDC__
4519 # include <limits.h>
4520 #else
4521 # include <assert.h>
4522 #endif
4523                      Syntax error
4524 _ACEOF
4525 if ac_fn_c_try_cpp "$LINENO"; then :
4526
4527 else
4528   # Broken: fails on valid input.
4529 continue
4530 fi
4531 rm -f conftest.err conftest.i conftest.$ac_ext
4532
4533   # OK, works on sane cases.  Now check whether nonexistent headers
4534   # can be detected and how.
4535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h.  */
4537 #include <ac_nonexistent.h>
4538 _ACEOF
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4540   # Broken: success on invalid input.
4541 continue
4542 else
4543   # Passes both tests.
4544 ac_preproc_ok=:
4545 break
4546 fi
4547 rm -f conftest.err conftest.i conftest.$ac_ext
4548
4549 done
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.i conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then :
4553
4554 else
4555   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4558 See \`config.log' for more details" "$LINENO" 5; }
4559 fi
4560
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4569 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4570 if ${ac_cv_path_GREP+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   if test -z "$GREP"; then
4574   ac_path_GREP_found=false
4575   # Loop through the user's path and test for each of PROGNAME-LIST
4576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581     for ac_prog in grep ggrep; do
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4584       as_fn_executable_p "$ac_path_GREP" || continue
4585 # Check for GNU ac_path_GREP and select it if it is found.
4586   # Check for GNU $ac_path_GREP
4587 case `"$ac_path_GREP" --version 2>&1` in
4588 *GNU*)
4589   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4590 *)
4591   ac_count=0
4592   $as_echo_n 0123456789 >"conftest.in"
4593   while :
4594   do
4595     cat "conftest.in" "conftest.in" >"conftest.tmp"
4596     mv "conftest.tmp" "conftest.in"
4597     cp "conftest.in" "conftest.nl"
4598     $as_echo 'GREP' >> "conftest.nl"
4599     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601     as_fn_arith $ac_count + 1 && ac_count=$as_val
4602     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4603       # Best one so far, save it but keep looking for a better one
4604       ac_cv_path_GREP="$ac_path_GREP"
4605       ac_path_GREP_max=$ac_count
4606     fi
4607     # 10*(2^10) chars as input seems more than enough
4608     test $ac_count -gt 10 && break
4609   done
4610   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4612
4613       $ac_path_GREP_found && break 3
4614     done
4615   done
4616   done
4617 IFS=$as_save_IFS
4618   if test -z "$ac_cv_path_GREP"; then
4619     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4620   fi
4621 else
4622   ac_cv_path_GREP=$GREP
4623 fi
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4627 $as_echo "$ac_cv_path_GREP" >&6; }
4628  GREP="$ac_cv_path_GREP"
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4632 $as_echo_n "checking for egrep... " >&6; }
4633 if ${ac_cv_path_EGREP+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4637    then ac_cv_path_EGREP="$GREP -E"
4638    else
4639      if test -z "$EGREP"; then
4640   ac_path_EGREP_found=false
4641   # Loop through the user's path and test for each of PROGNAME-LIST
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_prog in egrep; do
4648     for ac_exec_ext in '' $ac_executable_extensions; do
4649       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4650       as_fn_executable_p "$ac_path_EGREP" || continue
4651 # Check for GNU ac_path_EGREP and select it if it is found.
4652   # Check for GNU $ac_path_EGREP
4653 case `"$ac_path_EGREP" --version 2>&1` in
4654 *GNU*)
4655   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4656 *)
4657   ac_count=0
4658   $as_echo_n 0123456789 >"conftest.in"
4659   while :
4660   do
4661     cat "conftest.in" "conftest.in" >"conftest.tmp"
4662     mv "conftest.tmp" "conftest.in"
4663     cp "conftest.in" "conftest.nl"
4664     $as_echo 'EGREP' >> "conftest.nl"
4665     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667     as_fn_arith $ac_count + 1 && ac_count=$as_val
4668     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4669       # Best one so far, save it but keep looking for a better one
4670       ac_cv_path_EGREP="$ac_path_EGREP"
4671       ac_path_EGREP_max=$ac_count
4672     fi
4673     # 10*(2^10) chars as input seems more than enough
4674     test $ac_count -gt 10 && break
4675   done
4676   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677 esac
4678
4679       $ac_path_EGREP_found && break 3
4680     done
4681   done
4682   done
4683 IFS=$as_save_IFS
4684   if test -z "$ac_cv_path_EGREP"; then
4685     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4686   fi
4687 else
4688   ac_cv_path_EGREP=$EGREP
4689 fi
4690
4691    fi
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4694 $as_echo "$ac_cv_path_EGREP" >&6; }
4695  EGREP="$ac_cv_path_EGREP"
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4699 $as_echo_n "checking for ANSI C header files... " >&6; }
4700 if ${ac_cv_header_stdc+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705 #include <stdlib.h>
4706 #include <stdarg.h>
4707 #include <string.h>
4708 #include <float.h>
4709
4710 int
4711 main ()
4712 {
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719   ac_cv_header_stdc=yes
4720 else
4721   ac_cv_header_stdc=no
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724
4725 if test $ac_cv_header_stdc = yes; then
4726   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #include <string.h>
4730
4731 _ACEOF
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733   $EGREP "memchr" >/dev/null 2>&1; then :
4734
4735 else
4736   ac_cv_header_stdc=no
4737 fi
4738 rm -f conftest*
4739
4740 fi
4741
4742 if test $ac_cv_header_stdc = yes; then
4743   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h.  */
4746 #include <stdlib.h>
4747
4748 _ACEOF
4749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4750   $EGREP "free" >/dev/null 2>&1; then :
4751
4752 else
4753   ac_cv_header_stdc=no
4754 fi
4755 rm -f conftest*
4756
4757 fi
4758
4759 if test $ac_cv_header_stdc = yes; then
4760   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4761   if test "$cross_compiling" = yes; then :
4762   :
4763 else
4764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h.  */
4766 #include <ctype.h>
4767 #include <stdlib.h>
4768 #if ((' ' & 0x0FF) == 0x020)
4769 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4770 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4771 #else
4772 # define ISLOWER(c) \
4773                    (('a' <= (c) && (c) <= 'i') \
4774                      || ('j' <= (c) && (c) <= 'r') \
4775                      || ('s' <= (c) && (c) <= 'z'))
4776 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4777 #endif
4778
4779 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4780 int
4781 main ()
4782 {
4783   int i;
4784   for (i = 0; i < 256; i++)
4785     if (XOR (islower (i), ISLOWER (i))
4786         || toupper (i) != TOUPPER (i))
4787       return 2;
4788   return 0;
4789 }
4790 _ACEOF
4791 if ac_fn_c_try_run "$LINENO"; then :
4792
4793 else
4794   ac_cv_header_stdc=no
4795 fi
4796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4797   conftest.$ac_objext conftest.beam conftest.$ac_ext
4798 fi
4799
4800 fi
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4803 $as_echo "$ac_cv_header_stdc" >&6; }
4804 if test $ac_cv_header_stdc = yes; then
4805
4806 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4807
4808 fi
4809
4810 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4811 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4812                   inttypes.h stdint.h unistd.h
4813 do :
4814   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4816 "
4817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4818   cat >>confdefs.h <<_ACEOF
4819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820 _ACEOF
4821
4822 fi
4823
4824 done
4825
4826
4827
4828   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4829 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4830   MINIX=yes
4831 else
4832   MINIX=
4833 fi
4834
4835
4836   if test "$MINIX" = yes; then
4837
4838 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4839
4840
4841 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4842
4843
4844 $as_echo "#define _MINIX 1" >>confdefs.h
4845
4846   fi
4847
4848
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4850 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4851 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856
4857 #         define __EXTENSIONS__ 1
4858           $ac_includes_default
4859 int
4860 main ()
4861 {
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868   ac_cv_safe_to_define___extensions__=yes
4869 else
4870   ac_cv_safe_to_define___extensions__=no
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4875 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4876   test $ac_cv_safe_to_define___extensions__ = yes &&
4877     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4878
4879   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4880
4881   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4882
4883   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4884
4885   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4886
4887
4888 # Check whether --enable-largefile was given.
4889 if test "${enable_largefile+set}" = set; then :
4890   enableval=$enable_largefile;
4891 fi
4892
4893 if test "$enable_largefile" != no; then
4894
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4896 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4897 if ${ac_cv_sys_largefile_CC+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   ac_cv_sys_largefile_CC=no
4901      if test "$GCC" != yes; then
4902        ac_save_CC=$CC
4903        while :; do
4904          # IRIX 6.2 and later do not support large files by default,
4905          # so use the C compiler's -n32 option if that helps.
4906          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h.  */
4908 #include <sys/types.h>
4909  /* Check that off_t can represent 2**63 - 1 correctly.
4910     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4911     since some C++ compilers masquerading as C compilers
4912     incorrectly reject 9223372036854775807.  */
4913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4914   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4915                        && LARGE_OFF_T % 2147483647 == 1)
4916                       ? 1 : -1];
4917 int
4918 main ()
4919 {
4920
4921   ;
4922   return 0;
4923 }
4924 _ACEOF
4925          if ac_fn_c_try_compile "$LINENO"; then :
4926   break
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext
4929          CC="$CC -n32"
4930          if ac_fn_c_try_compile "$LINENO"; then :
4931   ac_cv_sys_largefile_CC=' -n32'; break
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext
4934          break
4935        done
4936        CC=$ac_save_CC
4937        rm -f conftest.$ac_ext
4938     fi
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4941 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4942   if test "$ac_cv_sys_largefile_CC" != no; then
4943     CC=$CC$ac_cv_sys_largefile_CC
4944   fi
4945
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4947 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4948 if ${ac_cv_sys_file_offset_bits+:} false; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   while :; do
4952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h.  */
4954 #include <sys/types.h>
4955  /* Check that off_t can represent 2**63 - 1 correctly.
4956     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4957     since some C++ compilers masquerading as C compilers
4958     incorrectly reject 9223372036854775807.  */
4959 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4960   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4961                        && LARGE_OFF_T % 2147483647 == 1)
4962                       ? 1 : -1];
4963 int
4964 main ()
4965 {
4966
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972   ac_cv_sys_file_offset_bits=no; break
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #define _FILE_OFFSET_BITS 64
4978 #include <sys/types.h>
4979  /* Check that off_t can represent 2**63 - 1 correctly.
4980     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4981     since some C++ compilers masquerading as C compilers
4982     incorrectly reject 9223372036854775807.  */
4983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4984   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4985                        && LARGE_OFF_T % 2147483647 == 1)
4986                       ? 1 : -1];
4987 int
4988 main ()
4989 {
4990
4991   ;
4992   return 0;
4993 }
4994 _ACEOF
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996   ac_cv_sys_file_offset_bits=64; break
4997 fi
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999   ac_cv_sys_file_offset_bits=unknown
5000   break
5001 done
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5004 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5005 case $ac_cv_sys_file_offset_bits in #(
5006   no | unknown) ;;
5007   *)
5008 cat >>confdefs.h <<_ACEOF
5009 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5010 _ACEOF
5011 ;;
5012 esac
5013 rm -rf conftest*
5014   if test $ac_cv_sys_file_offset_bits = unknown; then
5015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5016 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5017 if ${ac_cv_sys_large_files+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   while :; do
5021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h.  */
5023 #include <sys/types.h>
5024  /* Check that off_t can represent 2**63 - 1 correctly.
5025     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5026     since some C++ compilers masquerading as C compilers
5027     incorrectly reject 9223372036854775807.  */
5028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5029   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5030                        && LARGE_OFF_T % 2147483647 == 1)
5031                       ? 1 : -1];
5032 int
5033 main ()
5034 {
5035
5036   ;
5037   return 0;
5038 }
5039 _ACEOF
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041   ac_cv_sys_large_files=no; break
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h.  */
5046 #define _LARGE_FILES 1
5047 #include <sys/types.h>
5048  /* Check that off_t can represent 2**63 - 1 correctly.
5049     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5050     since some C++ compilers masquerading as C compilers
5051     incorrectly reject 9223372036854775807.  */
5052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5053   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5054                        && LARGE_OFF_T % 2147483647 == 1)
5055                       ? 1 : -1];
5056 int
5057 main ()
5058 {
5059
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065   ac_cv_sys_large_files=1; break
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068   ac_cv_sys_large_files=unknown
5069   break
5070 done
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5073 $as_echo "$ac_cv_sys_large_files" >&6; }
5074 case $ac_cv_sys_large_files in #(
5075   no | unknown) ;;
5076   *)
5077 cat >>confdefs.h <<_ACEOF
5078 #define _LARGE_FILES $ac_cv_sys_large_files
5079 _ACEOF
5080 ;;
5081 esac
5082 rm -rf conftest*
5083   fi
5084
5085
5086 fi
5087
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5090 $as_echo_n "checking whether ln -s works... " >&6; }
5091 LN_S=$as_ln_s
5092 if test "$LN_S" = "ln -s"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 $as_echo "yes" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5097 $as_echo "no, using $LN_S" >&6; }
5098 fi
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5101 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5102 set x ${MAKE-make}
5103 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5104 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107   cat >conftest.make <<\_ACEOF
5108 SHELL = /bin/sh
5109 all:
5110         @echo '@@@%%%=$(MAKE)=@@@%%%'
5111 _ACEOF
5112 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5113 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5114   *@@@%%%=?*=@@@%%%*)
5115     eval ac_cv_prog_make_${ac_make}_set=yes;;
5116   *)
5117     eval ac_cv_prog_make_${ac_make}_set=no;;
5118 esac
5119 rm -f conftest.make
5120 fi
5121 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }
5124   SET_MAKE=
5125 else
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128   SET_MAKE="MAKE=${MAKE-make}"
5129 fi
5130
5131
5132
5133
5134
5135
5136
5137
5138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5139         if test -n "$ac_tool_prefix"; then
5140   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   case $PKG_CONFIG in
5148   [\\/]* | ?:[\\/]*)
5149   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5150   ;;
5151   *)
5152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157     for ac_exec_ext in '' $ac_executable_extensions; do
5158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164   done
5165 IFS=$as_save_IFS
5166
5167   ;;
5168 esac
5169 fi
5170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5171 if test -n "$PKG_CONFIG"; then
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5173 $as_echo "$PKG_CONFIG" >&6; }
5174 else
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5177 fi
5178
5179
5180 fi
5181 if test -z "$ac_cv_path_PKG_CONFIG"; then
5182   ac_pt_PKG_CONFIG=$PKG_CONFIG
5183   # Extract the first word of "pkg-config", so it can be a program name with args.
5184 set dummy pkg-config; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   case $ac_pt_PKG_CONFIG in
5191   [\\/]* | ?:[\\/]*)
5192   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5193   ;;
5194   *)
5195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207   done
5208 IFS=$as_save_IFS
5209
5210   ;;
5211 esac
5212 fi
5213 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5214 if test -n "$ac_pt_PKG_CONFIG"; then
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5216 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5217 else
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222   if test "x$ac_pt_PKG_CONFIG" = x; then
5223     PKG_CONFIG=""
5224   else
5225     case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231     PKG_CONFIG=$ac_pt_PKG_CONFIG
5232   fi
5233 else
5234   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5235 fi
5236
5237 fi
5238 if test -n "$PKG_CONFIG"; then
5239         _pkg_min_version=0.9.0
5240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5241 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5242         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5244 $as_echo "yes" >&6; }
5245         else
5246                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248                 PKG_CONFIG=""
5249         fi
5250 fi
5251
5252
5253
5254 # Check whether --with-pkgconfigdir was given.
5255 if test "${with_pkgconfigdir+set}" = set; then :
5256   withval=$with_pkgconfigdir;
5257 else
5258   with_pkgconfigdir='${libdir}/pkgconfig'
5259 fi
5260
5261 pkgconfigdir=$with_pkgconfigdir
5262
5263
5264
5265
5266
5267
5268 GIT=${GIT-"${am_missing_run}git"}
5269
5270
5271 GPERF=${GPERF-"${am_missing_run}gperf"}
5272
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5275 $as_echo_n "checking for RM macro... " >&6; }
5276 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5277 if test "x$_predefined_rm" = "x"; then
5278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5279 $as_echo "no predefined RM" >&6; }
5280         # Extract the first word of "rm", so it can be a program name with args.
5281 set dummy rm; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_RM+:} false; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if test -n "$RM"; then
5288   ac_cv_prog_RM="$RM" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_exec_ext in '' $ac_executable_extensions; do
5296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297     ac_cv_prog_RM="rm -f"
5298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302   done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 RM=$ac_cv_prog_RM
5308 if test -n "$RM"; then
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5310 $as_echo "$RM" >&6; }
5311 else
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316
5317 else
5318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5319 $as_echo "$_predefined_rm" >&6; }
5320 fi
5321
5322
5323 case `pwd` in
5324   *\ * | *\     *)
5325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5327 esac
5328
5329
5330
5331 macro_version='2.4.6'
5332 macro_revision='2.4.6'
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 ltmain=$ac_aux_dir/ltmain.sh
5347
5348 # Make sure we can run config.sub.
5349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5350   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5353 $as_echo_n "checking build system type... " >&6; }
5354 if ${ac_cv_build+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   ac_build_alias=$build_alias
5358 test "x$ac_build_alias" = x &&
5359   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5360 test "x$ac_build_alias" = x &&
5361   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5363   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5364
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5367 $as_echo "$ac_cv_build" >&6; }
5368 case $ac_cv_build in
5369 *-*-*) ;;
5370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5371 esac
5372 build=$ac_cv_build
5373 ac_save_IFS=$IFS; IFS='-'
5374 set x $ac_cv_build
5375 shift
5376 build_cpu=$1
5377 build_vendor=$2
5378 shift; shift
5379 # Remember, the first character of IFS is used to create $*,
5380 # except with old shells:
5381 build_os=$*
5382 IFS=$ac_save_IFS
5383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5387 $as_echo_n "checking host system type... " >&6; }
5388 if ${ac_cv_host+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   if test "x$host_alias" = x; then
5392   ac_cv_host=$ac_cv_build
5393 else
5394   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5395     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5396 fi
5397
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5400 $as_echo "$ac_cv_host" >&6; }
5401 case $ac_cv_host in
5402 *-*-*) ;;
5403 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5404 esac
5405 host=$ac_cv_host
5406 ac_save_IFS=$IFS; IFS='-'
5407 set x $ac_cv_host
5408 shift
5409 host_cpu=$1
5410 host_vendor=$2
5411 shift; shift
5412 # Remember, the first character of IFS is used to create $*,
5413 # except with old shells:
5414 host_os=$*
5415 IFS=$ac_save_IFS
5416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5417
5418
5419 # Backslashify metacharacters that are still active within
5420 # double-quoted strings.
5421 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5422
5423 # Same as above, but do not quote variable references.
5424 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5425
5426 # Sed substitution to delay expansion of an escaped shell variable in a
5427 # double_quote_subst'ed string.
5428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5429
5430 # Sed substitution to delay expansion of an escaped single quote.
5431 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5432
5433 # Sed substitution to avoid accidental globbing in evaled expressions
5434 no_glob_subst='s/\*/\\\*/g'
5435
5436 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5438 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5441 $as_echo_n "checking how to print strings... " >&6; }
5442 # Test print first, because it will be a builtin if present.
5443 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5444    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5445   ECHO='print -r --'
5446 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5447   ECHO='printf %s\n'
5448 else
5449   # Use this function as a fallback that always works.
5450   func_fallback_echo ()
5451   {
5452     eval 'cat <<_LTECHO_EOF
5453 $1
5454 _LTECHO_EOF'
5455   }
5456   ECHO='func_fallback_echo'
5457 fi
5458
5459 # func_echo_all arg...
5460 # Invoke $ECHO with all args, space-separated.
5461 func_echo_all ()
5462 {
5463     $ECHO ""
5464 }
5465
5466 case $ECHO in
5467   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5468 $as_echo "printf" >&6; } ;;
5469   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5470 $as_echo "print -r" >&6; } ;;
5471   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5472 $as_echo "cat" >&6; } ;;
5473 esac
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5490 if ${ac_cv_path_SED+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5494      for ac_i in 1 2 3 4 5 6 7; do
5495        ac_script="$ac_script$as_nl$ac_script"
5496      done
5497      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5498      { ac_script=; unset ac_script;}
5499      if test -z "$SED"; then
5500   ac_path_SED_found=false
5501   # Loop through the user's path and test for each of PROGNAME-LIST
5502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_prog in sed gsed; do
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5510       as_fn_executable_p "$ac_path_SED" || continue
5511 # Check for GNU ac_path_SED and select it if it is found.
5512   # Check for GNU $ac_path_SED
5513 case `"$ac_path_SED" --version 2>&1` in
5514 *GNU*)
5515   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5516 *)
5517   ac_count=0
5518   $as_echo_n 0123456789 >"conftest.in"
5519   while :
5520   do
5521     cat "conftest.in" "conftest.in" >"conftest.tmp"
5522     mv "conftest.tmp" "conftest.in"
5523     cp "conftest.in" "conftest.nl"
5524     $as_echo '' >> "conftest.nl"
5525     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5526     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5527     as_fn_arith $ac_count + 1 && ac_count=$as_val
5528     if test $ac_count -gt ${ac_path_SED_max-0}; then
5529       # Best one so far, save it but keep looking for a better one
5530       ac_cv_path_SED="$ac_path_SED"
5531       ac_path_SED_max=$ac_count
5532     fi
5533     # 10*(2^10) chars as input seems more than enough
5534     test $ac_count -gt 10 && break
5535   done
5536   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5537 esac
5538
5539       $ac_path_SED_found && break 3
5540     done
5541   done
5542   done
5543 IFS=$as_save_IFS
5544   if test -z "$ac_cv_path_SED"; then
5545     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5546   fi
5547 else
5548   ac_cv_path_SED=$SED
5549 fi
5550
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5553 $as_echo "$ac_cv_path_SED" >&6; }
5554  SED="$ac_cv_path_SED"
5555   rm -f conftest.sed
5556
5557 test -z "$SED" && SED=sed
5558 Xsed="$SED -e 1s/^X//"
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5571 $as_echo_n "checking for fgrep... " >&6; }
5572 if ${ac_cv_path_FGREP+:} false; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5576    then ac_cv_path_FGREP="$GREP -F"
5577    else
5578      if test -z "$FGREP"; then
5579   ac_path_FGREP_found=false
5580   # Loop through the user's path and test for each of PROGNAME-LIST
5581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586     for ac_prog in fgrep; do
5587     for ac_exec_ext in '' $ac_executable_extensions; do
5588       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5589       as_fn_executable_p "$ac_path_FGREP" || continue
5590 # Check for GNU ac_path_FGREP and select it if it is found.
5591   # Check for GNU $ac_path_FGREP
5592 case `"$ac_path_FGREP" --version 2>&1` in
5593 *GNU*)
5594   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5595 *)
5596   ac_count=0
5597   $as_echo_n 0123456789 >"conftest.in"
5598   while :
5599   do
5600     cat "conftest.in" "conftest.in" >"conftest.tmp"
5601     mv "conftest.tmp" "conftest.in"
5602     cp "conftest.in" "conftest.nl"
5603     $as_echo 'FGREP' >> "conftest.nl"
5604     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5605     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5606     as_fn_arith $ac_count + 1 && ac_count=$as_val
5607     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5608       # Best one so far, save it but keep looking for a better one
5609       ac_cv_path_FGREP="$ac_path_FGREP"
5610       ac_path_FGREP_max=$ac_count
5611     fi
5612     # 10*(2^10) chars as input seems more than enough
5613     test $ac_count -gt 10 && break
5614   done
5615   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5616 esac
5617
5618       $ac_path_FGREP_found && break 3
5619     done
5620   done
5621   done
5622 IFS=$as_save_IFS
5623   if test -z "$ac_cv_path_FGREP"; then
5624     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5625   fi
5626 else
5627   ac_cv_path_FGREP=$FGREP
5628 fi
5629
5630    fi
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5633 $as_echo "$ac_cv_path_FGREP" >&6; }
5634  FGREP="$ac_cv_path_FGREP"
5635
5636
5637 test -z "$GREP" && GREP=grep
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657 # Check whether --with-gnu-ld was given.
5658 if test "${with_gnu_ld+set}" = set; then :
5659   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5660 else
5661   with_gnu_ld=no
5662 fi
5663
5664 ac_prog=ld
5665 if test yes = "$GCC"; then
5666   # Check if gcc -print-prog-name=ld gives a path.
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5668 $as_echo_n "checking for ld used by $CC... " >&6; }
5669   case $host in
5670   *-*-mingw*)
5671     # gcc leaves a trailing carriage return, which upsets mingw
5672     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5673   *)
5674     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5675   esac
5676   case $ac_prog in
5677     # Accept absolute paths.
5678     [\\/]* | ?:[\\/]*)
5679       re_direlt='/[^/][^/]*/\.\./'
5680       # Canonicalize the pathname of ld
5681       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5682       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5683         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5684       done
5685       test -z "$LD" && LD=$ac_prog
5686       ;;
5687   "")
5688     # If it fails, then pretend we aren't using GCC.
5689     ac_prog=ld
5690     ;;
5691   *)
5692     # If it is relative, then search for the first ld in PATH.
5693     with_gnu_ld=unknown
5694     ;;
5695   esac
5696 elif test yes = "$with_gnu_ld"; then
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5698 $as_echo_n "checking for GNU ld... " >&6; }
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5701 $as_echo_n "checking for non-GNU ld... " >&6; }
5702 fi
5703 if ${lt_cv_path_LD+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   if test -z "$LD"; then
5707   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5708   for ac_dir in $PATH; do
5709     IFS=$lt_save_ifs
5710     test -z "$ac_dir" && ac_dir=.
5711     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5712       lt_cv_path_LD=$ac_dir/$ac_prog
5713       # Check to see if the program is GNU ld.  I'd rather use --version,
5714       # but apparently some variants of GNU ld only accept -v.
5715       # Break only if it was the GNU/non-GNU ld that we prefer.
5716       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5717       *GNU* | *'with BFD'*)
5718         test no != "$with_gnu_ld" && break
5719         ;;
5720       *)
5721         test yes != "$with_gnu_ld" && break
5722         ;;
5723       esac
5724     fi
5725   done
5726   IFS=$lt_save_ifs
5727 else
5728   lt_cv_path_LD=$LD # Let the user override the test with a path.
5729 fi
5730 fi
5731
5732 LD=$lt_cv_path_LD
5733 if test -n "$LD"; then
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5735 $as_echo "$LD" >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5743 if ${lt_cv_prog_gnu_ld+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5747 case `$LD -v 2>&1 </dev/null` in
5748 *GNU* | *'with BFD'*)
5749   lt_cv_prog_gnu_ld=yes
5750   ;;
5751 *)
5752   lt_cv_prog_gnu_ld=no
5753   ;;
5754 esac
5755 fi
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5757 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5758 with_gnu_ld=$lt_cv_prog_gnu_ld
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5769 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5770 if ${lt_cv_path_NM+:} false; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   if test -n "$NM"; then
5774   # Let the user override the test.
5775   lt_cv_path_NM=$NM
5776 else
5777   lt_nm_to_check=${ac_tool_prefix}nm
5778   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5779     lt_nm_to_check="$lt_nm_to_check nm"
5780   fi
5781   for lt_tmp_nm in $lt_nm_to_check; do
5782     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5783     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5784       IFS=$lt_save_ifs
5785       test -z "$ac_dir" && ac_dir=.
5786       tmp_nm=$ac_dir/$lt_tmp_nm
5787       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5788         # Check to see if the nm accepts a BSD-compat flag.
5789         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5790         #   nm: unknown option "B" ignored
5791         # Tru64's nm complains that /dev/null is an invalid object file
5792         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5793         case $build_os in
5794         mingw*) lt_bad_file=conftest.nm/nofile ;;
5795         *) lt_bad_file=/dev/null ;;
5796         esac
5797         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5798         *$lt_bad_file* | *'Invalid file or object type'*)
5799           lt_cv_path_NM="$tmp_nm -B"
5800           break 2
5801           ;;
5802         *)
5803           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5804           */dev/null*)
5805             lt_cv_path_NM="$tmp_nm -p"
5806             break 2
5807             ;;
5808           *)
5809             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5810             continue # so that we can try to find one that supports BSD flags
5811             ;;
5812           esac
5813           ;;
5814         esac
5815       fi
5816     done
5817     IFS=$lt_save_ifs
5818   done
5819   : ${lt_cv_path_NM=no}
5820 fi
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5823 $as_echo "$lt_cv_path_NM" >&6; }
5824 if test no != "$lt_cv_path_NM"; then
5825   NM=$lt_cv_path_NM
5826 else
5827   # Didn't find any BSD compatible name lister, look for dumpbin.
5828   if test -n "$DUMPBIN"; then :
5829     # Let the user override the test.
5830   else
5831     if test -n "$ac_tool_prefix"; then
5832   for ac_prog in dumpbin "link -dump"
5833   do
5834     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_DUMPBIN+:} false; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   if test -n "$DUMPBIN"; then
5842   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849     for ac_exec_ext in '' $ac_executable_extensions; do
5850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856   done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 DUMPBIN=$ac_cv_prog_DUMPBIN
5862 if test -n "$DUMPBIN"; then
5863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5864 $as_echo "$DUMPBIN" >&6; }
5865 else
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5868 fi
5869
5870
5871     test -n "$DUMPBIN" && break
5872   done
5873 fi
5874 if test -z "$DUMPBIN"; then
5875   ac_ct_DUMPBIN=$DUMPBIN
5876   for ac_prog in dumpbin "link -dump"
5877 do
5878   # Extract the first word of "$ac_prog", so it can be a program name with args.
5879 set dummy $ac_prog; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885   if test -n "$ac_ct_DUMPBIN"; then
5886   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893     for ac_exec_ext in '' $ac_executable_extensions; do
5894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900   done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5906 if test -n "$ac_ct_DUMPBIN"; then
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5908 $as_echo "$ac_ct_DUMPBIN" >&6; }
5909 else
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914
5915   test -n "$ac_ct_DUMPBIN" && break
5916 done
5917
5918   if test "x$ac_ct_DUMPBIN" = x; then
5919     DUMPBIN=":"
5920   else
5921     case $cross_compiling:$ac_tool_warned in
5922 yes:)
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5925 ac_tool_warned=yes ;;
5926 esac
5927     DUMPBIN=$ac_ct_DUMPBIN
5928   fi
5929 fi
5930
5931     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5932     *COFF*)
5933       DUMPBIN="$DUMPBIN -symbols -headers"
5934       ;;
5935     *)
5936       DUMPBIN=:
5937       ;;
5938     esac
5939   fi
5940
5941   if test : != "$DUMPBIN"; then
5942     NM=$DUMPBIN
5943   fi
5944 fi
5945 test -z "$NM" && NM=nm
5946
5947
5948
5949
5950
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5953 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5954 if ${lt_cv_nm_interface+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   lt_cv_nm_interface="BSD nm"
5958   echo "int some_variable = 0;" > conftest.$ac_ext
5959   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5960   (eval "$ac_compile" 2>conftest.err)
5961   cat conftest.err >&5
5962   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5963   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5964   cat conftest.err >&5
5965   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5966   cat conftest.out >&5
5967   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5968     lt_cv_nm_interface="MS dumpbin"
5969   fi
5970   rm -f conftest*
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5973 $as_echo "$lt_cv_nm_interface" >&6; }
5974
5975 # find the maximum length of command line arguments
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5977 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5978 if ${lt_cv_sys_max_cmd_len+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981     i=0
5982   teststring=ABCD
5983
5984   case $build_os in
5985   msdosdjgpp*)
5986     # On DJGPP, this test can blow up pretty badly due to problems in libc
5987     # (any single argument exceeding 2000 bytes causes a buffer overrun
5988     # during glob expansion).  Even if it were fixed, the result of this
5989     # check would be larger than it should be.
5990     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5991     ;;
5992
5993   gnu*)
5994     # Under GNU Hurd, this test is not required because there is
5995     # no limit to the length of command line arguments.
5996     # Libtool will interpret -1 as no limit whatsoever
5997     lt_cv_sys_max_cmd_len=-1;
5998     ;;
5999
6000   cygwin* | mingw* | cegcc*)
6001     # On Win9x/ME, this test blows up -- it succeeds, but takes
6002     # about 5 minutes as the teststring grows exponentially.
6003     # Worse, since 9x/ME are not pre-emptively multitasking,
6004     # you end up with a "frozen" computer, even though with patience
6005     # the test eventually succeeds (with a max line length of 256k).
6006     # Instead, let's just punt: use the minimum linelength reported by
6007     # all of the supported platforms: 8192 (on NT/2K/XP).
6008     lt_cv_sys_max_cmd_len=8192;
6009     ;;
6010
6011   mint*)
6012     # On MiNT this can take a long time and run out of memory.
6013     lt_cv_sys_max_cmd_len=8192;
6014     ;;
6015
6016   amigaos*)
6017     # On AmigaOS with pdksh, this test takes hours, literally.
6018     # So we just punt and use a minimum line length of 8192.
6019     lt_cv_sys_max_cmd_len=8192;
6020     ;;
6021
6022   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6023     # This has been around since 386BSD, at least.  Likely further.
6024     if test -x /sbin/sysctl; then
6025       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6026     elif test -x /usr/sbin/sysctl; then
6027       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6028     else
6029       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6030     fi
6031     # And add a safety zone
6032     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6033     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6034     ;;
6035
6036   interix*)
6037     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6038     lt_cv_sys_max_cmd_len=196608
6039     ;;
6040
6041   os2*)
6042     # The test takes a long time on OS/2.
6043     lt_cv_sys_max_cmd_len=8192
6044     ;;
6045
6046   osf*)
6047     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049     # nice to cause kernel panics so lets avoid the loop below.
6050     # First set a reasonable default.
6051     lt_cv_sys_max_cmd_len=16384
6052     #
6053     if test -x /sbin/sysconfig; then
6054       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6056       esac
6057     fi
6058     ;;
6059   sco3.2v5*)
6060     lt_cv_sys_max_cmd_len=102400
6061     ;;
6062   sysv5* | sco5v6* | sysv4.2uw2*)
6063     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064     if test -n "$kargmax"; then
6065       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6066     else
6067       lt_cv_sys_max_cmd_len=32768
6068     fi
6069     ;;
6070   *)
6071     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6072     if test -n "$lt_cv_sys_max_cmd_len" && \
6073        test undefined != "$lt_cv_sys_max_cmd_len"; then
6074       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076     else
6077       # Make teststring a little bigger before we do anything with it.
6078       # a 1K string should be a reasonable start.
6079       for i in 1 2 3 4 5 6 7 8; do
6080         teststring=$teststring$teststring
6081       done
6082       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6083       # If test is not a shell built-in, we'll probably end up computing a
6084       # maximum length that is only half of the actual maximum length, but
6085       # we can't tell.
6086       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6087                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6088               test 17 != "$i" # 1/2 MB should be enough
6089       do
6090         i=`expr $i + 1`
6091         teststring=$teststring$teststring
6092       done
6093       # Only check the string length outside the loop.
6094       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6095       teststring=
6096       # Add a significant safety factor because C++ compilers can tack on
6097       # massive amounts of additional arguments before passing them to the
6098       # linker.  It appears as though 1/2 is a usable value.
6099       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6100     fi
6101     ;;
6102   esac
6103
6104 fi
6105
6106 if test -n "$lt_cv_sys_max_cmd_len"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6108 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6111 $as_echo "none" >&6; }
6112 fi
6113 max_cmd_len=$lt_cv_sys_max_cmd_len
6114
6115
6116
6117
6118
6119
6120 : ${CP="cp -f"}
6121 : ${MV="mv -f"}
6122 : ${RM="rm -f"}
6123
6124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6125   lt_unset=unset
6126 else
6127   lt_unset=false
6128 fi
6129
6130
6131
6132
6133
6134 # test EBCDIC or ASCII
6135 case `echo X|tr X '\101'` in
6136  A) # ASCII based system
6137     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6138   lt_SP2NL='tr \040 \012'
6139   lt_NL2SP='tr \015\012 \040\040'
6140   ;;
6141  *) # EBCDIC based system
6142   lt_SP2NL='tr \100 \n'
6143   lt_NL2SP='tr \r\n \100\100'
6144   ;;
6145 esac
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6156 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6157 if ${lt_cv_to_host_file_cmd+:} false; then :
6158   $as_echo_n "(cached) " >&6
6159 else
6160   case $host in
6161   *-*-mingw* )
6162     case $build in
6163       *-*-mingw* ) # actually msys
6164         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6165         ;;
6166       *-*-cygwin* )
6167         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6168         ;;
6169       * ) # otherwise, assume *nix
6170         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6171         ;;
6172     esac
6173     ;;
6174   *-*-cygwin* )
6175     case $build in
6176       *-*-mingw* ) # actually msys
6177         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6178         ;;
6179       *-*-cygwin* )
6180         lt_cv_to_host_file_cmd=func_convert_file_noop
6181         ;;
6182       * ) # otherwise, assume *nix
6183         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6184         ;;
6185     esac
6186     ;;
6187   * ) # unhandled hosts (and "normal" native builds)
6188     lt_cv_to_host_file_cmd=func_convert_file_noop
6189     ;;
6190 esac
6191
6192 fi
6193
6194 to_host_file_cmd=$lt_cv_to_host_file_cmd
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6196 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6197
6198
6199
6200
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6203 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6204 if ${lt_cv_to_tool_file_cmd+:} false; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   #assume ordinary cross tools, or native build.
6208 lt_cv_to_tool_file_cmd=func_convert_file_noop
6209 case $host in
6210   *-*-mingw* )
6211     case $build in
6212       *-*-mingw* ) # actually msys
6213         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6214         ;;
6215     esac
6216     ;;
6217 esac
6218
6219 fi
6220
6221 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6223 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6224
6225
6226
6227
6228
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6230 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6231 if ${lt_cv_ld_reload_flag+:} false; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   lt_cv_ld_reload_flag='-r'
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6237 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6238 reload_flag=$lt_cv_ld_reload_flag
6239 case $reload_flag in
6240 "" | " "*) ;;
6241 *) reload_flag=" $reload_flag" ;;
6242 esac
6243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 case $host_os in
6245   cygwin* | mingw* | pw32* | cegcc*)
6246     if test yes != "$GCC"; then
6247       reload_cmds=false
6248     fi
6249     ;;
6250   darwin*)
6251     if test yes = "$GCC"; then
6252       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6253     else
6254       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6255     fi
6256     ;;
6257 esac
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 if test -n "$ac_tool_prefix"; then
6268   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_OBJDUMP+:} false; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   if test -n "$OBJDUMP"; then
6276   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283     for ac_exec_ext in '' $ac_executable_extensions; do
6284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290   done
6291 IFS=$as_save_IFS
6292
6293 fi
6294 fi
6295 OBJDUMP=$ac_cv_prog_OBJDUMP
6296 if test -n "$OBJDUMP"; then
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6298 $as_echo "$OBJDUMP" >&6; }
6299 else
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6302 fi
6303
6304
6305 fi
6306 if test -z "$ac_cv_prog_OBJDUMP"; then
6307   ac_ct_OBJDUMP=$OBJDUMP
6308   # Extract the first word of "objdump", so it can be a program name with args.
6309 set dummy objdump; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -n "$ac_ct_OBJDUMP"; then
6316   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323     for ac_exec_ext in '' $ac_executable_extensions; do
6324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330   done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6336 if test -n "$ac_ct_OBJDUMP"; then
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6338 $as_echo "$ac_ct_OBJDUMP" >&6; }
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344   if test "x$ac_ct_OBJDUMP" = x; then
6345     OBJDUMP="false"
6346   else
6347     case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353     OBJDUMP=$ac_ct_OBJDUMP
6354   fi
6355 else
6356   OBJDUMP="$ac_cv_prog_OBJDUMP"
6357 fi
6358
6359 test -z "$OBJDUMP" && OBJDUMP=objdump
6360
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6367 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6368 if ${lt_cv_deplibs_check_method+:} false; then :
6369   $as_echo_n "(cached) " >&6
6370 else
6371   lt_cv_file_magic_cmd='$MAGIC_CMD'
6372 lt_cv_file_magic_test_file=
6373 lt_cv_deplibs_check_method='unknown'
6374 # Need to set the preceding variable on all platforms that support
6375 # interlibrary dependencies.
6376 # 'none' -- dependencies not supported.
6377 # 'unknown' -- same as none, but documents that we really don't know.
6378 # 'pass_all' -- all dependencies passed with no checks.
6379 # 'test_compile' -- check by making test program.
6380 # 'file_magic [[regex]]' -- check by looking for files in library path
6381 # that responds to the $file_magic_cmd with a given extended regex.
6382 # If you have 'file' or equivalent on your system and you're not sure
6383 # whether 'pass_all' will *always* work, you probably want this one.
6384
6385 case $host_os in
6386 aix[4-9]*)
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389
6390 beos*)
6391   lt_cv_deplibs_check_method=pass_all
6392   ;;
6393
6394 bsdi[45]*)
6395   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6396   lt_cv_file_magic_cmd='/usr/bin/file -L'
6397   lt_cv_file_magic_test_file=/shlib/libc.so
6398   ;;
6399
6400 cygwin*)
6401   # func_win32_libid is a shell function defined in ltmain.sh
6402   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6403   lt_cv_file_magic_cmd='func_win32_libid'
6404   ;;
6405
6406 mingw* | pw32*)
6407   # Base MSYS/MinGW do not provide the 'file' command needed by
6408   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6409   # unless we find 'file', for example because we are cross-compiling.
6410   if ( file / ) >/dev/null 2>&1; then
6411     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6412     lt_cv_file_magic_cmd='func_win32_libid'
6413   else
6414     # Keep this pattern in sync with the one in func_win32_libid.
6415     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6416     lt_cv_file_magic_cmd='$OBJDUMP -f'
6417   fi
6418   ;;
6419
6420 cegcc*)
6421   # use the weaker test based on 'objdump'. See mingw*.
6422   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6423   lt_cv_file_magic_cmd='$OBJDUMP -f'
6424   ;;
6425
6426 darwin* | rhapsody*)
6427   lt_cv_deplibs_check_method=pass_all
6428   ;;
6429
6430 freebsd* | dragonfly*)
6431   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6432     case $host_cpu in
6433     i*86 )
6434       # Not sure whether the presence of OpenBSD here was a mistake.
6435       # Let's accept both of them until this is cleared up.
6436       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6437       lt_cv_file_magic_cmd=/usr/bin/file
6438       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6439       ;;
6440     esac
6441   else
6442     lt_cv_deplibs_check_method=pass_all
6443   fi
6444   ;;
6445
6446 haiku*)
6447   lt_cv_deplibs_check_method=pass_all
6448   ;;
6449
6450 hpux10.20* | hpux11*)
6451   lt_cv_file_magic_cmd=/usr/bin/file
6452   case $host_cpu in
6453   ia64*)
6454     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6455     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6456     ;;
6457   hppa*64*)
6458     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]'
6459     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6460     ;;
6461   *)
6462     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6463     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6464     ;;
6465   esac
6466   ;;
6467
6468 interix[3-9]*)
6469   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6470   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6471   ;;
6472
6473 irix5* | irix6* | nonstopux*)
6474   case $LD in
6475   *-32|*"-32 ") libmagic=32-bit;;
6476   *-n32|*"-n32 ") libmagic=N32;;
6477   *-64|*"-64 ") libmagic=64-bit;;
6478   *) libmagic=never-match;;
6479   esac
6480   lt_cv_deplibs_check_method=pass_all
6481   ;;
6482
6483 # This must be glibc/ELF.
6484 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6485   lt_cv_deplibs_check_method=pass_all
6486   ;;
6487
6488 netbsd*)
6489   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6491   else
6492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6493   fi
6494   ;;
6495
6496 newos6*)
6497   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6498   lt_cv_file_magic_cmd=/usr/bin/file
6499   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6500   ;;
6501
6502 *nto* | *qnx*)
6503   lt_cv_deplibs_check_method=pass_all
6504   ;;
6505
6506 openbsd* | bitrig*)
6507   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6509   else
6510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6511   fi
6512   ;;
6513
6514 osf3* | osf4* | osf5*)
6515   lt_cv_deplibs_check_method=pass_all
6516   ;;
6517
6518 rdos*)
6519   lt_cv_deplibs_check_method=pass_all
6520   ;;
6521
6522 solaris*)
6523   lt_cv_deplibs_check_method=pass_all
6524   ;;
6525
6526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6527   lt_cv_deplibs_check_method=pass_all
6528   ;;
6529
6530 sysv4 | sysv4.3*)
6531   case $host_vendor in
6532   motorola)
6533     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]'
6534     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6535     ;;
6536   ncr)
6537     lt_cv_deplibs_check_method=pass_all
6538     ;;
6539   sequent)
6540     lt_cv_file_magic_cmd='/bin/file'
6541     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6542     ;;
6543   sni)
6544     lt_cv_file_magic_cmd='/bin/file'
6545     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6546     lt_cv_file_magic_test_file=/lib/libc.so
6547     ;;
6548   siemens)
6549     lt_cv_deplibs_check_method=pass_all
6550     ;;
6551   pc)
6552     lt_cv_deplibs_check_method=pass_all
6553     ;;
6554   esac
6555   ;;
6556
6557 tpf*)
6558   lt_cv_deplibs_check_method=pass_all
6559   ;;
6560 os2*)
6561   lt_cv_deplibs_check_method=pass_all
6562   ;;
6563 esac
6564
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6567 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6568
6569 file_magic_glob=
6570 want_nocaseglob=no
6571 if test "$build" = "$host"; then
6572   case $host_os in
6573   mingw* | pw32*)
6574     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6575       want_nocaseglob=yes
6576     else
6577       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6578     fi
6579     ;;
6580   esac
6581 fi
6582
6583 file_magic_cmd=$lt_cv_file_magic_cmd
6584 deplibs_check_method=$lt_cv_deplibs_check_method
6585 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 if test -n "$ac_tool_prefix"; then
6609   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_DLLTOOL+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$DLLTOOL"; then
6617   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 DLLTOOL=$ac_cv_prog_DLLTOOL
6637 if test -n "$DLLTOOL"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6639 $as_echo "$DLLTOOL" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646 fi
6647 if test -z "$ac_cv_prog_DLLTOOL"; then
6648   ac_ct_DLLTOOL=$DLLTOOL
6649   # Extract the first word of "dlltool", so it can be a program name with args.
6650 set dummy dlltool; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   if test -n "$ac_ct_DLLTOOL"; then
6657   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664     for ac_exec_ext in '' $ac_executable_extensions; do
6665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671   done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6677 if test -n "$ac_ct_DLLTOOL"; then
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6679 $as_echo "$ac_ct_DLLTOOL" >&6; }
6680 else
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685   if test "x$ac_ct_DLLTOOL" = x; then
6686     DLLTOOL="false"
6687   else
6688     case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694     DLLTOOL=$ac_ct_DLLTOOL
6695   fi
6696 else
6697   DLLTOOL="$ac_cv_prog_DLLTOOL"
6698 fi
6699
6700 test -z "$DLLTOOL" && DLLTOOL=dlltool
6701
6702
6703
6704
6705
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6709 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6710 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   lt_cv_sharedlib_from_linklib_cmd='unknown'
6714
6715 case $host_os in
6716 cygwin* | mingw* | pw32* | cegcc*)
6717   # two different shell functions defined in ltmain.sh;
6718   # decide which one to use based on capabilities of $DLLTOOL
6719   case `$DLLTOOL --help 2>&1` in
6720   *--identify-strict*)
6721     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6722     ;;
6723   *)
6724     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6725     ;;
6726   esac
6727   ;;
6728 *)
6729   # fallback: assume linklib IS sharedlib
6730   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6731   ;;
6732 esac
6733
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6736 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6737 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6738 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6739
6740
6741
6742
6743
6744
6745
6746 if test -n "$ac_tool_prefix"; then
6747   for ac_prog in ar
6748   do
6749     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_AR+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   if test -n "$AR"; then
6757   ac_cv_prog_AR="$AR" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764     for ac_exec_ext in '' $ac_executable_extensions; do
6765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771   done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 AR=$ac_cv_prog_AR
6777 if test -n "$AR"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6779 $as_echo "$AR" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785
6786     test -n "$AR" && break
6787   done
6788 fi
6789 if test -z "$AR"; then
6790   ac_ct_AR=$AR
6791   for ac_prog in ar
6792 do
6793   # Extract the first word of "$ac_prog", so it can be a program name with args.
6794 set dummy $ac_prog; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$ac_ct_AR"; then
6801   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_ac_ct_AR="$ac_prog"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6821 if test -n "$ac_ct_AR"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6823 $as_echo "$ac_ct_AR" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830   test -n "$ac_ct_AR" && break
6831 done
6832
6833   if test "x$ac_ct_AR" = x; then
6834     AR="false"
6835   else
6836     case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6841 esac
6842     AR=$ac_ct_AR
6843   fi
6844 fi
6845
6846 : ${AR=ar}
6847 : ${AR_FLAGS=cru}
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6860 $as_echo_n "checking for archiver @FILE support... " >&6; }
6861 if ${lt_cv_ar_at_file+:} false; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   lt_cv_ar_at_file=no
6865    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h.  */
6867
6868 int
6869 main ()
6870 {
6871
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_compile "$LINENO"; then :
6877   echo conftest.$ac_objext > conftest.lst
6878       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6879       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6880   (eval $lt_ar_try) 2>&5
6881   ac_status=$?
6882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883   test $ac_status = 0; }
6884       if test 0 -eq "$ac_status"; then
6885         # Ensure the archiver fails upon bogus file names.
6886         rm -f conftest.$ac_objext libconftest.a
6887         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6888   (eval $lt_ar_try) 2>&5
6889   ac_status=$?
6890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891   test $ac_status = 0; }
6892         if test 0 -ne "$ac_status"; then
6893           lt_cv_ar_at_file=@
6894         fi
6895       fi
6896       rm -f conftest.* libconftest.a
6897
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6903 $as_echo "$lt_cv_ar_at_file" >&6; }
6904
6905 if test no = "$lt_cv_ar_at_file"; then
6906   archiver_list_spec=
6907 else
6908   archiver_list_spec=$lt_cv_ar_at_file
6909 fi
6910
6911
6912
6913
6914
6915
6916
6917 if test -n "$ac_tool_prefix"; then
6918   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}strip; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_STRIP+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$STRIP"; then
6926   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 STRIP=$ac_cv_prog_STRIP
6946 if test -n "$STRIP"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6948 $as_echo "$STRIP" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954
6955 fi
6956 if test -z "$ac_cv_prog_STRIP"; then
6957   ac_ct_STRIP=$STRIP
6958   # Extract the first word of "strip", so it can be a program name with args.
6959 set dummy strip; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   if test -n "$ac_ct_STRIP"; then
6966   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973     for ac_exec_ext in '' $ac_executable_extensions; do
6974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975     ac_cv_prog_ac_ct_STRIP="strip"
6976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980   done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6986 if test -n "$ac_ct_STRIP"; then
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6988 $as_echo "$ac_ct_STRIP" >&6; }
6989 else
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994   if test "x$ac_ct_STRIP" = x; then
6995     STRIP=":"
6996   else
6997     case $cross_compiling:$ac_tool_warned in
6998 yes:)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7002 esac
7003     STRIP=$ac_ct_STRIP
7004   fi
7005 else
7006   STRIP="$ac_cv_prog_STRIP"
7007 fi
7008
7009 test -z "$STRIP" && STRIP=:
7010
7011
7012
7013
7014
7015
7016 if test -n "$ac_tool_prefix"; then
7017   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_RANLIB+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   if test -n "$RANLIB"; then
7025   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 RANLIB=$ac_cv_prog_RANLIB
7045 if test -n "$RANLIB"; then
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7047 $as_echo "$RANLIB" >&6; }
7048 else
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053
7054 fi
7055 if test -z "$ac_cv_prog_RANLIB"; then
7056   ac_ct_RANLIB=$RANLIB
7057   # Extract the first word of "ranlib", so it can be a program name with args.
7058 set dummy ranlib; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7062   $as_echo_n "(cached) " >&6
7063 else
7064   if test -n "$ac_ct_RANLIB"; then
7065   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072     for ac_exec_ext in '' $ac_executable_extensions; do
7073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074     ac_cv_prog_ac_ct_RANLIB="ranlib"
7075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079   done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7085 if test -n "$ac_ct_RANLIB"; then
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7087 $as_echo "$ac_ct_RANLIB" >&6; }
7088 else
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093   if test "x$ac_ct_RANLIB" = x; then
7094     RANLIB=":"
7095   else
7096     case $cross_compiling:$ac_tool_warned in
7097 yes:)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 ac_tool_warned=yes ;;
7101 esac
7102     RANLIB=$ac_ct_RANLIB
7103   fi
7104 else
7105   RANLIB="$ac_cv_prog_RANLIB"
7106 fi
7107
7108 test -z "$RANLIB" && RANLIB=:
7109
7110
7111
7112
7113
7114
7115 # Determine commands to create old-style static archives.
7116 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7117 old_postinstall_cmds='chmod 644 $oldlib'
7118 old_postuninstall_cmds=
7119
7120 if test -n "$RANLIB"; then
7121   case $host_os in
7122   bitrig* | openbsd*)
7123     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7124     ;;
7125   *)
7126     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7127     ;;
7128   esac
7129   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7130 fi
7131
7132 case $host_os in
7133   darwin*)
7134     lock_old_archive_extraction=yes ;;
7135   *)
7136     lock_old_archive_extraction=no ;;
7137 esac
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 # If no C compiler was specified, use CC.
7178 LTCC=${LTCC-"$CC"}
7179
7180 # If no C compiler flags were specified, use CFLAGS.
7181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7182
7183 # Allow CC to be a program name with arguments.
7184 compiler=$CC
7185
7186
7187 # Check for command to grab the raw symbol name followed by C symbol from nm.
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7189 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7190 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7191   $as_echo_n "(cached) " >&6
7192 else
7193
7194 # These are sane defaults that work on at least a few old systems.
7195 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7196
7197 # Character class describing NM global symbol codes.
7198 symcode='[BCDEGRST]'
7199
7200 # Regexp to match symbols that can be accessed directly from C.
7201 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7202
7203 # Define system-specific variables.
7204 case $host_os in
7205 aix*)
7206   symcode='[BCDT]'
7207   ;;
7208 cygwin* | mingw* | pw32* | cegcc*)
7209   symcode='[ABCDGISTW]'
7210   ;;
7211 hpux*)
7212   if test ia64 = "$host_cpu"; then
7213     symcode='[ABCDEGRST]'
7214   fi
7215   ;;
7216 irix* | nonstopux*)
7217   symcode='[BCDEGRST]'
7218   ;;
7219 osf*)
7220   symcode='[BCDEGQRST]'
7221   ;;
7222 solaris*)
7223   symcode='[BDRT]'
7224   ;;
7225 sco3.2v5*)
7226   symcode='[DT]'
7227   ;;
7228 sysv4.2uw2*)
7229   symcode='[DT]'
7230   ;;
7231 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7232   symcode='[ABDT]'
7233   ;;
7234 sysv4)
7235   symcode='[DFNSTU]'
7236   ;;
7237 esac
7238
7239 # If we're using GNU nm, then use its standard symbol codes.
7240 case `$NM -V 2>&1` in
7241 *GNU* | *'with BFD'*)
7242   symcode='[ABCDGIRSTW]' ;;
7243 esac
7244
7245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7246   # Gets list of data symbols to import.
7247   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7248   # Adjust the below global symbol transforms to fixup imported variables.
7249   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7250   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7251   lt_c_name_lib_hook="\
7252   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7253   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7254 else
7255   # Disable hooks by default.
7256   lt_cv_sys_global_symbol_to_import=
7257   lt_cdecl_hook=
7258   lt_c_name_hook=
7259   lt_c_name_lib_hook=
7260 fi
7261
7262 # Transform an extracted symbol line into a proper C declaration.
7263 # Some systems (esp. on ia64) link data and code symbols differently,
7264 # so use this general approach.
7265 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7266 $lt_cdecl_hook\
7267 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7268 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7269
7270 # Transform an extracted symbol line into symbol name and symbol address
7271 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7272 $lt_c_name_hook\
7273 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7274 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7275
7276 # Transform an extracted symbol line into symbol name with lib prefix and
7277 # symbol address.
7278 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7279 $lt_c_name_lib_hook\
7280 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7281 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7282 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7283
7284 # Handle CRLF in mingw tool chain
7285 opt_cr=
7286 case $build_os in
7287 mingw*)
7288   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7289   ;;
7290 esac
7291
7292 # Try without a prefix underscore, then with it.
7293 for ac_symprfx in "" "_"; do
7294
7295   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7296   symxfrm="\\1 $ac_symprfx\\2 \\2"
7297
7298   # Write the raw and C identifiers.
7299   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7300     # Fake it for dumpbin and say T for any non-static function,
7301     # D for any global variable and I for any imported variable.
7302     # Also find C++ and __fastcall symbols from MSVC++,
7303     # which start with @ or ?.
7304     lt_cv_sys_global_symbol_pipe="$AWK '"\
7305 "     {last_section=section; section=\$ 3};"\
7306 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7307 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7308 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7309 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7310 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7311 "     \$ 0!~/External *\|/{next};"\
7312 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7313 "     {if(hide[section]) next};"\
7314 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7315 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7316 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7317 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7318 "     ' prfx=^$ac_symprfx"
7319   else
7320     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7321   fi
7322   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7323
7324   # Check to see that the pipe works correctly.
7325   pipe_works=no
7326
7327   rm -f conftest*
7328   cat > conftest.$ac_ext <<_LT_EOF
7329 #ifdef __cplusplus
7330 extern "C" {
7331 #endif
7332 char nm_test_var;
7333 void nm_test_func(void);
7334 void nm_test_func(void){}
7335 #ifdef __cplusplus
7336 }
7337 #endif
7338 int main(){nm_test_var='a';nm_test_func();return(0);}
7339 _LT_EOF
7340
7341   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7342   (eval $ac_compile) 2>&5
7343   ac_status=$?
7344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345   test $ac_status = 0; }; then
7346     # Now try to grab the symbols.
7347     nlist=conftest.nm
7348     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7349   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7350   ac_status=$?
7351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352   test $ac_status = 0; } && test -s "$nlist"; then
7353       # Try sorting and uniquifying the output.
7354       if sort "$nlist" | uniq > "$nlist"T; then
7355         mv -f "$nlist"T "$nlist"
7356       else
7357         rm -f "$nlist"T
7358       fi
7359
7360       # Make sure that we snagged all the symbols we need.
7361       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7362         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7363           cat <<_LT_EOF > conftest.$ac_ext
7364 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7365 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7366 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7367    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7368 # define LT_DLSYM_CONST
7369 #elif defined __osf__
7370 /* This system does not cope well with relocations in const data.  */
7371 # define LT_DLSYM_CONST
7372 #else
7373 # define LT_DLSYM_CONST const
7374 #endif
7375
7376 #ifdef __cplusplus
7377 extern "C" {
7378 #endif
7379
7380 _LT_EOF
7381           # Now generate the symbol file.
7382           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7383
7384           cat <<_LT_EOF >> conftest.$ac_ext
7385
7386 /* The mapping between symbol names and symbols.  */
7387 LT_DLSYM_CONST struct {
7388   const char *name;
7389   void       *address;
7390 }
7391 lt__PROGRAM__LTX_preloaded_symbols[] =
7392 {
7393   { "@PROGRAM@", (void *) 0 },
7394 _LT_EOF
7395           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7396           cat <<\_LT_EOF >> conftest.$ac_ext
7397   {0, (void *) 0}
7398 };
7399
7400 /* This works around a problem in FreeBSD linker */
7401 #ifdef FREEBSD_WORKAROUND
7402 static const void *lt_preloaded_setup() {
7403   return lt__PROGRAM__LTX_preloaded_symbols;
7404 }
7405 #endif
7406
7407 #ifdef __cplusplus
7408 }
7409 #endif
7410 _LT_EOF
7411           # Now try linking the two files.
7412           mv conftest.$ac_objext conftstm.$ac_objext
7413           lt_globsym_save_LIBS=$LIBS
7414           lt_globsym_save_CFLAGS=$CFLAGS
7415           LIBS=conftstm.$ac_objext
7416           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7417           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7418   (eval $ac_link) 2>&5
7419   ac_status=$?
7420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7422             pipe_works=yes
7423           fi
7424           LIBS=$lt_globsym_save_LIBS
7425           CFLAGS=$lt_globsym_save_CFLAGS
7426         else
7427           echo "cannot find nm_test_func in $nlist" >&5
7428         fi
7429       else
7430         echo "cannot find nm_test_var in $nlist" >&5
7431       fi
7432     else
7433       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7434     fi
7435   else
7436     echo "$progname: failed program was:" >&5
7437     cat conftest.$ac_ext >&5
7438   fi
7439   rm -rf conftest* conftst*
7440
7441   # Do not use the global_symbol_pipe unless it works.
7442   if test yes = "$pipe_works"; then
7443     break
7444   else
7445     lt_cv_sys_global_symbol_pipe=
7446   fi
7447 done
7448
7449 fi
7450
7451 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7452   lt_cv_sys_global_symbol_to_cdecl=
7453 fi
7454 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7456 $as_echo "failed" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7459 $as_echo "ok" >&6; }
7460 fi
7461
7462 # Response file support.
7463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7464   nm_file_list_spec='@'
7465 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7466   nm_file_list_spec='@'
7467 fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7506 $as_echo_n "checking for sysroot... " >&6; }
7507
7508 # Check whether --with-sysroot was given.
7509 if test "${with_sysroot+set}" = set; then :
7510   withval=$with_sysroot;
7511 else
7512   with_sysroot=no
7513 fi
7514
7515
7516 lt_sysroot=
7517 case $with_sysroot in #(
7518  yes)
7519    if test yes = "$GCC"; then
7520      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7521    fi
7522    ;; #(
7523  /*)
7524    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7525    ;; #(
7526  no|'')
7527    ;; #(
7528  *)
7529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7530 $as_echo "$with_sysroot" >&6; }
7531    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7532    ;;
7533 esac
7534
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7536 $as_echo "${lt_sysroot:-no}" >&6; }
7537
7538
7539
7540
7541
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7543 $as_echo_n "checking for a working dd... " >&6; }
7544 if ${ac_cv_path_lt_DD+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   printf 0123456789abcdef0123456789abcdef >conftest.i
7548 cat conftest.i conftest.i >conftest2.i
7549 : ${lt_DD:=$DD}
7550 if test -z "$lt_DD"; then
7551   ac_path_lt_DD_found=false
7552   # Loop through the user's path and test for each of PROGNAME-LIST
7553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558     for ac_prog in dd; do
7559     for ac_exec_ext in '' $ac_executable_extensions; do
7560       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7561       as_fn_executable_p "$ac_path_lt_DD" || continue
7562 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7563   cmp -s conftest.i conftest.out \
7564   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7565 fi
7566       $ac_path_lt_DD_found && break 3
7567     done
7568   done
7569   done
7570 IFS=$as_save_IFS
7571   if test -z "$ac_cv_path_lt_DD"; then
7572     :
7573   fi
7574 else
7575   ac_cv_path_lt_DD=$lt_DD
7576 fi
7577
7578 rm -f conftest.i conftest2.i conftest.out
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7581 $as_echo "$ac_cv_path_lt_DD" >&6; }
7582
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7585 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7586 if ${lt_cv_truncate_bin+:} false; then :
7587   $as_echo_n "(cached) " >&6
7588 else
7589   printf 0123456789abcdef0123456789abcdef >conftest.i
7590 cat conftest.i conftest.i >conftest2.i
7591 lt_cv_truncate_bin=
7592 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7593   cmp -s conftest.i conftest.out \
7594   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7595 fi
7596 rm -f conftest.i conftest2.i conftest.out
7597 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7600 $as_echo "$lt_cv_truncate_bin" >&6; }
7601
7602
7603
7604
7605
7606
7607
7608 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7609 func_cc_basename ()
7610 {
7611     for cc_temp in $*""; do
7612       case $cc_temp in
7613         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7614         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7615         \-*) ;;
7616         *) break;;
7617       esac
7618     done
7619     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7620 }
7621
7622 # Check whether --enable-libtool-lock was given.
7623 if test "${enable_libtool_lock+set}" = set; then :
7624   enableval=$enable_libtool_lock;
7625 fi
7626
7627 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7628
7629 # Some flags need to be propagated to the compiler or linker for good
7630 # libtool support.
7631 case $host in
7632 ia64-*-hpux*)
7633   # Find out what ABI is being produced by ac_compile, and set mode
7634   # options accordingly.
7635   echo 'int i;' > conftest.$ac_ext
7636   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7637   (eval $ac_compile) 2>&5
7638   ac_status=$?
7639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640   test $ac_status = 0; }; then
7641     case `/usr/bin/file conftest.$ac_objext` in
7642       *ELF-32*)
7643         HPUX_IA64_MODE=32
7644         ;;
7645       *ELF-64*)
7646         HPUX_IA64_MODE=64
7647         ;;
7648     esac
7649   fi
7650   rm -rf conftest*
7651   ;;
7652 *-*-irix6*)
7653   # Find out what ABI is being produced by ac_compile, and set linker
7654   # options accordingly.
7655   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7656   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657   (eval $ac_compile) 2>&5
7658   ac_status=$?
7659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660   test $ac_status = 0; }; then
7661     if test yes = "$lt_cv_prog_gnu_ld"; then
7662       case `/usr/bin/file conftest.$ac_objext` in
7663         *32-bit*)
7664           LD="${LD-ld} -melf32bsmip"
7665           ;;
7666         *N32*)
7667           LD="${LD-ld} -melf32bmipn32"
7668           ;;
7669         *64-bit*)
7670           LD="${LD-ld} -melf64bmip"
7671         ;;
7672       esac
7673     else
7674       case `/usr/bin/file conftest.$ac_objext` in
7675         *32-bit*)
7676           LD="${LD-ld} -32"
7677           ;;
7678         *N32*)
7679           LD="${LD-ld} -n32"
7680           ;;
7681         *64-bit*)
7682           LD="${LD-ld} -64"
7683           ;;
7684       esac
7685     fi
7686   fi
7687   rm -rf conftest*
7688   ;;
7689
7690 mips64*-*linux*)
7691   # Find out what ABI is being produced by ac_compile, and set linker
7692   # options accordingly.
7693   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7694   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7695   (eval $ac_compile) 2>&5
7696   ac_status=$?
7697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698   test $ac_status = 0; }; then
7699     emul=elf
7700     case `/usr/bin/file conftest.$ac_objext` in
7701       *32-bit*)
7702         emul="${emul}32"
7703         ;;
7704       *64-bit*)
7705         emul="${emul}64"
7706         ;;
7707     esac
7708     case `/usr/bin/file conftest.$ac_objext` in
7709       *MSB*)
7710         emul="${emul}btsmip"
7711         ;;
7712       *LSB*)
7713         emul="${emul}ltsmip"
7714         ;;
7715     esac
7716     case `/usr/bin/file conftest.$ac_objext` in
7717       *N32*)
7718         emul="${emul}n32"
7719         ;;
7720     esac
7721     LD="${LD-ld} -m $emul"
7722   fi
7723   rm -rf conftest*
7724   ;;
7725
7726 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7727 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7728   # Find out what ABI is being produced by ac_compile, and set linker
7729   # options accordingly.  Note that the listed cases only cover the
7730   # situations where additional linker options are needed (such as when
7731   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7732   # vice versa); the common cases where no linker options are needed do
7733   # not appear in the list.
7734   echo 'int i;' > conftest.$ac_ext
7735   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736   (eval $ac_compile) 2>&5
7737   ac_status=$?
7738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739   test $ac_status = 0; }; then
7740     case `/usr/bin/file conftest.o` in
7741       *32-bit*)
7742         case $host in
7743           x86_64-*kfreebsd*-gnu)
7744             LD="${LD-ld} -m elf_i386_fbsd"
7745             ;;
7746           x86_64-*linux*)
7747             case `/usr/bin/file conftest.o` in
7748               *x86-64*)
7749                 LD="${LD-ld} -m elf32_x86_64"
7750                 ;;
7751               *)
7752                 LD="${LD-ld} -m elf_i386"
7753                 ;;
7754             esac
7755             ;;
7756           powerpc64le-*linux*)
7757             LD="${LD-ld} -m elf32lppclinux"
7758             ;;
7759           powerpc64-*linux*)
7760             LD="${LD-ld} -m elf32ppclinux"
7761             ;;
7762           s390x-*linux*)
7763             LD="${LD-ld} -m elf_s390"
7764             ;;
7765           sparc64-*linux*)
7766             LD="${LD-ld} -m elf32_sparc"
7767             ;;
7768         esac
7769         ;;
7770       *64-bit*)
7771         case $host in
7772           x86_64-*kfreebsd*-gnu)
7773             LD="${LD-ld} -m elf_x86_64_fbsd"
7774             ;;
7775           x86_64-*linux*)
7776             LD="${LD-ld} -m elf_x86_64"
7777             ;;
7778           powerpcle-*linux*)
7779             LD="${LD-ld} -m elf64lppc"
7780             ;;
7781           powerpc-*linux*)
7782             LD="${LD-ld} -m elf64ppc"
7783             ;;
7784           s390*-*linux*|s390*-*tpf*)
7785             LD="${LD-ld} -m elf64_s390"
7786             ;;
7787           sparc*-*linux*)
7788             LD="${LD-ld} -m elf64_sparc"
7789             ;;
7790         esac
7791         ;;
7792     esac
7793   fi
7794   rm -rf conftest*
7795   ;;
7796
7797 *-*-sco3.2v5*)
7798   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7799   SAVE_CFLAGS=$CFLAGS
7800   CFLAGS="$CFLAGS -belf"
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7802 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7803 if ${lt_cv_cc_needs_belf+:} false; then :
7804   $as_echo_n "(cached) " >&6
7805 else
7806   ac_ext=c
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h.  */
7814
7815 int
7816 main ()
7817 {
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 if ac_fn_c_try_link "$LINENO"; then :
7824   lt_cv_cc_needs_belf=yes
7825 else
7826   lt_cv_cc_needs_belf=no
7827 fi
7828 rm -f core conftest.err conftest.$ac_objext \
7829     conftest$ac_exeext conftest.$ac_ext
7830      ac_ext=c
7831 ac_cpp='$CPP $CPPFLAGS'
7832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7838 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7839   if test yes != "$lt_cv_cc_needs_belf"; then
7840     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7841     CFLAGS=$SAVE_CFLAGS
7842   fi
7843   ;;
7844 *-*solaris*)
7845   # Find out what ABI is being produced by ac_compile, and set linker
7846   # options accordingly.
7847   echo 'int i;' > conftest.$ac_ext
7848   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7849   (eval $ac_compile) 2>&5
7850   ac_status=$?
7851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852   test $ac_status = 0; }; then
7853     case `/usr/bin/file conftest.o` in
7854     *64-bit*)
7855       case $lt_cv_prog_gnu_ld in
7856       yes*)
7857         case $host in
7858         i?86-*-solaris*|x86_64-*-solaris*)
7859           LD="${LD-ld} -m elf_x86_64"
7860           ;;
7861         sparc*-*-solaris*)
7862           LD="${LD-ld} -m elf64_sparc"
7863           ;;
7864         esac
7865         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7866         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7867           LD=${LD-ld}_sol2
7868         fi
7869         ;;
7870       *)
7871         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7872           LD="${LD-ld} -64"
7873         fi
7874         ;;
7875       esac
7876       ;;
7877     esac
7878   fi
7879   rm -rf conftest*
7880   ;;
7881 esac
7882
7883 need_locks=$enable_libtool_lock
7884
7885 if test -n "$ac_tool_prefix"; then
7886   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7887 set dummy ${ac_tool_prefix}mt; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   if test -n "$MANIFEST_TOOL"; then
7894   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901     for ac_exec_ext in '' $ac_executable_extensions; do
7902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908   done
7909 IFS=$as_save_IFS
7910
7911 fi
7912 fi
7913 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7914 if test -n "$MANIFEST_TOOL"; then
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7916 $as_echo "$MANIFEST_TOOL" >&6; }
7917 else
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921
7922
7923 fi
7924 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7925   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7926   # Extract the first word of "mt", so it can be a program name with args.
7927 set dummy mt; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   if test -n "$ac_ct_MANIFEST_TOOL"; then
7934   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939   IFS=$as_save_IFS
7940   test -z "$as_dir" && as_dir=.
7941     for ac_exec_ext in '' $ac_executable_extensions; do
7942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945     break 2
7946   fi
7947 done
7948   done
7949 IFS=$as_save_IFS
7950
7951 fi
7952 fi
7953 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7954 if test -n "$ac_ct_MANIFEST_TOOL"; then
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7956 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7957 else
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7963     MANIFEST_TOOL=":"
7964   else
7965     case $cross_compiling:$ac_tool_warned in
7966 yes:)
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7969 ac_tool_warned=yes ;;
7970 esac
7971     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7972   fi
7973 else
7974   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7975 fi
7976
7977 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7979 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7980 if ${lt_cv_path_mainfest_tool+:} false; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   lt_cv_path_mainfest_tool=no
7984   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7985   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7986   cat conftest.err >&5
7987   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7988     lt_cv_path_mainfest_tool=yes
7989   fi
7990   rm -f conftest*
7991 fi
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7993 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7994 if test yes != "$lt_cv_path_mainfest_tool"; then
7995   MANIFEST_TOOL=:
7996 fi
7997
7998
7999
8000
8001
8002
8003   case $host_os in
8004     rhapsody* | darwin*)
8005     if test -n "$ac_tool_prefix"; then
8006   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8011   $as_echo_n "(cached) " >&6
8012 else
8013   if test -n "$DSYMUTIL"; then
8014   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021     for ac_exec_ext in '' $ac_executable_extensions; do
8022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028   done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8034 if test -n "$DSYMUTIL"; then
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8036 $as_echo "$DSYMUTIL" >&6; }
8037 else
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 fi
8041
8042
8043 fi
8044 if test -z "$ac_cv_prog_DSYMUTIL"; then
8045   ac_ct_DSYMUTIL=$DSYMUTIL
8046   # Extract the first word of "dsymutil", so it can be a program name with args.
8047 set dummy dsymutil; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8051   $as_echo_n "(cached) " >&6
8052 else
8053   if test -n "$ac_ct_DSYMUTIL"; then
8054   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059   IFS=$as_save_IFS
8060   test -z "$as_dir" && as_dir=.
8061     for ac_exec_ext in '' $ac_executable_extensions; do
8062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065     break 2
8066   fi
8067 done
8068   done
8069 IFS=$as_save_IFS
8070
8071 fi
8072 fi
8073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8074 if test -n "$ac_ct_DSYMUTIL"; then
8075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8076 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8077 else
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8080 fi
8081
8082   if test "x$ac_ct_DSYMUTIL" = x; then
8083     DSYMUTIL=":"
8084   else
8085     case $cross_compiling:$ac_tool_warned in
8086 yes:)
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089 ac_tool_warned=yes ;;
8090 esac
8091     DSYMUTIL=$ac_ct_DSYMUTIL
8092   fi
8093 else
8094   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8095 fi
8096
8097     if test -n "$ac_tool_prefix"; then
8098   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if ${ac_cv_prog_NMEDIT+:} false; then :
8103   $as_echo_n "(cached) " >&6
8104 else
8105   if test -n "$NMEDIT"; then
8106   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111   IFS=$as_save_IFS
8112   test -z "$as_dir" && as_dir=.
8113     for ac_exec_ext in '' $ac_executable_extensions; do
8114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117     break 2
8118   fi
8119 done
8120   done
8121 IFS=$as_save_IFS
8122
8123 fi
8124 fi
8125 NMEDIT=$ac_cv_prog_NMEDIT
8126 if test -n "$NMEDIT"; then
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8128 $as_echo "$NMEDIT" >&6; }
8129 else
8130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134
8135 fi
8136 if test -z "$ac_cv_prog_NMEDIT"; then
8137   ac_ct_NMEDIT=$NMEDIT
8138   # Extract the first word of "nmedit", so it can be a program name with args.
8139 set dummy nmedit; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8143   $as_echo_n "(cached) " >&6
8144 else
8145   if test -n "$ac_ct_NMEDIT"; then
8146   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151   IFS=$as_save_IFS
8152   test -z "$as_dir" && as_dir=.
8153     for ac_exec_ext in '' $ac_executable_extensions; do
8154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157     break 2
8158   fi
8159 done
8160   done
8161 IFS=$as_save_IFS
8162
8163 fi
8164 fi
8165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8166 if test -n "$ac_ct_NMEDIT"; then
8167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8168 $as_echo "$ac_ct_NMEDIT" >&6; }
8169 else
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174   if test "x$ac_ct_NMEDIT" = x; then
8175     NMEDIT=":"
8176   else
8177     case $cross_compiling:$ac_tool_warned in
8178 yes:)
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8181 ac_tool_warned=yes ;;
8182 esac
8183     NMEDIT=$ac_ct_NMEDIT
8184   fi
8185 else
8186   NMEDIT="$ac_cv_prog_NMEDIT"
8187 fi
8188
8189     if test -n "$ac_tool_prefix"; then
8190   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if ${ac_cv_prog_LIPO+:} false; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197   if test -n "$LIPO"; then
8198   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203   IFS=$as_save_IFS
8204   test -z "$as_dir" && as_dir=.
8205     for ac_exec_ext in '' $ac_executable_extensions; do
8206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209     break 2
8210   fi
8211 done
8212   done
8213 IFS=$as_save_IFS
8214
8215 fi
8216 fi
8217 LIPO=$ac_cv_prog_LIPO
8218 if test -n "$LIPO"; then
8219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8220 $as_echo "$LIPO" >&6; }
8221 else
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225
8226
8227 fi
8228 if test -z "$ac_cv_prog_LIPO"; then
8229   ac_ct_LIPO=$LIPO
8230   # Extract the first word of "lipo", so it can be a program name with args.
8231 set dummy lipo; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   if test -n "$ac_ct_LIPO"; then
8238   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243   IFS=$as_save_IFS
8244   test -z "$as_dir" && as_dir=.
8245     for ac_exec_ext in '' $ac_executable_extensions; do
8246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247     ac_cv_prog_ac_ct_LIPO="lipo"
8248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249     break 2
8250   fi
8251 done
8252   done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8258 if test -n "$ac_ct_LIPO"; then
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8260 $as_echo "$ac_ct_LIPO" >&6; }
8261 else
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266   if test "x$ac_ct_LIPO" = x; then
8267     LIPO=":"
8268   else
8269     case $cross_compiling:$ac_tool_warned in
8270 yes:)
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8273 ac_tool_warned=yes ;;
8274 esac
8275     LIPO=$ac_ct_LIPO
8276   fi
8277 else
8278   LIPO="$ac_cv_prog_LIPO"
8279 fi
8280
8281     if test -n "$ac_tool_prefix"; then
8282   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8283 set dummy ${ac_tool_prefix}otool; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_OTOOL+:} false; then :
8287   $as_echo_n "(cached) " >&6
8288 else
8289   if test -n "$OTOOL"; then
8290   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295   IFS=$as_save_IFS
8296   test -z "$as_dir" && as_dir=.
8297     for ac_exec_ext in '' $ac_executable_extensions; do
8298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301     break 2
8302   fi
8303 done
8304   done
8305 IFS=$as_save_IFS
8306
8307 fi
8308 fi
8309 OTOOL=$ac_cv_prog_OTOOL
8310 if test -n "$OTOOL"; then
8311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8312 $as_echo "$OTOOL" >&6; }
8313 else
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8316 fi
8317
8318
8319 fi
8320 if test -z "$ac_cv_prog_OTOOL"; then
8321   ac_ct_OTOOL=$OTOOL
8322   # Extract the first word of "otool", so it can be a program name with args.
8323 set dummy otool; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   if test -n "$ac_ct_OTOOL"; then
8330   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337     for ac_exec_ext in '' $ac_executable_extensions; do
8338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339     ac_cv_prog_ac_ct_OTOOL="otool"
8340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344   done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8350 if test -n "$ac_ct_OTOOL"; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8352 $as_echo "$ac_ct_OTOOL" >&6; }
8353 else
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358   if test "x$ac_ct_OTOOL" = x; then
8359     OTOOL=":"
8360   else
8361     case $cross_compiling:$ac_tool_warned in
8362 yes:)
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8365 ac_tool_warned=yes ;;
8366 esac
8367     OTOOL=$ac_ct_OTOOL
8368   fi
8369 else
8370   OTOOL="$ac_cv_prog_OTOOL"
8371 fi
8372
8373     if test -n "$ac_tool_prefix"; then
8374   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8375 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_OTOOL64+:} false; then :
8379   $as_echo_n "(cached) " >&6
8380 else
8381   if test -n "$OTOOL64"; then
8382   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8386 do
8387   IFS=$as_save_IFS
8388   test -z "$as_dir" && as_dir=.
8389     for ac_exec_ext in '' $ac_executable_extensions; do
8390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393     break 2
8394   fi
8395 done
8396   done
8397 IFS=$as_save_IFS
8398
8399 fi
8400 fi
8401 OTOOL64=$ac_cv_prog_OTOOL64
8402 if test -n "$OTOOL64"; then
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8404 $as_echo "$OTOOL64" >&6; }
8405 else
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8408 fi
8409
8410
8411 fi
8412 if test -z "$ac_cv_prog_OTOOL64"; then
8413   ac_ct_OTOOL64=$OTOOL64
8414   # Extract the first word of "otool64", so it can be a program name with args.
8415 set dummy otool64; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   if test -n "$ac_ct_OTOOL64"; then
8422   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8426 do
8427   IFS=$as_save_IFS
8428   test -z "$as_dir" && as_dir=.
8429     for ac_exec_ext in '' $ac_executable_extensions; do
8430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431     ac_cv_prog_ac_ct_OTOOL64="otool64"
8432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433     break 2
8434   fi
8435 done
8436   done
8437 IFS=$as_save_IFS
8438
8439 fi
8440 fi
8441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8442 if test -n "$ac_ct_OTOOL64"; then
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8444 $as_echo "$ac_ct_OTOOL64" >&6; }
8445 else
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 fi
8449
8450   if test "x$ac_ct_OTOOL64" = x; then
8451     OTOOL64=":"
8452   else
8453     case $cross_compiling:$ac_tool_warned in
8454 yes:)
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8457 ac_tool_warned=yes ;;
8458 esac
8459     OTOOL64=$ac_ct_OTOOL64
8460   fi
8461 else
8462   OTOOL64="$ac_cv_prog_OTOOL64"
8463 fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8492 $as_echo_n "checking for -single_module linker flag... " >&6; }
8493 if ${lt_cv_apple_cc_single_mod+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   lt_cv_apple_cc_single_mod=no
8497       if test -z "$LT_MULTI_MODULE"; then
8498         # By default we will add the -single_module flag. You can override
8499         # by either setting the environment variable LT_MULTI_MODULE
8500         # non-empty at configure time, or by adding -multi_module to the
8501         # link flags.
8502         rm -rf libconftest.dylib*
8503         echo "int foo(void){return 1;}" > conftest.c
8504         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8505 -dynamiclib -Wl,-single_module conftest.c" >&5
8506         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8507           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8508         _lt_result=$?
8509         # If there is a non-empty error log, and "single_module"
8510         # appears in it, assume the flag caused a linker warning
8511         if test -s conftest.err && $GREP single_module conftest.err; then
8512           cat conftest.err >&5
8513         # Otherwise, if the output was created with a 0 exit code from
8514         # the compiler, it worked.
8515         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8516           lt_cv_apple_cc_single_mod=yes
8517         else
8518           cat conftest.err >&5
8519         fi
8520         rm -rf libconftest.dylib*
8521         rm -f conftest.*
8522       fi
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8525 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8526
8527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8528 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8529 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8530   $as_echo_n "(cached) " >&6
8531 else
8532   lt_cv_ld_exported_symbols_list=no
8533       save_LDFLAGS=$LDFLAGS
8534       echo "_main" > conftest.sym
8535       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h.  */
8538
8539 int
8540 main ()
8541 {
8542
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 if ac_fn_c_try_link "$LINENO"; then :
8548   lt_cv_ld_exported_symbols_list=yes
8549 else
8550   lt_cv_ld_exported_symbols_list=no
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext \
8553     conftest$ac_exeext conftest.$ac_ext
8554         LDFLAGS=$save_LDFLAGS
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8558 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8559
8560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8561 $as_echo_n "checking for -force_load linker flag... " >&6; }
8562 if ${lt_cv_ld_force_load+:} false; then :
8563   $as_echo_n "(cached) " >&6
8564 else
8565   lt_cv_ld_force_load=no
8566       cat > conftest.c << _LT_EOF
8567 int forced_loaded() { return 2;}
8568 _LT_EOF
8569       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8570       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8571       echo "$AR cru libconftest.a conftest.o" >&5
8572       $AR cru libconftest.a conftest.o 2>&5
8573       echo "$RANLIB libconftest.a" >&5
8574       $RANLIB libconftest.a 2>&5
8575       cat > conftest.c << _LT_EOF
8576 int main() { return 0;}
8577 _LT_EOF
8578       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8579       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8580       _lt_result=$?
8581       if test -s conftest.err && $GREP force_load conftest.err; then
8582         cat conftest.err >&5
8583       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8584         lt_cv_ld_force_load=yes
8585       else
8586         cat conftest.err >&5
8587       fi
8588         rm -f conftest.err libconftest.a conftest conftest.c
8589         rm -rf conftest.dSYM
8590
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8593 $as_echo "$lt_cv_ld_force_load" >&6; }
8594     case $host_os in
8595     rhapsody* | darwin1.[012])
8596       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8597     darwin1.*)
8598       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8599     darwin*) # darwin 5.x on
8600       # if running on 10.5 or later, the deployment target defaults
8601       # to the OS version, if on x86, and 10.4, the deployment
8602       # target defaults to 10.4. Don't you love it?
8603       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8604         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8605           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8606         10.[012][,.]*)
8607           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8608         10.*)
8609           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8610       esac
8611     ;;
8612   esac
8613     if test yes = "$lt_cv_apple_cc_single_mod"; then
8614       _lt_dar_single_mod='$single_module'
8615     fi
8616     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8617       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8618     else
8619       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8620     fi
8621     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8622       _lt_dsymutil='~$DSYMUTIL $lib || :'
8623     else
8624       _lt_dsymutil=
8625     fi
8626     ;;
8627   esac
8628
8629 # func_munge_path_list VARIABLE PATH
8630 # -----------------------------------
8631 # VARIABLE is name of variable containing _space_ separated list of
8632 # directories to be munged by the contents of PATH, which is string
8633 # having a format:
8634 # "DIR[:DIR]:"
8635 #       string "DIR[ DIR]" will be prepended to VARIABLE
8636 # ":DIR[:DIR]"
8637 #       string "DIR[ DIR]" will be appended to VARIABLE
8638 # "DIRP[:DIRP]::[DIRA:]DIRA"
8639 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8640 #       "DIRA[ DIRA]" will be appended to VARIABLE
8641 # "DIR[:DIR]"
8642 #       VARIABLE will be replaced by "DIR[ DIR]"
8643 func_munge_path_list ()
8644 {
8645     case x$2 in
8646     x)
8647         ;;
8648     *:)
8649         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8650         ;;
8651     x:*)
8652         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8653         ;;
8654     *::*)
8655         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8656         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8657         ;;
8658     *)
8659         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8660         ;;
8661     esac
8662 }
8663
8664 for ac_header in dlfcn.h
8665 do :
8666   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8667 "
8668 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8669   cat >>confdefs.h <<_ACEOF
8670 #define HAVE_DLFCN_H 1
8671 _ACEOF
8672
8673 fi
8674
8675 done
8676
8677
8678
8679
8680
8681 # Set options
8682 # Check whether --enable-static was given.
8683 if test "${enable_static+set}" = set; then :
8684   enableval=$enable_static; p=${PACKAGE-default}
8685     case $enableval in
8686     yes) enable_static=yes ;;
8687     no) enable_static=no ;;
8688     *)
8689      enable_static=no
8690       # Look at the argument we got.  We use all the common list separators.
8691       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8692       for pkg in $enableval; do
8693         IFS=$lt_save_ifs
8694         if test "X$pkg" = "X$p"; then
8695           enable_static=yes
8696         fi
8697       done
8698       IFS=$lt_save_ifs
8699       ;;
8700     esac
8701 else
8702   enable_static=no
8703 fi
8704
8705
8706
8707
8708
8709
8710
8711 enable_win32_dll=yes
8712
8713 case $host in
8714 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8715   if test -n "$ac_tool_prefix"; then
8716   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8717 set dummy ${ac_tool_prefix}as; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_AS+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   if test -n "$AS"; then
8724   ac_cv_prog_AS="$AS" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729   IFS=$as_save_IFS
8730   test -z "$as_dir" && as_dir=.
8731     for ac_exec_ext in '' $ac_executable_extensions; do
8732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733     ac_cv_prog_AS="${ac_tool_prefix}as"
8734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735     break 2
8736   fi
8737 done
8738   done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 AS=$ac_cv_prog_AS
8744 if test -n "$AS"; then
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8746 $as_echo "$AS" >&6; }
8747 else
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752
8753 fi
8754 if test -z "$ac_cv_prog_AS"; then
8755   ac_ct_AS=$AS
8756   # Extract the first word of "as", so it can be a program name with args.
8757 set dummy as; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   if test -n "$ac_ct_AS"; then
8764   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8765 else
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8768 do
8769   IFS=$as_save_IFS
8770   test -z "$as_dir" && as_dir=.
8771     for ac_exec_ext in '' $ac_executable_extensions; do
8772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773     ac_cv_prog_ac_ct_AS="as"
8774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775     break 2
8776   fi
8777 done
8778   done
8779 IFS=$as_save_IFS
8780
8781 fi
8782 fi
8783 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8784 if test -n "$ac_ct_AS"; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8786 $as_echo "$ac_ct_AS" >&6; }
8787 else
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792   if test "x$ac_ct_AS" = x; then
8793     AS="false"
8794   else
8795     case $cross_compiling:$ac_tool_warned in
8796 yes:)
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8799 ac_tool_warned=yes ;;
8800 esac
8801     AS=$ac_ct_AS
8802   fi
8803 else
8804   AS="$ac_cv_prog_AS"
8805 fi
8806
8807   if test -n "$ac_tool_prefix"; then
8808   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8809 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_DLLTOOL+:} false; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   if test -n "$DLLTOOL"; then
8816   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821   IFS=$as_save_IFS
8822   test -z "$as_dir" && as_dir=.
8823     for ac_exec_ext in '' $ac_executable_extensions; do
8824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830   done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 DLLTOOL=$ac_cv_prog_DLLTOOL
8836 if test -n "$DLLTOOL"; then
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8838 $as_echo "$DLLTOOL" >&6; }
8839 else
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842 fi
8843
8844
8845 fi
8846 if test -z "$ac_cv_prog_DLLTOOL"; then
8847   ac_ct_DLLTOOL=$DLLTOOL
8848   # Extract the first word of "dlltool", so it can be a program name with args.
8849 set dummy dlltool; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   if test -n "$ac_ct_DLLTOOL"; then
8856   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8860 do
8861   IFS=$as_save_IFS
8862   test -z "$as_dir" && as_dir=.
8863     for ac_exec_ext in '' $ac_executable_extensions; do
8864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867     break 2
8868   fi
8869 done
8870   done
8871 IFS=$as_save_IFS
8872
8873 fi
8874 fi
8875 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8876 if test -n "$ac_ct_DLLTOOL"; then
8877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8878 $as_echo "$ac_ct_DLLTOOL" >&6; }
8879 else
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8882 fi
8883
8884   if test "x$ac_ct_DLLTOOL" = x; then
8885     DLLTOOL="false"
8886   else
8887     case $cross_compiling:$ac_tool_warned in
8888 yes:)
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8891 ac_tool_warned=yes ;;
8892 esac
8893     DLLTOOL=$ac_ct_DLLTOOL
8894   fi
8895 else
8896   DLLTOOL="$ac_cv_prog_DLLTOOL"
8897 fi
8898
8899   if test -n "$ac_tool_prefix"; then
8900   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8901 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_OBJDUMP+:} false; then :
8905   $as_echo_n "(cached) " >&6
8906 else
8907   if test -n "$OBJDUMP"; then
8908   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913   IFS=$as_save_IFS
8914   test -z "$as_dir" && as_dir=.
8915     for ac_exec_ext in '' $ac_executable_extensions; do
8916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919     break 2
8920   fi
8921 done
8922   done
8923 IFS=$as_save_IFS
8924
8925 fi
8926 fi
8927 OBJDUMP=$ac_cv_prog_OBJDUMP
8928 if test -n "$OBJDUMP"; then
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8930 $as_echo "$OBJDUMP" >&6; }
8931 else
8932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 fi
8935
8936
8937 fi
8938 if test -z "$ac_cv_prog_OBJDUMP"; then
8939   ac_ct_OBJDUMP=$OBJDUMP
8940   # Extract the first word of "objdump", so it can be a program name with args.
8941 set dummy objdump; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   if test -n "$ac_ct_OBJDUMP"; then
8948   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8949 else
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8952 do
8953   IFS=$as_save_IFS
8954   test -z "$as_dir" && as_dir=.
8955     for ac_exec_ext in '' $ac_executable_extensions; do
8956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959     break 2
8960   fi
8961 done
8962   done
8963 IFS=$as_save_IFS
8964
8965 fi
8966 fi
8967 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8968 if test -n "$ac_ct_OBJDUMP"; then
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8970 $as_echo "$ac_ct_OBJDUMP" >&6; }
8971 else
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975
8976   if test "x$ac_ct_OBJDUMP" = x; then
8977     OBJDUMP="false"
8978   else
8979     case $cross_compiling:$ac_tool_warned in
8980 yes:)
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8983 ac_tool_warned=yes ;;
8984 esac
8985     OBJDUMP=$ac_ct_OBJDUMP
8986   fi
8987 else
8988   OBJDUMP="$ac_cv_prog_OBJDUMP"
8989 fi
8990
8991   ;;
8992 esac
8993
8994 test -z "$AS" && AS=as
8995
8996
8997
8998
8999
9000 test -z "$DLLTOOL" && DLLTOOL=dlltool
9001
9002
9003
9004
9005
9006 test -z "$OBJDUMP" && OBJDUMP=objdump
9007
9008
9009
9010
9011
9012
9013
9014         enable_dlopen=no
9015
9016
9017
9018             # Check whether --enable-shared was given.
9019 if test "${enable_shared+set}" = set; then :
9020   enableval=$enable_shared; p=${PACKAGE-default}
9021     case $enableval in
9022     yes) enable_shared=yes ;;
9023     no) enable_shared=no ;;
9024     *)
9025       enable_shared=no
9026       # Look at the argument we got.  We use all the common list separators.
9027       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9028       for pkg in $enableval; do
9029         IFS=$lt_save_ifs
9030         if test "X$pkg" = "X$p"; then
9031           enable_shared=yes
9032         fi
9033       done
9034       IFS=$lt_save_ifs
9035       ;;
9036     esac
9037 else
9038   enable_shared=yes
9039 fi
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051 # Check whether --with-pic was given.
9052 if test "${with_pic+set}" = set; then :
9053   withval=$with_pic; lt_p=${PACKAGE-default}
9054     case $withval in
9055     yes|no) pic_mode=$withval ;;
9056     *)
9057       pic_mode=default
9058       # Look at the argument we got.  We use all the common list separators.
9059       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9060       for lt_pkg in $withval; do
9061         IFS=$lt_save_ifs
9062         if test "X$lt_pkg" = "X$lt_p"; then
9063           pic_mode=yes
9064         fi
9065       done
9066       IFS=$lt_save_ifs
9067       ;;
9068     esac
9069 else
9070   pic_mode=default
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080   # Check whether --enable-fast-install was given.
9081 if test "${enable_fast_install+set}" = set; then :
9082   enableval=$enable_fast_install; p=${PACKAGE-default}
9083     case $enableval in
9084     yes) enable_fast_install=yes ;;
9085     no) enable_fast_install=no ;;
9086     *)
9087       enable_fast_install=no
9088       # Look at the argument we got.  We use all the common list separators.
9089       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9090       for pkg in $enableval; do
9091         IFS=$lt_save_ifs
9092         if test "X$pkg" = "X$p"; then
9093           enable_fast_install=yes
9094         fi
9095       done
9096       IFS=$lt_save_ifs
9097       ;;
9098     esac
9099 else
9100   enable_fast_install=yes
9101 fi
9102
9103
9104
9105
9106
9107
9108
9109
9110   shared_archive_member_spec=
9111 case $host,$enable_shared in
9112 power*-*-aix[5-9]*,yes)
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9114 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9115
9116 # Check whether --with-aix-soname was given.
9117 if test "${with_aix_soname+set}" = set; then :
9118   withval=$with_aix_soname; case $withval in
9119     aix|svr4|both)
9120       ;;
9121     *)
9122       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9123       ;;
9124     esac
9125     lt_cv_with_aix_soname=$with_aix_soname
9126 else
9127   if ${lt_cv_with_aix_soname+:} false; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130   lt_cv_with_aix_soname=aix
9131 fi
9132
9133     with_aix_soname=$lt_cv_with_aix_soname
9134 fi
9135
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9137 $as_echo "$with_aix_soname" >&6; }
9138   if test aix != "$with_aix_soname"; then
9139     # For the AIX way of multilib, we name the shared archive member
9140     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9141     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9142     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9143     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9144     if test 64 = "${OBJECT_MODE-32}"; then
9145       shared_archive_member_spec=shr_64
9146     else
9147       shared_archive_member_spec=shr
9148     fi
9149   fi
9150   ;;
9151 *)
9152   with_aix_soname=aix
9153   ;;
9154 esac
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165 # This can be used to rebuild libtool when needed
9166 LIBTOOL_DEPS=$ltmain
9167
9168 # Always use our own libtool.
9169 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200 test -z "$LN_S" && LN_S="ln -s"
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 if test -n "${ZSH_VERSION+set}"; then
9216    setopt NO_GLOB_SUBST
9217 fi
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9220 $as_echo_n "checking for objdir... " >&6; }
9221 if ${lt_cv_objdir+:} false; then :
9222   $as_echo_n "(cached) " >&6
9223 else
9224   rm -f .libs 2>/dev/null
9225 mkdir .libs 2>/dev/null
9226 if test -d .libs; then
9227   lt_cv_objdir=.libs
9228 else
9229   # MS-DOS does not allow filenames that begin with a dot.
9230   lt_cv_objdir=_libs
9231 fi
9232 rmdir .libs 2>/dev/null
9233 fi
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9235 $as_echo "$lt_cv_objdir" >&6; }
9236 objdir=$lt_cv_objdir
9237
9238
9239
9240
9241
9242 cat >>confdefs.h <<_ACEOF
9243 #define LT_OBJDIR "$lt_cv_objdir/"
9244 _ACEOF
9245
9246
9247
9248
9249 case $host_os in
9250 aix3*)
9251   # AIX sometimes has problems with the GCC collect2 program.  For some
9252   # reason, if we set the COLLECT_NAMES environment variable, the problems
9253   # vanish in a puff of smoke.
9254   if test set != "${COLLECT_NAMES+set}"; then
9255     COLLECT_NAMES=
9256     export COLLECT_NAMES
9257   fi
9258   ;;
9259 esac
9260
9261 # Global variables:
9262 ofile=libtool
9263 can_build_shared=yes
9264
9265 # All known linkers require a '.a' archive for static linking (except MSVC,
9266 # which needs '.lib').
9267 libext=a
9268
9269 with_gnu_ld=$lt_cv_prog_gnu_ld
9270
9271 old_CC=$CC
9272 old_CFLAGS=$CFLAGS
9273
9274 # Set sane defaults for various variables
9275 test -z "$CC" && CC=cc
9276 test -z "$LTCC" && LTCC=$CC
9277 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9278 test -z "$LD" && LD=ld
9279 test -z "$ac_objext" && ac_objext=o
9280
9281 func_cc_basename $compiler
9282 cc_basename=$func_cc_basename_result
9283
9284
9285 # Only perform the check for file, if the check method requires it
9286 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9287 case $deplibs_check_method in
9288 file_magic*)
9289   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9291 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9292 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   case $MAGIC_CMD in
9296 [\\/*] |  ?:[\\/]*)
9297   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9298   ;;
9299 *)
9300   lt_save_MAGIC_CMD=$MAGIC_CMD
9301   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9302   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9303   for ac_dir in $ac_dummy; do
9304     IFS=$lt_save_ifs
9305     test -z "$ac_dir" && ac_dir=.
9306     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9307       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9308       if test -n "$file_magic_test_file"; then
9309         case $deplibs_check_method in
9310         "file_magic "*)
9311           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9312           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9313           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9314             $EGREP "$file_magic_regex" > /dev/null; then
9315             :
9316           else
9317             cat <<_LT_EOF 1>&2
9318
9319 *** Warning: the command libtool uses to detect shared libraries,
9320 *** $file_magic_cmd, produces output that libtool cannot recognize.
9321 *** The result is that libtool may fail to recognize shared libraries
9322 *** as such.  This will affect the creation of libtool libraries that
9323 *** depend on shared libraries, but programs linked with such libtool
9324 *** libraries will work regardless of this problem.  Nevertheless, you
9325 *** may want to report the problem to your system manager and/or to
9326 *** bug-libtool@gnu.org
9327
9328 _LT_EOF
9329           fi ;;
9330         esac
9331       fi
9332       break
9333     fi
9334   done
9335   IFS=$lt_save_ifs
9336   MAGIC_CMD=$lt_save_MAGIC_CMD
9337   ;;
9338 esac
9339 fi
9340
9341 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9342 if test -n "$MAGIC_CMD"; then
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9344 $as_echo "$MAGIC_CMD" >&6; }
9345 else
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9348 fi
9349
9350
9351
9352
9353
9354 if test -z "$lt_cv_path_MAGIC_CMD"; then
9355   if test -n "$ac_tool_prefix"; then
9356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9357 $as_echo_n "checking for file... " >&6; }
9358 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9359   $as_echo_n "(cached) " >&6
9360 else
9361   case $MAGIC_CMD in
9362 [\\/*] |  ?:[\\/]*)
9363   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9364   ;;
9365 *)
9366   lt_save_MAGIC_CMD=$MAGIC_CMD
9367   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9368   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9369   for ac_dir in $ac_dummy; do
9370     IFS=$lt_save_ifs
9371     test -z "$ac_dir" && ac_dir=.
9372     if test -f "$ac_dir/file"; then
9373       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9374       if test -n "$file_magic_test_file"; then
9375         case $deplibs_check_method in
9376         "file_magic "*)
9377           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9378           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9379           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9380             $EGREP "$file_magic_regex" > /dev/null; then
9381             :
9382           else
9383             cat <<_LT_EOF 1>&2
9384
9385 *** Warning: the command libtool uses to detect shared libraries,
9386 *** $file_magic_cmd, produces output that libtool cannot recognize.
9387 *** The result is that libtool may fail to recognize shared libraries
9388 *** as such.  This will affect the creation of libtool libraries that
9389 *** depend on shared libraries, but programs linked with such libtool
9390 *** libraries will work regardless of this problem.  Nevertheless, you
9391 *** may want to report the problem to your system manager and/or to
9392 *** bug-libtool@gnu.org
9393
9394 _LT_EOF
9395           fi ;;
9396         esac
9397       fi
9398       break
9399     fi
9400   done
9401   IFS=$lt_save_ifs
9402   MAGIC_CMD=$lt_save_MAGIC_CMD
9403   ;;
9404 esac
9405 fi
9406
9407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9408 if test -n "$MAGIC_CMD"; then
9409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9410 $as_echo "$MAGIC_CMD" >&6; }
9411 else
9412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9414 fi
9415
9416
9417   else
9418     MAGIC_CMD=:
9419   fi
9420 fi
9421
9422   fi
9423   ;;
9424 esac
9425
9426 # Use C for the default configuration in the libtool script
9427
9428 lt_save_CC=$CC
9429 ac_ext=c
9430 ac_cpp='$CPP $CPPFLAGS'
9431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9434
9435
9436 # Source file extension for C test sources.
9437 ac_ext=c
9438
9439 # Object file extension for compiled C test sources.
9440 objext=o
9441 objext=$objext
9442
9443 # Code to be used in simple compile tests
9444 lt_simple_compile_test_code="int some_variable = 0;"
9445
9446 # Code to be used in simple link tests
9447 lt_simple_link_test_code='int main(){return(0);}'
9448
9449
9450
9451
9452
9453
9454
9455 # If no C compiler was specified, use CC.
9456 LTCC=${LTCC-"$CC"}
9457
9458 # If no C compiler flags were specified, use CFLAGS.
9459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9460
9461 # Allow CC to be a program name with arguments.
9462 compiler=$CC
9463
9464 # Save the default compiler, since it gets overwritten when the other
9465 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9466 compiler_DEFAULT=$CC
9467
9468 # save warnings/boilerplate of simple test code
9469 ac_outfile=conftest.$ac_objext
9470 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9471 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9472 _lt_compiler_boilerplate=`cat conftest.err`
9473 $RM conftest*
9474
9475 ac_outfile=conftest.$ac_objext
9476 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9477 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9478 _lt_linker_boilerplate=`cat conftest.err`
9479 $RM -r conftest*
9480
9481
9482 ## CAVEAT EMPTOR:
9483 ## There is no encapsulation within the following macros, do not change
9484 ## the running order or otherwise move them around unless you know exactly
9485 ## what you are doing...
9486 if test -n "$compiler"; then
9487
9488 lt_prog_compiler_no_builtin_flag=
9489
9490 if test yes = "$GCC"; then
9491   case $cc_basename in
9492   nvcc*)
9493     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9494   *)
9495     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9496   esac
9497
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9499 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9500 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503   lt_cv_prog_compiler_rtti_exceptions=no
9504    ac_outfile=conftest.$ac_objext
9505    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9507    # Insert the option either (1) after the last *FLAGS variable, or
9508    # (2) before a word containing "conftest.", or (3) at the end.
9509    # Note that $ac_compile itself does not contain backslashes and begins
9510    # with a dollar sign (not a hyphen), so the echo should work correctly.
9511    # The option is referenced via a variable to avoid confusing sed.
9512    lt_compile=`echo "$ac_compile" | $SED \
9513    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9515    -e 's:$: $lt_compiler_flag:'`
9516    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9517    (eval "$lt_compile" 2>conftest.err)
9518    ac_status=$?
9519    cat conftest.err >&5
9520    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521    if (exit $ac_status) && test -s "$ac_outfile"; then
9522      # The compiler can only warn and ignore the option if not recognized
9523      # So say no if there are warnings other than the usual output.
9524      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9525      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9527        lt_cv_prog_compiler_rtti_exceptions=yes
9528      fi
9529    fi
9530    $RM conftest*
9531
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9534 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9535
9536 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9537     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9538 else
9539     :
9540 fi
9541
9542 fi
9543
9544
9545
9546
9547
9548
9549   lt_prog_compiler_wl=
9550 lt_prog_compiler_pic=
9551 lt_prog_compiler_static=
9552
9553
9554   if test yes = "$GCC"; then
9555     lt_prog_compiler_wl='-Wl,'
9556     lt_prog_compiler_static='-static'
9557
9558     case $host_os in
9559       aix*)
9560       # All AIX code is PIC.
9561       if test ia64 = "$host_cpu"; then
9562         # AIX 5 now supports IA64 processor
9563         lt_prog_compiler_static='-Bstatic'
9564       fi
9565       lt_prog_compiler_pic='-fPIC'
9566       ;;
9567
9568     amigaos*)
9569       case $host_cpu in
9570       powerpc)
9571             # see comment about AmigaOS4 .so support
9572             lt_prog_compiler_pic='-fPIC'
9573         ;;
9574       m68k)
9575             # FIXME: we need at least 68020 code to build shared libraries, but
9576             # adding the '-m68020' flag to GCC prevents building anything better,
9577             # like '-m68040'.
9578             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9579         ;;
9580       esac
9581       ;;
9582
9583     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9584       # PIC is the default for these OSes.
9585       ;;
9586
9587     mingw* | cygwin* | pw32* | os2* | cegcc*)
9588       # This hack is so that the source file can tell whether it is being
9589       # built for inclusion in a dll (and should export symbols for example).
9590       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9591       # (--disable-auto-import) libraries
9592       lt_prog_compiler_pic='-DDLL_EXPORT'
9593       case $host_os in
9594       os2*)
9595         lt_prog_compiler_static='$wl-static'
9596         ;;
9597       esac
9598       ;;
9599
9600     darwin* | rhapsody*)
9601       # PIC is the default on this platform
9602       # Common symbols not allowed in MH_DYLIB files
9603       lt_prog_compiler_pic='-fno-common'
9604       ;;
9605
9606     haiku*)
9607       # PIC is the default for Haiku.
9608       # The "-static" flag exists, but is broken.
9609       lt_prog_compiler_static=
9610       ;;
9611
9612     hpux*)
9613       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9614       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9615       # sets the default TLS model and affects inlining.
9616       case $host_cpu in
9617       hppa*64*)
9618         # +Z the default
9619         ;;
9620       *)
9621         lt_prog_compiler_pic='-fPIC'
9622         ;;
9623       esac
9624       ;;
9625
9626     interix[3-9]*)
9627       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9628       # Instead, we relocate shared libraries at runtime.
9629       ;;
9630
9631     msdosdjgpp*)
9632       # Just because we use GCC doesn't mean we suddenly get shared libraries
9633       # on systems that don't support them.
9634       lt_prog_compiler_can_build_shared=no
9635       enable_shared=no
9636       ;;
9637
9638     *nto* | *qnx*)
9639       # QNX uses GNU C++, but need to define -shared option too, otherwise
9640       # it will coredump.
9641       lt_prog_compiler_pic='-fPIC -shared'
9642       ;;
9643
9644     sysv4*MP*)
9645       if test -d /usr/nec; then
9646         lt_prog_compiler_pic=-Kconform_pic
9647       fi
9648       ;;
9649
9650     *)
9651       lt_prog_compiler_pic='-fPIC'
9652       ;;
9653     esac
9654
9655     case $cc_basename in
9656     nvcc*) # Cuda Compiler Driver 2.2
9657       lt_prog_compiler_wl='-Xlinker '
9658       if test -n "$lt_prog_compiler_pic"; then
9659         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9660       fi
9661       ;;
9662     esac
9663   else
9664     # PORTME Check for flag to pass linker flags through the system compiler.
9665     case $host_os in
9666     aix*)
9667       lt_prog_compiler_wl='-Wl,'
9668       if test ia64 = "$host_cpu"; then
9669         # AIX 5 now supports IA64 processor
9670         lt_prog_compiler_static='-Bstatic'
9671       else
9672         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9673       fi
9674       ;;
9675
9676     darwin* | rhapsody*)
9677       # PIC is the default on this platform
9678       # Common symbols not allowed in MH_DYLIB files
9679       lt_prog_compiler_pic='-fno-common'
9680       case $cc_basename in
9681       nagfor*)
9682         # NAG Fortran compiler
9683         lt_prog_compiler_wl='-Wl,-Wl,,'
9684         lt_prog_compiler_pic='-PIC'
9685         lt_prog_compiler_static='-Bstatic'
9686         ;;
9687       esac
9688       ;;
9689
9690     mingw* | cygwin* | pw32* | os2* | cegcc*)
9691       # This hack is so that the source file can tell whether it is being
9692       # built for inclusion in a dll (and should export symbols for example).
9693       lt_prog_compiler_pic='-DDLL_EXPORT'
9694       case $host_os in
9695       os2*)
9696         lt_prog_compiler_static='$wl-static'
9697         ;;
9698       esac
9699       ;;
9700
9701     hpux9* | hpux10* | hpux11*)
9702       lt_prog_compiler_wl='-Wl,'
9703       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9704       # not for PA HP-UX.
9705       case $host_cpu in
9706       hppa*64*|ia64*)
9707         # +Z the default
9708         ;;
9709       *)
9710         lt_prog_compiler_pic='+Z'
9711         ;;
9712       esac
9713       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9714       lt_prog_compiler_static='$wl-a ${wl}archive'
9715       ;;
9716
9717     irix5* | irix6* | nonstopux*)
9718       lt_prog_compiler_wl='-Wl,'
9719       # PIC (with -KPIC) is the default.
9720       lt_prog_compiler_static='-non_shared'
9721       ;;
9722
9723     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9724       case $cc_basename in
9725       # old Intel for x86_64, which still supported -KPIC.
9726       ecc*)
9727         lt_prog_compiler_wl='-Wl,'
9728         lt_prog_compiler_pic='-KPIC'
9729         lt_prog_compiler_static='-static'
9730         ;;
9731       # icc used to be incompatible with GCC.
9732       # ICC 10 doesn't accept -KPIC any more.
9733       icc* | ifort*)
9734         lt_prog_compiler_wl='-Wl,'
9735         lt_prog_compiler_pic='-fPIC'
9736         lt_prog_compiler_static='-static'
9737         ;;
9738       # Lahey Fortran 8.1.
9739       lf95*)
9740         lt_prog_compiler_wl='-Wl,'
9741         lt_prog_compiler_pic='--shared'
9742         lt_prog_compiler_static='--static'
9743         ;;
9744       nagfor*)
9745         # NAG Fortran compiler
9746         lt_prog_compiler_wl='-Wl,-Wl,,'
9747         lt_prog_compiler_pic='-PIC'
9748         lt_prog_compiler_static='-Bstatic'
9749         ;;
9750       tcc*)
9751         # Fabrice Bellard et al's Tiny C Compiler
9752         lt_prog_compiler_wl='-Wl,'
9753         lt_prog_compiler_pic='-fPIC'
9754         lt_prog_compiler_static='-static'
9755         ;;
9756       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9757         # Portland Group compilers (*not* the Pentium gcc compiler,
9758         # which looks to be a dead project)
9759         lt_prog_compiler_wl='-Wl,'
9760         lt_prog_compiler_pic='-fpic'
9761         lt_prog_compiler_static='-Bstatic'
9762         ;;
9763       ccc*)
9764         lt_prog_compiler_wl='-Wl,'
9765         # All Alpha code is PIC.
9766         lt_prog_compiler_static='-non_shared'
9767         ;;
9768       xl* | bgxl* | bgf* | mpixl*)
9769         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9770         lt_prog_compiler_wl='-Wl,'
9771         lt_prog_compiler_pic='-qpic'
9772         lt_prog_compiler_static='-qstaticlink'
9773         ;;
9774       *)
9775         case `$CC -V 2>&1 | sed 5q` in
9776         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9777           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9778           lt_prog_compiler_pic='-KPIC'
9779           lt_prog_compiler_static='-Bstatic'
9780           lt_prog_compiler_wl=''
9781           ;;
9782         *Sun\ F* | *Sun*Fortran*)
9783           lt_prog_compiler_pic='-KPIC'
9784           lt_prog_compiler_static='-Bstatic'
9785           lt_prog_compiler_wl='-Qoption ld '
9786           ;;
9787         *Sun\ C*)
9788           # Sun C 5.9
9789           lt_prog_compiler_pic='-KPIC'
9790           lt_prog_compiler_static='-Bstatic'
9791           lt_prog_compiler_wl='-Wl,'
9792           ;;
9793         *Intel*\ [CF]*Compiler*)
9794           lt_prog_compiler_wl='-Wl,'
9795           lt_prog_compiler_pic='-fPIC'
9796           lt_prog_compiler_static='-static'
9797           ;;
9798         *Portland\ Group*)
9799           lt_prog_compiler_wl='-Wl,'
9800           lt_prog_compiler_pic='-fpic'
9801           lt_prog_compiler_static='-Bstatic'
9802           ;;
9803         esac
9804         ;;
9805       esac
9806       ;;
9807
9808     newsos6)
9809       lt_prog_compiler_pic='-KPIC'
9810       lt_prog_compiler_static='-Bstatic'
9811       ;;
9812
9813     *nto* | *qnx*)
9814       # QNX uses GNU C++, but need to define -shared option too, otherwise
9815       # it will coredump.
9816       lt_prog_compiler_pic='-fPIC -shared'
9817       ;;
9818
9819     osf3* | osf4* | osf5*)
9820       lt_prog_compiler_wl='-Wl,'
9821       # All OSF/1 code is PIC.
9822       lt_prog_compiler_static='-non_shared'
9823       ;;
9824
9825     rdos*)
9826       lt_prog_compiler_static='-non_shared'
9827       ;;
9828
9829     solaris*)
9830       lt_prog_compiler_pic='-KPIC'
9831       lt_prog_compiler_static='-Bstatic'
9832       case $cc_basename in
9833       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9834         lt_prog_compiler_wl='-Qoption ld ';;
9835       *)
9836         lt_prog_compiler_wl='-Wl,';;
9837       esac
9838       ;;
9839
9840     sunos4*)
9841       lt_prog_compiler_wl='-Qoption ld '
9842       lt_prog_compiler_pic='-PIC'
9843       lt_prog_compiler_static='-Bstatic'
9844       ;;
9845
9846     sysv4 | sysv4.2uw2* | sysv4.3*)
9847       lt_prog_compiler_wl='-Wl,'
9848       lt_prog_compiler_pic='-KPIC'
9849       lt_prog_compiler_static='-Bstatic'
9850       ;;
9851
9852     sysv4*MP*)
9853       if test -d /usr/nec; then
9854         lt_prog_compiler_pic='-Kconform_pic'
9855         lt_prog_compiler_static='-Bstatic'
9856       fi
9857       ;;
9858
9859     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9860       lt_prog_compiler_wl='-Wl,'
9861       lt_prog_compiler_pic='-KPIC'
9862       lt_prog_compiler_static='-Bstatic'
9863       ;;
9864
9865     unicos*)
9866       lt_prog_compiler_wl='-Wl,'
9867       lt_prog_compiler_can_build_shared=no
9868       ;;
9869
9870     uts4*)
9871       lt_prog_compiler_pic='-pic'
9872       lt_prog_compiler_static='-Bstatic'
9873       ;;
9874
9875     *)
9876       lt_prog_compiler_can_build_shared=no
9877       ;;
9878     esac
9879   fi
9880
9881 case $host_os in
9882   # For platforms that do not support PIC, -DPIC is meaningless:
9883   *djgpp*)
9884     lt_prog_compiler_pic=
9885     ;;
9886   *)
9887     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9888     ;;
9889 esac
9890
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9892 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9893 if ${lt_cv_prog_compiler_pic+:} false; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9899 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9900 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9901
9902 #
9903 # Check to make sure the PIC flag actually works.
9904 #
9905 if test -n "$lt_prog_compiler_pic"; then
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9907 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9908 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9909   $as_echo_n "(cached) " >&6
9910 else
9911   lt_cv_prog_compiler_pic_works=no
9912    ac_outfile=conftest.$ac_objext
9913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9914    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9915    # Insert the option either (1) after the last *FLAGS variable, or
9916    # (2) before a word containing "conftest.", or (3) at the end.
9917    # Note that $ac_compile itself does not contain backslashes and begins
9918    # with a dollar sign (not a hyphen), so the echo should work correctly.
9919    # The option is referenced via a variable to avoid confusing sed.
9920    lt_compile=`echo "$ac_compile" | $SED \
9921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9923    -e 's:$: $lt_compiler_flag:'`
9924    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9925    (eval "$lt_compile" 2>conftest.err)
9926    ac_status=$?
9927    cat conftest.err >&5
9928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929    if (exit $ac_status) && test -s "$ac_outfile"; then
9930      # The compiler can only warn and ignore the option if not recognized
9931      # So say no if there are warnings other than the usual output.
9932      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9933      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9934      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9935        lt_cv_prog_compiler_pic_works=yes
9936      fi
9937    fi
9938    $RM conftest*
9939
9940 fi
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9942 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9943
9944 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9945     case $lt_prog_compiler_pic in
9946      "" | " "*) ;;
9947      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9948      esac
9949 else
9950     lt_prog_compiler_pic=
9951      lt_prog_compiler_can_build_shared=no
9952 fi
9953
9954 fi
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966 #
9967 # Check to make sure the static flag actually works.
9968 #
9969 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9971 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9972 if ${lt_cv_prog_compiler_static_works+:} false; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   lt_cv_prog_compiler_static_works=no
9976    save_LDFLAGS=$LDFLAGS
9977    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9978    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9979    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9980      # The linker can only warn and ignore the option if not recognized
9981      # So say no if there are warnings
9982      if test -s conftest.err; then
9983        # Append any errors to the config.log.
9984        cat conftest.err 1>&5
9985        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9986        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9987        if diff conftest.exp conftest.er2 >/dev/null; then
9988          lt_cv_prog_compiler_static_works=yes
9989        fi
9990      else
9991        lt_cv_prog_compiler_static_works=yes
9992      fi
9993    fi
9994    $RM -r conftest*
9995    LDFLAGS=$save_LDFLAGS
9996
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9999 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10000
10001 if test yes = "$lt_cv_prog_compiler_static_works"; then
10002     :
10003 else
10004     lt_prog_compiler_static=
10005 fi
10006
10007
10008
10009
10010
10011
10012
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10014 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10015 if ${lt_cv_prog_compiler_c_o+:} false; then :
10016   $as_echo_n "(cached) " >&6
10017 else
10018   lt_cv_prog_compiler_c_o=no
10019    $RM -r conftest 2>/dev/null
10020    mkdir conftest
10021    cd conftest
10022    mkdir out
10023    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10024
10025    lt_compiler_flag="-o out/conftest2.$ac_objext"
10026    # Insert the option either (1) after the last *FLAGS variable, or
10027    # (2) before a word containing "conftest.", or (3) at the end.
10028    # Note that $ac_compile itself does not contain backslashes and begins
10029    # with a dollar sign (not a hyphen), so the echo should work correctly.
10030    lt_compile=`echo "$ac_compile" | $SED \
10031    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10032    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10033    -e 's:$: $lt_compiler_flag:'`
10034    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10035    (eval "$lt_compile" 2>out/conftest.err)
10036    ac_status=$?
10037    cat out/conftest.err >&5
10038    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10040    then
10041      # The compiler can only warn and ignore the option if not recognized
10042      # So say no if there are warnings
10043      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10044      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10045      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10046        lt_cv_prog_compiler_c_o=yes
10047      fi
10048    fi
10049    chmod u+w . 2>&5
10050    $RM conftest*
10051    # SGI C++ compiler will create directory out/ii_files/ for
10052    # template instantiation
10053    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10054    $RM out/* && rmdir out
10055    cd ..
10056    $RM -r conftest
10057    $RM conftest*
10058
10059 fi
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10061 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10062
10063
10064
10065
10066
10067
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10069 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10070 if ${lt_cv_prog_compiler_c_o+:} false; then :
10071   $as_echo_n "(cached) " >&6
10072 else
10073   lt_cv_prog_compiler_c_o=no
10074    $RM -r conftest 2>/dev/null
10075    mkdir conftest
10076    cd conftest
10077    mkdir out
10078    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10079
10080    lt_compiler_flag="-o out/conftest2.$ac_objext"
10081    # Insert the option either (1) after the last *FLAGS variable, or
10082    # (2) before a word containing "conftest.", or (3) at the end.
10083    # Note that $ac_compile itself does not contain backslashes and begins
10084    # with a dollar sign (not a hyphen), so the echo should work correctly.
10085    lt_compile=`echo "$ac_compile" | $SED \
10086    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10087    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10088    -e 's:$: $lt_compiler_flag:'`
10089    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10090    (eval "$lt_compile" 2>out/conftest.err)
10091    ac_status=$?
10092    cat out/conftest.err >&5
10093    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10095    then
10096      # The compiler can only warn and ignore the option if not recognized
10097      # So say no if there are warnings
10098      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10099      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10100      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10101        lt_cv_prog_compiler_c_o=yes
10102      fi
10103    fi
10104    chmod u+w . 2>&5
10105    $RM conftest*
10106    # SGI C++ compiler will create directory out/ii_files/ for
10107    # template instantiation
10108    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10109    $RM out/* && rmdir out
10110    cd ..
10111    $RM -r conftest
10112    $RM conftest*
10113
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10116 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10117
10118
10119
10120
10121 hard_links=nottested
10122 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10123   # do not overwrite the value of need_locks provided by the user
10124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10125 $as_echo_n "checking if we can lock with hard links... " >&6; }
10126   hard_links=yes
10127   $RM conftest*
10128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10129   touch conftest.a
10130   ln conftest.a conftest.b 2>&5 || hard_links=no
10131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10133 $as_echo "$hard_links" >&6; }
10134   if test no = "$hard_links"; then
10135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10136 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10137     need_locks=warn
10138   fi
10139 else
10140   need_locks=no
10141 fi
10142
10143
10144
10145
10146
10147
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10149 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10150
10151   runpath_var=
10152   allow_undefined_flag=
10153   always_export_symbols=no
10154   archive_cmds=
10155   archive_expsym_cmds=
10156   compiler_needs_object=no
10157   enable_shared_with_static_runtimes=no
10158   export_dynamic_flag_spec=
10159   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10160   hardcode_automatic=no
10161   hardcode_direct=no
10162   hardcode_direct_absolute=no
10163   hardcode_libdir_flag_spec=
10164   hardcode_libdir_separator=
10165   hardcode_minus_L=no
10166   hardcode_shlibpath_var=unsupported
10167   inherit_rpath=no
10168   link_all_deplibs=unknown
10169   module_cmds=
10170   module_expsym_cmds=
10171   old_archive_from_new_cmds=
10172   old_archive_from_expsyms_cmds=
10173   thread_safe_flag_spec=
10174   whole_archive_flag_spec=
10175   # include_expsyms should be a list of space-separated symbols to be *always*
10176   # included in the symbol list
10177   include_expsyms=
10178   # exclude_expsyms can be an extended regexp of symbols to exclude
10179   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10180   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10181   # as well as any symbol that contains 'd'.
10182   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10183   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10184   # platforms (ab)use it in PIC code, but their linkers get confused if
10185   # the symbol is explicitly referenced.  Since portable code cannot
10186   # rely on this symbol name, it's probably fine to never include it in
10187   # preloaded symbol tables.
10188   # Exclude shared library initialization/finalization symbols.
10189   extract_expsyms_cmds=
10190
10191   case $host_os in
10192   cygwin* | mingw* | pw32* | cegcc*)
10193     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10194     # When not using gcc, we currently assume that we are using
10195     # Microsoft Visual C++.
10196     if test yes != "$GCC"; then
10197       with_gnu_ld=no
10198     fi
10199     ;;
10200   interix*)
10201     # we just hope/assume this is gcc and not c89 (= MSVC++)
10202     with_gnu_ld=yes
10203     ;;
10204   openbsd* | bitrig*)
10205     with_gnu_ld=no
10206     ;;
10207   esac
10208
10209   ld_shlibs=yes
10210
10211   # On some targets, GNU ld is compatible enough with the native linker
10212   # that we're better off using the native interface for both.
10213   lt_use_gnu_ld_interface=no
10214   if test yes = "$with_gnu_ld"; then
10215     case $host_os in
10216       aix*)
10217         # The AIX port of GNU ld has always aspired to compatibility
10218         # with the native linker.  However, as the warning in the GNU ld
10219         # block says, versions before 2.19.5* couldn't really create working
10220         # shared libraries, regardless of the interface used.
10221         case `$LD -v 2>&1` in
10222           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10223           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10224           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10225           *)
10226             lt_use_gnu_ld_interface=yes
10227             ;;
10228         esac
10229         ;;
10230       *)
10231         lt_use_gnu_ld_interface=yes
10232         ;;
10233     esac
10234   fi
10235
10236   if test yes = "$lt_use_gnu_ld_interface"; then
10237     # If archive_cmds runs LD, not CC, wlarc should be empty
10238     wlarc='$wl'
10239
10240     # Set some defaults for GNU ld with shared library support. These
10241     # are reset later if shared libraries are not supported. Putting them
10242     # here allows them to be overridden if necessary.
10243     runpath_var=LD_RUN_PATH
10244     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245     export_dynamic_flag_spec='$wl--export-dynamic'
10246     # ancient GNU ld didn't support --whole-archive et. al.
10247     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10248       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10249     else
10250       whole_archive_flag_spec=
10251     fi
10252     supports_anon_versioning=no
10253     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10254       *GNU\ gold*) supports_anon_versioning=yes ;;
10255       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10256       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10257       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10258       *\ 2.11.*) ;; # other 2.11 versions
10259       *) supports_anon_versioning=yes ;;
10260     esac
10261
10262     # See if GNU ld supports shared libraries.
10263     case $host_os in
10264     aix[3-9]*)
10265       # On AIX/PPC, the GNU linker is very broken
10266       if test ia64 != "$host_cpu"; then
10267         ld_shlibs=no
10268         cat <<_LT_EOF 1>&2
10269
10270 *** Warning: the GNU linker, at least up to release 2.19, is reported
10271 *** to be unable to reliably create shared libraries on AIX.
10272 *** Therefore, libtool is disabling shared libraries support.  If you
10273 *** really care for shared libraries, you may want to install binutils
10274 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10275 *** You will then need to restart the configuration process.
10276
10277 _LT_EOF
10278       fi
10279       ;;
10280
10281     amigaos*)
10282       case $host_cpu in
10283       powerpc)
10284             # see comment about AmigaOS4 .so support
10285             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10286             archive_expsym_cmds=''
10287         ;;
10288       m68k)
10289             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)'
10290             hardcode_libdir_flag_spec='-L$libdir'
10291             hardcode_minus_L=yes
10292         ;;
10293       esac
10294       ;;
10295
10296     beos*)
10297       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10298         allow_undefined_flag=unsupported
10299         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10300         # support --undefined.  This deserves some investigation.  FIXME
10301         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10302       else
10303         ld_shlibs=no
10304       fi
10305       ;;
10306
10307     cygwin* | mingw* | pw32* | cegcc*)
10308       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10309       # as there is no search path for DLLs.
10310       hardcode_libdir_flag_spec='-L$libdir'
10311       export_dynamic_flag_spec='$wl--export-all-symbols'
10312       allow_undefined_flag=unsupported
10313       always_export_symbols=no
10314       enable_shared_with_static_runtimes=yes
10315       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'
10316       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10317
10318       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10319         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10320         # If the export-symbols file already is a .def file, use it as
10321         # is; otherwise, prepend EXPORTS...
10322         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10323           cp $export_symbols $output_objdir/$soname.def;
10324         else
10325           echo EXPORTS > $output_objdir/$soname.def;
10326           cat $export_symbols >> $output_objdir/$soname.def;
10327         fi~
10328         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10329       else
10330         ld_shlibs=no
10331       fi
10332       ;;
10333
10334     haiku*)
10335       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10336       link_all_deplibs=yes
10337       ;;
10338
10339     os2*)
10340       hardcode_libdir_flag_spec='-L$libdir'
10341       hardcode_minus_L=yes
10342       allow_undefined_flag=unsupported
10343       shrext_cmds=.dll
10344       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10345         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10346         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10347         $ECHO EXPORTS >> $output_objdir/$libname.def~
10348         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10349         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10350         emximp -o $lib $output_objdir/$libname.def'
10351       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10352         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10353         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10354         $ECHO EXPORTS >> $output_objdir/$libname.def~
10355         prefix_cmds="$SED"~
10356         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10357           prefix_cmds="$prefix_cmds -e 1d";
10358         fi~
10359         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10360         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10361         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10362         emximp -o $lib $output_objdir/$libname.def'
10363       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10364       enable_shared_with_static_runtimes=yes
10365       ;;
10366
10367     interix[3-9]*)
10368       hardcode_direct=no
10369       hardcode_shlibpath_var=no
10370       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10371       export_dynamic_flag_spec='$wl-E'
10372       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10373       # Instead, shared libraries are loaded at an image base (0x10000000 by
10374       # default) and relocated if they conflict, which is a slow very memory
10375       # consuming and fragmenting process.  To avoid this, we pick a random,
10376       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10377       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10378       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10379       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'
10380       ;;
10381
10382     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10383       tmp_diet=no
10384       if test linux-dietlibc = "$host_os"; then
10385         case $cc_basename in
10386           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10387         esac
10388       fi
10389       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10390          && test no = "$tmp_diet"
10391       then
10392         tmp_addflag=' $pic_flag'
10393         tmp_sharedflag='-shared'
10394         case $cc_basename,$host_cpu in
10395         pgcc*)                          # Portland Group C compiler
10396           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'
10397           tmp_addflag=' $pic_flag'
10398           ;;
10399         pgf77* | pgf90* | pgf95* | pgfortran*)
10400                                         # Portland Group f77 and f90 compilers
10401           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'
10402           tmp_addflag=' $pic_flag -Mnomain' ;;
10403         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10404           tmp_addflag=' -i_dynamic' ;;
10405         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10406           tmp_addflag=' -i_dynamic -nofor_main' ;;
10407         ifc* | ifort*)                  # Intel Fortran compiler
10408           tmp_addflag=' -nofor_main' ;;
10409         lf95*)                          # Lahey Fortran 8.1
10410           whole_archive_flag_spec=
10411           tmp_sharedflag='--shared' ;;
10412         nagfor*)                        # NAGFOR 5.3
10413           tmp_sharedflag='-Wl,-shared' ;;
10414         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10415           tmp_sharedflag='-qmkshrobj'
10416           tmp_addflag= ;;
10417         nvcc*)  # Cuda Compiler Driver 2.2
10418           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'
10419           compiler_needs_object=yes
10420           ;;
10421         esac
10422         case `$CC -V 2>&1 | sed 5q` in
10423         *Sun\ C*)                       # Sun C 5.9
10424           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'
10425           compiler_needs_object=yes
10426           tmp_sharedflag='-G' ;;
10427         *Sun\ F*)                       # Sun Fortran 8.3
10428           tmp_sharedflag='-G' ;;
10429         esac
10430         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10431
10432         if test yes = "$supports_anon_versioning"; then
10433           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10434             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10435             echo "local: *; };" >> $output_objdir/$libname.ver~
10436             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10437         fi
10438
10439         case $cc_basename in
10440         tcc*)
10441           export_dynamic_flag_spec='-rdynamic'
10442           ;;
10443         xlf* | bgf* | bgxlf* | mpixlf*)
10444           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10445           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10446           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10447           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10448           if test yes = "$supports_anon_versioning"; then
10449             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10450               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10451               echo "local: *; };" >> $output_objdir/$libname.ver~
10452               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10453           fi
10454           ;;
10455         esac
10456       else
10457         ld_shlibs=no
10458       fi
10459       ;;
10460
10461     netbsd*)
10462       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10463         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10464         wlarc=
10465       else
10466         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10467         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10468       fi
10469       ;;
10470
10471     solaris*)
10472       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10473         ld_shlibs=no
10474         cat <<_LT_EOF 1>&2
10475
10476 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10477 *** create shared libraries on Solaris systems.  Therefore, libtool
10478 *** is disabling shared libraries support.  We urge you to upgrade GNU
10479 *** binutils to release 2.9.1 or newer.  Another option is to modify
10480 *** your PATH or compiler configuration so that the native linker is
10481 *** used, and then restart.
10482
10483 _LT_EOF
10484       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10485         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10486         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10487       else
10488         ld_shlibs=no
10489       fi
10490       ;;
10491
10492     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10493       case `$LD -v 2>&1` in
10494         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10495         ld_shlibs=no
10496         cat <<_LT_EOF 1>&2
10497
10498 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10499 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10500 *** is disabling shared libraries support.  We urge you to upgrade GNU
10501 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10502 *** your PATH or compiler configuration so that the native linker is
10503 *** used, and then restart.
10504
10505 _LT_EOF
10506         ;;
10507         *)
10508           # For security reasons, it is highly recommended that you always
10509           # use absolute paths for naming shared libraries, and exclude the
10510           # DT_RUNPATH tag from executables and libraries.  But doing so
10511           # requires that you compile everything twice, which is a pain.
10512           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10513             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10514             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10515             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10516           else
10517             ld_shlibs=no
10518           fi
10519         ;;
10520       esac
10521       ;;
10522
10523     sunos4*)
10524       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10525       wlarc=
10526       hardcode_direct=yes
10527       hardcode_shlibpath_var=no
10528       ;;
10529
10530     *)
10531       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10532         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10533         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10534       else
10535         ld_shlibs=no
10536       fi
10537       ;;
10538     esac
10539
10540     if test no = "$ld_shlibs"; then
10541       runpath_var=
10542       hardcode_libdir_flag_spec=
10543       export_dynamic_flag_spec=
10544       whole_archive_flag_spec=
10545     fi
10546   else
10547     # PORTME fill in a description of your system's linker (not GNU ld)
10548     case $host_os in
10549     aix3*)
10550       allow_undefined_flag=unsupported
10551       always_export_symbols=yes
10552       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'
10553       # Note: this linker hardcodes the directories in LIBPATH if there
10554       # are no directories specified by -L.
10555       hardcode_minus_L=yes
10556       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10557         # Neither direct hardcoding nor static linking is supported with a
10558         # broken collect2.
10559         hardcode_direct=unsupported
10560       fi
10561       ;;
10562
10563     aix[4-9]*)
10564       if test ia64 = "$host_cpu"; then
10565         # On IA64, the linker does run time linking by default, so we don't
10566         # have to do anything special.
10567         aix_use_runtimelinking=no
10568         exp_sym_flag='-Bexport'
10569         no_entry_flag=
10570       else
10571         # If we're using GNU nm, then we don't want the "-C" option.
10572         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10573         # Without the "-l" option, or with the "-B" option, AIX nm treats
10574         # weak defined symbols like other global defined symbols, whereas
10575         # GNU nm marks them as "W".
10576         # While the 'weak' keyword is ignored in the Export File, we need
10577         # it in the Import File for the 'aix-soname' feature, so we have
10578         # to replace the "-B" option with "-P" for AIX nm.
10579         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10580           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'
10581         else
10582           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'
10583         fi
10584         aix_use_runtimelinking=no
10585
10586         # Test if we are trying to use run time linking or normal
10587         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10588         # have runtime linking enabled, and use it for executables.
10589         # For shared libraries, we enable/disable runtime linking
10590         # depending on the kind of the shared library created -
10591         # when "with_aix_soname,aix_use_runtimelinking" is:
10592         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10593         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10594         #            lib.a           static archive
10595         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10596         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10597         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10598         #            lib.a(lib.so.V) shared, rtl:no
10599         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10600         #            lib.a           static archive
10601         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10602           for ld_flag in $LDFLAGS; do
10603           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10604             aix_use_runtimelinking=yes
10605             break
10606           fi
10607           done
10608           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10609             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10610             # so we don't have lib.a shared libs to link our executables.
10611             # We have to force runtime linking in this case.
10612             aix_use_runtimelinking=yes
10613             LDFLAGS="$LDFLAGS -Wl,-brtl"
10614           fi
10615           ;;
10616         esac
10617
10618         exp_sym_flag='-bexport'
10619         no_entry_flag='-bnoentry'
10620       fi
10621
10622       # When large executables or shared objects are built, AIX ld can
10623       # have problems creating the table of contents.  If linking a library
10624       # or program results in "error TOC overflow" add -mminimal-toc to
10625       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10626       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10627
10628       archive_cmds=''
10629       hardcode_direct=yes
10630       hardcode_direct_absolute=yes
10631       hardcode_libdir_separator=':'
10632       link_all_deplibs=yes
10633       file_list_spec='$wl-f,'
10634       case $with_aix_soname,$aix_use_runtimelinking in
10635       aix,*) ;; # traditional, no import file
10636       svr4,* | *,yes) # use import file
10637         # The Import File defines what to hardcode.
10638         hardcode_direct=no
10639         hardcode_direct_absolute=no
10640         ;;
10641       esac
10642
10643       if test yes = "$GCC"; then
10644         case $host_os in aix4.[012]|aix4.[012].*)
10645         # We only want to do this on AIX 4.2 and lower, the check
10646         # below for broken collect2 doesn't work under 4.3+
10647           collect2name=`$CC -print-prog-name=collect2`
10648           if test -f "$collect2name" &&
10649            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10650           then
10651           # We have reworked collect2
10652           :
10653           else
10654           # We have old collect2
10655           hardcode_direct=unsupported
10656           # It fails to find uninstalled libraries when the uninstalled
10657           # path is not listed in the libpath.  Setting hardcode_minus_L
10658           # to unsupported forces relinking
10659           hardcode_minus_L=yes
10660           hardcode_libdir_flag_spec='-L$libdir'
10661           hardcode_libdir_separator=
10662           fi
10663           ;;
10664         esac
10665         shared_flag='-shared'
10666         if test yes = "$aix_use_runtimelinking"; then
10667           shared_flag="$shared_flag "'$wl-G'
10668         fi
10669         # Need to ensure runtime linking is disabled for the traditional
10670         # shared library, or the linker may eventually find shared libraries
10671         # /with/ Import File - we do not want to mix them.
10672         shared_flag_aix='-shared'
10673         shared_flag_svr4='-shared $wl-G'
10674       else
10675         # not using gcc
10676         if test ia64 = "$host_cpu"; then
10677         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10678         # chokes on -Wl,-G. The following line is correct:
10679           shared_flag='-G'
10680         else
10681           if test yes = "$aix_use_runtimelinking"; then
10682             shared_flag='$wl-G'
10683           else
10684             shared_flag='$wl-bM:SRE'
10685           fi
10686           shared_flag_aix='$wl-bM:SRE'
10687           shared_flag_svr4='$wl-G'
10688         fi
10689       fi
10690
10691       export_dynamic_flag_spec='$wl-bexpall'
10692       # It seems that -bexpall does not export symbols beginning with
10693       # underscore (_), so it is better to generate a list of symbols to export.
10694       always_export_symbols=yes
10695       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10696         # Warning - without using the other runtime loading flags (-brtl),
10697         # -berok will link without error, but may produce a broken library.
10698         allow_undefined_flag='-berok'
10699         # Determine the default libpath from the value encoded in an
10700         # empty executable.
10701         if test set = "${lt_cv_aix_libpath+set}"; then
10702   aix_libpath=$lt_cv_aix_libpath
10703 else
10704   if ${lt_cv_aix_libpath_+:} false; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h.  */
10709
10710 int
10711 main ()
10712 {
10713
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 if ac_fn_c_try_link "$LINENO"; then :
10719
10720   lt_aix_libpath_sed='
10721       /Import File Strings/,/^$/ {
10722           /^0/ {
10723               s/^0  *\([^ ]*\) *$/\1/
10724               p
10725           }
10726       }'
10727   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10728   # Check for a 64-bit object if we didn't find anything.
10729   if test -z "$lt_cv_aix_libpath_"; then
10730     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10731   fi
10732 fi
10733 rm -f core conftest.err conftest.$ac_objext \
10734     conftest$ac_exeext conftest.$ac_ext
10735   if test -z "$lt_cv_aix_libpath_"; then
10736     lt_cv_aix_libpath_=/usr/lib:/lib
10737   fi
10738
10739 fi
10740
10741   aix_libpath=$lt_cv_aix_libpath_
10742 fi
10743
10744         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10745         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
10746       else
10747         if test ia64 = "$host_cpu"; then
10748           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10749           allow_undefined_flag="-z nodefs"
10750           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"
10751         else
10752          # Determine the default libpath from the value encoded in an
10753          # empty executable.
10754          if test set = "${lt_cv_aix_libpath+set}"; then
10755   aix_libpath=$lt_cv_aix_libpath
10756 else
10757   if ${lt_cv_aix_libpath_+:} false; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h.  */
10762
10763 int
10764 main ()
10765 {
10766
10767   ;
10768   return 0;
10769 }
10770 _ACEOF
10771 if ac_fn_c_try_link "$LINENO"; then :
10772
10773   lt_aix_libpath_sed='
10774       /Import File Strings/,/^$/ {
10775           /^0/ {
10776               s/^0  *\([^ ]*\) *$/\1/
10777               p
10778           }
10779       }'
10780   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10781   # Check for a 64-bit object if we didn't find anything.
10782   if test -z "$lt_cv_aix_libpath_"; then
10783     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784   fi
10785 fi
10786 rm -f core conftest.err conftest.$ac_objext \
10787     conftest$ac_exeext conftest.$ac_ext
10788   if test -z "$lt_cv_aix_libpath_"; then
10789     lt_cv_aix_libpath_=/usr/lib:/lib
10790   fi
10791
10792 fi
10793
10794   aix_libpath=$lt_cv_aix_libpath_
10795 fi
10796
10797          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10798           # Warning - without using the other run time loading flags,
10799           # -berok will link without error, but may produce a broken library.
10800           no_undefined_flag=' $wl-bernotok'
10801           allow_undefined_flag=' $wl-berok'
10802           if test yes = "$with_gnu_ld"; then
10803             # We only use this code for GNU lds that support --whole-archive.
10804             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10805           else
10806             # Exported symbols can be pulled into shared objects from archives
10807             whole_archive_flag_spec='$convenience'
10808           fi
10809           archive_cmds_need_lc=yes
10810           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10811           # -brtl affects multiple linker settings, -berok does not and is overridden later
10812           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10813           if test svr4 != "$with_aix_soname"; then
10814             # This is similar to how AIX traditionally builds its shared libraries.
10815             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'
10816           fi
10817           if test aix != "$with_aix_soname"; then
10818             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'
10819           else
10820             # used by -dlpreopen to get the symbols
10821             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10822           fi
10823           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10824         fi
10825       fi
10826       ;;
10827
10828     amigaos*)
10829       case $host_cpu in
10830       powerpc)
10831             # see comment about AmigaOS4 .so support
10832             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10833             archive_expsym_cmds=''
10834         ;;
10835       m68k)
10836             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)'
10837             hardcode_libdir_flag_spec='-L$libdir'
10838             hardcode_minus_L=yes
10839         ;;
10840       esac
10841       ;;
10842
10843     bsdi[45]*)
10844       export_dynamic_flag_spec=-rdynamic
10845       ;;
10846
10847     cygwin* | mingw* | pw32* | cegcc*)
10848       # When not using gcc, we currently assume that we are using
10849       # Microsoft Visual C++.
10850       # hardcode_libdir_flag_spec is actually meaningless, as there is
10851       # no search path for DLLs.
10852       case $cc_basename in
10853       cl*)
10854         # Native MSVC
10855         hardcode_libdir_flag_spec=' '
10856         allow_undefined_flag=unsupported
10857         always_export_symbols=yes
10858         file_list_spec='@'
10859         # Tell ltmain to make .lib files, not .a files.
10860         libext=lib
10861         # Tell ltmain to make .dll files, not .so files.
10862         shrext_cmds=.dll
10863         # FIXME: Setting linknames here is a bad hack.
10864         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10865         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10866             cp "$export_symbols" "$output_objdir/$soname.def";
10867             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10868           else
10869             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10870           fi~
10871           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10872           linknames='
10873         # The linker will not automatically build a static lib if we build a DLL.
10874         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10875         enable_shared_with_static_runtimes=yes
10876         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10877         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10878         # Don't use ranlib
10879         old_postinstall_cmds='chmod 644 $oldlib'
10880         postlink_cmds='lt_outputfile="@OUTPUT@"~
10881           lt_tool_outputfile="@TOOL_OUTPUT@"~
10882           case $lt_outputfile in
10883             *.exe|*.EXE) ;;
10884             *)
10885               lt_outputfile=$lt_outputfile.exe
10886               lt_tool_outputfile=$lt_tool_outputfile.exe
10887               ;;
10888           esac~
10889           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10890             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10891             $RM "$lt_outputfile.manifest";
10892           fi'
10893         ;;
10894       *)
10895         # Assume MSVC wrapper
10896         hardcode_libdir_flag_spec=' '
10897         allow_undefined_flag=unsupported
10898         # Tell ltmain to make .lib files, not .a files.
10899         libext=lib
10900         # Tell ltmain to make .dll files, not .so files.
10901         shrext_cmds=.dll
10902         # FIXME: Setting linknames here is a bad hack.
10903         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10904         # The linker will automatically build a .lib file if we build a DLL.
10905         old_archive_from_new_cmds='true'
10906         # FIXME: Should let the user specify the lib program.
10907         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10908         enable_shared_with_static_runtimes=yes
10909         ;;
10910       esac
10911       ;;
10912
10913     darwin* | rhapsody*)
10914
10915
10916   archive_cmds_need_lc=no
10917   hardcode_direct=no
10918   hardcode_automatic=yes
10919   hardcode_shlibpath_var=unsupported
10920   if test yes = "$lt_cv_ld_force_load"; then
10921     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\"`'
10922
10923   else
10924     whole_archive_flag_spec=''
10925   fi
10926   link_all_deplibs=yes
10927   allow_undefined_flag=$_lt_dar_allow_undefined
10928   case $cc_basename in
10929      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10930      *) _lt_dar_can_shared=$GCC ;;
10931   esac
10932   if test yes = "$_lt_dar_can_shared"; then
10933     output_verbose_link_cmd=func_echo_all
10934     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10935     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10936     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"
10937     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"
10938
10939   else
10940   ld_shlibs=no
10941   fi
10942
10943       ;;
10944
10945     dgux*)
10946       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10947       hardcode_libdir_flag_spec='-L$libdir'
10948       hardcode_shlibpath_var=no
10949       ;;
10950
10951     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10952     # support.  Future versions do this automatically, but an explicit c++rt0.o
10953     # does not break anything, and helps significantly (at the cost of a little
10954     # extra space).
10955     freebsd2.2*)
10956       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10957       hardcode_libdir_flag_spec='-R$libdir'
10958       hardcode_direct=yes
10959       hardcode_shlibpath_var=no
10960       ;;
10961
10962     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10963     freebsd2.*)
10964       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10965       hardcode_direct=yes
10966       hardcode_minus_L=yes
10967       hardcode_shlibpath_var=no
10968       ;;
10969
10970     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10971     freebsd* | dragonfly*)
10972       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10973       hardcode_libdir_flag_spec='-R$libdir'
10974       hardcode_direct=yes
10975       hardcode_shlibpath_var=no
10976       ;;
10977
10978     hpux9*)
10979       if test yes = "$GCC"; then
10980         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'
10981       else
10982         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'
10983       fi
10984       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10985       hardcode_libdir_separator=:
10986       hardcode_direct=yes
10987
10988       # hardcode_minus_L: Not really in the search PATH,
10989       # but as the default location of the library.
10990       hardcode_minus_L=yes
10991       export_dynamic_flag_spec='$wl-E'
10992       ;;
10993
10994     hpux10*)
10995       if test yes,no = "$GCC,$with_gnu_ld"; then
10996         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10997       else
10998         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10999       fi
11000       if test no = "$with_gnu_ld"; then
11001         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11002         hardcode_libdir_separator=:
11003         hardcode_direct=yes
11004         hardcode_direct_absolute=yes
11005         export_dynamic_flag_spec='$wl-E'
11006         # hardcode_minus_L: Not really in the search PATH,
11007         # but as the default location of the library.
11008         hardcode_minus_L=yes
11009       fi
11010       ;;
11011
11012     hpux11*)
11013       if test yes,no = "$GCC,$with_gnu_ld"; then
11014         case $host_cpu in
11015         hppa*64*)
11016           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11017           ;;
11018         ia64*)
11019           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11020           ;;
11021         *)
11022           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11023           ;;
11024         esac
11025       else
11026         case $host_cpu in
11027         hppa*64*)
11028           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11029           ;;
11030         ia64*)
11031           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11032           ;;
11033         *)
11034
11035           # Older versions of the 11.00 compiler do not understand -b yet
11036           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11037           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11038 $as_echo_n "checking if $CC understands -b... " >&6; }
11039 if ${lt_cv_prog_compiler__b+:} false; then :
11040   $as_echo_n "(cached) " >&6
11041 else
11042   lt_cv_prog_compiler__b=no
11043    save_LDFLAGS=$LDFLAGS
11044    LDFLAGS="$LDFLAGS -b"
11045    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11046    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11047      # The linker can only warn and ignore the option if not recognized
11048      # So say no if there are warnings
11049      if test -s conftest.err; then
11050        # Append any errors to the config.log.
11051        cat conftest.err 1>&5
11052        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11053        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11054        if diff conftest.exp conftest.er2 >/dev/null; then
11055          lt_cv_prog_compiler__b=yes
11056        fi
11057      else
11058        lt_cv_prog_compiler__b=yes
11059      fi
11060    fi
11061    $RM -r conftest*
11062    LDFLAGS=$save_LDFLAGS
11063
11064 fi
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11066 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11067
11068 if test yes = "$lt_cv_prog_compiler__b"; then
11069     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11070 else
11071     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11072 fi
11073
11074           ;;
11075         esac
11076       fi
11077       if test no = "$with_gnu_ld"; then
11078         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11079         hardcode_libdir_separator=:
11080
11081         case $host_cpu in
11082         hppa*64*|ia64*)
11083           hardcode_direct=no
11084           hardcode_shlibpath_var=no
11085           ;;
11086         *)
11087           hardcode_direct=yes
11088           hardcode_direct_absolute=yes
11089           export_dynamic_flag_spec='$wl-E'
11090
11091           # hardcode_minus_L: Not really in the search PATH,
11092           # but as the default location of the library.
11093           hardcode_minus_L=yes
11094           ;;
11095         esac
11096       fi
11097       ;;
11098
11099     irix5* | irix6* | nonstopux*)
11100       if test yes = "$GCC"; then
11101         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'
11102         # Try to use the -exported_symbol ld option, if it does not
11103         # work, assume that -exports_file does not work either and
11104         # implicitly export all symbols.
11105         # This should be the same for all languages, so no per-tag cache variable.
11106         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11107 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11108 if ${lt_cv_irix_exported_symbol+:} false; then :
11109   $as_echo_n "(cached) " >&6
11110 else
11111   save_LDFLAGS=$LDFLAGS
11112            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11113            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h.  */
11115 int foo (void) { return 0; }
11116 _ACEOF
11117 if ac_fn_c_try_link "$LINENO"; then :
11118   lt_cv_irix_exported_symbol=yes
11119 else
11120   lt_cv_irix_exported_symbol=no
11121 fi
11122 rm -f core conftest.err conftest.$ac_objext \
11123     conftest$ac_exeext conftest.$ac_ext
11124            LDFLAGS=$save_LDFLAGS
11125 fi
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11127 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11128         if test yes = "$lt_cv_irix_exported_symbol"; then
11129           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'
11130         fi
11131       else
11132         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'
11133         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'
11134       fi
11135       archive_cmds_need_lc='no'
11136       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11137       hardcode_libdir_separator=:
11138       inherit_rpath=yes
11139       link_all_deplibs=yes
11140       ;;
11141
11142     linux*)
11143       case $cc_basename in
11144       tcc*)
11145         # Fabrice Bellard et al's Tiny C Compiler
11146         ld_shlibs=yes
11147         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11148         ;;
11149       esac
11150       ;;
11151
11152     netbsd*)
11153       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11154         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11155       else
11156         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11157       fi
11158       hardcode_libdir_flag_spec='-R$libdir'
11159       hardcode_direct=yes
11160       hardcode_shlibpath_var=no
11161       ;;
11162
11163     newsos6)
11164       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11165       hardcode_direct=yes
11166       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11167       hardcode_libdir_separator=:
11168       hardcode_shlibpath_var=no
11169       ;;
11170
11171     *nto* | *qnx*)
11172       ;;
11173
11174     openbsd* | bitrig*)
11175       if test -f /usr/libexec/ld.so; then
11176         hardcode_direct=yes
11177         hardcode_shlibpath_var=no
11178         hardcode_direct_absolute=yes
11179         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11180           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11181           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11182           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11183           export_dynamic_flag_spec='$wl-E'
11184         else
11185           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11186           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11187         fi
11188       else
11189         ld_shlibs=no
11190       fi
11191       ;;
11192
11193     os2*)
11194       hardcode_libdir_flag_spec='-L$libdir'
11195       hardcode_minus_L=yes
11196       allow_undefined_flag=unsupported
11197       shrext_cmds=.dll
11198       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11199         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11200         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11201         $ECHO EXPORTS >> $output_objdir/$libname.def~
11202         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11203         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11204         emximp -o $lib $output_objdir/$libname.def'
11205       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11206         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11207         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11208         $ECHO EXPORTS >> $output_objdir/$libname.def~
11209         prefix_cmds="$SED"~
11210         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11211           prefix_cmds="$prefix_cmds -e 1d";
11212         fi~
11213         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11214         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11215         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11216         emximp -o $lib $output_objdir/$libname.def'
11217       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11218       enable_shared_with_static_runtimes=yes
11219       ;;
11220
11221     osf3*)
11222       if test yes = "$GCC"; then
11223         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11224         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'
11225       else
11226         allow_undefined_flag=' -expect_unresolved \*'
11227         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'
11228       fi
11229       archive_cmds_need_lc='no'
11230       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11231       hardcode_libdir_separator=:
11232       ;;
11233
11234     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11235       if test yes = "$GCC"; then
11236         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11237         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'
11238         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11239       else
11240         allow_undefined_flag=' -expect_unresolved \*'
11241         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'
11242         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~
11243           $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'
11244
11245         # Both c and cxx compiler support -rpath directly
11246         hardcode_libdir_flag_spec='-rpath $libdir'
11247       fi
11248       archive_cmds_need_lc='no'
11249       hardcode_libdir_separator=:
11250       ;;
11251
11252     solaris*)
11253       no_undefined_flag=' -z defs'
11254       if test yes = "$GCC"; then
11255         wlarc='$wl'
11256         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11257         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11258           $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'
11259       else
11260         case `$CC -V 2>&1` in
11261         *"Compilers 5.0"*)
11262           wlarc=''
11263           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11264           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11265             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11266           ;;
11267         *)
11268           wlarc='$wl'
11269           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11270           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11271             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11272           ;;
11273         esac
11274       fi
11275       hardcode_libdir_flag_spec='-R$libdir'
11276       hardcode_shlibpath_var=no
11277       case $host_os in
11278       solaris2.[0-5] | solaris2.[0-5].*) ;;
11279       *)
11280         # The compiler driver will combine and reorder linker options,
11281         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11282         # but is careful enough not to reorder.
11283         # Supported since Solaris 2.6 (maybe 2.5.1?)
11284         if test yes = "$GCC"; then
11285           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11286         else
11287           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11288         fi
11289         ;;
11290       esac
11291       link_all_deplibs=yes
11292       ;;
11293
11294     sunos4*)
11295       if test sequent = "$host_vendor"; then
11296         # Use $CC to link under sequent, because it throws in some extra .o
11297         # files that make .init and .fini sections work.
11298         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11299       else
11300         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11301       fi
11302       hardcode_libdir_flag_spec='-L$libdir'
11303       hardcode_direct=yes
11304       hardcode_minus_L=yes
11305       hardcode_shlibpath_var=no
11306       ;;
11307
11308     sysv4)
11309       case $host_vendor in
11310         sni)
11311           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11312           hardcode_direct=yes # is this really true???
11313         ;;
11314         siemens)
11315           ## LD is ld it makes a PLAMLIB
11316           ## CC just makes a GrossModule.
11317           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11318           reload_cmds='$CC -r -o $output$reload_objs'
11319           hardcode_direct=no
11320         ;;
11321         motorola)
11322           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11324         ;;
11325       esac
11326       runpath_var='LD_RUN_PATH'
11327       hardcode_shlibpath_var=no
11328       ;;
11329
11330     sysv4.3*)
11331       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332       hardcode_shlibpath_var=no
11333       export_dynamic_flag_spec='-Bexport'
11334       ;;
11335
11336     sysv4*MP*)
11337       if test -d /usr/nec; then
11338         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339         hardcode_shlibpath_var=no
11340         runpath_var=LD_RUN_PATH
11341         hardcode_runpath_var=yes
11342         ld_shlibs=yes
11343       fi
11344       ;;
11345
11346     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11347       no_undefined_flag='$wl-z,text'
11348       archive_cmds_need_lc=no
11349       hardcode_shlibpath_var=no
11350       runpath_var='LD_RUN_PATH'
11351
11352       if test yes = "$GCC"; then
11353         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11354         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11355       else
11356         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11357         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11358       fi
11359       ;;
11360
11361     sysv5* | sco3.2v5* | sco5v6*)
11362       # Note: We CANNOT use -z defs as we might desire, because we do not
11363       # link with -lc, and that would cause any symbols used from libc to
11364       # always be unresolved, which means just about no library would
11365       # ever link correctly.  If we're not using GNU ld we use -z text
11366       # though, which does catch some bad symbols but isn't as heavy-handed
11367       # as -z defs.
11368       no_undefined_flag='$wl-z,text'
11369       allow_undefined_flag='$wl-z,nodefs'
11370       archive_cmds_need_lc=no
11371       hardcode_shlibpath_var=no
11372       hardcode_libdir_flag_spec='$wl-R,$libdir'
11373       hardcode_libdir_separator=':'
11374       link_all_deplibs=yes
11375       export_dynamic_flag_spec='$wl-Bexport'
11376       runpath_var='LD_RUN_PATH'
11377
11378       if test yes = "$GCC"; then
11379         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381       else
11382         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11383         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384       fi
11385       ;;
11386
11387     uts4*)
11388       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389       hardcode_libdir_flag_spec='-L$libdir'
11390       hardcode_shlibpath_var=no
11391       ;;
11392
11393     *)
11394       ld_shlibs=no
11395       ;;
11396     esac
11397
11398     if test sni = "$host_vendor"; then
11399       case $host in
11400       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11401         export_dynamic_flag_spec='$wl-Blargedynsym'
11402         ;;
11403       esac
11404     fi
11405   fi
11406
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11408 $as_echo "$ld_shlibs" >&6; }
11409 test no = "$ld_shlibs" && can_build_shared=no
11410
11411 with_gnu_ld=$with_gnu_ld
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427 #
11428 # Do we need to explicitly link libc?
11429 #
11430 case "x$archive_cmds_need_lc" in
11431 x|xyes)
11432   # Assume -lc should be added
11433   archive_cmds_need_lc=yes
11434
11435   if test yes,yes = "$GCC,$enable_shared"; then
11436     case $archive_cmds in
11437     *'~'*)
11438       # FIXME: we may have to deal with multi-command sequences.
11439       ;;
11440     '$CC '*)
11441       # Test whether the compiler implicitly links with -lc since on some
11442       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11443       # to ld, don't add -lc before -lgcc.
11444       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11445 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11446 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11447   $as_echo_n "(cached) " >&6
11448 else
11449   $RM conftest*
11450         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11451
11452         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11453   (eval $ac_compile) 2>&5
11454   ac_status=$?
11455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456   test $ac_status = 0; } 2>conftest.err; then
11457           soname=conftest
11458           lib=conftest
11459           libobjs=conftest.$ac_objext
11460           deplibs=
11461           wl=$lt_prog_compiler_wl
11462           pic_flag=$lt_prog_compiler_pic
11463           compiler_flags=-v
11464           linker_flags=-v
11465           verstring=
11466           output_objdir=.
11467           libname=conftest
11468           lt_save_allow_undefined_flag=$allow_undefined_flag
11469           allow_undefined_flag=
11470           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11471   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11472   ac_status=$?
11473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474   test $ac_status = 0; }
11475           then
11476             lt_cv_archive_cmds_need_lc=no
11477           else
11478             lt_cv_archive_cmds_need_lc=yes
11479           fi
11480           allow_undefined_flag=$lt_save_allow_undefined_flag
11481         else
11482           cat conftest.err 1>&5
11483         fi
11484         $RM conftest*
11485
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11488 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11489       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11490       ;;
11491     esac
11492   fi
11493   ;;
11494 esac
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11648 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11649
11650 if test yes = "$GCC"; then
11651   case $host_os in
11652     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11653     *) lt_awk_arg='/^libraries:/' ;;
11654   esac
11655   case $host_os in
11656     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11657     *) lt_sed_strip_eq='s|=/|/|g' ;;
11658   esac
11659   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11660   case $lt_search_path_spec in
11661   *\;*)
11662     # if the path contains ";" then we assume it to be the separator
11663     # otherwise default to the standard path separator (i.e. ":") - it is
11664     # assumed that no part of a normal pathname contains ";" but that should
11665     # okay in the real world where ";" in dirpaths is itself problematic.
11666     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11667     ;;
11668   *)
11669     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11670     ;;
11671   esac
11672   # Ok, now we have the path, separated by spaces, we can step through it
11673   # and add multilib dir if necessary...
11674   lt_tmp_lt_search_path_spec=
11675   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11676   # ...but if some path component already ends with the multilib dir we assume
11677   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11678   case "$lt_multi_os_dir; $lt_search_path_spec " in
11679   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11680     lt_multi_os_dir=
11681     ;;
11682   esac
11683   for lt_sys_path in $lt_search_path_spec; do
11684     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11685       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11686     elif test -n "$lt_multi_os_dir"; then
11687       test -d "$lt_sys_path" && \
11688         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11689     fi
11690   done
11691   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11692 BEGIN {RS = " "; FS = "/|\n";} {
11693   lt_foo = "";
11694   lt_count = 0;
11695   for (lt_i = NF; lt_i > 0; lt_i--) {
11696     if ($lt_i != "" && $lt_i != ".") {
11697       if ($lt_i == "..") {
11698         lt_count++;
11699       } else {
11700         if (lt_count == 0) {
11701           lt_foo = "/" $lt_i lt_foo;
11702         } else {
11703           lt_count--;
11704         }
11705       }
11706     }
11707   }
11708   if (lt_foo != "") { lt_freq[lt_foo]++; }
11709   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11710 }'`
11711   # AWK program above erroneously prepends '/' to C:/dos/paths
11712   # for these hosts.
11713   case $host_os in
11714     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11715       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11716   esac
11717   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11718 else
11719   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11720 fi
11721 library_names_spec=
11722 libname_spec='lib$name'
11723 soname_spec=
11724 shrext_cmds=.so
11725 postinstall_cmds=
11726 postuninstall_cmds=
11727 finish_cmds=
11728 finish_eval=
11729 shlibpath_var=
11730 shlibpath_overrides_runpath=unknown
11731 version_type=none
11732 dynamic_linker="$host_os ld.so"
11733 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11734 need_lib_prefix=unknown
11735 hardcode_into_libs=no
11736
11737 # when you set need_version to no, make sure it does not cause -set_version
11738 # flags to be left without arguments
11739 need_version=unknown
11740
11741
11742
11743 case $host_os in
11744 aix3*)
11745   version_type=linux # correct to gnu/linux during the next big refactor
11746   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11747   shlibpath_var=LIBPATH
11748
11749   # AIX 3 has no versioning support, so we append a major version to the name.
11750   soname_spec='$libname$release$shared_ext$major'
11751   ;;
11752
11753 aix[4-9]*)
11754   version_type=linux # correct to gnu/linux during the next big refactor
11755   need_lib_prefix=no
11756   need_version=no
11757   hardcode_into_libs=yes
11758   if test ia64 = "$host_cpu"; then
11759     # AIX 5 supports IA64
11760     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11761     shlibpath_var=LD_LIBRARY_PATH
11762   else
11763     # With GCC up to 2.95.x, collect2 would create an import file
11764     # for dependence libraries.  The import file would start with
11765     # the line '#! .'.  This would cause the generated library to
11766     # depend on '.', always an invalid library.  This was fixed in
11767     # development snapshots of GCC prior to 3.0.
11768     case $host_os in
11769       aix4 | aix4.[01] | aix4.[01].*)
11770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11771            echo ' yes '
11772            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11773         :
11774       else
11775         can_build_shared=no
11776       fi
11777       ;;
11778     esac
11779     # Using Import Files as archive members, it is possible to support
11780     # filename-based versioning of shared library archives on AIX. While
11781     # this would work for both with and without runtime linking, it will
11782     # prevent static linking of such archives. So we do filename-based
11783     # shared library versioning with .so extension only, which is used
11784     # when both runtime linking and shared linking is enabled.
11785     # Unfortunately, runtime linking may impact performance, so we do
11786     # not want this to be the default eventually. Also, we use the
11787     # versioned .so libs for executables only if there is the -brtl
11788     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11789     # To allow for filename-based versioning support, we need to create
11790     # libNAME.so.V as an archive file, containing:
11791     # *) an Import File, referring to the versioned filename of the
11792     #    archive as well as the shared archive member, telling the
11793     #    bitwidth (32 or 64) of that shared object, and providing the
11794     #    list of exported symbols of that shared object, eventually
11795     #    decorated with the 'weak' keyword
11796     # *) the shared object with the F_LOADONLY flag set, to really avoid
11797     #    it being seen by the linker.
11798     # At run time we better use the real file rather than another symlink,
11799     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11800
11801     case $with_aix_soname,$aix_use_runtimelinking in
11802     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11803     # soname into executable. Probably we can add versioning support to
11804     # collect2, so additional links can be useful in future.
11805     aix,yes) # traditional libtool
11806       dynamic_linker='AIX unversionable lib.so'
11807       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11808       # instead of lib<name>.a to let people know that these are not
11809       # typical AIX shared libraries.
11810       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11811       ;;
11812     aix,no) # traditional AIX only
11813       dynamic_linker='AIX lib.a(lib.so.V)'
11814       # We preserve .a as extension for shared libraries through AIX4.2
11815       # and later when we are not doing run time linking.
11816       library_names_spec='$libname$release.a $libname.a'
11817       soname_spec='$libname$release$shared_ext$major'
11818       ;;
11819     svr4,*) # full svr4 only
11820       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11821       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11822       # We do not specify a path in Import Files, so LIBPATH fires.
11823       shlibpath_overrides_runpath=yes
11824       ;;
11825     *,yes) # both, prefer svr4
11826       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11827       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11828       # unpreferred sharedlib libNAME.a needs extra handling
11829       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"'
11830       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"'
11831       # We do not specify a path in Import Files, so LIBPATH fires.
11832       shlibpath_overrides_runpath=yes
11833       ;;
11834     *,no) # both, prefer aix
11835       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11836       library_names_spec='$libname$release.a $libname.a'
11837       soname_spec='$libname$release$shared_ext$major'
11838       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11839       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)'
11840       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"'
11841       ;;
11842     esac
11843     shlibpath_var=LIBPATH
11844   fi
11845   ;;
11846
11847 amigaos*)
11848   case $host_cpu in
11849   powerpc)
11850     # Since July 2007 AmigaOS4 officially supports .so libraries.
11851     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11852     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11853     ;;
11854   m68k)
11855     library_names_spec='$libname.ixlibrary $libname.a'
11856     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11857     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'
11858     ;;
11859   esac
11860   ;;
11861
11862 beos*)
11863   library_names_spec='$libname$shared_ext'
11864   dynamic_linker="$host_os ld.so"
11865   shlibpath_var=LIBRARY_PATH
11866   ;;
11867
11868 bsdi[45]*)
11869   version_type=linux # correct to gnu/linux during the next big refactor
11870   need_version=no
11871   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872   soname_spec='$libname$release$shared_ext$major'
11873   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11876   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11877   # the default ld.so.conf also contains /usr/contrib/lib and
11878   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11879   # libtool to hard-code these into programs
11880   ;;
11881
11882 cygwin* | mingw* | pw32* | cegcc*)
11883   version_type=windows
11884   shrext_cmds=.dll
11885   need_version=no
11886   need_lib_prefix=no
11887
11888   case $GCC,$cc_basename in
11889   yes,*)
11890     # gcc
11891     library_names_spec='$libname.dll.a'
11892     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11893     postinstall_cmds='base_file=`basename \$file`~
11894       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11895       dldir=$destdir/`dirname \$dlpath`~
11896       test -d \$dldir || mkdir -p \$dldir~
11897       $install_prog $dir/$dlname \$dldir/$dlname~
11898       chmod a+x \$dldir/$dlname~
11899       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11900         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11901       fi'
11902     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11903       dlpath=$dir/\$dldll~
11904        $RM \$dlpath'
11905     shlibpath_overrides_runpath=yes
11906
11907     case $host_os in
11908     cygwin*)
11909       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11910       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11911
11912       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11913       ;;
11914     mingw* | cegcc*)
11915       # MinGW DLLs use traditional 'lib' prefix
11916       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11917       ;;
11918     pw32*)
11919       # pw32 DLLs use 'pw' prefix rather than 'lib'
11920       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11921       ;;
11922     esac
11923     dynamic_linker='Win32 ld.exe'
11924     ;;
11925
11926   *,cl*)
11927     # Native MSVC
11928     libname_spec='$name'
11929     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11930     library_names_spec='$libname.dll.lib'
11931
11932     case $build_os in
11933     mingw*)
11934       sys_lib_search_path_spec=
11935       lt_save_ifs=$IFS
11936       IFS=';'
11937       for lt_path in $LIB
11938       do
11939         IFS=$lt_save_ifs
11940         # Let DOS variable expansion print the short 8.3 style file name.
11941         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11942         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11943       done
11944       IFS=$lt_save_ifs
11945       # Convert to MSYS style.
11946       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11947       ;;
11948     cygwin*)
11949       # Convert to unix form, then to dos form, then back to unix form
11950       # but this time dos style (no spaces!) so that the unix form looks
11951       # like /cygdrive/c/PROGRA~1:/cygdr...
11952       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11953       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11954       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11955       ;;
11956     *)
11957       sys_lib_search_path_spec=$LIB
11958       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11959         # It is most probably a Windows format PATH.
11960         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11961       else
11962         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11963       fi
11964       # FIXME: find the short name or the path components, as spaces are
11965       # common. (e.g. "Program Files" -> "PROGRA~1")
11966       ;;
11967     esac
11968
11969     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11970     postinstall_cmds='base_file=`basename \$file`~
11971       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11972       dldir=$destdir/`dirname \$dlpath`~
11973       test -d \$dldir || mkdir -p \$dldir~
11974       $install_prog $dir/$dlname \$dldir/$dlname'
11975     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11976       dlpath=$dir/\$dldll~
11977        $RM \$dlpath'
11978     shlibpath_overrides_runpath=yes
11979     dynamic_linker='Win32 link.exe'
11980     ;;
11981
11982   *)
11983     # Assume MSVC wrapper
11984     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11985     dynamic_linker='Win32 ld.exe'
11986     ;;
11987   esac
11988   # FIXME: first we should search . and the directory the executable is in
11989   shlibpath_var=PATH
11990   ;;
11991
11992 darwin* | rhapsody*)
11993   dynamic_linker="$host_os dyld"
11994   version_type=darwin
11995   need_lib_prefix=no
11996   need_version=no
11997   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11998   soname_spec='$libname$release$major$shared_ext'
11999   shlibpath_overrides_runpath=yes
12000   shlibpath_var=DYLD_LIBRARY_PATH
12001   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12002
12003   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12004   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12005   ;;
12006
12007 dgux*)
12008   version_type=linux # correct to gnu/linux during the next big refactor
12009   need_lib_prefix=no
12010   need_version=no
12011   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012   soname_spec='$libname$release$shared_ext$major'
12013   shlibpath_var=LD_LIBRARY_PATH
12014   ;;
12015
12016 freebsd* | dragonfly*)
12017   # DragonFly does not have aout.  When/if they implement a new
12018   # versioning mechanism, adjust this.
12019   if test -x /usr/bin/objformat; then
12020     objformat=`/usr/bin/objformat`
12021   else
12022     case $host_os in
12023     freebsd[23].*) objformat=aout ;;
12024     *) objformat=elf ;;
12025     esac
12026   fi
12027   version_type=freebsd-$objformat
12028   case $version_type in
12029     freebsd-elf*)
12030       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031       soname_spec='$libname$release$shared_ext$major'
12032       need_version=no
12033       need_lib_prefix=no
12034       ;;
12035     freebsd-*)
12036       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12037       need_version=yes
12038       ;;
12039   esac
12040   shlibpath_var=LD_LIBRARY_PATH
12041   case $host_os in
12042   freebsd2.*)
12043     shlibpath_overrides_runpath=yes
12044     ;;
12045   freebsd3.[01]* | freebsdelf3.[01]*)
12046     shlibpath_overrides_runpath=yes
12047     hardcode_into_libs=yes
12048     ;;
12049   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12050   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12051     shlibpath_overrides_runpath=no
12052     hardcode_into_libs=yes
12053     ;;
12054   *) # from 4.6 on, and DragonFly
12055     shlibpath_overrides_runpath=yes
12056     hardcode_into_libs=yes
12057     ;;
12058   esac
12059   ;;
12060
12061 haiku*)
12062   version_type=linux # correct to gnu/linux during the next big refactor
12063   need_lib_prefix=no
12064   need_version=no
12065   dynamic_linker="$host_os runtime_loader"
12066   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12067   soname_spec='$libname$release$shared_ext$major'
12068   shlibpath_var=LIBRARY_PATH
12069   shlibpath_overrides_runpath=no
12070   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12071   hardcode_into_libs=yes
12072   ;;
12073
12074 hpux9* | hpux10* | hpux11*)
12075   # Give a soname corresponding to the major version so that dld.sl refuses to
12076   # link against other versions.
12077   version_type=sunos
12078   need_lib_prefix=no
12079   need_version=no
12080   case $host_cpu in
12081   ia64*)
12082     shrext_cmds='.so'
12083     hardcode_into_libs=yes
12084     dynamic_linker="$host_os dld.so"
12085     shlibpath_var=LD_LIBRARY_PATH
12086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12087     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088     soname_spec='$libname$release$shared_ext$major'
12089     if test 32 = "$HPUX_IA64_MODE"; then
12090       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12091       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12092     else
12093       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12094       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12095     fi
12096     ;;
12097   hppa*64*)
12098     shrext_cmds='.sl'
12099     hardcode_into_libs=yes
12100     dynamic_linker="$host_os dld.sl"
12101     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12102     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12103     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12104     soname_spec='$libname$release$shared_ext$major'
12105     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12106     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12107     ;;
12108   *)
12109     shrext_cmds='.sl'
12110     dynamic_linker="$host_os dld.sl"
12111     shlibpath_var=SHLIB_PATH
12112     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12113     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114     soname_spec='$libname$release$shared_ext$major'
12115     ;;
12116   esac
12117   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12118   postinstall_cmds='chmod 555 $lib'
12119   # or fails outright, so override atomically:
12120   install_override_mode=555
12121   ;;
12122
12123 interix[3-9]*)
12124   version_type=linux # correct to gnu/linux during the next big refactor
12125   need_lib_prefix=no
12126   need_version=no
12127   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128   soname_spec='$libname$release$shared_ext$major'
12129   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12130   shlibpath_var=LD_LIBRARY_PATH
12131   shlibpath_overrides_runpath=no
12132   hardcode_into_libs=yes
12133   ;;
12134
12135 irix5* | irix6* | nonstopux*)
12136   case $host_os in
12137     nonstopux*) version_type=nonstopux ;;
12138     *)
12139         if test yes = "$lt_cv_prog_gnu_ld"; then
12140                 version_type=linux # correct to gnu/linux during the next big refactor
12141         else
12142                 version_type=irix
12143         fi ;;
12144   esac
12145   need_lib_prefix=no
12146   need_version=no
12147   soname_spec='$libname$release$shared_ext$major'
12148   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12149   case $host_os in
12150   irix5* | nonstopux*)
12151     libsuff= shlibsuff=
12152     ;;
12153   *)
12154     case $LD in # libtool.m4 will add one of these switches to LD
12155     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12156       libsuff= shlibsuff= libmagic=32-bit;;
12157     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12158       libsuff=32 shlibsuff=N32 libmagic=N32;;
12159     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12160       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12161     *) libsuff= shlibsuff= libmagic=never-match;;
12162     esac
12163     ;;
12164   esac
12165   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12166   shlibpath_overrides_runpath=no
12167   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12168   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12169   hardcode_into_libs=yes
12170   ;;
12171
12172 # No shared lib support for Linux oldld, aout, or coff.
12173 linux*oldld* | linux*aout* | linux*coff*)
12174   dynamic_linker=no
12175   ;;
12176
12177 linux*android*)
12178   version_type=none # Android doesn't support versioned libraries.
12179   need_lib_prefix=no
12180   need_version=no
12181   library_names_spec='$libname$release$shared_ext'
12182   soname_spec='$libname$release$shared_ext'
12183   finish_cmds=
12184   shlibpath_var=LD_LIBRARY_PATH
12185   shlibpath_overrides_runpath=yes
12186
12187   # This implies no fast_install, which is unacceptable.
12188   # Some rework will be needed to allow for fast_install
12189   # before this can be enabled.
12190   hardcode_into_libs=yes
12191
12192   dynamic_linker='Android linker'
12193   # Don't embed -rpath directories since the linker doesn't support them.
12194   hardcode_libdir_flag_spec='-L$libdir'
12195   ;;
12196
12197 # This must be glibc/ELF.
12198 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12199   version_type=linux # correct to gnu/linux during the next big refactor
12200   need_lib_prefix=no
12201   need_version=no
12202   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12203   soname_spec='$libname$release$shared_ext$major'
12204   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12205   shlibpath_var=LD_LIBRARY_PATH
12206   shlibpath_overrides_runpath=no
12207
12208   # Some binutils ld are patched to set DT_RUNPATH
12209   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   lt_cv_shlibpath_overrides_runpath=no
12213     save_LDFLAGS=$LDFLAGS
12214     save_libdir=$libdir
12215     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12216          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h.  */
12219
12220 int
12221 main ()
12222 {
12223
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 if ac_fn_c_try_link "$LINENO"; then :
12229   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12230   lt_cv_shlibpath_overrides_runpath=yes
12231 fi
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext \
12234     conftest$ac_exeext conftest.$ac_ext
12235     LDFLAGS=$save_LDFLAGS
12236     libdir=$save_libdir
12237
12238 fi
12239
12240   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12241
12242   # This implies no fast_install, which is unacceptable.
12243   # Some rework will be needed to allow for fast_install
12244   # before this can be enabled.
12245   hardcode_into_libs=yes
12246
12247   # Add ABI-specific directories to the system library path.
12248   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12249
12250   # Ideally, we could use ldconfig to report *all* directores which are
12251   # searched for libraries, however this is still not possible.  Aside from not
12252   # being certain /sbin/ldconfig is available, command
12253   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12254   # even though it is searched at run-time.  Try to do the best guess by
12255   # appending ld.so.conf contents (and includes) to the search path.
12256   if test -f /etc/ld.so.conf; then
12257     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' ' '`
12258     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12259   fi
12260
12261   # We used to test for /lib/ld.so.1 and disable shared libraries on
12262   # powerpc, because MkLinux only supported shared libraries with the
12263   # GNU dynamic linker.  Since this was broken with cross compilers,
12264   # most powerpc-linux boxes support dynamic linking these days and
12265   # people can always --disable-shared, the test was removed, and we
12266   # assume the GNU/Linux dynamic linker is in use.
12267   dynamic_linker='GNU/Linux ld.so'
12268   ;;
12269
12270 netbsd*)
12271   version_type=sunos
12272   need_lib_prefix=no
12273   need_version=no
12274   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12275     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12276     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12277     dynamic_linker='NetBSD (a.out) ld.so'
12278   else
12279     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12280     soname_spec='$libname$release$shared_ext$major'
12281     dynamic_linker='NetBSD ld.elf_so'
12282   fi
12283   shlibpath_var=LD_LIBRARY_PATH
12284   shlibpath_overrides_runpath=yes
12285   hardcode_into_libs=yes
12286   ;;
12287
12288 newsos6)
12289   version_type=linux # correct to gnu/linux during the next big refactor
12290   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12291   shlibpath_var=LD_LIBRARY_PATH
12292   shlibpath_overrides_runpath=yes
12293   ;;
12294
12295 *nto* | *qnx*)
12296   version_type=qnx
12297   need_lib_prefix=no
12298   need_version=no
12299   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12300   soname_spec='$libname$release$shared_ext$major'
12301   shlibpath_var=LD_LIBRARY_PATH
12302   shlibpath_overrides_runpath=no
12303   hardcode_into_libs=yes
12304   dynamic_linker='ldqnx.so'
12305   ;;
12306
12307 openbsd* | bitrig*)
12308   version_type=sunos
12309   sys_lib_dlsearch_path_spec=/usr/lib
12310   need_lib_prefix=no
12311   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12312     need_version=no
12313   else
12314     need_version=yes
12315   fi
12316   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12318   shlibpath_var=LD_LIBRARY_PATH
12319   shlibpath_overrides_runpath=yes
12320   ;;
12321
12322 os2*)
12323   libname_spec='$name'
12324   version_type=windows
12325   shrext_cmds=.dll
12326   need_version=no
12327   need_lib_prefix=no
12328   # OS/2 can only load a DLL with a base name of 8 characters or less.
12329   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12330     v=$($ECHO $release$versuffix | tr -d .-);
12331     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12332     $ECHO $n$v`$shared_ext'
12333   library_names_spec='${libname}_dll.$libext'
12334   dynamic_linker='OS/2 ld.exe'
12335   shlibpath_var=BEGINLIBPATH
12336   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12337   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12338   postinstall_cmds='base_file=`basename \$file`~
12339     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12340     dldir=$destdir/`dirname \$dlpath`~
12341     test -d \$dldir || mkdir -p \$dldir~
12342     $install_prog $dir/$dlname \$dldir/$dlname~
12343     chmod a+x \$dldir/$dlname~
12344     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12345       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12346     fi'
12347   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12348     dlpath=$dir/\$dldll~
12349     $RM \$dlpath'
12350   ;;
12351
12352 osf3* | osf4* | osf5*)
12353   version_type=osf
12354   need_lib_prefix=no
12355   need_version=no
12356   soname_spec='$libname$release$shared_ext$major'
12357   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12358   shlibpath_var=LD_LIBRARY_PATH
12359   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12360   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12361   ;;
12362
12363 rdos*)
12364   dynamic_linker=no
12365   ;;
12366
12367 solaris*)
12368   version_type=linux # correct to gnu/linux during the next big refactor
12369   need_lib_prefix=no
12370   need_version=no
12371   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12372   soname_spec='$libname$release$shared_ext$major'
12373   shlibpath_var=LD_LIBRARY_PATH
12374   shlibpath_overrides_runpath=yes
12375   hardcode_into_libs=yes
12376   # ldd complains unless libraries are executable
12377   postinstall_cmds='chmod +x $lib'
12378   ;;
12379
12380 sunos4*)
12381   version_type=sunos
12382   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12383   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12384   shlibpath_var=LD_LIBRARY_PATH
12385   shlibpath_overrides_runpath=yes
12386   if test yes = "$with_gnu_ld"; then
12387     need_lib_prefix=no
12388   fi
12389   need_version=yes
12390   ;;
12391
12392 sysv4 | sysv4.3*)
12393   version_type=linux # correct to gnu/linux during the next big refactor
12394   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12395   soname_spec='$libname$release$shared_ext$major'
12396   shlibpath_var=LD_LIBRARY_PATH
12397   case $host_vendor in
12398     sni)
12399       shlibpath_overrides_runpath=no
12400       need_lib_prefix=no
12401       runpath_var=LD_RUN_PATH
12402       ;;
12403     siemens)
12404       need_lib_prefix=no
12405       ;;
12406     motorola)
12407       need_lib_prefix=no
12408       need_version=no
12409       shlibpath_overrides_runpath=no
12410       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12411       ;;
12412   esac
12413   ;;
12414
12415 sysv4*MP*)
12416   if test -d /usr/nec; then
12417     version_type=linux # correct to gnu/linux during the next big refactor
12418     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12419     soname_spec='$libname$shared_ext.$major'
12420     shlibpath_var=LD_LIBRARY_PATH
12421   fi
12422   ;;
12423
12424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12425   version_type=sco
12426   need_lib_prefix=no
12427   need_version=no
12428   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12429   soname_spec='$libname$release$shared_ext$major'
12430   shlibpath_var=LD_LIBRARY_PATH
12431   shlibpath_overrides_runpath=yes
12432   hardcode_into_libs=yes
12433   if test yes = "$with_gnu_ld"; then
12434     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12435   else
12436     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12437     case $host_os in
12438       sco3.2v5*)
12439         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12440         ;;
12441     esac
12442   fi
12443   sys_lib_dlsearch_path_spec='/usr/lib'
12444   ;;
12445
12446 tpf*)
12447   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12448   version_type=linux # correct to gnu/linux during the next big refactor
12449   need_lib_prefix=no
12450   need_version=no
12451   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12452   shlibpath_var=LD_LIBRARY_PATH
12453   shlibpath_overrides_runpath=no
12454   hardcode_into_libs=yes
12455   ;;
12456
12457 uts4*)
12458   version_type=linux # correct to gnu/linux during the next big refactor
12459   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12460   soname_spec='$libname$release$shared_ext$major'
12461   shlibpath_var=LD_LIBRARY_PATH
12462   ;;
12463
12464 *)
12465   dynamic_linker=no
12466   ;;
12467 esac
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12469 $as_echo "$dynamic_linker" >&6; }
12470 test no = "$dynamic_linker" && can_build_shared=no
12471
12472 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12473 if test yes = "$GCC"; then
12474   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12475 fi
12476
12477 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12478   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12479 fi
12480
12481 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12482   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12483 fi
12484
12485 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12486 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12487
12488 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12489 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12490
12491 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12492 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12591 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12592 hardcode_action=
12593 if test -n "$hardcode_libdir_flag_spec" ||
12594    test -n "$runpath_var" ||
12595    test yes = "$hardcode_automatic"; then
12596
12597   # We can hardcode non-existent directories.
12598   if test no != "$hardcode_direct" &&
12599      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12600      # have to relink, otherwise we might link with an installed library
12601      # when we should be linking with a yet-to-be-installed one
12602      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12603      test no != "$hardcode_minus_L"; then
12604     # Linking always hardcodes the temporary library directory.
12605     hardcode_action=relink
12606   else
12607     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12608     hardcode_action=immediate
12609   fi
12610 else
12611   # We cannot hardcode anything, or else we can only hardcode existing
12612   # directories.
12613   hardcode_action=unsupported
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12616 $as_echo "$hardcode_action" >&6; }
12617
12618 if test relink = "$hardcode_action" ||
12619    test yes = "$inherit_rpath"; then
12620   # Fast installation is not supported
12621   enable_fast_install=no
12622 elif test yes = "$shlibpath_overrides_runpath" ||
12623      test no = "$enable_shared"; then
12624   # Fast installation is not necessary
12625   enable_fast_install=needless
12626 fi
12627
12628
12629
12630
12631
12632
12633   if test yes != "$enable_dlopen"; then
12634   enable_dlopen=unknown
12635   enable_dlopen_self=unknown
12636   enable_dlopen_self_static=unknown
12637 else
12638   lt_cv_dlopen=no
12639   lt_cv_dlopen_libs=
12640
12641   case $host_os in
12642   beos*)
12643     lt_cv_dlopen=load_add_on
12644     lt_cv_dlopen_libs=
12645     lt_cv_dlopen_self=yes
12646     ;;
12647
12648   mingw* | pw32* | cegcc*)
12649     lt_cv_dlopen=LoadLibrary
12650     lt_cv_dlopen_libs=
12651     ;;
12652
12653   cygwin*)
12654     lt_cv_dlopen=dlopen
12655     lt_cv_dlopen_libs=
12656     ;;
12657
12658   darwin*)
12659     # if libdl is installed we need to link against it
12660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12662 if ${ac_cv_lib_dl_dlopen+:} false; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665   ac_check_lib_save_LIBS=$LIBS
12666 LIBS="-ldl  $LIBS"
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h.  */
12669
12670 /* Override any GCC internal prototype to avoid an error.
12671    Use char because int might match the return type of a GCC
12672    builtin and then its argument prototype would still apply.  */
12673 #ifdef __cplusplus
12674 extern "C"
12675 #endif
12676 char dlopen ();
12677 int
12678 main ()
12679 {
12680 return dlopen ();
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 if ac_fn_c_try_link "$LINENO"; then :
12686   ac_cv_lib_dl_dlopen=yes
12687 else
12688   ac_cv_lib_dl_dlopen=no
12689 fi
12690 rm -f core conftest.err conftest.$ac_objext \
12691     conftest$ac_exeext conftest.$ac_ext
12692 LIBS=$ac_check_lib_save_LIBS
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12695 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12696 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12697   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12698 else
12699
12700     lt_cv_dlopen=dyld
12701     lt_cv_dlopen_libs=
12702     lt_cv_dlopen_self=yes
12703
12704 fi
12705
12706     ;;
12707
12708   tpf*)
12709     # Don't try to run any link tests for TPF.  We know it's impossible
12710     # because TPF is a cross-compiler, and we know how we open DSOs.
12711     lt_cv_dlopen=dlopen
12712     lt_cv_dlopen_libs=
12713     lt_cv_dlopen_self=no
12714     ;;
12715
12716   *)
12717     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12718 if test "x$ac_cv_func_shl_load" = xyes; then :
12719   lt_cv_dlopen=shl_load
12720 else
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12722 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12723 if ${ac_cv_lib_dld_shl_load+:} false; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   ac_check_lib_save_LIBS=$LIBS
12727 LIBS="-ldld  $LIBS"
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h.  */
12730
12731 /* Override any GCC internal prototype to avoid an error.
12732    Use char because int might match the return type of a GCC
12733    builtin and then its argument prototype would still apply.  */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 char shl_load ();
12738 int
12739 main ()
12740 {
12741 return shl_load ();
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_link "$LINENO"; then :
12747   ac_cv_lib_dld_shl_load=yes
12748 else
12749   ac_cv_lib_dld_shl_load=no
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext \
12752     conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12756 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12757 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12758   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12759 else
12760   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12761 if test "x$ac_cv_func_dlopen" = xyes; then :
12762   lt_cv_dlopen=dlopen
12763 else
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12765 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12766 if ${ac_cv_lib_dl_dlopen+:} false; then :
12767   $as_echo_n "(cached) " >&6
12768 else
12769   ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-ldl  $LIBS"
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h.  */
12773
12774 /* Override any GCC internal prototype to avoid an error.
12775    Use char because int might match the return type of a GCC
12776    builtin and then its argument prototype would still apply.  */
12777 #ifdef __cplusplus
12778 extern "C"
12779 #endif
12780 char dlopen ();
12781 int
12782 main ()
12783 {
12784 return dlopen ();
12785   ;
12786   return 0;
12787 }
12788 _ACEOF
12789 if ac_fn_c_try_link "$LINENO"; then :
12790   ac_cv_lib_dl_dlopen=yes
12791 else
12792   ac_cv_lib_dl_dlopen=no
12793 fi
12794 rm -f core conftest.err conftest.$ac_objext \
12795     conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12797 fi
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12799 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12800 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12801   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12802 else
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12804 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12805 if ${ac_cv_lib_svld_dlopen+:} false; then :
12806   $as_echo_n "(cached) " >&6
12807 else
12808   ac_check_lib_save_LIBS=$LIBS
12809 LIBS="-lsvld  $LIBS"
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h.  */
12812
12813 /* Override any GCC internal prototype to avoid an error.
12814    Use char because int might match the return type of a GCC
12815    builtin and then its argument prototype would still apply.  */
12816 #ifdef __cplusplus
12817 extern "C"
12818 #endif
12819 char dlopen ();
12820 int
12821 main ()
12822 {
12823 return dlopen ();
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"; then :
12829   ac_cv_lib_svld_dlopen=yes
12830 else
12831   ac_cv_lib_svld_dlopen=no
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext \
12834     conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12838 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12839 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12840   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12841 else
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12843 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12844 if ${ac_cv_lib_dld_dld_link+:} false; then :
12845   $as_echo_n "(cached) " >&6
12846 else
12847   ac_check_lib_save_LIBS=$LIBS
12848 LIBS="-ldld  $LIBS"
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h.  */
12851
12852 /* Override any GCC internal prototype to avoid an error.
12853    Use char because int might match the return type of a GCC
12854    builtin and then its argument prototype would still apply.  */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char dld_link ();
12859 int
12860 main ()
12861 {
12862 return dld_link ();
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_link "$LINENO"; then :
12868   ac_cv_lib_dld_dld_link=yes
12869 else
12870   ac_cv_lib_dld_dld_link=no
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext \
12873     conftest$ac_exeext conftest.$ac_ext
12874 LIBS=$ac_check_lib_save_LIBS
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12877 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12878 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12879   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12880 fi
12881
12882
12883 fi
12884
12885
12886 fi
12887
12888
12889 fi
12890
12891
12892 fi
12893
12894
12895 fi
12896
12897     ;;
12898   esac
12899
12900   if test no = "$lt_cv_dlopen"; then
12901     enable_dlopen=no
12902   else
12903     enable_dlopen=yes
12904   fi
12905
12906   case $lt_cv_dlopen in
12907   dlopen)
12908     save_CPPFLAGS=$CPPFLAGS
12909     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12910
12911     save_LDFLAGS=$LDFLAGS
12912     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12913
12914     save_LIBS=$LIBS
12915     LIBS="$lt_cv_dlopen_libs $LIBS"
12916
12917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12918 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12919 if ${lt_cv_dlopen_self+:} false; then :
12920   $as_echo_n "(cached) " >&6
12921 else
12922           if test yes = "$cross_compiling"; then :
12923   lt_cv_dlopen_self=cross
12924 else
12925   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12926   lt_status=$lt_dlunknown
12927   cat > conftest.$ac_ext <<_LT_EOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12930
12931 #if HAVE_DLFCN_H
12932 #include <dlfcn.h>
12933 #endif
12934
12935 #include <stdio.h>
12936
12937 #ifdef RTLD_GLOBAL
12938 #  define LT_DLGLOBAL           RTLD_GLOBAL
12939 #else
12940 #  ifdef DL_GLOBAL
12941 #    define LT_DLGLOBAL         DL_GLOBAL
12942 #  else
12943 #    define LT_DLGLOBAL         0
12944 #  endif
12945 #endif
12946
12947 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12948    find out it does not work in some platform. */
12949 #ifndef LT_DLLAZY_OR_NOW
12950 #  ifdef RTLD_LAZY
12951 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12952 #  else
12953 #    ifdef DL_LAZY
12954 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12955 #    else
12956 #      ifdef RTLD_NOW
12957 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12958 #      else
12959 #        ifdef DL_NOW
12960 #          define LT_DLLAZY_OR_NOW      DL_NOW
12961 #        else
12962 #          define LT_DLLAZY_OR_NOW      0
12963 #        endif
12964 #      endif
12965 #    endif
12966 #  endif
12967 #endif
12968
12969 /* When -fvisibility=hidden is used, assume the code has been annotated
12970    correspondingly for the symbols needed.  */
12971 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12972 int fnord () __attribute__((visibility("default")));
12973 #endif
12974
12975 int fnord () { return 42; }
12976 int main ()
12977 {
12978   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12979   int status = $lt_dlunknown;
12980
12981   if (self)
12982     {
12983       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12984       else
12985         {
12986           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12987           else puts (dlerror ());
12988         }
12989       /* dlclose (self); */
12990     }
12991   else
12992     puts (dlerror ());
12993
12994   return status;
12995 }
12996 _LT_EOF
12997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12998   (eval $ac_link) 2>&5
12999   ac_status=$?
13000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13002     (./conftest; exit; ) >&5 2>/dev/null
13003     lt_status=$?
13004     case x$lt_status in
13005       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13006       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13007       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13008     esac
13009   else :
13010     # compilation failed
13011     lt_cv_dlopen_self=no
13012   fi
13013 fi
13014 rm -fr conftest*
13015
13016
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13019 $as_echo "$lt_cv_dlopen_self" >&6; }
13020
13021     if test yes = "$lt_cv_dlopen_self"; then
13022       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13023       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13024 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13025 if ${lt_cv_dlopen_self_static+:} false; then :
13026   $as_echo_n "(cached) " >&6
13027 else
13028           if test yes = "$cross_compiling"; then :
13029   lt_cv_dlopen_self_static=cross
13030 else
13031   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13032   lt_status=$lt_dlunknown
13033   cat > conftest.$ac_ext <<_LT_EOF
13034 #line $LINENO "configure"
13035 #include "confdefs.h"
13036
13037 #if HAVE_DLFCN_H
13038 #include <dlfcn.h>
13039 #endif
13040
13041 #include <stdio.h>
13042
13043 #ifdef RTLD_GLOBAL
13044 #  define LT_DLGLOBAL           RTLD_GLOBAL
13045 #else
13046 #  ifdef DL_GLOBAL
13047 #    define LT_DLGLOBAL         DL_GLOBAL
13048 #  else
13049 #    define LT_DLGLOBAL         0
13050 #  endif
13051 #endif
13052
13053 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13054    find out it does not work in some platform. */
13055 #ifndef LT_DLLAZY_OR_NOW
13056 #  ifdef RTLD_LAZY
13057 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13058 #  else
13059 #    ifdef DL_LAZY
13060 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13061 #    else
13062 #      ifdef RTLD_NOW
13063 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13064 #      else
13065 #        ifdef DL_NOW
13066 #          define LT_DLLAZY_OR_NOW      DL_NOW
13067 #        else
13068 #          define LT_DLLAZY_OR_NOW      0
13069 #        endif
13070 #      endif
13071 #    endif
13072 #  endif
13073 #endif
13074
13075 /* When -fvisibility=hidden is used, assume the code has been annotated
13076    correspondingly for the symbols needed.  */
13077 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13078 int fnord () __attribute__((visibility("default")));
13079 #endif
13080
13081 int fnord () { return 42; }
13082 int main ()
13083 {
13084   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13085   int status = $lt_dlunknown;
13086
13087   if (self)
13088     {
13089       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13090       else
13091         {
13092           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13093           else puts (dlerror ());
13094         }
13095       /* dlclose (self); */
13096     }
13097   else
13098     puts (dlerror ());
13099
13100   return status;
13101 }
13102 _LT_EOF
13103   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13104   (eval $ac_link) 2>&5
13105   ac_status=$?
13106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13108     (./conftest; exit; ) >&5 2>/dev/null
13109     lt_status=$?
13110     case x$lt_status in
13111       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13112       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13113       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13114     esac
13115   else :
13116     # compilation failed
13117     lt_cv_dlopen_self_static=no
13118   fi
13119 fi
13120 rm -fr conftest*
13121
13122
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13125 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13126     fi
13127
13128     CPPFLAGS=$save_CPPFLAGS
13129     LDFLAGS=$save_LDFLAGS
13130     LIBS=$save_LIBS
13131     ;;
13132   esac
13133
13134   case $lt_cv_dlopen_self in
13135   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13136   *) enable_dlopen_self=unknown ;;
13137   esac
13138
13139   case $lt_cv_dlopen_self_static in
13140   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13141   *) enable_dlopen_self_static=unknown ;;
13142   esac
13143 fi
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161 striplib=
13162 old_striplib=
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13164 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13165 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13166   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13167   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13169 $as_echo "yes" >&6; }
13170 else
13171 # FIXME - insert some real tests, host_os isn't really good enough
13172   case $host_os in
13173   darwin*)
13174     if test -n "$STRIP"; then
13175       striplib="$STRIP -x"
13176       old_striplib="$STRIP -S"
13177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13178 $as_echo "yes" >&6; }
13179     else
13180       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182     fi
13183     ;;
13184   *)
13185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187     ;;
13188   esac
13189 fi
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202   # Report what library types will actually be built
13203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13204 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13206 $as_echo "$can_build_shared" >&6; }
13207
13208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13209 $as_echo_n "checking whether to build shared libraries... " >&6; }
13210   test no = "$can_build_shared" && enable_shared=no
13211
13212   # On AIX, shared libraries and static libraries use the same namespace, and
13213   # are all built from PIC.
13214   case $host_os in
13215   aix3*)
13216     test yes = "$enable_shared" && enable_static=no
13217     if test -n "$RANLIB"; then
13218       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13219       postinstall_cmds='$RANLIB $lib'
13220     fi
13221     ;;
13222
13223   aix[4-9]*)
13224     if test ia64 != "$host_cpu"; then
13225       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13226       yes,aix,yes) ;;                   # shared object as lib.so file only
13227       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13228       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13229       esac
13230     fi
13231     ;;
13232   esac
13233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13234 $as_echo "$enable_shared" >&6; }
13235
13236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13237 $as_echo_n "checking whether to build static libraries... " >&6; }
13238   # Make sure either enable_shared or enable_static is yes.
13239   test yes = "$enable_shared" || enable_static=yes
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13241 $as_echo "$enable_static" >&6; }
13242
13243
13244
13245
13246 fi
13247 ac_ext=c
13248 ac_cpp='$CPP $CPPFLAGS'
13249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13252
13253 CC=$lt_save_CC
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269         ac_config_commands="$ac_config_commands libtool"
13270
13271
13272
13273
13274 # Only expand once:
13275
13276
13277
13278
13279 LIBT_CURRENT=12
13280 LIBT_REVISION=1
13281
13282
13283 LIBT_AGE=11
13284
13285 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
13286
13287
13288 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
13289
13290
13291 PKGCONFIG_REQUIRES=
13292 PKGCONFIG_REQUIRES_PRIVATELY=
13293
13294 case "$host" in
13295   *-*-mingw*)
13296     os_win32=yes
13297     ;;
13298   *)
13299     os_win32=no
13300 esac
13301  if test "$os_win32" = "yes"; then
13302   OS_WIN32_TRUE=
13303   OS_WIN32_FALSE='#'
13304 else
13305   OS_WIN32_TRUE='#'
13306   OS_WIN32_FALSE=
13307 fi
13308
13309
13310 GETTEXT_PACKAGE=$PACKAGE
13311
13312
13313 cat >>confdefs.h <<_ACEOF
13314 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13315 _ACEOF
13316
13317
13318
13319
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13321 $as_echo_n "checking whether NLS is requested... " >&6; }
13322     # Check whether --enable-nls was given.
13323 if test "${enable_nls+set}" = set; then :
13324   enableval=$enable_nls; USE_NLS=$enableval
13325 else
13326   USE_NLS=yes
13327 fi
13328
13329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13330 $as_echo "$USE_NLS" >&6; }
13331
13332
13333
13334
13335       GETTEXT_MACRO_VERSION=0.19
13336
13337
13338
13339
13340 # Prepare PATH_SEPARATOR.
13341 # The user is always right.
13342 if test "${PATH_SEPARATOR+set}" != set; then
13343   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13344   # contains only /bin. Note that ksh looks also at the FPATH variable,
13345   # so we have to set that as well for the test.
13346   PATH_SEPARATOR=:
13347   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13348     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13349            || PATH_SEPARATOR=';'
13350        }
13351 fi
13352
13353 # Find out how to test for executable files. Don't use a zero-byte file,
13354 # as systems may use methods other than mode bits to determine executability.
13355 cat >conf$$.file <<_ASEOF
13356 #! /bin/sh
13357 exit 0
13358 _ASEOF
13359 chmod +x conf$$.file
13360 if test -x conf$$.file >/dev/null 2>&1; then
13361   ac_executable_p="test -x"
13362 else
13363   ac_executable_p="test -f"
13364 fi
13365 rm -f conf$$.file
13366
13367 # Extract the first word of "msgfmt", so it can be a program name with args.
13368 set dummy msgfmt; ac_word=$2
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370 $as_echo_n "checking for $ac_word... " >&6; }
13371 if ${ac_cv_path_MSGFMT+:} false; then :
13372   $as_echo_n "(cached) " >&6
13373 else
13374   case "$MSGFMT" in
13375   [\\/]* | ?:[\\/]*)
13376     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13377     ;;
13378   *)
13379     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13380     for ac_dir in $PATH; do
13381       IFS="$ac_save_IFS"
13382       test -z "$ac_dir" && ac_dir=.
13383       for ac_exec_ext in '' $ac_executable_extensions; do
13384         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13385           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13386           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13387      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13388             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13389             break 2
13390           fi
13391         fi
13392       done
13393     done
13394     IFS="$ac_save_IFS"
13395   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13396     ;;
13397 esac
13398 fi
13399 MSGFMT="$ac_cv_path_MSGFMT"
13400 if test "$MSGFMT" != ":"; then
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13402 $as_echo "$MSGFMT" >&6; }
13403 else
13404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13406 fi
13407
13408   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13409 set dummy gmsgfmt; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if ${ac_cv_path_GMSGFMT+:} false; then :
13413   $as_echo_n "(cached) " >&6
13414 else
13415   case $GMSGFMT in
13416   [\\/]* | ?:[\\/]*)
13417   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13418   ;;
13419   *)
13420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13422 do
13423   IFS=$as_save_IFS
13424   test -z "$as_dir" && as_dir=.
13425     for ac_exec_ext in '' $ac_executable_extensions; do
13426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429     break 2
13430   fi
13431 done
13432   done
13433 IFS=$as_save_IFS
13434
13435   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13436   ;;
13437 esac
13438 fi
13439 GMSGFMT=$ac_cv_path_GMSGFMT
13440 if test -n "$GMSGFMT"; then
13441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13442 $as_echo "$GMSGFMT" >&6; }
13443 else
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13446 fi
13447
13448
13449
13450     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13451     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13452     *) MSGFMT_015=$MSGFMT ;;
13453   esac
13454
13455   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13456     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13457     *) GMSGFMT_015=$GMSGFMT ;;
13458   esac
13459
13460
13461
13462 # Prepare PATH_SEPARATOR.
13463 # The user is always right.
13464 if test "${PATH_SEPARATOR+set}" != set; then
13465   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13466   # contains only /bin. Note that ksh looks also at the FPATH variable,
13467   # so we have to set that as well for the test.
13468   PATH_SEPARATOR=:
13469   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13470     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13471            || PATH_SEPARATOR=';'
13472        }
13473 fi
13474
13475 # Find out how to test for executable files. Don't use a zero-byte file,
13476 # as systems may use methods other than mode bits to determine executability.
13477 cat >conf$$.file <<_ASEOF
13478 #! /bin/sh
13479 exit 0
13480 _ASEOF
13481 chmod +x conf$$.file
13482 if test -x conf$$.file >/dev/null 2>&1; then
13483   ac_executable_p="test -x"
13484 else
13485   ac_executable_p="test -f"
13486 fi
13487 rm -f conf$$.file
13488
13489 # Extract the first word of "xgettext", so it can be a program name with args.
13490 set dummy xgettext; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_path_XGETTEXT+:} false; then :
13494   $as_echo_n "(cached) " >&6
13495 else
13496   case "$XGETTEXT" in
13497   [\\/]* | ?:[\\/]*)
13498     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13499     ;;
13500   *)
13501     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13502     for ac_dir in $PATH; do
13503       IFS="$ac_save_IFS"
13504       test -z "$ac_dir" && ac_dir=.
13505       for ac_exec_ext in '' $ac_executable_extensions; do
13506         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13507           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13508           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13509      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13510             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13511             break 2
13512           fi
13513         fi
13514       done
13515     done
13516     IFS="$ac_save_IFS"
13517   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13518     ;;
13519 esac
13520 fi
13521 XGETTEXT="$ac_cv_path_XGETTEXT"
13522 if test "$XGETTEXT" != ":"; then
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13524 $as_echo "$XGETTEXT" >&6; }
13525 else
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529
13530     rm -f messages.po
13531
13532     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13533     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13534     *) XGETTEXT_015=$XGETTEXT ;;
13535   esac
13536
13537
13538
13539 # Prepare PATH_SEPARATOR.
13540 # The user is always right.
13541 if test "${PATH_SEPARATOR+set}" != set; then
13542   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13543   # contains only /bin. Note that ksh looks also at the FPATH variable,
13544   # so we have to set that as well for the test.
13545   PATH_SEPARATOR=:
13546   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13547     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13548            || PATH_SEPARATOR=';'
13549        }
13550 fi
13551
13552 # Find out how to test for executable files. Don't use a zero-byte file,
13553 # as systems may use methods other than mode bits to determine executability.
13554 cat >conf$$.file <<_ASEOF
13555 #! /bin/sh
13556 exit 0
13557 _ASEOF
13558 chmod +x conf$$.file
13559 if test -x conf$$.file >/dev/null 2>&1; then
13560   ac_executable_p="test -x"
13561 else
13562   ac_executable_p="test -f"
13563 fi
13564 rm -f conf$$.file
13565
13566 # Extract the first word of "msgmerge", so it can be a program name with args.
13567 set dummy msgmerge; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_path_MSGMERGE+:} false; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   case "$MSGMERGE" in
13574   [\\/]* | ?:[\\/]*)
13575     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13576     ;;
13577   *)
13578     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13579     for ac_dir in $PATH; do
13580       IFS="$ac_save_IFS"
13581       test -z "$ac_dir" && ac_dir=.
13582       for ac_exec_ext in '' $ac_executable_extensions; do
13583         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13584           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13585           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13586             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13587             break 2
13588           fi
13589         fi
13590       done
13591     done
13592     IFS="$ac_save_IFS"
13593   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13594     ;;
13595 esac
13596 fi
13597 MSGMERGE="$ac_cv_path_MSGMERGE"
13598 if test "$MSGMERGE" != ":"; then
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13600 $as_echo "$MSGMERGE" >&6; }
13601 else
13602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13604 fi
13605
13606
13607         test -n "$localedir" || localedir='${datadir}/locale'
13608
13609
13610     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13611
13612
13613   ac_config_commands="$ac_config_commands po-directories"
13614
13615
13616
13617       if test "X$prefix" = "XNONE"; then
13618     acl_final_prefix="$ac_default_prefix"
13619   else
13620     acl_final_prefix="$prefix"
13621   fi
13622   if test "X$exec_prefix" = "XNONE"; then
13623     acl_final_exec_prefix='${prefix}'
13624   else
13625     acl_final_exec_prefix="$exec_prefix"
13626   fi
13627   acl_save_prefix="$prefix"
13628   prefix="$acl_final_prefix"
13629   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13630   prefix="$acl_save_prefix"
13631
13632
13633
13634 # Check whether --with-gnu-ld was given.
13635 if test "${with_gnu_ld+set}" = set; then :
13636   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13637 else
13638   with_gnu_ld=no
13639 fi
13640
13641 # Prepare PATH_SEPARATOR.
13642 # The user is always right.
13643 if test "${PATH_SEPARATOR+set}" != set; then
13644   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13645   # contains only /bin. Note that ksh looks also at the FPATH variable,
13646   # so we have to set that as well for the test.
13647   PATH_SEPARATOR=:
13648   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13649     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13650            || PATH_SEPARATOR=';'
13651        }
13652 fi
13653
13654 ac_prog=ld
13655 if test "$GCC" = yes; then
13656   # Check if gcc -print-prog-name=ld gives a path.
13657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13658 $as_echo_n "checking for ld used by $CC... " >&6; }
13659   case $host in
13660   *-*-mingw*)
13661     # gcc leaves a trailing carriage return which upsets mingw
13662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13663   *)
13664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13665   esac
13666   case $ac_prog in
13667     # Accept absolute paths.
13668     [\\/]* | ?:[\\/]*)
13669       re_direlt='/[^/][^/]*/\.\./'
13670       # Canonicalize the pathname of ld
13671       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13672       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13673         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13674       done
13675       test -z "$LD" && LD="$ac_prog"
13676       ;;
13677   "")
13678     # If it fails, then pretend we aren't using GCC.
13679     ac_prog=ld
13680     ;;
13681   *)
13682     # If it is relative, then search for the first ld in PATH.
13683     with_gnu_ld=unknown
13684     ;;
13685   esac
13686 elif test "$with_gnu_ld" = yes; then
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13688 $as_echo_n "checking for GNU ld... " >&6; }
13689 else
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13691 $as_echo_n "checking for non-GNU ld... " >&6; }
13692 fi
13693 if ${acl_cv_path_LD+:} false; then :
13694   $as_echo_n "(cached) " >&6
13695 else
13696   if test -z "$LD"; then
13697   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13698   for ac_dir in $PATH; do
13699     IFS="$acl_save_ifs"
13700     test -z "$ac_dir" && ac_dir=.
13701     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13702       acl_cv_path_LD="$ac_dir/$ac_prog"
13703       # Check to see if the program is GNU ld.  I'd rather use --version,
13704       # but apparently some variants of GNU ld only accept -v.
13705       # Break only if it was the GNU/non-GNU ld that we prefer.
13706       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13707       *GNU* | *'with BFD'*)
13708         test "$with_gnu_ld" != no && break
13709         ;;
13710       *)
13711         test "$with_gnu_ld" != yes && break
13712         ;;
13713       esac
13714     fi
13715   done
13716   IFS="$acl_save_ifs"
13717 else
13718   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13719 fi
13720 fi
13721
13722 LD="$acl_cv_path_LD"
13723 if test -n "$LD"; then
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13725 $as_echo "$LD" >&6; }
13726 else
13727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 fi
13730 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13732 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13733 if ${acl_cv_prog_gnu_ld+:} false; then :
13734   $as_echo_n "(cached) " >&6
13735 else
13736   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13737 case `$LD -v 2>&1 </dev/null` in
13738 *GNU* | *'with BFD'*)
13739   acl_cv_prog_gnu_ld=yes
13740   ;;
13741 *)
13742   acl_cv_prog_gnu_ld=no
13743   ;;
13744 esac
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13747 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13748 with_gnu_ld=$acl_cv_prog_gnu_ld
13749
13750
13751
13752
13753                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13754 $as_echo_n "checking for shared library run path origin... " >&6; }
13755 if ${acl_cv_rpath+:} false; then :
13756   $as_echo_n "(cached) " >&6
13757 else
13758
13759     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13760     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13761     . ./conftest.sh
13762     rm -f ./conftest.sh
13763     acl_cv_rpath=done
13764
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13767 $as_echo "$acl_cv_rpath" >&6; }
13768   wl="$acl_cv_wl"
13769   acl_libext="$acl_cv_libext"
13770   acl_shlibext="$acl_cv_shlibext"
13771   acl_libname_spec="$acl_cv_libname_spec"
13772   acl_library_names_spec="$acl_cv_library_names_spec"
13773   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13774   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13775   acl_hardcode_direct="$acl_cv_hardcode_direct"
13776   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13777     # Check whether --enable-rpath was given.
13778 if test "${enable_rpath+set}" = set; then :
13779   enableval=$enable_rpath; :
13780 else
13781   enable_rpath=yes
13782 fi
13783
13784
13785
13786
13787   acl_libdirstem=lib
13788   acl_libdirstem2=
13789   case "$host_os" in
13790     solaris*)
13791                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13792 $as_echo_n "checking for 64-bit host... " >&6; }
13793 if ${gl_cv_solaris_64bit+:} false; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h.  */
13798
13799 #ifdef _LP64
13800 sixtyfour bits
13801 #endif
13802
13803 _ACEOF
13804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13805   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13806   gl_cv_solaris_64bit=yes
13807 else
13808   gl_cv_solaris_64bit=no
13809 fi
13810 rm -f conftest*
13811
13812
13813 fi
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13815 $as_echo "$gl_cv_solaris_64bit" >&6; }
13816       if test $gl_cv_solaris_64bit = yes; then
13817         acl_libdirstem=lib/64
13818         case "$host_cpu" in
13819           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13820           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13821         esac
13822       fi
13823       ;;
13824     *)
13825       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13826       if test -n "$searchpath"; then
13827         acl_save_IFS="${IFS=    }"; IFS=":"
13828         for searchdir in $searchpath; do
13829           if test -d "$searchdir"; then
13830             case "$searchdir" in
13831               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13832               */../ | */.. )
13833                 # Better ignore directories of this form. They are misleading.
13834                 ;;
13835               *) searchdir=`cd "$searchdir" && pwd`
13836                  case "$searchdir" in
13837                    */lib64 ) acl_libdirstem=lib64 ;;
13838                  esac ;;
13839             esac
13840           fi
13841         done
13842         IFS="$acl_save_IFS"
13843       fi
13844       ;;
13845   esac
13846   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859     use_additional=yes
13860
13861   acl_save_prefix="$prefix"
13862   prefix="$acl_final_prefix"
13863   acl_save_exec_prefix="$exec_prefix"
13864   exec_prefix="$acl_final_exec_prefix"
13865
13866     eval additional_includedir=\"$includedir\"
13867     eval additional_libdir=\"$libdir\"
13868
13869   exec_prefix="$acl_save_exec_prefix"
13870   prefix="$acl_save_prefix"
13871
13872
13873 # Check whether --with-libiconv-prefix was given.
13874 if test "${with_libiconv_prefix+set}" = set; then :
13875   withval=$with_libiconv_prefix;
13876     if test "X$withval" = "Xno"; then
13877       use_additional=no
13878     else
13879       if test "X$withval" = "X"; then
13880
13881   acl_save_prefix="$prefix"
13882   prefix="$acl_final_prefix"
13883   acl_save_exec_prefix="$exec_prefix"
13884   exec_prefix="$acl_final_exec_prefix"
13885
13886           eval additional_includedir=\"$includedir\"
13887           eval additional_libdir=\"$libdir\"
13888
13889   exec_prefix="$acl_save_exec_prefix"
13890   prefix="$acl_save_prefix"
13891
13892       else
13893         additional_includedir="$withval/include"
13894         additional_libdir="$withval/$acl_libdirstem"
13895         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13896            && ! test -d "$withval/$acl_libdirstem"; then
13897           additional_libdir="$withval/$acl_libdirstem2"
13898         fi
13899       fi
13900     fi
13901
13902 fi
13903
13904       LIBICONV=
13905   LTLIBICONV=
13906   INCICONV=
13907   LIBICONV_PREFIX=
13908       HAVE_LIBICONV=
13909   rpathdirs=
13910   ltrpathdirs=
13911   names_already_handled=
13912   names_next_round='iconv '
13913   while test -n "$names_next_round"; do
13914     names_this_round="$names_next_round"
13915     names_next_round=
13916     for name in $names_this_round; do
13917       already_handled=
13918       for n in $names_already_handled; do
13919         if test "$n" = "$name"; then
13920           already_handled=yes
13921           break
13922         fi
13923       done
13924       if test -z "$already_handled"; then
13925         names_already_handled="$names_already_handled $name"
13926                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13927         eval value=\"\$HAVE_LIB$uppername\"
13928         if test -n "$value"; then
13929           if test "$value" = yes; then
13930             eval value=\"\$LIB$uppername\"
13931             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13932             eval value=\"\$LTLIB$uppername\"
13933             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13934           else
13935                                     :
13936           fi
13937         else
13938                               found_dir=
13939           found_la=
13940           found_so=
13941           found_a=
13942           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13943           if test -n "$acl_shlibext"; then
13944             shrext=".$acl_shlibext"             # typically: shrext=.so
13945           else
13946             shrext=
13947           fi
13948           if test $use_additional = yes; then
13949             dir="$additional_libdir"
13950                                     if test -n "$acl_shlibext"; then
13951               if test -f "$dir/$libname$shrext"; then
13952                 found_dir="$dir"
13953                 found_so="$dir/$libname$shrext"
13954               else
13955                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13956                   ver=`(cd "$dir" && \
13957                         for f in "$libname$shrext".*; do echo "$f"; done \
13958                         | sed -e "s,^$libname$shrext\\\\.,," \
13959                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13960                         | sed 1q ) 2>/dev/null`
13961                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13962                     found_dir="$dir"
13963                     found_so="$dir/$libname$shrext.$ver"
13964                   fi
13965                 else
13966                   eval library_names=\"$acl_library_names_spec\"
13967                   for f in $library_names; do
13968                     if test -f "$dir/$f"; then
13969                       found_dir="$dir"
13970                       found_so="$dir/$f"
13971                       break
13972                     fi
13973                   done
13974                 fi
13975               fi
13976             fi
13977                         if test "X$found_dir" = "X"; then
13978               if test -f "$dir/$libname.$acl_libext"; then
13979                 found_dir="$dir"
13980                 found_a="$dir/$libname.$acl_libext"
13981               fi
13982             fi
13983             if test "X$found_dir" != "X"; then
13984               if test -f "$dir/$libname.la"; then
13985                 found_la="$dir/$libname.la"
13986               fi
13987             fi
13988           fi
13989           if test "X$found_dir" = "X"; then
13990             for x in $LDFLAGS $LTLIBICONV; do
13991
13992   acl_save_prefix="$prefix"
13993   prefix="$acl_final_prefix"
13994   acl_save_exec_prefix="$exec_prefix"
13995   exec_prefix="$acl_final_exec_prefix"
13996   eval x=\"$x\"
13997   exec_prefix="$acl_save_exec_prefix"
13998   prefix="$acl_save_prefix"
13999
14000               case "$x" in
14001                 -L*)
14002                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14003                                     if test -n "$acl_shlibext"; then
14004                     if test -f "$dir/$libname$shrext"; then
14005                       found_dir="$dir"
14006                       found_so="$dir/$libname$shrext"
14007                     else
14008                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14009                         ver=`(cd "$dir" && \
14010                               for f in "$libname$shrext".*; do echo "$f"; done \
14011                               | sed -e "s,^$libname$shrext\\\\.,," \
14012                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14013                               | sed 1q ) 2>/dev/null`
14014                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14015                           found_dir="$dir"
14016                           found_so="$dir/$libname$shrext.$ver"
14017                         fi
14018                       else
14019                         eval library_names=\"$acl_library_names_spec\"
14020                         for f in $library_names; do
14021                           if test -f "$dir/$f"; then
14022                             found_dir="$dir"
14023                             found_so="$dir/$f"
14024                             break
14025                           fi
14026                         done
14027                       fi
14028                     fi
14029                   fi
14030                                     if test "X$found_dir" = "X"; then
14031                     if test -f "$dir/$libname.$acl_libext"; then
14032                       found_dir="$dir"
14033                       found_a="$dir/$libname.$acl_libext"
14034                     fi
14035                   fi
14036                   if test "X$found_dir" != "X"; then
14037                     if test -f "$dir/$libname.la"; then
14038                       found_la="$dir/$libname.la"
14039                     fi
14040                   fi
14041                   ;;
14042               esac
14043               if test "X$found_dir" != "X"; then
14044                 break
14045               fi
14046             done
14047           fi
14048           if test "X$found_dir" != "X"; then
14049                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14050             if test "X$found_so" != "X"; then
14051                                                         if test "$enable_rpath" = no \
14052                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14053                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14054                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14055               else
14056                                                                                 haveit=
14057                 for x in $ltrpathdirs; do
14058                   if test "X$x" = "X$found_dir"; then
14059                     haveit=yes
14060                     break
14061                   fi
14062                 done
14063                 if test -z "$haveit"; then
14064                   ltrpathdirs="$ltrpathdirs $found_dir"
14065                 fi
14066                                 if test "$acl_hardcode_direct" = yes; then
14067                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14068                 else
14069                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14070                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14071                                                             haveit=
14072                     for x in $rpathdirs; do
14073                       if test "X$x" = "X$found_dir"; then
14074                         haveit=yes
14075                         break
14076                       fi
14077                     done
14078                     if test -z "$haveit"; then
14079                       rpathdirs="$rpathdirs $found_dir"
14080                     fi
14081                   else
14082                                                                                 haveit=
14083                     for x in $LDFLAGS $LIBICONV; do
14084
14085   acl_save_prefix="$prefix"
14086   prefix="$acl_final_prefix"
14087   acl_save_exec_prefix="$exec_prefix"
14088   exec_prefix="$acl_final_exec_prefix"
14089   eval x=\"$x\"
14090   exec_prefix="$acl_save_exec_prefix"
14091   prefix="$acl_save_prefix"
14092
14093                       if test "X$x" = "X-L$found_dir"; then
14094                         haveit=yes
14095                         break
14096                       fi
14097                     done
14098                     if test -z "$haveit"; then
14099                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14100                     fi
14101                     if test "$acl_hardcode_minus_L" != no; then
14102                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14103                     else
14104                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14105                     fi
14106                   fi
14107                 fi
14108               fi
14109             else
14110               if test "X$found_a" != "X"; then
14111                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14112               else
14113                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14114               fi
14115             fi
14116                         additional_includedir=
14117             case "$found_dir" in
14118               */$acl_libdirstem | */$acl_libdirstem/)
14119                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14120                 if test "$name" = 'iconv'; then
14121                   LIBICONV_PREFIX="$basedir"
14122                 fi
14123                 additional_includedir="$basedir/include"
14124                 ;;
14125               */$acl_libdirstem2 | */$acl_libdirstem2/)
14126                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14127                 if test "$name" = 'iconv'; then
14128                   LIBICONV_PREFIX="$basedir"
14129                 fi
14130                 additional_includedir="$basedir/include"
14131                 ;;
14132             esac
14133             if test "X$additional_includedir" != "X"; then
14134                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14135                 haveit=
14136                 if test "X$additional_includedir" = "X/usr/local/include"; then
14137                   if test -n "$GCC"; then
14138                     case $host_os in
14139                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14140                     esac
14141                   fi
14142                 fi
14143                 if test -z "$haveit"; then
14144                   for x in $CPPFLAGS $INCICONV; do
14145
14146   acl_save_prefix="$prefix"
14147   prefix="$acl_final_prefix"
14148   acl_save_exec_prefix="$exec_prefix"
14149   exec_prefix="$acl_final_exec_prefix"
14150   eval x=\"$x\"
14151   exec_prefix="$acl_save_exec_prefix"
14152   prefix="$acl_save_prefix"
14153
14154                     if test "X$x" = "X-I$additional_includedir"; then
14155                       haveit=yes
14156                       break
14157                     fi
14158                   done
14159                   if test -z "$haveit"; then
14160                     if test -d "$additional_includedir"; then
14161                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14162                     fi
14163                   fi
14164                 fi
14165               fi
14166             fi
14167                         if test -n "$found_la"; then
14168                                                         save_libdir="$libdir"
14169               case "$found_la" in
14170                 */* | *\\*) . "$found_la" ;;
14171                 *) . "./$found_la" ;;
14172               esac
14173               libdir="$save_libdir"
14174                             for dep in $dependency_libs; do
14175                 case "$dep" in
14176                   -L*)
14177                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14178                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14179                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14180                       haveit=
14181                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14182                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14183                         if test -n "$GCC"; then
14184                           case $host_os in
14185                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14186                           esac
14187                         fi
14188                       fi
14189                       if test -z "$haveit"; then
14190                         haveit=
14191                         for x in $LDFLAGS $LIBICONV; do
14192
14193   acl_save_prefix="$prefix"
14194   prefix="$acl_final_prefix"
14195   acl_save_exec_prefix="$exec_prefix"
14196   exec_prefix="$acl_final_exec_prefix"
14197   eval x=\"$x\"
14198   exec_prefix="$acl_save_exec_prefix"
14199   prefix="$acl_save_prefix"
14200
14201                           if test "X$x" = "X-L$additional_libdir"; then
14202                             haveit=yes
14203                             break
14204                           fi
14205                         done
14206                         if test -z "$haveit"; then
14207                           if test -d "$additional_libdir"; then
14208                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14209                           fi
14210                         fi
14211                         haveit=
14212                         for x in $LDFLAGS $LTLIBICONV; do
14213
14214   acl_save_prefix="$prefix"
14215   prefix="$acl_final_prefix"
14216   acl_save_exec_prefix="$exec_prefix"
14217   exec_prefix="$acl_final_exec_prefix"
14218   eval x=\"$x\"
14219   exec_prefix="$acl_save_exec_prefix"
14220   prefix="$acl_save_prefix"
14221
14222                           if test "X$x" = "X-L$additional_libdir"; then
14223                             haveit=yes
14224                             break
14225                           fi
14226                         done
14227                         if test -z "$haveit"; then
14228                           if test -d "$additional_libdir"; then
14229                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14230                           fi
14231                         fi
14232                       fi
14233                     fi
14234                     ;;
14235                   -R*)
14236                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14237                     if test "$enable_rpath" != no; then
14238                                                                   haveit=
14239                       for x in $rpathdirs; do
14240                         if test "X$x" = "X$dir"; then
14241                           haveit=yes
14242                           break
14243                         fi
14244                       done
14245                       if test -z "$haveit"; then
14246                         rpathdirs="$rpathdirs $dir"
14247                       fi
14248                                                                   haveit=
14249                       for x in $ltrpathdirs; do
14250                         if test "X$x" = "X$dir"; then
14251                           haveit=yes
14252                           break
14253                         fi
14254                       done
14255                       if test -z "$haveit"; then
14256                         ltrpathdirs="$ltrpathdirs $dir"
14257                       fi
14258                     fi
14259                     ;;
14260                   -l*)
14261                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14262                     ;;
14263                   *.la)
14264                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14265                     ;;
14266                   *)
14267                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14268                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14269                     ;;
14270                 esac
14271               done
14272             fi
14273           else
14274                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14275             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14276           fi
14277         fi
14278       fi
14279     done
14280   done
14281   if test "X$rpathdirs" != "X"; then
14282     if test -n "$acl_hardcode_libdir_separator"; then
14283                         alldirs=
14284       for found_dir in $rpathdirs; do
14285         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14286       done
14287             acl_save_libdir="$libdir"
14288       libdir="$alldirs"
14289       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14290       libdir="$acl_save_libdir"
14291       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14292     else
14293             for found_dir in $rpathdirs; do
14294         acl_save_libdir="$libdir"
14295         libdir="$found_dir"
14296         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14297         libdir="$acl_save_libdir"
14298         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14299       done
14300     fi
14301   fi
14302   if test "X$ltrpathdirs" != "X"; then
14303             for found_dir in $ltrpathdirs; do
14304       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14305     done
14306   fi
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14339 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14340 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14341   $as_echo_n "(cached) " >&6
14342 else
14343   gt_save_LIBS="$LIBS"
14344      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14345      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h.  */
14347 #include <CoreFoundation/CFPreferences.h>
14348 int
14349 main ()
14350 {
14351 CFPreferencesCopyAppValue(NULL, NULL)
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357   gt_cv_func_CFPreferencesCopyAppValue=yes
14358 else
14359   gt_cv_func_CFPreferencesCopyAppValue=no
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362     conftest$ac_exeext conftest.$ac_ext
14363      LIBS="$gt_save_LIBS"
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14366 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14367   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14368
14369 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14370
14371   fi
14372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14373 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14374 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14375   $as_echo_n "(cached) " >&6
14376 else
14377   gt_save_LIBS="$LIBS"
14378      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14379      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h.  */
14381 #include <CoreFoundation/CFLocale.h>
14382 int
14383 main ()
14384 {
14385 CFLocaleCopyCurrent();
14386   ;
14387   return 0;
14388 }
14389 _ACEOF
14390 if ac_fn_c_try_link "$LINENO"; then :
14391   gt_cv_func_CFLocaleCopyCurrent=yes
14392 else
14393   gt_cv_func_CFLocaleCopyCurrent=no
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext \
14396     conftest$ac_exeext conftest.$ac_ext
14397      LIBS="$gt_save_LIBS"
14398 fi
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14400 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14401   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14402
14403 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14404
14405   fi
14406   INTL_MACOSX_LIBS=
14407   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14408     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14409   fi
14410
14411
14412
14413
14414
14415
14416   LIBINTL=
14417   LTLIBINTL=
14418   POSUB=
14419
14420     case " $gt_needs " in
14421     *" need-formatstring-macros "*) gt_api_version=3 ;;
14422     *" need-ngettext "*) gt_api_version=2 ;;
14423     *) gt_api_version=1 ;;
14424   esac
14425   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14426   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14427
14428     if test "$USE_NLS" = "yes"; then
14429     gt_use_preinstalled_gnugettext=no
14430
14431
14432         if test $gt_api_version -ge 3; then
14433           gt_revision_test_code='
14434 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14435 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14436 #endif
14437 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14438 '
14439         else
14440           gt_revision_test_code=
14441         fi
14442         if test $gt_api_version -ge 2; then
14443           gt_expression_test_code=' + * ngettext ("", "", 0)'
14444         else
14445           gt_expression_test_code=
14446         fi
14447
14448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14449 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14450 if eval \${$gt_func_gnugettext_libc+:} false; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h.  */
14455
14456 #include <libintl.h>
14457 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14458 extern int _nl_msg_cat_cntr;
14459 extern int *_nl_domain_bindings;
14460 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14461 #else
14462 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14463 #endif
14464 $gt_revision_test_code
14465
14466 int
14467 main ()
14468 {
14469
14470 bindtextdomain ("", "");
14471 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14472
14473   ;
14474   return 0;
14475 }
14476 _ACEOF
14477 if ac_fn_c_try_link "$LINENO"; then :
14478   eval "$gt_func_gnugettext_libc=yes"
14479 else
14480   eval "$gt_func_gnugettext_libc=no"
14481 fi
14482 rm -f core conftest.err conftest.$ac_objext \
14483     conftest$ac_exeext conftest.$ac_ext
14484 fi
14485 eval ac_res=\$$gt_func_gnugettext_libc
14486                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14487 $as_echo "$ac_res" >&6; }
14488
14489         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14490
14491
14492
14493
14494
14495           am_save_CPPFLAGS="$CPPFLAGS"
14496
14497   for element in $INCICONV; do
14498     haveit=
14499     for x in $CPPFLAGS; do
14500
14501   acl_save_prefix="$prefix"
14502   prefix="$acl_final_prefix"
14503   acl_save_exec_prefix="$exec_prefix"
14504   exec_prefix="$acl_final_exec_prefix"
14505   eval x=\"$x\"
14506   exec_prefix="$acl_save_exec_prefix"
14507   prefix="$acl_save_prefix"
14508
14509       if test "X$x" = "X$element"; then
14510         haveit=yes
14511         break
14512       fi
14513     done
14514     if test -z "$haveit"; then
14515       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14516     fi
14517   done
14518
14519
14520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14521 $as_echo_n "checking for iconv... " >&6; }
14522 if ${am_cv_func_iconv+:} false; then :
14523   $as_echo_n "(cached) " >&6
14524 else
14525
14526     am_cv_func_iconv="no, consider installing GNU libiconv"
14527     am_cv_lib_iconv=no
14528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h.  */
14530
14531 #include <stdlib.h>
14532 #include <iconv.h>
14533
14534 int
14535 main ()
14536 {
14537 iconv_t cd = iconv_open("","");
14538            iconv(cd,NULL,NULL,NULL,NULL);
14539            iconv_close(cd);
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 if ac_fn_c_try_link "$LINENO"; then :
14545   am_cv_func_iconv=yes
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext \
14548     conftest$ac_exeext conftest.$ac_ext
14549     if test "$am_cv_func_iconv" != yes; then
14550       am_save_LIBS="$LIBS"
14551       LIBS="$LIBS $LIBICONV"
14552       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h.  */
14554
14555 #include <stdlib.h>
14556 #include <iconv.h>
14557
14558 int
14559 main ()
14560 {
14561 iconv_t cd = iconv_open("","");
14562              iconv(cd,NULL,NULL,NULL,NULL);
14563              iconv_close(cd);
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 if ac_fn_c_try_link "$LINENO"; then :
14569   am_cv_lib_iconv=yes
14570         am_cv_func_iconv=yes
14571 fi
14572 rm -f core conftest.err conftest.$ac_objext \
14573     conftest$ac_exeext conftest.$ac_ext
14574       LIBS="$am_save_LIBS"
14575     fi
14576
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14579 $as_echo "$am_cv_func_iconv" >&6; }
14580   if test "$am_cv_func_iconv" = yes; then
14581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14582 $as_echo_n "checking for working iconv... " >&6; }
14583 if ${am_cv_func_iconv_works+:} false; then :
14584   $as_echo_n "(cached) " >&6
14585 else
14586
14587                   am_save_LIBS="$LIBS"
14588       if test $am_cv_lib_iconv = yes; then
14589         LIBS="$LIBS $LIBICONV"
14590       fi
14591       am_cv_func_iconv_works=no
14592       for ac_iconv_const in '' 'const'; do
14593         if test "$cross_compiling" = yes; then :
14594   case "$host_os" in
14595              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14596              *)            am_cv_func_iconv_works="guessing yes" ;;
14597            esac
14598 else
14599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h.  */
14601
14602 #include <iconv.h>
14603 #include <string.h>
14604
14605 #ifndef ICONV_CONST
14606 # define ICONV_CONST $ac_iconv_const
14607 #endif
14608
14609 int
14610 main ()
14611 {
14612 int result = 0;
14613   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14614      returns.  */
14615   {
14616     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14617     if (cd_utf8_to_88591 != (iconv_t)(-1))
14618       {
14619         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14620         char buf[10];
14621         ICONV_CONST char *inptr = input;
14622         size_t inbytesleft = strlen (input);
14623         char *outptr = buf;
14624         size_t outbytesleft = sizeof (buf);
14625         size_t res = iconv (cd_utf8_to_88591,
14626                             &inptr, &inbytesleft,
14627                             &outptr, &outbytesleft);
14628         if (res == 0)
14629           result |= 1;
14630         iconv_close (cd_utf8_to_88591);
14631       }
14632   }
14633   /* Test against Solaris 10 bug: Failures are not distinguishable from
14634      successful returns.  */
14635   {
14636     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14637     if (cd_ascii_to_88591 != (iconv_t)(-1))
14638       {
14639         static ICONV_CONST char input[] = "\263";
14640         char buf[10];
14641         ICONV_CONST char *inptr = input;
14642         size_t inbytesleft = strlen (input);
14643         char *outptr = buf;
14644         size_t outbytesleft = sizeof (buf);
14645         size_t res = iconv (cd_ascii_to_88591,
14646                             &inptr, &inbytesleft,
14647                             &outptr, &outbytesleft);
14648         if (res == 0)
14649           result |= 2;
14650         iconv_close (cd_ascii_to_88591);
14651       }
14652   }
14653   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
14654   {
14655     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14656     if (cd_88591_to_utf8 != (iconv_t)(-1))
14657       {
14658         static ICONV_CONST char input[] = "\304";
14659         static char buf[2] = { (char)0xDE, (char)0xAD };
14660         ICONV_CONST char *inptr = input;
14661         size_t inbytesleft = 1;
14662         char *outptr = buf;
14663         size_t outbytesleft = 1;
14664         size_t res = iconv (cd_88591_to_utf8,
14665                             &inptr, &inbytesleft,
14666                             &outptr, &outbytesleft);
14667         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14668           result |= 4;
14669         iconv_close (cd_88591_to_utf8);
14670       }
14671   }
14672 #if 0 /* This bug could be worked around by the caller.  */
14673   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14674   {
14675     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14676     if (cd_88591_to_utf8 != (iconv_t)(-1))
14677       {
14678         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14679         char buf[50];
14680         ICONV_CONST char *inptr = input;
14681         size_t inbytesleft = strlen (input);
14682         char *outptr = buf;
14683         size_t outbytesleft = sizeof (buf);
14684         size_t res = iconv (cd_88591_to_utf8,
14685                             &inptr, &inbytesleft,
14686                             &outptr, &outbytesleft);
14687         if ((int)res > 0)
14688           result |= 8;
14689         iconv_close (cd_88591_to_utf8);
14690       }
14691   }
14692 #endif
14693   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14694      provided.  */
14695   if (/* Try standardized names.  */
14696       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14697       /* Try IRIX, OSF/1 names.  */
14698       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14699       /* Try AIX names.  */
14700       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14701       /* Try HP-UX names.  */
14702       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14703     result |= 16;
14704   return result;
14705
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 if ac_fn_c_try_run "$LINENO"; then :
14711   am_cv_func_iconv_works=yes
14712 fi
14713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14714   conftest.$ac_objext conftest.beam conftest.$ac_ext
14715 fi
14716
14717         test "$am_cv_func_iconv_works" = no || break
14718       done
14719       LIBS="$am_save_LIBS"
14720
14721 fi
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14723 $as_echo "$am_cv_func_iconv_works" >&6; }
14724     case "$am_cv_func_iconv_works" in
14725       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14726       *)   am_func_iconv=yes ;;
14727     esac
14728   else
14729     am_func_iconv=no am_cv_lib_iconv=no
14730   fi
14731   if test "$am_func_iconv" = yes; then
14732
14733 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14734
14735   fi
14736   if test "$am_cv_lib_iconv" = yes; then
14737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14738 $as_echo_n "checking how to link with libiconv... " >&6; }
14739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14740 $as_echo "$LIBICONV" >&6; }
14741   else
14742             CPPFLAGS="$am_save_CPPFLAGS"
14743     LIBICONV=
14744     LTLIBICONV=
14745   fi
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757     use_additional=yes
14758
14759   acl_save_prefix="$prefix"
14760   prefix="$acl_final_prefix"
14761   acl_save_exec_prefix="$exec_prefix"
14762   exec_prefix="$acl_final_exec_prefix"
14763
14764     eval additional_includedir=\"$includedir\"
14765     eval additional_libdir=\"$libdir\"
14766
14767   exec_prefix="$acl_save_exec_prefix"
14768   prefix="$acl_save_prefix"
14769
14770
14771 # Check whether --with-libintl-prefix was given.
14772 if test "${with_libintl_prefix+set}" = set; then :
14773   withval=$with_libintl_prefix;
14774     if test "X$withval" = "Xno"; then
14775       use_additional=no
14776     else
14777       if test "X$withval" = "X"; then
14778
14779   acl_save_prefix="$prefix"
14780   prefix="$acl_final_prefix"
14781   acl_save_exec_prefix="$exec_prefix"
14782   exec_prefix="$acl_final_exec_prefix"
14783
14784           eval additional_includedir=\"$includedir\"
14785           eval additional_libdir=\"$libdir\"
14786
14787   exec_prefix="$acl_save_exec_prefix"
14788   prefix="$acl_save_prefix"
14789
14790       else
14791         additional_includedir="$withval/include"
14792         additional_libdir="$withval/$acl_libdirstem"
14793         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14794            && ! test -d "$withval/$acl_libdirstem"; then
14795           additional_libdir="$withval/$acl_libdirstem2"
14796         fi
14797       fi
14798     fi
14799
14800 fi
14801
14802       LIBINTL=
14803   LTLIBINTL=
14804   INCINTL=
14805   LIBINTL_PREFIX=
14806       HAVE_LIBINTL=
14807   rpathdirs=
14808   ltrpathdirs=
14809   names_already_handled=
14810   names_next_round='intl '
14811   while test -n "$names_next_round"; do
14812     names_this_round="$names_next_round"
14813     names_next_round=
14814     for name in $names_this_round; do
14815       already_handled=
14816       for n in $names_already_handled; do
14817         if test "$n" = "$name"; then
14818           already_handled=yes
14819           break
14820         fi
14821       done
14822       if test -z "$already_handled"; then
14823         names_already_handled="$names_already_handled $name"
14824                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14825         eval value=\"\$HAVE_LIB$uppername\"
14826         if test -n "$value"; then
14827           if test "$value" = yes; then
14828             eval value=\"\$LIB$uppername\"
14829             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14830             eval value=\"\$LTLIB$uppername\"
14831             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14832           else
14833                                     :
14834           fi
14835         else
14836                               found_dir=
14837           found_la=
14838           found_so=
14839           found_a=
14840           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14841           if test -n "$acl_shlibext"; then
14842             shrext=".$acl_shlibext"             # typically: shrext=.so
14843           else
14844             shrext=
14845           fi
14846           if test $use_additional = yes; then
14847             dir="$additional_libdir"
14848                                     if test -n "$acl_shlibext"; then
14849               if test -f "$dir/$libname$shrext"; then
14850                 found_dir="$dir"
14851                 found_so="$dir/$libname$shrext"
14852               else
14853                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14854                   ver=`(cd "$dir" && \
14855                         for f in "$libname$shrext".*; do echo "$f"; done \
14856                         | sed -e "s,^$libname$shrext\\\\.,," \
14857                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14858                         | sed 1q ) 2>/dev/null`
14859                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14860                     found_dir="$dir"
14861                     found_so="$dir/$libname$shrext.$ver"
14862                   fi
14863                 else
14864                   eval library_names=\"$acl_library_names_spec\"
14865                   for f in $library_names; do
14866                     if test -f "$dir/$f"; then
14867                       found_dir="$dir"
14868                       found_so="$dir/$f"
14869                       break
14870                     fi
14871                   done
14872                 fi
14873               fi
14874             fi
14875                         if test "X$found_dir" = "X"; then
14876               if test -f "$dir/$libname.$acl_libext"; then
14877                 found_dir="$dir"
14878                 found_a="$dir/$libname.$acl_libext"
14879               fi
14880             fi
14881             if test "X$found_dir" != "X"; then
14882               if test -f "$dir/$libname.la"; then
14883                 found_la="$dir/$libname.la"
14884               fi
14885             fi
14886           fi
14887           if test "X$found_dir" = "X"; then
14888             for x in $LDFLAGS $LTLIBINTL; do
14889
14890   acl_save_prefix="$prefix"
14891   prefix="$acl_final_prefix"
14892   acl_save_exec_prefix="$exec_prefix"
14893   exec_prefix="$acl_final_exec_prefix"
14894   eval x=\"$x\"
14895   exec_prefix="$acl_save_exec_prefix"
14896   prefix="$acl_save_prefix"
14897
14898               case "$x" in
14899                 -L*)
14900                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14901                                     if test -n "$acl_shlibext"; then
14902                     if test -f "$dir/$libname$shrext"; then
14903                       found_dir="$dir"
14904                       found_so="$dir/$libname$shrext"
14905                     else
14906                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14907                         ver=`(cd "$dir" && \
14908                               for f in "$libname$shrext".*; do echo "$f"; done \
14909                               | sed -e "s,^$libname$shrext\\\\.,," \
14910                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14911                               | sed 1q ) 2>/dev/null`
14912                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14913                           found_dir="$dir"
14914                           found_so="$dir/$libname$shrext.$ver"
14915                         fi
14916                       else
14917                         eval library_names=\"$acl_library_names_spec\"
14918                         for f in $library_names; do
14919                           if test -f "$dir/$f"; then
14920                             found_dir="$dir"
14921                             found_so="$dir/$f"
14922                             break
14923                           fi
14924                         done
14925                       fi
14926                     fi
14927                   fi
14928                                     if test "X$found_dir" = "X"; then
14929                     if test -f "$dir/$libname.$acl_libext"; then
14930                       found_dir="$dir"
14931                       found_a="$dir/$libname.$acl_libext"
14932                     fi
14933                   fi
14934                   if test "X$found_dir" != "X"; then
14935                     if test -f "$dir/$libname.la"; then
14936                       found_la="$dir/$libname.la"
14937                     fi
14938                   fi
14939                   ;;
14940               esac
14941               if test "X$found_dir" != "X"; then
14942                 break
14943               fi
14944             done
14945           fi
14946           if test "X$found_dir" != "X"; then
14947                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14948             if test "X$found_so" != "X"; then
14949                                                         if test "$enable_rpath" = no \
14950                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14951                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14952                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14953               else
14954                                                                                 haveit=
14955                 for x in $ltrpathdirs; do
14956                   if test "X$x" = "X$found_dir"; then
14957                     haveit=yes
14958                     break
14959                   fi
14960                 done
14961                 if test -z "$haveit"; then
14962                   ltrpathdirs="$ltrpathdirs $found_dir"
14963                 fi
14964                                 if test "$acl_hardcode_direct" = yes; then
14965                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14966                 else
14967                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14968                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14969                                                             haveit=
14970                     for x in $rpathdirs; do
14971                       if test "X$x" = "X$found_dir"; then
14972                         haveit=yes
14973                         break
14974                       fi
14975                     done
14976                     if test -z "$haveit"; then
14977                       rpathdirs="$rpathdirs $found_dir"
14978                     fi
14979                   else
14980                                                                                 haveit=
14981                     for x in $LDFLAGS $LIBINTL; do
14982
14983   acl_save_prefix="$prefix"
14984   prefix="$acl_final_prefix"
14985   acl_save_exec_prefix="$exec_prefix"
14986   exec_prefix="$acl_final_exec_prefix"
14987   eval x=\"$x\"
14988   exec_prefix="$acl_save_exec_prefix"
14989   prefix="$acl_save_prefix"
14990
14991                       if test "X$x" = "X-L$found_dir"; then
14992                         haveit=yes
14993                         break
14994                       fi
14995                     done
14996                     if test -z "$haveit"; then
14997                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14998                     fi
14999                     if test "$acl_hardcode_minus_L" != no; then
15000                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15001                     else
15002                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15003                     fi
15004                   fi
15005                 fi
15006               fi
15007             else
15008               if test "X$found_a" != "X"; then
15009                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15010               else
15011                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15012               fi
15013             fi
15014                         additional_includedir=
15015             case "$found_dir" in
15016               */$acl_libdirstem | */$acl_libdirstem/)
15017                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15018                 if test "$name" = 'intl'; then
15019                   LIBINTL_PREFIX="$basedir"
15020                 fi
15021                 additional_includedir="$basedir/include"
15022                 ;;
15023               */$acl_libdirstem2 | */$acl_libdirstem2/)
15024                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15025                 if test "$name" = 'intl'; then
15026                   LIBINTL_PREFIX="$basedir"
15027                 fi
15028                 additional_includedir="$basedir/include"
15029                 ;;
15030             esac
15031             if test "X$additional_includedir" != "X"; then
15032                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15033                 haveit=
15034                 if test "X$additional_includedir" = "X/usr/local/include"; then
15035                   if test -n "$GCC"; then
15036                     case $host_os in
15037                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15038                     esac
15039                   fi
15040                 fi
15041                 if test -z "$haveit"; then
15042                   for x in $CPPFLAGS $INCINTL; do
15043
15044   acl_save_prefix="$prefix"
15045   prefix="$acl_final_prefix"
15046   acl_save_exec_prefix="$exec_prefix"
15047   exec_prefix="$acl_final_exec_prefix"
15048   eval x=\"$x\"
15049   exec_prefix="$acl_save_exec_prefix"
15050   prefix="$acl_save_prefix"
15051
15052                     if test "X$x" = "X-I$additional_includedir"; then
15053                       haveit=yes
15054                       break
15055                     fi
15056                   done
15057                   if test -z "$haveit"; then
15058                     if test -d "$additional_includedir"; then
15059                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15060                     fi
15061                   fi
15062                 fi
15063               fi
15064             fi
15065                         if test -n "$found_la"; then
15066                                                         save_libdir="$libdir"
15067               case "$found_la" in
15068                 */* | *\\*) . "$found_la" ;;
15069                 *) . "./$found_la" ;;
15070               esac
15071               libdir="$save_libdir"
15072                             for dep in $dependency_libs; do
15073                 case "$dep" in
15074                   -L*)
15075                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15076                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15077                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15078                       haveit=
15079                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15080                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15081                         if test -n "$GCC"; then
15082                           case $host_os in
15083                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15084                           esac
15085                         fi
15086                       fi
15087                       if test -z "$haveit"; then
15088                         haveit=
15089                         for x in $LDFLAGS $LIBINTL; do
15090
15091   acl_save_prefix="$prefix"
15092   prefix="$acl_final_prefix"
15093   acl_save_exec_prefix="$exec_prefix"
15094   exec_prefix="$acl_final_exec_prefix"
15095   eval x=\"$x\"
15096   exec_prefix="$acl_save_exec_prefix"
15097   prefix="$acl_save_prefix"
15098
15099                           if test "X$x" = "X-L$additional_libdir"; then
15100                             haveit=yes
15101                             break
15102                           fi
15103                         done
15104                         if test -z "$haveit"; then
15105                           if test -d "$additional_libdir"; then
15106                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15107                           fi
15108                         fi
15109                         haveit=
15110                         for x in $LDFLAGS $LTLIBINTL; do
15111
15112   acl_save_prefix="$prefix"
15113   prefix="$acl_final_prefix"
15114   acl_save_exec_prefix="$exec_prefix"
15115   exec_prefix="$acl_final_exec_prefix"
15116   eval x=\"$x\"
15117   exec_prefix="$acl_save_exec_prefix"
15118   prefix="$acl_save_prefix"
15119
15120                           if test "X$x" = "X-L$additional_libdir"; then
15121                             haveit=yes
15122                             break
15123                           fi
15124                         done
15125                         if test -z "$haveit"; then
15126                           if test -d "$additional_libdir"; then
15127                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15128                           fi
15129                         fi
15130                       fi
15131                     fi
15132                     ;;
15133                   -R*)
15134                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15135                     if test "$enable_rpath" != no; then
15136                                                                   haveit=
15137                       for x in $rpathdirs; do
15138                         if test "X$x" = "X$dir"; then
15139                           haveit=yes
15140                           break
15141                         fi
15142                       done
15143                       if test -z "$haveit"; then
15144                         rpathdirs="$rpathdirs $dir"
15145                       fi
15146                                                                   haveit=
15147                       for x in $ltrpathdirs; do
15148                         if test "X$x" = "X$dir"; then
15149                           haveit=yes
15150                           break
15151                         fi
15152                       done
15153                       if test -z "$haveit"; then
15154                         ltrpathdirs="$ltrpathdirs $dir"
15155                       fi
15156                     fi
15157                     ;;
15158                   -l*)
15159                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15160                     ;;
15161                   *.la)
15162                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15163                     ;;
15164                   *)
15165                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15166                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15167                     ;;
15168                 esac
15169               done
15170             fi
15171           else
15172                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15173             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15174           fi
15175         fi
15176       fi
15177     done
15178   done
15179   if test "X$rpathdirs" != "X"; then
15180     if test -n "$acl_hardcode_libdir_separator"; then
15181                         alldirs=
15182       for found_dir in $rpathdirs; do
15183         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15184       done
15185             acl_save_libdir="$libdir"
15186       libdir="$alldirs"
15187       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15188       libdir="$acl_save_libdir"
15189       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15190     else
15191             for found_dir in $rpathdirs; do
15192         acl_save_libdir="$libdir"
15193         libdir="$found_dir"
15194         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15195         libdir="$acl_save_libdir"
15196         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15197       done
15198     fi
15199   fi
15200   if test "X$ltrpathdirs" != "X"; then
15201             for found_dir in $ltrpathdirs; do
15202       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15203     done
15204   fi
15205
15206
15207
15208
15209
15210
15211           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15212 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15213 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15214   $as_echo_n "(cached) " >&6
15215 else
15216   gt_save_CPPFLAGS="$CPPFLAGS"
15217             CPPFLAGS="$CPPFLAGS $INCINTL"
15218             gt_save_LIBS="$LIBS"
15219             LIBS="$LIBS $LIBINTL"
15220                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h.  */
15222
15223 #include <libintl.h>
15224 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15225 extern int _nl_msg_cat_cntr;
15226 extern
15227 #ifdef __cplusplus
15228 "C"
15229 #endif
15230 const char *_nl_expand_alias (const char *);
15231 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15232 #else
15233 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15234 #endif
15235 $gt_revision_test_code
15236
15237 int
15238 main ()
15239 {
15240
15241 bindtextdomain ("", "");
15242 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15243
15244   ;
15245   return 0;
15246 }
15247 _ACEOF
15248 if ac_fn_c_try_link "$LINENO"; then :
15249   eval "$gt_func_gnugettext_libintl=yes"
15250 else
15251   eval "$gt_func_gnugettext_libintl=no"
15252 fi
15253 rm -f core conftest.err conftest.$ac_objext \
15254     conftest$ac_exeext conftest.$ac_ext
15255                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15256               LIBS="$LIBS $LIBICONV"
15257               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h.  */
15259
15260 #include <libintl.h>
15261 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15262 extern int _nl_msg_cat_cntr;
15263 extern
15264 #ifdef __cplusplus
15265 "C"
15266 #endif
15267 const char *_nl_expand_alias (const char *);
15268 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15269 #else
15270 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15271 #endif
15272 $gt_revision_test_code
15273
15274 int
15275 main ()
15276 {
15277
15278 bindtextdomain ("", "");
15279 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15280
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286   LIBINTL="$LIBINTL $LIBICONV"
15287                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15288                  eval "$gt_func_gnugettext_libintl=yes"
15289
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext \
15292     conftest$ac_exeext conftest.$ac_ext
15293             fi
15294             CPPFLAGS="$gt_save_CPPFLAGS"
15295             LIBS="$gt_save_LIBS"
15296 fi
15297 eval ac_res=\$$gt_func_gnugettext_libintl
15298                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15299 $as_echo "$ac_res" >&6; }
15300         fi
15301
15302                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15303            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15304                 && test "$PACKAGE" != gettext-runtime \
15305                 && test "$PACKAGE" != gettext-tools; }; then
15306           gt_use_preinstalled_gnugettext=yes
15307         else
15308                     LIBINTL=
15309           LTLIBINTL=
15310           INCINTL=
15311         fi
15312
15313
15314
15315     if test -n "$INTL_MACOSX_LIBS"; then
15316       if test "$gt_use_preinstalled_gnugettext" = "yes" \
15317          || test "$nls_cv_use_gnu_gettext" = "yes"; then
15318                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15319         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15320       fi
15321     fi
15322
15323     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15324        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15325
15326 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15327
15328     else
15329       USE_NLS=no
15330     fi
15331   fi
15332
15333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15334 $as_echo_n "checking whether to use NLS... " >&6; }
15335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15336 $as_echo "$USE_NLS" >&6; }
15337   if test "$USE_NLS" = "yes"; then
15338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15339 $as_echo_n "checking where the gettext function comes from... " >&6; }
15340     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15341       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15342         gt_source="external libintl"
15343       else
15344         gt_source="libc"
15345       fi
15346     else
15347       gt_source="included intl directory"
15348     fi
15349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15350 $as_echo "$gt_source" >&6; }
15351   fi
15352
15353   if test "$USE_NLS" = "yes"; then
15354
15355     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15356       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15358 $as_echo_n "checking how to link with libintl... " >&6; }
15359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15360 $as_echo "$LIBINTL" >&6; }
15361
15362   for element in $INCINTL; do
15363     haveit=
15364     for x in $CPPFLAGS; do
15365
15366   acl_save_prefix="$prefix"
15367   prefix="$acl_final_prefix"
15368   acl_save_exec_prefix="$exec_prefix"
15369   exec_prefix="$acl_final_exec_prefix"
15370   eval x=\"$x\"
15371   exec_prefix="$acl_save_exec_prefix"
15372   prefix="$acl_save_prefix"
15373
15374       if test "X$x" = "X$element"; then
15375         haveit=yes
15376         break
15377       fi
15378     done
15379     if test -z "$haveit"; then
15380       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15381     fi
15382   done
15383
15384       fi
15385
15386
15387 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15388
15389
15390 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15391
15392     fi
15393
15394         POSUB=po
15395   fi
15396
15397
15398
15399     INTLLIBS="$LIBINTL"
15400
15401
15402
15403
15404
15405
15406
15407
15408 if test "$os_win32" = "yes"; then
15409   # Extract the first word of "lib.exe", so it can be a program name with args.
15410 set dummy lib.exe; ac_word=$2
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15412 $as_echo_n "checking for $ac_word... " >&6; }
15413 if ${ac_cv_prog_ms_librarian+:} false; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   if test -n "$ms_librarian"; then
15417   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
15418 else
15419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15420 for as_dir in $PATH
15421 do
15422   IFS=$as_save_IFS
15423   test -z "$as_dir" && as_dir=.
15424     for ac_exec_ext in '' $ac_executable_extensions; do
15425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15426     ac_cv_prog_ms_librarian="yes"
15427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15428     break 2
15429   fi
15430 done
15431   done
15432 IFS=$as_save_IFS
15433
15434   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
15435 fi
15436 fi
15437 ms_librarian=$ac_cv_prog_ms_librarian
15438 if test -n "$ms_librarian"; then
15439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
15440 $as_echo "$ms_librarian" >&6; }
15441 else
15442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 $as_echo "no" >&6; }
15444 fi
15445
15446
15447 fi
15448  if test x$ms_librarian = xyes; then
15449   MS_LIB_AVAILABLE_TRUE=
15450   MS_LIB_AVAILABLE_FALSE='#'
15451 else
15452   MS_LIB_AVAILABLE_TRUE='#'
15453   MS_LIB_AVAILABLE_FALSE=
15454 fi
15455
15456
15457 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
15458 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
15459   SUNCC="yes"
15460 else
15461   SUNCC="no"
15462 fi
15463
15464 WARN_CFLAGS=""
15465 WARNING_CPP_DIRECTIVE="no"
15466 if test "x$GCC" = "xyes"; then
15467         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
15468         -Wmissing-prototypes -Wmissing-declarations \
15469         -Wnested-externs -fno-strict-aliasing"
15470         WARNING_CPP_DIRECTIVE="yes"
15471 elif test "x$SUNCC" = "xyes"; then
15472         WARN_CFLAGS="-v -fd"
15473         WARNING_CPP_DIRECTIVE="yes"
15474 fi
15475 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
15476
15477 cat >>confdefs.h <<_ACEOF
15478 #define HAVE_WARNING_CPP_DIRECTIVE 1
15479 _ACEOF
15480
15481 fi
15482
15483
15484
15485
15486 # Put a plausible default for CC_FOR_BUILD in Makefile.
15487 if test -z "$CC_FOR_BUILD"; then
15488   if test "x$cross_compiling" = "xno"; then
15489     CC_FOR_BUILD='$(CC)'
15490   else
15491     CC_FOR_BUILD=gcc
15492   fi
15493 fi
15494
15495 # Also set EXEEXT_FOR_BUILD.
15496 if test "x$cross_compiling" = "xno"; then
15497   EXEEXT_FOR_BUILD='$(EXEEXT)'
15498 else
15499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
15500 $as_echo_n "checking for build system executable suffix... " >&6; }
15501 if ${bfd_cv_build_exeext+:} false; then :
15502   $as_echo_n "(cached) " >&6
15503 else
15504   rm -f conftest*
15505      echo 'int main () { return 0; }' > conftest.c
15506      bfd_cv_build_exeext=
15507      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
15508      for file in conftest.*; do
15509        case $file in
15510        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
15511        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
15512        esac
15513      done
15514      rm -f conftest*
15515      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
15518 $as_echo "$bfd_cv_build_exeext" >&6; }
15519   EXEEXT_FOR_BUILD=""
15520   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
15521 fi
15522
15523
15524  if test $cross_compiling = yes; then
15525   CROSS_COMPILING_TRUE=
15526   CROSS_COMPILING_FALSE='#'
15527 else
15528   CROSS_COMPILING_TRUE='#'
15529   CROSS_COMPILING_FALSE=
15530 fi
15531
15532  if test "$enable_shared" = "yes"; then
15533   ENABLE_SHARED_TRUE=
15534   ENABLE_SHARED_FALSE='#'
15535 else
15536   ENABLE_SHARED_TRUE='#'
15537   ENABLE_SHARED_FALSE=
15538 fi
15539
15540
15541
15542
15543 # Check whether --with-arch was given.
15544 if test "${with_arch+set}" = set; then :
15545   withval=$with_arch; arch="$withval"
15546 else
15547   arch=auto
15548 fi
15549
15550
15551 if test "x$arch" != xauto; then
15552
15553 cat >>confdefs.h <<_ACEOF
15554 #define FC_ARCHITECTURE "$arch"
15555 _ACEOF
15556
15557 fi
15558
15559
15560
15561 # Checks for header files.
15562 ac_header_dirent=no
15563 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15564   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15566 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15567 if eval \${$as_ac_Header+:} false; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h.  */
15572 #include <sys/types.h>
15573 #include <$ac_hdr>
15574
15575 int
15576 main ()
15577 {
15578 if ((DIR *) 0)
15579 return 0;
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585   eval "$as_ac_Header=yes"
15586 else
15587   eval "$as_ac_Header=no"
15588 fi
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 fi
15591 eval ac_res=\$$as_ac_Header
15592                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15593 $as_echo "$ac_res" >&6; }
15594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15595   cat >>confdefs.h <<_ACEOF
15596 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15597 _ACEOF
15598
15599 ac_header_dirent=$ac_hdr; break
15600 fi
15601
15602 done
15603 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15604 if test $ac_header_dirent = dirent.h; then
15605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15606 $as_echo_n "checking for library containing opendir... " >&6; }
15607 if ${ac_cv_search_opendir+:} false; then :
15608   $as_echo_n "(cached) " >&6
15609 else
15610   ac_func_search_save_LIBS=$LIBS
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h.  */
15613
15614 /* Override any GCC internal prototype to avoid an error.
15615    Use char because int might match the return type of a GCC
15616    builtin and then its argument prototype would still apply.  */
15617 #ifdef __cplusplus
15618 extern "C"
15619 #endif
15620 char opendir ();
15621 int
15622 main ()
15623 {
15624 return opendir ();
15625   ;
15626   return 0;
15627 }
15628 _ACEOF
15629 for ac_lib in '' dir; do
15630   if test -z "$ac_lib"; then
15631     ac_res="none required"
15632   else
15633     ac_res=-l$ac_lib
15634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15635   fi
15636   if ac_fn_c_try_link "$LINENO"; then :
15637   ac_cv_search_opendir=$ac_res
15638 fi
15639 rm -f core conftest.err conftest.$ac_objext \
15640     conftest$ac_exeext
15641   if ${ac_cv_search_opendir+:} false; then :
15642   break
15643 fi
15644 done
15645 if ${ac_cv_search_opendir+:} false; then :
15646
15647 else
15648   ac_cv_search_opendir=no
15649 fi
15650 rm conftest.$ac_ext
15651 LIBS=$ac_func_search_save_LIBS
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15654 $as_echo "$ac_cv_search_opendir" >&6; }
15655 ac_res=$ac_cv_search_opendir
15656 if test "$ac_res" != no; then :
15657   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15658
15659 fi
15660
15661 else
15662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15663 $as_echo_n "checking for library containing opendir... " >&6; }
15664 if ${ac_cv_search_opendir+:} false; then :
15665   $as_echo_n "(cached) " >&6
15666 else
15667   ac_func_search_save_LIBS=$LIBS
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h.  */
15670
15671 /* Override any GCC internal prototype to avoid an error.
15672    Use char because int might match the return type of a GCC
15673    builtin and then its argument prototype would still apply.  */
15674 #ifdef __cplusplus
15675 extern "C"
15676 #endif
15677 char opendir ();
15678 int
15679 main ()
15680 {
15681 return opendir ();
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 for ac_lib in '' x; do
15687   if test -z "$ac_lib"; then
15688     ac_res="none required"
15689   else
15690     ac_res=-l$ac_lib
15691     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15692   fi
15693   if ac_fn_c_try_link "$LINENO"; then :
15694   ac_cv_search_opendir=$ac_res
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697     conftest$ac_exeext
15698   if ${ac_cv_search_opendir+:} false; then :
15699   break
15700 fi
15701 done
15702 if ${ac_cv_search_opendir+:} false; then :
15703
15704 else
15705   ac_cv_search_opendir=no
15706 fi
15707 rm conftest.$ac_ext
15708 LIBS=$ac_func_search_save_LIBS
15709 fi
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15711 $as_echo "$ac_cv_search_opendir" >&6; }
15712 ac_res=$ac_cv_search_opendir
15713 if test "$ac_res" != no; then :
15714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15715
15716 fi
15717
15718 fi
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15721 $as_echo_n "checking for ANSI C header files... " >&6; }
15722 if ${ac_cv_header_stdc+:} false; then :
15723   $as_echo_n "(cached) " >&6
15724 else
15725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h.  */
15727 #include <stdlib.h>
15728 #include <stdarg.h>
15729 #include <string.h>
15730 #include <float.h>
15731
15732 int
15733 main ()
15734 {
15735
15736   ;
15737   return 0;
15738 }
15739 _ACEOF
15740 if ac_fn_c_try_compile "$LINENO"; then :
15741   ac_cv_header_stdc=yes
15742 else
15743   ac_cv_header_stdc=no
15744 fi
15745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15746
15747 if test $ac_cv_header_stdc = yes; then
15748   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h.  */
15751 #include <string.h>
15752
15753 _ACEOF
15754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15755   $EGREP "memchr" >/dev/null 2>&1; then :
15756
15757 else
15758   ac_cv_header_stdc=no
15759 fi
15760 rm -f conftest*
15761
15762 fi
15763
15764 if test $ac_cv_header_stdc = yes; then
15765   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h.  */
15768 #include <stdlib.h>
15769
15770 _ACEOF
15771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15772   $EGREP "free" >/dev/null 2>&1; then :
15773
15774 else
15775   ac_cv_header_stdc=no
15776 fi
15777 rm -f conftest*
15778
15779 fi
15780
15781 if test $ac_cv_header_stdc = yes; then
15782   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15783   if test "$cross_compiling" = yes; then :
15784   :
15785 else
15786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h.  */
15788 #include <ctype.h>
15789 #include <stdlib.h>
15790 #if ((' ' & 0x0FF) == 0x020)
15791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15793 #else
15794 # define ISLOWER(c) \
15795                    (('a' <= (c) && (c) <= 'i') \
15796                      || ('j' <= (c) && (c) <= 'r') \
15797                      || ('s' <= (c) && (c) <= 'z'))
15798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15799 #endif
15800
15801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15802 int
15803 main ()
15804 {
15805   int i;
15806   for (i = 0; i < 256; i++)
15807     if (XOR (islower (i), ISLOWER (i))
15808         || toupper (i) != TOUPPER (i))
15809       return 2;
15810   return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_run "$LINENO"; then :
15814
15815 else
15816   ac_cv_header_stdc=no
15817 fi
15818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15819   conftest.$ac_objext conftest.beam conftest.$ac_ext
15820 fi
15821
15822 fi
15823 fi
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15825 $as_echo "$ac_cv_header_stdc" >&6; }
15826 if test $ac_cv_header_stdc = yes; then
15827
15828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15829
15830 fi
15831
15832 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
15833 do :
15834   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15835 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15837   cat >>confdefs.h <<_ACEOF
15838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15839 _ACEOF
15840
15841 fi
15842
15843 done
15844
15845 # ------ AX CREATE STDINT H -------------------------------------
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15847 $as_echo_n "checking for stdint types... " >&6; }
15848 ac_stdint_h=`echo src/fcstdint.h`
15849 # try to shortcircuit - if the default include path of the compiler
15850 # can find a "stdint.h" header then we assume that all compilers can.
15851 if ${ac_cv_header_stdint_t+:} false; then :
15852   $as_echo_n "(cached) " >&6
15853 else
15854
15855 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15856 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15857 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h.  */
15860 #include <stdint.h>
15861 int
15862 main ()
15863 {
15864 int_least32_t v = 0;
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870   ac_cv_stdint_result="(assuming C99 compatible system)"
15871  ac_cv_header_stdint_t="stdint.h";
15872 else
15873   ac_cv_header_stdint_t=""
15874 fi
15875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15877 CFLAGS="-std=c99"
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h.  */
15880 #include <stdint.h>
15881 int
15882 main ()
15883 {
15884 int_least32_t v = 0;
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15891 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 fi
15895 CXXFLAGS="$old_CXXFLAGS"
15896 CPPFLAGS="$old_CPPFLAGS"
15897 CFLAGS="$old_CFLAGS"
15898 fi
15899
15900
15901 v="... $ac_cv_header_stdint_h"
15902 if test "$ac_stdint_h" = "stdint.h" ; then
15903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15904 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15905 elif test "$ac_stdint_h" = "inttypes.h" ; then
15906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15907 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15908 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15910 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15911 else
15912  ac_cv_header_stdint="$ac_cv_header_stdint_t"
15913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15914 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15915 fi
15916
15917 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
15918
15919
15920 inttype_headers=`echo  | sed -e 's/,/ /g'`
15921
15922 ac_cv_stdint_result="(no helpful system typedefs seen)"
15923
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15925 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15926 if ${ac_cv_header_stdint_x+:} false; then :
15927   $as_echo_n "(cached) " >&6
15928 else
15929
15930  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15932 $as_echo "(..)" >&6; }
15933   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
15934   do
15935    unset ac_cv_type_uintptr_t
15936    unset ac_cv_type_uint64_t
15937    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15938 "
15939 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15940   ac_cv_header_stdint_x=$i
15941 else
15942   continue
15943 fi
15944
15945    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15946 "
15947 if test "x$ac_cv_type_uint64_t" = xyes; then :
15948   and64="/uint64_t"
15949 else
15950   and64=""
15951 fi
15952
15953    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15954  break
15955   done
15956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15957 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15958
15959 fi
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15961 $as_echo "$ac_cv_header_stdint_x" >&6; }
15962
15963
15964 if test "_$ac_cv_header_stdint_x" = "_" ; then
15965
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15967 $as_echo_n "checking for stdint uint32_t... " >&6; }
15968 if ${ac_cv_header_stdint_o+:} false; then :
15969   $as_echo_n "(cached) " >&6
15970 else
15971
15972  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15974 $as_echo "(..)" >&6; }
15975   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
15976   do
15977    unset ac_cv_type_uint32_t
15978    unset ac_cv_type_uint64_t
15979    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15980 "
15981 if test "x$ac_cv_type_uint32_t" = xyes; then :
15982   ac_cv_header_stdint_o=$i
15983 else
15984   continue
15985 fi
15986
15987    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15988 "
15989 if test "x$ac_cv_type_uint64_t" = xyes; then :
15990   and64="/uint64_t"
15991 else
15992   and64=""
15993 fi
15994
15995    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
15996  break
15997    break;
15998   done
15999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
16000 $as_echo_n "checking for stdint uint32_t... " >&6; }
16001
16002 fi
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
16004 $as_echo "$ac_cv_header_stdint_o" >&6; }
16005
16006 fi
16007
16008 if test "_$ac_cv_header_stdint_x" = "_" ; then
16009 if test "_$ac_cv_header_stdint_o" = "_" ; then
16010
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16012 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16013 if ${ac_cv_header_stdint_u+:} false; then :
16014   $as_echo_n "(cached) " >&6
16015 else
16016
16017  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16019 $as_echo "(..)" >&6; }
16020   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16021    unset ac_cv_type_u_int32_t
16022    unset ac_cv_type_u_int64_t
16023    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
16024 "
16025 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16026   ac_cv_header_stdint_u=$i
16027 else
16028   continue
16029 fi
16030
16031    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
16032 "
16033 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16034   and64="/u_int64_t"
16035 else
16036   and64=""
16037 fi
16038
16039    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
16040  break
16041    break;
16042   done
16043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16044 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16045
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
16048 $as_echo "$ac_cv_header_stdint_u" >&6; }
16049
16050 fi fi
16051
16052 if test "_$ac_cv_header_stdint_x" = "_" ; then
16053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
16054 $as_echo_n "checking for stdint datatype model... " >&6; }
16055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16056 $as_echo "(..)" >&6; }
16057
16058    # The cast to long int works around a bug in the HP C Compiler
16059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16061 # This bug is HP SR number 8606223364.
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16063 $as_echo_n "checking size of char... " >&6; }
16064 if ${ac_cv_sizeof_char+:} false; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
16068
16069 else
16070   if test "$ac_cv_type_char" = yes; then
16071      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16073 as_fn_error 77 "cannot compute sizeof (char)
16074 See \`config.log' for more details" "$LINENO" 5; }
16075    else
16076      ac_cv_sizeof_char=0
16077    fi
16078 fi
16079
16080 fi
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16082 $as_echo "$ac_cv_sizeof_char" >&6; }
16083
16084
16085
16086 cat >>confdefs.h <<_ACEOF
16087 #define SIZEOF_CHAR $ac_cv_sizeof_char
16088 _ACEOF
16089
16090
16091    # The cast to long int works around a bug in the HP C Compiler
16092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16094 # This bug is HP SR number 8606223364.
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16096 $as_echo_n "checking size of short... " >&6; }
16097 if ${ac_cv_sizeof_short+:} false; then :
16098   $as_echo_n "(cached) " >&6
16099 else
16100   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
16101
16102 else
16103   if test "$ac_cv_type_short" = yes; then
16104      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16106 as_fn_error 77 "cannot compute sizeof (short)
16107 See \`config.log' for more details" "$LINENO" 5; }
16108    else
16109      ac_cv_sizeof_short=0
16110    fi
16111 fi
16112
16113 fi
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16115 $as_echo "$ac_cv_sizeof_short" >&6; }
16116
16117
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define SIZEOF_SHORT $ac_cv_sizeof_short
16121 _ACEOF
16122
16123
16124    # The cast to long int works around a bug in the HP C Compiler
16125 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16126 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16127 # This bug is HP SR number 8606223364.
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16129 $as_echo_n "checking size of int... " >&6; }
16130 if ${ac_cv_sizeof_int+:} false; then :
16131   $as_echo_n "(cached) " >&6
16132 else
16133   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16134
16135 else
16136   if test "$ac_cv_type_int" = yes; then
16137      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16139 as_fn_error 77 "cannot compute sizeof (int)
16140 See \`config.log' for more details" "$LINENO" 5; }
16141    else
16142      ac_cv_sizeof_int=0
16143    fi
16144 fi
16145
16146 fi
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16148 $as_echo "$ac_cv_sizeof_int" >&6; }
16149
16150
16151
16152 cat >>confdefs.h <<_ACEOF
16153 #define SIZEOF_INT $ac_cv_sizeof_int
16154 _ACEOF
16155
16156
16157    # The cast to long int works around a bug in the HP C Compiler
16158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16160 # This bug is HP SR number 8606223364.
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16162 $as_echo_n "checking size of long... " >&6; }
16163 if ${ac_cv_sizeof_long+:} false; then :
16164   $as_echo_n "(cached) " >&6
16165 else
16166   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16167
16168 else
16169   if test "$ac_cv_type_long" = yes; then
16170      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16172 as_fn_error 77 "cannot compute sizeof (long)
16173 See \`config.log' for more details" "$LINENO" 5; }
16174    else
16175      ac_cv_sizeof_long=0
16176    fi
16177 fi
16178
16179 fi
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16181 $as_echo "$ac_cv_sizeof_long" >&6; }
16182
16183
16184
16185 cat >>confdefs.h <<_ACEOF
16186 #define SIZEOF_LONG $ac_cv_sizeof_long
16187 _ACEOF
16188
16189
16190    # The cast to long int works around a bug in the HP C Compiler
16191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16193 # This bug is HP SR number 8606223364.
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16195 $as_echo_n "checking size of void*... " >&6; }
16196 if ${ac_cv_sizeof_voidp+:} false; then :
16197   $as_echo_n "(cached) " >&6
16198 else
16199   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
16200
16201 else
16202   if test "$ac_cv_type_voidp" = yes; then
16203      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16205 as_fn_error 77 "cannot compute sizeof (void*)
16206 See \`config.log' for more details" "$LINENO" 5; }
16207    else
16208      ac_cv_sizeof_voidp=0
16209    fi
16210 fi
16211
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16214 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16215
16216
16217
16218 cat >>confdefs.h <<_ACEOF
16219 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16220 _ACEOF
16221
16222
16223    ac_cv_char_data_model=""
16224    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16225    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16226    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16227    ac_cv_long_data_model=""
16228    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16229    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16230    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
16232 $as_echo_n "checking data model... " >&6; }
16233    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16234     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
16235     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
16236     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
16237     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16238     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
16239     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16240     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
16241     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16242     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
16243     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16244     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16245     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16246     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16247     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16248     222/*|333/*|444/*|666/*|888/*) :
16249                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
16250      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
16251    esac
16252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16253 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16254
16255 fi
16256
16257 if test "_$ac_cv_header_stdint_x" != "_" ; then
16258    ac_cv_header_stdint="$ac_cv_header_stdint_x"
16259 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
16260    ac_cv_header_stdint="$ac_cv_header_stdint_o"
16261 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
16262    ac_cv_header_stdint="$ac_cv_header_stdint_u"
16263 else
16264    ac_cv_header_stdint="stddef.h"
16265 fi
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16268 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16270 $as_echo "($ac_cv_header_stdint)" >&6; }
16271 unset ac_cv_type_int_least32_t
16272 unset ac_cv_type_int_fast32_t
16273 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16274 "
16275 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16276
16277 fi
16278
16279 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16280 "
16281 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16282
16283 fi
16284
16285 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16286 "
16287 if test "x$ac_cv_type_intmax_t" = xyes; then :
16288
16289 fi
16290
16291
16292 fi # shortcircut to system "stdint.h"
16293 # ------------------ PREPARE VARIABLES ------------------------------
16294 if test "$GCC" = "yes" ; then
16295 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16296 else
16297 ac_cv_stdint_message="using $CC"
16298 fi
16299
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16301 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16302
16303 # ----------------- DONE inttypes.h checks START header -------------
16304 ac_config_commands="$ac_config_commands $ac_stdint_h"
16305
16306
16307
16308 # Checks for typedefs, structures, and compiler characteristics.
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16310 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16311 if ${ac_cv_c_const+:} false; then :
16312   $as_echo_n "(cached) " >&6
16313 else
16314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h.  */
16316
16317 int
16318 main ()
16319 {
16320
16321 #ifndef __cplusplus
16322   /* Ultrix mips cc rejects this sort of thing.  */
16323   typedef int charset[2];
16324   const charset cs = { 0, 0 };
16325   /* SunOS 4.1.1 cc rejects this.  */
16326   char const *const *pcpcc;
16327   char **ppc;
16328   /* NEC SVR4.0.2 mips cc rejects this.  */
16329   struct point {int x, y;};
16330   static struct point const zero = {0,0};
16331   /* AIX XL C 1.02.0.0 rejects this.
16332      It does not let you subtract one const X* pointer from another in
16333      an arm of an if-expression whose if-part is not a constant
16334      expression */
16335   const char *g = "string";
16336   pcpcc = &g + (g ? g-g : 0);
16337   /* HPUX 7.0 cc rejects these. */
16338   ++pcpcc;
16339   ppc = (char**) pcpcc;
16340   pcpcc = (char const *const *) ppc;
16341   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16342     char tx;
16343     char *t = &tx;
16344     char const *s = 0 ? (char *) 0 : (char const *) 0;
16345
16346     *t++ = 0;
16347     if (s) return 0;
16348   }
16349   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16350     int x[] = {25, 17};
16351     const int *foo = &x[0];
16352     ++foo;
16353   }
16354   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16355     typedef const int *iptr;
16356     iptr p = 0;
16357     ++p;
16358   }
16359   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16360        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16361     struct s { int j; const int *ap[3]; } bx;
16362     struct s *b = &bx; b->j = 5;
16363   }
16364   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16365     const int foo = 10;
16366     if (!foo) return 0;
16367   }
16368   return !cs[0] && !zero.x;
16369 #endif
16370
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 if ac_fn_c_try_compile "$LINENO"; then :
16376   ac_cv_c_const=yes
16377 else
16378   ac_cv_c_const=no
16379 fi
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 fi
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16383 $as_echo "$ac_cv_c_const" >&6; }
16384 if test $ac_cv_c_const = no; then
16385
16386 $as_echo "#define const /**/" >>confdefs.h
16387
16388 fi
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16391 $as_echo_n "checking for inline... " >&6; }
16392 if ${ac_cv_c_inline+:} false; then :
16393   $as_echo_n "(cached) " >&6
16394 else
16395   ac_cv_c_inline=no
16396 for ac_kw in inline __inline__ __inline; do
16397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h.  */
16399 #ifndef __cplusplus
16400 typedef int foo_t;
16401 static $ac_kw foo_t static_foo () {return 0; }
16402 $ac_kw foo_t foo () {return 0; }
16403 #endif
16404
16405 _ACEOF
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407   ac_cv_c_inline=$ac_kw
16408 fi
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410   test "$ac_cv_c_inline" != no && break
16411 done
16412
16413 fi
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16415 $as_echo "$ac_cv_c_inline" >&6; }
16416
16417 case $ac_cv_c_inline in
16418   inline | yes) ;;
16419   *)
16420     case $ac_cv_c_inline in
16421       no) ac_val=;;
16422       *) ac_val=$ac_cv_c_inline;;
16423     esac
16424     cat >>confdefs.h <<_ACEOF
16425 #ifndef __cplusplus
16426 #define inline $ac_val
16427 #endif
16428 _ACEOF
16429     ;;
16430 esac
16431
16432
16433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
16434 $as_echo_n "checking for flexible array members... " >&6; }
16435 if ${ac_cv_c_flexmember+:} false; then :
16436   $as_echo_n "(cached) " >&6
16437 else
16438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h.  */
16440 #include <stdlib.h>
16441             #include <stdio.h>
16442             #include <stddef.h>
16443             struct s { int n; double d[]; };
16444 int
16445 main ()
16446 {
16447 int m = getchar ();
16448             struct s *p = malloc (offsetof (struct s, d)
16449                                   + m * sizeof (double));
16450             p->d[0] = 0.0;
16451             return p->d != (double *) NULL;
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_c_try_compile "$LINENO"; then :
16457   ac_cv_c_flexmember=yes
16458 else
16459   ac_cv_c_flexmember=no
16460 fi
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462 fi
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16464 $as_echo "$ac_cv_c_flexmember" >&6; }
16465   if test $ac_cv_c_flexmember = yes; then
16466
16467 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16468
16469   else
16470     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16471
16472   fi
16473
16474 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16475 if test "x$ac_cv_type_pid_t" = xyes; then :
16476
16477 else
16478
16479 cat >>confdefs.h <<_ACEOF
16480 #define pid_t int
16481 _ACEOF
16482
16483 fi
16484
16485
16486 # Checks for library functions.
16487 for ac_func in vprintf
16488 do :
16489   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16490 if test "x$ac_cv_func_vprintf" = xyes; then :
16491   cat >>confdefs.h <<_ACEOF
16492 #define HAVE_VPRINTF 1
16493 _ACEOF
16494
16495 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16496 if test "x$ac_cv_func__doprnt" = xyes; then :
16497
16498 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16499
16500 fi
16501
16502 fi
16503 done
16504
16505
16506
16507
16508
16509   for ac_header in $ac_header_list
16510 do :
16511   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16513 "
16514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16515   cat >>confdefs.h <<_ACEOF
16516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16517 _ACEOF
16518
16519 fi
16520
16521 done
16522
16523
16524
16525
16526
16527
16528
16529
16530 for ac_func in getpagesize
16531 do :
16532   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16533 if test "x$ac_cv_func_getpagesize" = xyes; then :
16534   cat >>confdefs.h <<_ACEOF
16535 #define HAVE_GETPAGESIZE 1
16536 _ACEOF
16537
16538 fi
16539 done
16540
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16542 $as_echo_n "checking for working mmap... " >&6; }
16543 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16544   $as_echo_n "(cached) " >&6
16545 else
16546   if test "$cross_compiling" = yes; then :
16547   ac_cv_func_mmap_fixed_mapped=no
16548 else
16549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h.  */
16551 $ac_includes_default
16552 /* malloc might have been renamed as rpl_malloc. */
16553 #undef malloc
16554
16555 /* Thanks to Mike Haertel and Jim Avera for this test.
16556    Here is a matrix of mmap possibilities:
16557         mmap private not fixed
16558         mmap private fixed at somewhere currently unmapped
16559         mmap private fixed at somewhere already mapped
16560         mmap shared not fixed
16561         mmap shared fixed at somewhere currently unmapped
16562         mmap shared fixed at somewhere already mapped
16563    For private mappings, we should verify that changes cannot be read()
16564    back from the file, nor mmap's back from the file at a different
16565    address.  (There have been systems where private was not correctly
16566    implemented like the infamous i386 svr4.0, and systems where the
16567    VM page cache was not coherent with the file system buffer cache
16568    like early versions of FreeBSD and possibly contemporary NetBSD.)
16569    For shared mappings, we should conversely verify that changes get
16570    propagated back to all the places they're supposed to be.
16571
16572    Grep wants private fixed already mapped.
16573    The main things grep needs to know about mmap are:
16574    * does it exist and is it safe to write into the mmap'd area
16575    * how to use it (BSD variants)  */
16576
16577 #include <fcntl.h>
16578 #include <sys/mman.h>
16579
16580 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16581 char *malloc ();
16582 #endif
16583
16584 /* This mess was copied from the GNU getpagesize.h.  */
16585 #ifndef HAVE_GETPAGESIZE
16586 # ifdef _SC_PAGESIZE
16587 #  define getpagesize() sysconf(_SC_PAGESIZE)
16588 # else /* no _SC_PAGESIZE */
16589 #  ifdef HAVE_SYS_PARAM_H
16590 #   include <sys/param.h>
16591 #   ifdef EXEC_PAGESIZE
16592 #    define getpagesize() EXEC_PAGESIZE
16593 #   else /* no EXEC_PAGESIZE */
16594 #    ifdef NBPG
16595 #     define getpagesize() NBPG * CLSIZE
16596 #     ifndef CLSIZE
16597 #      define CLSIZE 1
16598 #     endif /* no CLSIZE */
16599 #    else /* no NBPG */
16600 #     ifdef NBPC
16601 #      define getpagesize() NBPC
16602 #     else /* no NBPC */
16603 #      ifdef PAGESIZE
16604 #       define getpagesize() PAGESIZE
16605 #      endif /* PAGESIZE */
16606 #     endif /* no NBPC */
16607 #    endif /* no NBPG */
16608 #   endif /* no EXEC_PAGESIZE */
16609 #  else /* no HAVE_SYS_PARAM_H */
16610 #   define getpagesize() 8192   /* punt totally */
16611 #  endif /* no HAVE_SYS_PARAM_H */
16612 # endif /* no _SC_PAGESIZE */
16613
16614 #endif /* no HAVE_GETPAGESIZE */
16615
16616 int
16617 main ()
16618 {
16619   char *data, *data2, *data3;
16620   const char *cdata2;
16621   int i, pagesize;
16622   int fd, fd2;
16623
16624   pagesize = getpagesize ();
16625
16626   /* First, make a file with some known garbage in it. */
16627   data = (char *) malloc (pagesize);
16628   if (!data)
16629     return 1;
16630   for (i = 0; i < pagesize; ++i)
16631     *(data + i) = rand ();
16632   umask (0);
16633   fd = creat ("conftest.mmap", 0600);
16634   if (fd < 0)
16635     return 2;
16636   if (write (fd, data, pagesize) != pagesize)
16637     return 3;
16638   close (fd);
16639
16640   /* Next, check that the tail of a page is zero-filled.  File must have
16641      non-zero length, otherwise we risk SIGBUS for entire page.  */
16642   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16643   if (fd2 < 0)
16644     return 4;
16645   cdata2 = "";
16646   if (write (fd2, cdata2, 1) != 1)
16647     return 5;
16648   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16649   if (data2 == MAP_FAILED)
16650     return 6;
16651   for (i = 0; i < pagesize; ++i)
16652     if (*(data2 + i))
16653       return 7;
16654   close (fd2);
16655   if (munmap (data2, pagesize))
16656     return 8;
16657
16658   /* Next, try to mmap the file at a fixed address which already has
16659      something else allocated at it.  If we can, also make sure that
16660      we see the same garbage.  */
16661   fd = open ("conftest.mmap", O_RDWR);
16662   if (fd < 0)
16663     return 9;
16664   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16665                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16666     return 10;
16667   for (i = 0; i < pagesize; ++i)
16668     if (*(data + i) != *(data2 + i))
16669       return 11;
16670
16671   /* Finally, make sure that changes to the mapped area do not
16672      percolate back to the file as seen by read().  (This is a bug on
16673      some variants of i386 svr4.0.)  */
16674   for (i = 0; i < pagesize; ++i)
16675     *(data2 + i) = *(data2 + i) + 1;
16676   data3 = (char *) malloc (pagesize);
16677   if (!data3)
16678     return 12;
16679   if (read (fd, data3, pagesize) != pagesize)
16680     return 13;
16681   for (i = 0; i < pagesize; ++i)
16682     if (*(data + i) != *(data3 + i))
16683       return 14;
16684   close (fd);
16685   return 0;
16686 }
16687 _ACEOF
16688 if ac_fn_c_try_run "$LINENO"; then :
16689   ac_cv_func_mmap_fixed_mapped=yes
16690 else
16691   ac_cv_func_mmap_fixed_mapped=no
16692 fi
16693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16694   conftest.$ac_objext conftest.beam conftest.$ac_ext
16695 fi
16696
16697 fi
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16699 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16700 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16701
16702 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16703
16704 fi
16705 rm -f conftest.mmap conftest.txt
16706
16707 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
16708 do :
16709   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16712   cat >>confdefs.h <<_ACEOF
16713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 _ACEOF
16715
16716 fi
16717 done
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
16721 $as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
16722 if ${ac_cv_func_posix_fadvise+:} false; then :
16723   $as_echo_n "(cached) " >&6
16724 else
16725   symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
16726 ac_found=no
16727 for ac_header in fcntl.h ; do
16728   ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
16729   if test $ac_found != "yes" ; then
16730       if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16731             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h.  */
16733 #include <$ac_header>
16734
16735 _ACEOF
16736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16737   $EGREP "$symbol" >/dev/null 2>&1; then :
16738   ac_found="$ac_header"
16739 fi
16740 rm -f conftest*
16741
16742       fi
16743   fi
16744 done
16745 if test "$ac_found" != "no" ; then
16746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
16747 $as_echo "$ac_found" >&6; }
16748   fc_func_posix_fadvise=1
16749 else
16750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751 $as_echo "no" >&6; }
16752   fc_func_posix_fadvise=0
16753 fi
16754
16755 fi
16756
16757
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
16760 _ACEOF
16761
16762
16763 #
16764 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
16765 "
16766 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16767
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_STRUCT_STAT_ST_MTIM 1
16770 _ACEOF
16771
16772
16773 fi
16774
16775
16776 #
16777 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
16778         ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
16779 "
16780 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
16781
16782 cat >>confdefs.h <<_ACEOF
16783 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
16784 _ACEOF
16785
16786
16787 fi
16788 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
16789 "
16790 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
16791
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
16794 _ACEOF
16795
16796
16797 fi
16798
16799 fi
16800 if test "x$ac_cv_func_fstatfs" = "xyes"; then
16801         ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
16802 #ifdef HAVE_SYS_VFS_H
16803 #include <sys/vfs.h>
16804 #endif
16805 #ifdef HAVE_SYS_STATFS_H
16806 #include <sys/statfs.h>
16807 #endif
16808 #ifdef HAVE_SYS_PARAM_H
16809 #include <sys/param.h>
16810 #endif
16811 #ifdef HAVE_SYS_MOUNT_H
16812 #include <sys/mount.h>
16813 #endif
16814 "
16815 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
16816
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_STRUCT_STATFS_F_FLAGS 1
16819 _ACEOF
16820
16821
16822 fi
16823 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
16824 #ifdef HAVE_SYS_VFS_H
16825 #include <sys/vfs.h>
16826 #endif
16827 #ifdef HAVE_SYS_STATFS_H
16828 #include <sys/statfs.h>
16829 #endif
16830 #ifdef HAVE_SYS_PARAM_H
16831 #include <sys/param.h>
16832 #endif
16833 #ifdef HAVE_SYS_MOUNT_H
16834 #include <sys/mount.h>
16835 #endif
16836 "
16837 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
16838
16839 cat >>confdefs.h <<_ACEOF
16840 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
16841 _ACEOF
16842
16843
16844 fi
16845
16846 fi
16847 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
16848 "
16849 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
16850
16851 cat >>confdefs.h <<_ACEOF
16852 #define HAVE_STRUCT_DIRENT_D_TYPE 1
16853 _ACEOF
16854
16855
16856 fi
16857
16858
16859 # Check the argument type of the gperf hash/lookup function
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
16861 $as_echo_n "checking The type of len parameter of gperf hash/lookup function... " >&6; }
16862 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h.  */
16865
16866         #include <string.h>
16867
16868         const char *in_word_set(register const char *, register size_t);
16869         $fc_gperf_test
16870
16871 int
16872 main ()
16873 {
16874
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 if ac_fn_c_try_compile "$LINENO"; then :
16880   FC_GPERF_SIZE_T=size_t
16881 else
16882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h.  */
16884
16885                 #include <string.h>
16886
16887                 const char *in_word_set(register const char *, register unsigned int);
16888                 $fc_gperf_test
16889
16890 int
16891 main ()
16892 {
16893
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 if ac_fn_c_try_compile "$LINENO"; then :
16899   FC_GPERF_SIZE_T="unsigned int"
16900 else
16901   as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
16902
16903 fi
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907
16908 cat >>confdefs.h <<_ACEOF
16909 #define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T
16910 _ACEOF
16911
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
16913 $as_echo "$FC_GPERF_SIZE_T" >&6; }
16914
16915 #
16916 # Checks for iconv
16917 #
16918 # Check whether --enable-iconv was given.
16919 if test "${enable_iconv+set}" = set; then :
16920   enableval=$enable_iconv;
16921 else
16922   enable_iconv=no
16923 fi
16924
16925
16926 # Check whether --with-libiconv was given.
16927 if test "${with_libiconv+set}" = set; then :
16928   withval=$with_libiconv; if test "x$withval" = "xyes"; then
16929                 libiconv_prefix=$prefix
16930          else
16931                 libiconv_prefix=$withval
16932          fi
16933 else
16934   libiconv_prefix=auto
16935 fi
16936
16937
16938 # Check whether --with-libiconv-includes was given.
16939 if test "${with_libiconv_includes+set}" = set; then :
16940   withval=$with_libiconv_includes; libiconv_includes=$withval
16941 else
16942   libiconv_includes=auto
16943 fi
16944
16945
16946 # Check whether --with-libiconv-lib was given.
16947 if test "${with_libiconv_lib+set}" = set; then :
16948   withval=$with_libiconv_lib; libiconv_lib=$withval
16949 else
16950   libiconv_lib=auto
16951 fi
16952
16953
16954 # if no libiconv,libiconv-includes,libiconv-lib are specified,
16955 # libc's iconv has a priority.
16956 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
16957         libiconv_cflags="-I${libiconv_includes}"
16958 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
16959         libiconv_cflags="-I${libiconv_prefix}/include"
16960 else
16961         libiconv_cflags=""
16962 fi
16963 libiconv_libs=""
16964 if test "x$libiconv_cflags" != "x"; then
16965         if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
16966                 libiconv_libs="-L${libiconv_lib} -liconv"
16967         elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
16968                 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
16969         else
16970                 libiconv_libs="-liconv"
16971         fi
16972 fi
16973
16974 use_iconv=0
16975 if test "x$enable_iconv" != "xno"; then
16976         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
16977 $as_echo_n "checking for a usable iconv... " >&6; }
16978         if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
16979                 iconvsaved_CFLAGS="$CFLAGS"
16980                 iconvsaved_LIBS="$LIBS"
16981                 CFLAGS="$CFLAGS $libiconv_cflags"
16982                 LIBS="$LIBS $libiconv_libs"
16983
16984                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h.  */
16986 #include <iconv.h>
16987 int
16988 main ()
16989 {
16990 iconv_open ("from", "to");
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 if ac_fn_c_try_link "$LINENO"; then :
16996   iconv_type="libiconv"
16997                          use_iconv=1
16998                          ICONV_CFLAGS="$libiconv_cflags"
16999                          ICONV_LIBS="$libiconv_libs"
17000
17001 else
17002   use_iconv=0
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext \
17005     conftest$ac_exeext conftest.$ac_ext
17006
17007                 CFLAGS="$iconvsaved_CFLAGS"
17008                 LIBS="$iconvsaved_LIBS"
17009         fi
17010         if test "x$use_iconv" = "x0"; then
17011                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h.  */
17013 #include <iconv.h>
17014 int
17015 main ()
17016 {
17017 iconv_open ("from", "to");
17018   ;
17019   return 0;
17020 }
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023   iconv_type="libc"
17024                          use_iconv=1
17025 else
17026   iconv_type="not found"
17027                          use_iconv=0
17028 fi
17029 rm -f core conftest.err conftest.$ac_objext \
17030     conftest$ac_exeext conftest.$ac_ext
17031         fi
17032
17033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
17034 $as_echo "$iconv_type" >&6; }
17035
17036
17037 fi
17038
17039 cat >>confdefs.h <<_ACEOF
17040 #define USE_ICONV $use_iconv
17041 _ACEOF
17042
17043 #
17044 # Checks for FreeType
17045 #
17046
17047 pkg_failed=no
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17049 $as_echo_n "checking for FREETYPE... " >&6; }
17050
17051 if test -n "$FREETYPE_CFLAGS"; then
17052     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17053  elif test -n "$PKG_CONFIG"; then
17054     if test -n "$PKG_CONFIG" && \
17055     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
17056   ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
17057   ac_status=$?
17058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17059   test $ac_status = 0; }; then
17060   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
17061                       test "x$?" != "x0" && pkg_failed=yes
17062 else
17063   pkg_failed=yes
17064 fi
17065  else
17066     pkg_failed=untried
17067 fi
17068 if test -n "$FREETYPE_LIBS"; then
17069     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17070  elif test -n "$PKG_CONFIG"; then
17071     if test -n "$PKG_CONFIG" && \
17072     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
17073   ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
17074   ac_status=$?
17075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17076   test $ac_status = 0; }; then
17077   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
17078                       test "x$?" != "x0" && pkg_failed=yes
17079 else
17080   pkg_failed=yes
17081 fi
17082  else
17083     pkg_failed=untried
17084 fi
17085
17086
17087
17088 if test $pkg_failed = yes; then
17089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17090 $as_echo "no" >&6; }
17091
17092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17093         _pkg_short_errors_supported=yes
17094 else
17095         _pkg_short_errors_supported=no
17096 fi
17097         if test $_pkg_short_errors_supported = yes; then
17098                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
17099         else
17100                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
17101         fi
17102         # Put the nasty error message in config.log where it belongs
17103         echo "$FREETYPE_PKG_ERRORS" >&5
17104
17105         as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
17106
17107 $FREETYPE_PKG_ERRORS
17108
17109 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17110 installed software in a non-standard prefix.
17111
17112 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17113 and FREETYPE_LIBS to avoid the need to call pkg-config.
17114 See the pkg-config man page for more details." "$LINENO" 5
17115 elif test $pkg_failed = untried; then
17116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17117 $as_echo "no" >&6; }
17118         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17120 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17121 is in your PATH or set the PKG_CONFIG environment variable to the full
17122 path to pkg-config.
17123
17124 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17125 and FREETYPE_LIBS to avoid the need to call pkg-config.
17126 See the pkg-config man page for more details.
17127
17128 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17129 See \`config.log' for more details" "$LINENO" 5; }
17130 else
17131         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17132         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17133         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17134 $as_echo "yes" >&6; }
17135
17136 fi
17137 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
17138
17139
17140
17141
17142 fontconfig_save_libs="$LIBS"
17143 fontconfig_save_cflags="$CFLAGS"
17144 LIBS="$LIBS $FREETYPE_LIBS"
17145 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
17146 for ac_func in FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Done_MM_Var
17147 do :
17148   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17151   cat >>confdefs.h <<_ACEOF
17152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17153 _ACEOF
17154
17155 fi
17156 done
17157
17158
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h.  */
17161
17162         #include <ft2build.h>
17163         #include FT_CONFIG_OPTIONS_H
17164         #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
17165         #  error "No pcf long family names support"
17166         #endif
17167
17168 _ACEOF
17169 if ac_fn_c_try_compile "$LINENO"; then :
17170   have_pcf_long_family_names=yes
17171 else
17172   have_pcf_long_family_names=no
17173 fi
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175  if test "x$have_pcf_long_family_names" = xyes; then
17176   FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
17177   FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
17178 else
17179   FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
17180   FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
17181 fi
17182
17183
17184 LIBS="$fontconfig_save_libs"
17185 CFLAGS="$fontconfig_save_cflags"
17186
17187 #
17188 # Check for uuid
17189 #
17190 if test "$os_win32" != "yes"; then
17191
17192 pkg_failed=no
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
17194 $as_echo_n "checking for UUID... " >&6; }
17195
17196 if test -n "$UUID_CFLAGS"; then
17197     pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
17198  elif test -n "$PKG_CONFIG"; then
17199     if test -n "$PKG_CONFIG" && \
17200     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17201   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17202   ac_status=$?
17203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17204   test $ac_status = 0; }; then
17205   pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
17206                       test "x$?" != "x0" && pkg_failed=yes
17207 else
17208   pkg_failed=yes
17209 fi
17210  else
17211     pkg_failed=untried
17212 fi
17213 if test -n "$UUID_LIBS"; then
17214     pkg_cv_UUID_LIBS="$UUID_LIBS"
17215  elif test -n "$PKG_CONFIG"; then
17216     if test -n "$PKG_CONFIG" && \
17217     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17218   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17219   ac_status=$?
17220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221   test $ac_status = 0; }; then
17222   pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
17223                       test "x$?" != "x0" && pkg_failed=yes
17224 else
17225   pkg_failed=yes
17226 fi
17227  else
17228     pkg_failed=untried
17229 fi
17230
17231
17232
17233 if test $pkg_failed = yes; then
17234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17235 $as_echo "no" >&6; }
17236
17237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17238         _pkg_short_errors_supported=yes
17239 else
17240         _pkg_short_errors_supported=no
17241 fi
17242         if test $_pkg_short_errors_supported = yes; then
17243                 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
17244         else
17245                 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
17246         fi
17247         # Put the nasty error message in config.log where it belongs
17248         echo "$UUID_PKG_ERRORS" >&5
17249
17250         as_fn_error $? "Package requirements (uuid) were not met:
17251
17252 $UUID_PKG_ERRORS
17253
17254 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17255 installed software in a non-standard prefix.
17256
17257 Alternatively, you may set the environment variables UUID_CFLAGS
17258 and UUID_LIBS to avoid the need to call pkg-config.
17259 See the pkg-config man page for more details." "$LINENO" 5
17260 elif test $pkg_failed = untried; then
17261         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17263         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17265 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17266 is in your PATH or set the PKG_CONFIG environment variable to the full
17267 path to pkg-config.
17268
17269 Alternatively, you may set the environment variables UUID_CFLAGS
17270 and UUID_LIBS to avoid the need to call pkg-config.
17271 See the pkg-config man page for more details.
17272
17273 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17274 See \`config.log' for more details" "$LINENO" 5; }
17275 else
17276         UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
17277         UUID_LIBS=$pkg_cv_UUID_LIBS
17278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17279 $as_echo "yes" >&6; }
17280
17281 fi
17282         PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
17283 else
17284         UUID_CFLAGS=""
17285         UUID_LIBS=""
17286 fi
17287
17288
17289
17290 #
17291 # Check expat configuration
17292 #
17293
17294 # Check whether --with-expat was given.
17295 if test "${with_expat+set}" = set; then :
17296   withval=$with_expat; expat_prefix=$withval
17297 else
17298   expat_prefix=auto
17299 fi
17300
17301
17302 # Check whether --with-expat-includes was given.
17303 if test "${with_expat_includes+set}" = set; then :
17304   withval=$with_expat_includes; expat_includes=$withval
17305 else
17306   expat_includes=auto
17307 fi
17308
17309
17310 # Check whether --with-expat-lib was given.
17311 if test "${with_expat_lib+set}" = set; then :
17312   withval=$with_expat_lib; expat_lib=$withval
17313 else
17314   expat_lib=auto
17315 fi
17316
17317
17318 if test "$enable_libxml2" != "yes"; then
17319         use_pkgconfig_for_expat=yes
17320         if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
17321
17322 pkg_failed=no
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
17324 $as_echo_n "checking for EXPAT... " >&6; }
17325
17326 if test -n "$EXPAT_CFLAGS"; then
17327     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
17328  elif test -n "$PKG_CONFIG"; then
17329     if test -n "$PKG_CONFIG" && \
17330     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
17331   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
17332   ac_status=$?
17333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17334   test $ac_status = 0; }; then
17335   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
17336                       test "x$?" != "x0" && pkg_failed=yes
17337 else
17338   pkg_failed=yes
17339 fi
17340  else
17341     pkg_failed=untried
17342 fi
17343 if test -n "$EXPAT_LIBS"; then
17344     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
17345  elif test -n "$PKG_CONFIG"; then
17346     if test -n "$PKG_CONFIG" && \
17347     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
17348   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
17349   ac_status=$?
17350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351   test $ac_status = 0; }; then
17352   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
17353                       test "x$?" != "x0" && pkg_failed=yes
17354 else
17355   pkg_failed=yes
17356 fi
17357  else
17358     pkg_failed=untried
17359 fi
17360
17361
17362
17363 if test $pkg_failed = yes; then
17364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17366
17367 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17368         _pkg_short_errors_supported=yes
17369 else
17370         _pkg_short_errors_supported=no
17371 fi
17372         if test $_pkg_short_errors_supported = yes; then
17373                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
17374         else
17375                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
17376         fi
17377         # Put the nasty error message in config.log where it belongs
17378         echo "$EXPAT_PKG_ERRORS" >&5
17379
17380         use_pkgconfig_for_expat=no
17381 elif test $pkg_failed = untried; then
17382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 $as_echo "no" >&6; }
17384         use_pkgconfig_for_expat=no
17385 else
17386         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
17387         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
17388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17389 $as_echo "yes" >&6; }
17390
17391 fi
17392         else
17393                 use_pkgconfig_for_expat=no
17394         fi
17395         if test "x$use_pkgconfig_for_expat" = "xno"; then
17396                 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
17397                         EXPAT_CFLAGS="-I${expat_includes}"
17398                 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
17399                         EXPAT_CFLAGS="-I${expat_prefix}/include"
17400                 else
17401                         EXPAT_CFLAGS=""
17402                 fi
17403                 if test "$expat_lib" != "auto"; then
17404                         EXPAT_LIBS="-L${expat_lib} -lexpat"
17405                 elif test "$expat_prefix" != "auto"; then
17406                         EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
17407                 else
17408                         EXPAT_LIBS="-lexpat"
17409                 fi
17410                 PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
17411                 PKG_EXPAT_LIBS=$EXPAT_LIBS
17412         else
17413                 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
17414                 PKG_EXPAT_CFLAGS=
17415                 PKG_EXPAT_LIBS=
17416         fi
17417
17418         expatsaved_CPPFLAGS="$CPPFLAGS"
17419         expatsaved_LIBS="$LIBS"
17420         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
17421         LIBS="$LIBS $EXPAT_LIBS"
17422
17423         ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
17424 if test "x$ac_cv_header_expat_h" = xyes; then :
17425
17426 fi
17427
17428
17429         if test "$ac_cv_header_expat_h" = "no"; then
17430                 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
17431 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
17432
17433 fi
17434
17435
17436                 if test "$ac_cv_header_xmlparse_h" = "yes"; then
17437                         HAVE_XMLPARSE_H=1
17438
17439
17440 cat >>confdefs.h <<_ACEOF
17441 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
17442 _ACEOF
17443
17444                 else
17445                         as_fn_error $? "
17446 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
17447                 fi
17448         fi
17449         for ac_func in XML_SetDoctypeDeclHandler
17450 do :
17451   ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
17452 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
17453   cat >>confdefs.h <<_ACEOF
17454 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
17455 _ACEOF
17456
17457 fi
17458 done
17459
17460         if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
17461                 as_fn_error $? "
17462 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
17463         fi
17464         CPPFLAGS="$expatsaved_CPPFLAGS"
17465         LIBS="$expatsaved_LIBS"
17466
17467
17468
17469
17470
17471 fi
17472
17473 #
17474 # Check libxml2 configuration
17475 #
17476 # Check whether --enable-libxml2 was given.
17477 if test "${enable_libxml2+set}" = set; then :
17478   enableval=$enable_libxml2;
17479 fi
17480
17481
17482 if test "$enable_libxml2" = "yes"; then
17483
17484 pkg_failed=no
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
17486 $as_echo_n "checking for LIBXML2... " >&6; }
17487
17488 if test -n "$LIBXML2_CFLAGS"; then
17489     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
17490  elif test -n "$PKG_CONFIG"; then
17491     if test -n "$PKG_CONFIG" && \
17492     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
17493   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
17494   ac_status=$?
17495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17496   test $ac_status = 0; }; then
17497   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
17498                       test "x$?" != "x0" && pkg_failed=yes
17499 else
17500   pkg_failed=yes
17501 fi
17502  else
17503     pkg_failed=untried
17504 fi
17505 if test -n "$LIBXML2_LIBS"; then
17506     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
17507  elif test -n "$PKG_CONFIG"; then
17508     if test -n "$PKG_CONFIG" && \
17509     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
17510   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
17511   ac_status=$?
17512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17513   test $ac_status = 0; }; then
17514   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
17515                       test "x$?" != "x0" && pkg_failed=yes
17516 else
17517   pkg_failed=yes
17518 fi
17519  else
17520     pkg_failed=untried
17521 fi
17522
17523
17524
17525 if test $pkg_failed = yes; then
17526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17527 $as_echo "no" >&6; }
17528
17529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17530         _pkg_short_errors_supported=yes
17531 else
17532         _pkg_short_errors_supported=no
17533 fi
17534         if test $_pkg_short_errors_supported = yes; then
17535                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
17536         else
17537                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
17538         fi
17539         # Put the nasty error message in config.log where it belongs
17540         echo "$LIBXML2_PKG_ERRORS" >&5
17541
17542         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
17543
17544 $LIBXML2_PKG_ERRORS
17545
17546 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17547 installed software in a non-standard prefix.
17548
17549 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17550 and LIBXML2_LIBS to avoid the need to call pkg-config.
17551 See the pkg-config man page for more details." "$LINENO" 5
17552 elif test $pkg_failed = untried; then
17553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554 $as_echo "no" >&6; }
17555         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17557 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17558 is in your PATH or set the PKG_CONFIG environment variable to the full
17559 path to pkg-config.
17560
17561 Alternatively, you may set the environment variables LIBXML2_CFLAGS
17562 and LIBXML2_LIBS to avoid the need to call pkg-config.
17563 See the pkg-config man page for more details.
17564
17565 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17566 See \`config.log' for more details" "$LINENO" 5; }
17567 else
17568         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
17569         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
17570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17571 $as_echo "yes" >&6; }
17572
17573 fi
17574     PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
17575
17576 cat >>confdefs.h <<_ACEOF
17577 #define ENABLE_LIBXML2 1
17578 _ACEOF
17579
17580
17581
17582
17583
17584     fc_saved_CFLAGS="$CFLAGS"
17585     CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
17586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
17587 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
17588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h.  */
17590
17591         #include <libxml/xmlversion.h>
17592         #if !defined(LIBXML_SAX1_ENABLED)
17593         #  include "error: No SAX1 support in libxml2"
17594         #endif
17595
17596 _ACEOF
17597 if ac_fn_c_try_compile "$LINENO"; then :
17598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17599 $as_echo "found" >&6; }
17600 else
17601   as_fn_error $? "
17602 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605     CFLAGS="$fc_saved_CFLAGS"
17606 fi
17607
17608 #
17609 # Set default hinting
17610 #
17611
17612
17613 # Check whether --with-default-hinting was given.
17614 if test "${with_default_hinting+set}" = set; then :
17615   withval=$with_default_hinting; preferred_hinting="$withval"
17616 else
17617   preferred_hinting=slight
17618 fi
17619
17620
17621 case "$preferred_hinting" in
17622 none|slight|medium|full)
17623         PREFERRED_HINTING="$preferred_hinting"
17624
17625         ;;
17626 *)
17627         as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
17628         ;;
17629 esac
17630
17631 #
17632 # Set default font directory
17633 #
17634
17635
17636 # Check whether --with-default-fonts was given.
17637 if test "${with_default_fonts+set}" = set; then :
17638   withval=$with_default_fonts; default_fonts="$withval"
17639 else
17640   default_fonts=yes
17641 fi
17642
17643
17644 case "$default_fonts" in
17645 yes)
17646         if test "$os_win32" = "yes"; then
17647                 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
17648
17649 cat >>confdefs.h <<_ACEOF
17650 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
17651 _ACEOF
17652
17653         else
17654                 FC_DEFAULT_FONTS="/usr/share/fonts"
17655
17656 cat >>confdefs.h <<_ACEOF
17657 #define FC_DEFAULT_FONTS "/usr/share/fonts"
17658 _ACEOF
17659
17660         fi
17661         ;;
17662 *)
17663         FC_DEFAULT_FONTS="$default_fonts"
17664
17665 cat >>confdefs.h <<_ACEOF
17666 #define FC_DEFAULT_FONTS "$default_fonts"
17667 _ACEOF
17668
17669         ;;
17670 esac
17671
17672
17673
17674 #
17675 # Add more fonts if available.  By default, add only the directories
17676 # with outline fonts; those with bitmaps can be added as desired in
17677 # local.conf or ~/.fonts.conf
17678 #
17679
17680 # Check whether --with-add-fonts was given.
17681 if test "${with_add_fonts+set}" = set; then :
17682   withval=$with_add_fonts; add_fonts="$withval"
17683 else
17684   add_fonts=yes
17685 fi
17686
17687
17688 case "$add_fonts" in
17689 yes)
17690         FC_ADD_FONTS=""
17691         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
17692                 case x"$FC_ADD_FONTS" in
17693                 x)
17694                         sub="$dir/fonts"
17695                         if test -d "$sub"; then
17696                                 case x$FC_ADD_FONTS in
17697                                 x)
17698                                         FC_ADD_FONTS="$sub"
17699                                         ;;
17700                                 *)
17701                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
17702                                         ;;
17703                                 esac
17704                         fi
17705                         ;;
17706                 esac
17707         done
17708
17709 cat >>confdefs.h <<_ACEOF
17710 #define FC_ADD_FONTS "$add_fonts"
17711 _ACEOF
17712
17713         ;;
17714 no)
17715         FC_ADD_FONTS=""
17716         ;;
17717 *)
17718         FC_ADD_FONTS="$add_fonts"
17719
17720 cat >>confdefs.h <<_ACEOF
17721 #define FC_ADD_FONTS "$add_fonts"
17722 _ACEOF
17723
17724         ;;
17725 esac
17726
17727
17728
17729 FC_FONTPATH=""
17730
17731 case "$FC_ADD_FONTS" in
17732 "")
17733         ;;
17734 *)
17735         FC_FONTPATH=`echo $FC_ADD_FONTS |
17736                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
17737         ;;
17738 esac
17739
17740
17741
17742 #
17743 # Set default cache directory path
17744 #
17745
17746 # Check whether --with-cache-dir was given.
17747 if test "${with_cache_dir+set}" = set; then :
17748   withval=$with_cache_dir; fc_cachedir="$withval"
17749 else
17750   fc_cachedir=yes
17751 fi
17752
17753
17754 case $fc_cachedir in
17755 no|yes)
17756         if test "$os_win32" = "yes"; then
17757                 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
17758         else
17759                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
17760         fi
17761         ;;
17762 *)
17763         ;;
17764 esac
17765
17766 FC_CACHEDIR=${fc_cachedir}
17767
17768
17769 FC_FONTDATE=`LC_ALL=C date`
17770
17771
17772
17773 #
17774 # Set configuration paths
17775 #
17776
17777
17778 # Check whether --with-templatedir was given.
17779 if test "${with_templatedir+set}" = set; then :
17780   withval=$with_templatedir; templatedir="$withval"
17781 else
17782   templatedir=yes
17783 fi
17784
17785
17786 # Check whether --with-baseconfigdir was given.
17787 if test "${with_baseconfigdir+set}" = set; then :
17788   withval=$with_baseconfigdir; baseconfigdir="$withval"
17789 else
17790   baseconfigdir=yes
17791 fi
17792
17793
17794 # Check whether --with-configdir was given.
17795 if test "${with_configdir+set}" = set; then :
17796   withval=$with_configdir; configdir="$withval"
17797 else
17798   configdir=yes
17799 fi
17800
17801
17802 # Check whether --with-xmldir was given.
17803 if test "${with_xmldir+set}" = set; then :
17804   withval=$with_xmldir; xmldir="$withval"
17805 else
17806   xmldir=yes
17807 fi
17808
17809
17810 case "$templatedir" in
17811 no|yes)
17812         templatedir='${datadir}'/fontconfig/conf.avail
17813         ;;
17814 *)
17815         ;;
17816 esac
17817 case "$baseconfigdir" in
17818 no|yes)
17819         baseconfigdir='${sysconfdir}'/fonts
17820         ;;
17821 *)
17822         ;;
17823 esac
17824 case "$configdir" in
17825 no|yes)
17826         configdir='${BASECONFIGDIR}'/conf.d
17827         ;;
17828 *)
17829         ;;
17830 esac
17831 case "$xmldir" in
17832 no|yes)
17833         xmldir='${datadir}'/xml/fontconfig
17834         ;;
17835 *)
17836         ;;
17837 esac
17838
17839 TEMPLATEDIR=${templatedir}
17840 BASECONFIGDIR=${baseconfigdir}
17841 CONFIGDIR=${configdir}
17842 XMLDIR=${xmldir}
17843
17844
17845
17846
17847
17848
17849
17850 #
17851 # Thread-safety primitives
17852 #
17853
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
17855 $as_echo_n "checking for Intel atomic primitives... " >&6; }
17856 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
17857   $as_echo_n "(cached) " >&6
17858 else
17859
17860         fc_cv_have_intel_atomic_primitives=false
17861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h.  */
17863
17864                 void memory_barrier (void) { __sync_synchronize (); }
17865                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
17866                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
17867                 void mutex_unlock (int *m) { __sync_lock_release (m); }
17868
17869 int
17870 main ()
17871 {
17872
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 if ac_fn_c_try_link "$LINENO"; then :
17878   fc_cv_have_intel_atomic_primitives=true
17879
17880 fi
17881 rm -f core conftest.err conftest.$ac_objext \
17882     conftest$ac_exeext conftest.$ac_ext
17883
17884 fi
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
17886 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
17887 if $fc_cv_have_intel_atomic_primitives; then
17888
17889 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
17890
17891 fi
17892
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
17894 $as_echo_n "checking for Solaris atomic operations... " >&6; }
17895 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
17896   $as_echo_n "(cached) " >&6
17897 else
17898
17899         fc_cv_have_solaris_atomic_ops=false
17900         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h.  */
17902
17903                 #include <atomic.h>
17904                 /* This requires Solaris Studio 12.2 or newer: */
17905                 #include <mbarrier.h>
17906                 void memory_barrier (void) { __machine_rw_barrier (); }
17907                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
17908                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
17909
17910 int
17911 main ()
17912 {
17913
17914   ;
17915   return 0;
17916 }
17917 _ACEOF
17918 if ac_fn_c_try_link "$LINENO"; then :
17919   fc_cv_have_solaris_atomic_ops=true
17920
17921 fi
17922 rm -f core conftest.err conftest.$ac_objext \
17923     conftest$ac_exeext conftest.$ac_ext
17924
17925 fi
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
17927 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
17928 if $fc_cv_have_solaris_atomic_ops; then
17929
17930 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
17931
17932 fi
17933
17934 if test "$os_win32" = no && ! $have_pthread; then
17935         for ac_header in sched.h
17936 do :
17937   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
17938 if test "x$ac_cv_header_sched_h" = xyes; then :
17939   cat >>confdefs.h <<_ACEOF
17940 #define HAVE_SCHED_H 1
17941 _ACEOF
17942
17943 fi
17944
17945 done
17946
17947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
17948 $as_echo_n "checking for library containing sched_yield... " >&6; }
17949 if ${ac_cv_search_sched_yield+:} false; then :
17950   $as_echo_n "(cached) " >&6
17951 else
17952   ac_func_search_save_LIBS=$LIBS
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h.  */
17955
17956 /* Override any GCC internal prototype to avoid an error.
17957    Use char because int might match the return type of a GCC
17958    builtin and then its argument prototype would still apply.  */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 char sched_yield ();
17963 int
17964 main ()
17965 {
17966 return sched_yield ();
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 for ac_lib in '' rt; do
17972   if test -z "$ac_lib"; then
17973     ac_res="none required"
17974   else
17975     ac_res=-l$ac_lib
17976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17977   fi
17978   if ac_fn_c_try_link "$LINENO"; then :
17979   ac_cv_search_sched_yield=$ac_res
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext \
17982     conftest$ac_exeext
17983   if ${ac_cv_search_sched_yield+:} false; then :
17984   break
17985 fi
17986 done
17987 if ${ac_cv_search_sched_yield+:} false; then :
17988
17989 else
17990   ac_cv_search_sched_yield=no
17991 fi
17992 rm conftest.$ac_ext
17993 LIBS=$ac_func_search_save_LIBS
17994 fi
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
17996 $as_echo "$ac_cv_search_sched_yield" >&6; }
17997 ac_res=$ac_cv_search_sched_yield
17998 if test "$ac_res" != no; then :
17999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18000
18001 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
18002
18003 fi
18004
18005 fi
18006
18007 have_pthread=false
18008 if test "$os_win32" = no; then
18009
18010
18011 ac_ext=c
18012 ac_cpp='$CPP $CPPFLAGS'
18013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016
18017 ax_pthread_ok=no
18018
18019 # We used to check for pthread.h first, but this fails if pthread.h
18020 # requires special compiler flags (e.g. on True64 or Sequent).
18021 # It gets checked for in the link test anyway.
18022
18023 # First of all, check if the user has set any of the PTHREAD_LIBS,
18024 # etcetera environment variables, and if threads linking works using
18025 # them:
18026 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18027         save_CFLAGS="$CFLAGS"
18028         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18029         save_LIBS="$LIBS"
18030         LIBS="$PTHREAD_LIBS $LIBS"
18031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18032 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18033         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h.  */
18035
18036 /* Override any GCC internal prototype to avoid an error.
18037    Use char because int might match the return type of a GCC
18038    builtin and then its argument prototype would still apply.  */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char pthread_join ();
18043 int
18044 main ()
18045 {
18046 return pthread_join ();
18047   ;
18048   return 0;
18049 }
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"; then :
18052   ax_pthread_ok=yes
18053 fi
18054 rm -f core conftest.err conftest.$ac_objext \
18055     conftest$ac_exeext conftest.$ac_ext
18056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18057 $as_echo "$ax_pthread_ok" >&6; }
18058         if test x"$ax_pthread_ok" = xno; then
18059                 PTHREAD_LIBS=""
18060                 PTHREAD_CFLAGS=""
18061         fi
18062         LIBS="$save_LIBS"
18063         CFLAGS="$save_CFLAGS"
18064 fi
18065
18066 # We must check for the threads library under a number of different
18067 # names; the ordering is very important because some systems
18068 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18069 # libraries is broken (non-POSIX).
18070
18071 # Create a list of thread flags to try.  Items starting with a "-" are
18072 # C compiler flags, and other items are library names, except for "none"
18073 # which indicates that we try without any flags at all, and "pthread-config"
18074 # which is a program returning the flags for the Pth emulation library.
18075
18076 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18077
18078 # The ordering *is* (sometimes) important.  Some notes on the
18079 # individual items follow:
18080
18081 # pthreads: AIX (must check this before -lpthread)
18082 # none: in case threads are in libc; should be tried before -Kthread and
18083 #       other compiler flags to prevent continual compiler warnings
18084 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18085 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18086 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18087 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18088 # -pthreads: Solaris/gcc
18089 # -mthreads: Mingw32/gcc, Lynx/gcc
18090 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18091 #      doesn't hurt to check since this sometimes defines pthreads too;
18092 #      also defines -D_REENTRANT)
18093 #      ... -mt is also the pthreads flag for HP/aCC
18094 # pthread: Linux, etcetera
18095 # --thread-safe: KAI C++
18096 # pthread-config: use pthread-config program (for GNU Pth library)
18097
18098 case ${host_os} in
18099         solaris*)
18100
18101         # On Solaris (at least, for some versions), libc contains stubbed
18102         # (non-functional) versions of the pthreads routines, so link-based
18103         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
18104         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18105         # a function called by this macro, so we could check for that, but
18106         # who knows whether they'll stub that too in a future libc.)  So,
18107         # we'll just look for -pthreads and -lpthread first:
18108
18109         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18110         ;;
18111
18112         darwin*)
18113         ax_pthread_flags="-pthread $ax_pthread_flags"
18114         ;;
18115         netbsd*)
18116         # use libc stubs, don't link against libpthread, to allow
18117         # dynamic loading
18118         ax_pthread_flags=""
18119         ;;
18120 esac
18121
18122 # Clang doesn't consider unrecognized options an error unless we specify
18123 # -Werror. We throw in some extra Clang-specific options to ensure that
18124 # this doesn't happen for GCC, which also accepts -Werror.
18125
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
18127 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
18128 save_CFLAGS="$CFLAGS"
18129 ax_pthread_extra_flags="-Werror"
18130 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h.  */
18133 int foo(void);
18134 int
18135 main ()
18136 {
18137 foo()
18138   ;
18139   return 0;
18140 }
18141 _ACEOF
18142 if ac_fn_c_try_compile "$LINENO"; then :
18143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144 $as_echo "yes" >&6; }
18145 else
18146   ax_pthread_extra_flags=
18147                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148 $as_echo "no" >&6; }
18149 fi
18150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18151 CFLAGS="$save_CFLAGS"
18152
18153 if test x"$ax_pthread_ok" = xno; then
18154 for flag in $ax_pthread_flags; do
18155
18156         case $flag in
18157                 none)
18158                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18159 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18160                 ;;
18161
18162                 -*)
18163                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18164 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18165                 PTHREAD_CFLAGS="$flag"
18166                 ;;
18167
18168                 pthread-config)
18169                 # Extract the first word of "pthread-config", so it can be a program name with args.
18170 set dummy pthread-config; ac_word=$2
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18172 $as_echo_n "checking for $ac_word... " >&6; }
18173 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18174   $as_echo_n "(cached) " >&6
18175 else
18176   if test -n "$ax_pthread_config"; then
18177   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18178 else
18179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18180 for as_dir in $PATH
18181 do
18182   IFS=$as_save_IFS
18183   test -z "$as_dir" && as_dir=.
18184     for ac_exec_ext in '' $ac_executable_extensions; do
18185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18186     ac_cv_prog_ax_pthread_config="yes"
18187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18188     break 2
18189   fi
18190 done
18191   done
18192 IFS=$as_save_IFS
18193
18194   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18195 fi
18196 fi
18197 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18198 if test -n "$ax_pthread_config"; then
18199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18200 $as_echo "$ax_pthread_config" >&6; }
18201 else
18202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203 $as_echo "no" >&6; }
18204 fi
18205
18206
18207                 if test x"$ax_pthread_config" = xno; then continue; fi
18208                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18209                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18210                 ;;
18211
18212                 *)
18213                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18214 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18215                 PTHREAD_LIBS="-l$flag"
18216                 ;;
18217         esac
18218
18219         save_LIBS="$LIBS"
18220         save_CFLAGS="$CFLAGS"
18221         LIBS="$PTHREAD_LIBS $LIBS"
18222         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
18223
18224         # Check for various functions.  We must include pthread.h,
18225         # since some functions may be macros.  (On the Sequent, we
18226         # need a special flag -Kthread to make this header compile.)
18227         # We check for pthread_join because it is in -lpthread on IRIX
18228         # while pthread_create is in libc.  We check for pthread_attr_init
18229         # due to DEC craziness with -lpthreads.  We check for
18230         # pthread_cleanup_push because it is one of the few pthread
18231         # functions on Solaris that doesn't have a non-functional libc stub.
18232         # We try pthread_create on general principles.
18233         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h.  */
18235 #include <pthread.h>
18236                         static void routine(void *a) { a = 0; }
18237                         static void *start_routine(void *a) { return a; }
18238 int
18239 main ()
18240 {
18241 pthread_t th; pthread_attr_t attr;
18242                         pthread_create(&th, 0, start_routine, 0);
18243                         pthread_join(th, 0);
18244                         pthread_attr_init(&attr);
18245                         pthread_cleanup_push(routine, 0);
18246                         pthread_cleanup_pop(0) /* ; */
18247   ;
18248   return 0;
18249 }
18250 _ACEOF
18251 if ac_fn_c_try_link "$LINENO"; then :
18252   ax_pthread_ok=yes
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext \
18255     conftest$ac_exeext conftest.$ac_ext
18256
18257         LIBS="$save_LIBS"
18258         CFLAGS="$save_CFLAGS"
18259
18260         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18261 $as_echo "$ax_pthread_ok" >&6; }
18262         if test "x$ax_pthread_ok" = xyes; then
18263                 break;
18264         fi
18265
18266         PTHREAD_LIBS=""
18267         PTHREAD_CFLAGS=""
18268 done
18269 fi
18270
18271 # Various other checks:
18272 if test "x$ax_pthread_ok" = xyes; then
18273         save_LIBS="$LIBS"
18274         LIBS="$PTHREAD_LIBS $LIBS"
18275         save_CFLAGS="$CFLAGS"
18276         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18277
18278         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18280 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18281         attr_name=unknown
18282         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18283             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h.  */
18285 #include <pthread.h>
18286 int
18287 main ()
18288 {
18289 int attr = $attr; return attr /* ; */
18290   ;
18291   return 0;
18292 }
18293 _ACEOF
18294 if ac_fn_c_try_link "$LINENO"; then :
18295   attr_name=$attr; break
18296 fi
18297 rm -f core conftest.err conftest.$ac_objext \
18298     conftest$ac_exeext conftest.$ac_ext
18299         done
18300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18301 $as_echo "$attr_name" >&6; }
18302         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18303
18304 cat >>confdefs.h <<_ACEOF
18305 #define PTHREAD_CREATE_JOINABLE $attr_name
18306 _ACEOF
18307
18308         fi
18309
18310         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18311 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18312         flag=no
18313         case ${host_os} in
18314             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18315             osf* | hpux*) flag="-D_REENTRANT";;
18316             solaris*)
18317             if test "$GCC" = "yes"; then
18318                 flag="-D_REENTRANT"
18319             else
18320                 # TODO: What about Clang on Solaris?
18321                 flag="-mt -D_REENTRANT"
18322             fi
18323             ;;
18324         esac
18325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
18326 $as_echo "$flag" >&6; }
18327         if test "x$flag" != xno; then
18328             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18329         fi
18330
18331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18332 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18333 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18334   $as_echo_n "(cached) " >&6
18335 else
18336
18337                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338 /* end confdefs.h.  */
18339 #include <pthread.h>
18340 int
18341 main ()
18342 {
18343 int i = PTHREAD_PRIO_INHERIT;
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_link "$LINENO"; then :
18349   ax_cv_PTHREAD_PRIO_INHERIT=yes
18350 else
18351   ax_cv_PTHREAD_PRIO_INHERIT=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext \
18354     conftest$ac_exeext conftest.$ac_ext
18355
18356 fi
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18358 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18359         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18360
18361 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18362
18363 fi
18364
18365         LIBS="$save_LIBS"
18366         CFLAGS="$save_CFLAGS"
18367
18368         # More AIX lossage: compile with *_r variant
18369         if test "x$GCC" != xyes; then
18370             case $host_os in
18371                 aix*)
18372                 case "x/$CC" in #(
18373   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18374     #handle absolute path differently from PATH based program lookup
18375                    case "x$CC" in #(
18376   x/*) :
18377     if as_fn_executable_p ${CC}_r; then :
18378   PTHREAD_CC="${CC}_r"
18379 fi ;; #(
18380   *) :
18381     for ac_prog in ${CC}_r
18382 do
18383   # Extract the first word of "$ac_prog", so it can be a program name with args.
18384 set dummy $ac_prog; ac_word=$2
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18386 $as_echo_n "checking for $ac_word... " >&6; }
18387 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18388   $as_echo_n "(cached) " >&6
18389 else
18390   if test -n "$PTHREAD_CC"; then
18391   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18392 else
18393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18394 for as_dir in $PATH
18395 do
18396   IFS=$as_save_IFS
18397   test -z "$as_dir" && as_dir=.
18398     for ac_exec_ext in '' $ac_executable_extensions; do
18399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18400     ac_cv_prog_PTHREAD_CC="$ac_prog"
18401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18402     break 2
18403   fi
18404 done
18405   done
18406 IFS=$as_save_IFS
18407
18408 fi
18409 fi
18410 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18411 if test -n "$PTHREAD_CC"; then
18412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18413 $as_echo "$PTHREAD_CC" >&6; }
18414 else
18415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18417 fi
18418
18419
18420   test -n "$PTHREAD_CC" && break
18421 done
18422 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18423  ;;
18424 esac ;; #(
18425   *) :
18426      ;;
18427 esac
18428                 ;;
18429             esac
18430         fi
18431 fi
18432
18433 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18434
18435
18436
18437
18438
18439 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18440 if test x"$ax_pthread_ok" = xyes; then
18441         have_pthread=true
18442         :
18443 else
18444         ax_pthread_ok=no
18445
18446 fi
18447 ac_ext=c
18448 ac_cpp='$CPP $CPPFLAGS'
18449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452
18453
18454 fi
18455 if $have_pthread; then
18456         LIBS="$PTHREAD_LIBS $LIBS"
18457         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18458         CC="$PTHREAD_CC"
18459
18460 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18461
18462 fi
18463  if $have_pthread; then
18464   HAVE_PTHREAD_TRUE=
18465   HAVE_PTHREAD_FALSE='#'
18466 else
18467   HAVE_PTHREAD_TRUE='#'
18468   HAVE_PTHREAD_FALSE=
18469 fi
18470
18471
18472
18473
18474 #
18475 # Let people not build/install docs if they don't have docbook
18476 #
18477
18478 # Extract the first word of "docbook2html", so it can be a program name with args.
18479 set dummy docbook2html; ac_word=$2
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18481 $as_echo_n "checking for $ac_word... " >&6; }
18482 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
18483   $as_echo_n "(cached) " >&6
18484 else
18485   if test -n "$HASDOCBOOK"; then
18486   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
18487 else
18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18490 do
18491   IFS=$as_save_IFS
18492   test -z "$as_dir" && as_dir=.
18493     for ac_exec_ext in '' $ac_executable_extensions; do
18494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495     ac_cv_prog_HASDOCBOOK="yes"
18496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18497     break 2
18498   fi
18499 done
18500   done
18501 IFS=$as_save_IFS
18502
18503   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
18504 fi
18505 fi
18506 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
18507 if test -n "$HASDOCBOOK"; then
18508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
18509 $as_echo "$HASDOCBOOK" >&6; }
18510 else
18511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18513 fi
18514
18515
18516
18517  if test "x$HASDOCBOOK" = xyes; then
18518   USEDOCBOOK_TRUE=
18519   USEDOCBOOK_FALSE='#'
18520 else
18521   USEDOCBOOK_TRUE='#'
18522   USEDOCBOOK_FALSE=
18523 fi
18524
18525
18526 default_docs="yes"
18527 #
18528 # Check if docs exist or can be created
18529 #
18530 if test x$HASDOCBOOK = xno; then
18531         if test -f $srcdir/doc/fonts-conf.5; then
18532                 :
18533         else
18534                 default_docs="no"
18535         fi
18536 fi
18537
18538 # Check whether --enable-docs was given.
18539 if test "${enable_docs+set}" = set; then :
18540   enableval=$enable_docs;
18541 else
18542   enable_docs=$default_docs
18543 fi
18544
18545
18546  if test "x$enable_docs" = xyes; then
18547   ENABLE_DOCS_TRUE=
18548   ENABLE_DOCS_FALSE='#'
18549 else
18550   ENABLE_DOCS_TRUE='#'
18551   ENABLE_DOCS_FALSE=
18552 fi
18553
18554
18555 if test "x$enable_docs" = xyes; then
18556         tmp=funcs.$$
18557         cat $srcdir/doc/*.fncs | awk '
18558         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
18559         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
18560         /^@@/           { done = 0; }' > $tmp
18561         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
18562         echo DOCMAN3 $DOCMAN3
18563         rm -f $tmp
18564 else
18565         DOCMAN3=""
18566 fi
18567
18568
18569
18570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18571 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18572 if ${ac_cv_c_bigendian+:} false; then :
18573   $as_echo_n "(cached) " >&6
18574 else
18575   ac_cv_c_bigendian=unknown
18576     # See if we're dealing with a universal compiler.
18577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h.  */
18579 #ifndef __APPLE_CC__
18580                not a universal capable compiler
18581              #endif
18582              typedef int dummy;
18583
18584 _ACEOF
18585 if ac_fn_c_try_compile "$LINENO"; then :
18586
18587         # Check for potential -arch flags.  It is not universal unless
18588         # there are at least two -arch flags with different values.
18589         ac_arch=
18590         ac_prev=
18591         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18592          if test -n "$ac_prev"; then
18593            case $ac_word in
18594              i?86 | x86_64 | ppc | ppc64)
18595                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18596                  ac_arch=$ac_word
18597                else
18598                  ac_cv_c_bigendian=universal
18599                  break
18600                fi
18601                ;;
18602            esac
18603            ac_prev=
18604          elif test "x$ac_word" = "x-arch"; then
18605            ac_prev=arch
18606          fi
18607        done
18608 fi
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610     if test $ac_cv_c_bigendian = unknown; then
18611       # See if sys/param.h defines the BYTE_ORDER macro.
18612       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h.  */
18614 #include <sys/types.h>
18615              #include <sys/param.h>
18616
18617 int
18618 main ()
18619 {
18620 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18621                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18622                      && LITTLE_ENDIAN)
18623               bogus endian macros
18624              #endif
18625
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 if ac_fn_c_try_compile "$LINENO"; then :
18631   # It does; now see whether it defined to BIG_ENDIAN or not.
18632          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h.  */
18634 #include <sys/types.h>
18635                 #include <sys/param.h>
18636
18637 int
18638 main ()
18639 {
18640 #if BYTE_ORDER != BIG_ENDIAN
18641                  not big endian
18642                 #endif
18643
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 if ac_fn_c_try_compile "$LINENO"; then :
18649   ac_cv_c_bigendian=yes
18650 else
18651   ac_cv_c_bigendian=no
18652 fi
18653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654 fi
18655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656     fi
18657     if test $ac_cv_c_bigendian = unknown; then
18658       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h.  */
18661 #include <limits.h>
18662
18663 int
18664 main ()
18665 {
18666 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18667               bogus endian macros
18668              #endif
18669
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 if ac_fn_c_try_compile "$LINENO"; then :
18675   # It does; now see whether it defined to _BIG_ENDIAN or not.
18676          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h.  */
18678 #include <limits.h>
18679
18680 int
18681 main ()
18682 {
18683 #ifndef _BIG_ENDIAN
18684                  not big endian
18685                 #endif
18686
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 if ac_fn_c_try_compile "$LINENO"; then :
18692   ac_cv_c_bigendian=yes
18693 else
18694   ac_cv_c_bigendian=no
18695 fi
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697 fi
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699     fi
18700     if test $ac_cv_c_bigendian = unknown; then
18701       # Compile a test program.
18702       if test "$cross_compiling" = yes; then :
18703   # Try to guess by grepping values from an object file.
18704          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h.  */
18706 short int ascii_mm[] =
18707                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18708                 short int ascii_ii[] =
18709                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18710                 int use_ascii (int i) {
18711                   return ascii_mm[i] + ascii_ii[i];
18712                 }
18713                 short int ebcdic_ii[] =
18714                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18715                 short int ebcdic_mm[] =
18716                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18717                 int use_ebcdic (int i) {
18718                   return ebcdic_mm[i] + ebcdic_ii[i];
18719                 }
18720                 extern int foo;
18721
18722 int
18723 main ()
18724 {
18725 return use_ascii (foo) == use_ebcdic (foo);
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 if ac_fn_c_try_compile "$LINENO"; then :
18731   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18732               ac_cv_c_bigendian=yes
18733             fi
18734             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18735               if test "$ac_cv_c_bigendian" = unknown; then
18736                 ac_cv_c_bigendian=no
18737               else
18738                 # finding both strings is unlikely to happen, but who knows?
18739                 ac_cv_c_bigendian=unknown
18740               fi
18741             fi
18742 fi
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 else
18745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h.  */
18747 $ac_includes_default
18748 int
18749 main ()
18750 {
18751
18752              /* Are we little or big endian?  From Harbison&Steele.  */
18753              union
18754              {
18755                long int l;
18756                char c[sizeof (long int)];
18757              } u;
18758              u.l = 1;
18759              return u.c[sizeof (long int) - 1] == 1;
18760
18761   ;
18762   return 0;
18763 }
18764 _ACEOF
18765 if ac_fn_c_try_run "$LINENO"; then :
18766   ac_cv_c_bigendian=no
18767 else
18768   ac_cv_c_bigendian=yes
18769 fi
18770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18771   conftest.$ac_objext conftest.beam conftest.$ac_ext
18772 fi
18773
18774     fi
18775 fi
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18777 $as_echo "$ac_cv_c_bigendian" >&6; }
18778  case $ac_cv_c_bigendian in #(
18779    yes)
18780      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18781 ;; #(
18782    no)
18783       ;; #(
18784    universal)
18785
18786 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18787
18788      ;; #(
18789    *)
18790      as_fn_error $? "unknown endianness
18791  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18792  esac
18793
18794 # The cast to long int works around a bug in the HP C Compiler
18795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18797 # This bug is HP SR number 8606223364.
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18799 $as_echo_n "checking size of void *... " >&6; }
18800 if ${ac_cv_sizeof_void_p+:} false; then :
18801   $as_echo_n "(cached) " >&6
18802 else
18803   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
18804
18805 else
18806   if test "$ac_cv_type_void_p" = yes; then
18807      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18809 as_fn_error 77 "cannot compute sizeof (void *)
18810 See \`config.log' for more details" "$LINENO" 5; }
18811    else
18812      ac_cv_sizeof_void_p=0
18813    fi
18814 fi
18815
18816 fi
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18818 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18819
18820
18821
18822 cat >>confdefs.h <<_ACEOF
18823 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18824 _ACEOF
18825
18826
18827 # The cast to long int works around a bug in the HP C Compiler,
18828 # see AC_CHECK_SIZEOF for more information.
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
18830 $as_echo_n "checking alignment of double... " >&6; }
18831 if ${ac_cv_alignof_double+:} false; then :
18832   $as_echo_n "(cached) " >&6
18833 else
18834   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
18835 #ifndef offsetof
18836 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18837 #endif
18838 typedef struct { char x; double y; } ac__type_alignof_;"; then :
18839
18840 else
18841   if test "$ac_cv_type_double" = yes; then
18842      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18844 as_fn_error 77 "cannot compute alignment of double
18845 See \`config.log' for more details" "$LINENO" 5; }
18846    else
18847      ac_cv_alignof_double=0
18848    fi
18849 fi
18850
18851 fi
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
18853 $as_echo "$ac_cv_alignof_double" >&6; }
18854
18855
18856
18857 cat >>confdefs.h <<_ACEOF
18858 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
18859 _ACEOF
18860
18861
18862 # The cast to long int works around a bug in the HP C Compiler,
18863 # see AC_CHECK_SIZEOF for more information.
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
18865 $as_echo_n "checking alignment of void *... " >&6; }
18866 if ${ac_cv_alignof_void_p+:} false; then :
18867   $as_echo_n "(cached) " >&6
18868 else
18869   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
18870 #ifndef offsetof
18871 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18872 #endif
18873 typedef struct { char x; void * y; } ac__type_alignof_;"; then :
18874
18875 else
18876   if test "$ac_cv_type_void_p" = yes; then
18877      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18879 as_fn_error 77 "cannot compute alignment of void *
18880 See \`config.log' for more details" "$LINENO" 5; }
18881    else
18882      ac_cv_alignof_void_p=0
18883    fi
18884 fi
18885
18886 fi
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
18888 $as_echo "$ac_cv_alignof_void_p" >&6; }
18889
18890
18891
18892 cat >>confdefs.h <<_ACEOF
18893 #define ALIGNOF_VOID_P $ac_cv_alignof_void_p
18894 _ACEOF
18895
18896
18897
18898
18899
18900
18901
18902
18903 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-conflist/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml its/Makefile po/Makefile.in po-conf/Makefile.in test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
18904
18905 cat >confcache <<\_ACEOF
18906 # This file is a shell script that caches the results of configure
18907 # tests run on this system so they can be shared between configure
18908 # scripts and configure runs, see configure's option --config-cache.
18909 # It is not useful on other systems.  If it contains results you don't
18910 # want to keep, you may remove or edit it.
18911 #
18912 # config.status only pays attention to the cache file if you give it
18913 # the --recheck option to rerun configure.
18914 #
18915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18917 # following values.
18918
18919 _ACEOF
18920
18921 # The following way of writing the cache mishandles newlines in values,
18922 # but we know of no workaround that is simple, portable, and efficient.
18923 # So, we kill variables containing newlines.
18924 # Ultrix sh set writes to stderr and can't be redirected directly,
18925 # and sets the high bit in the cache file unless we assign to the vars.
18926 (
18927   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18928     eval ac_val=\$$ac_var
18929     case $ac_val in #(
18930     *${as_nl}*)
18931       case $ac_var in #(
18932       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18934       esac
18935       case $ac_var in #(
18936       _ | IFS | as_nl) ;; #(
18937       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18938       *) { eval $ac_var=; unset $ac_var;} ;;
18939       esac ;;
18940     esac
18941   done
18942
18943   (set) 2>&1 |
18944     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18945     *${as_nl}ac_space=\ *)
18946       # `set' does not quote correctly, so add quotes: double-quote
18947       # substitution turns \\\\ into \\, and sed turns \\ into \.
18948       sed -n \
18949         "s/'/'\\\\''/g;
18950           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18951       ;; #(
18952     *)
18953       # `set' quotes correctly as required by POSIX, so do not add quotes.
18954       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18955       ;;
18956     esac |
18957     sort
18958 ) |
18959   sed '
18960      /^ac_cv_env_/b end
18961      t clear
18962      :clear
18963      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18964      t end
18965      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18966      :end' >>confcache
18967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18968   if test -w "$cache_file"; then
18969     if test "x$cache_file" != "x/dev/null"; then
18970       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18971 $as_echo "$as_me: updating cache $cache_file" >&6;}
18972       if test ! -f "$cache_file" || test -h "$cache_file"; then
18973         cat confcache >"$cache_file"
18974       else
18975         case $cache_file in #(
18976         */* | ?:*)
18977           mv -f confcache "$cache_file"$$ &&
18978           mv -f "$cache_file"$$ "$cache_file" ;; #(
18979         *)
18980           mv -f confcache "$cache_file" ;;
18981         esac
18982       fi
18983     fi
18984   else
18985     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18986 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18987   fi
18988 fi
18989 rm -f confcache
18990
18991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18992 # Let make expand exec_prefix.
18993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18994
18995 DEFS=-DHAVE_CONFIG_H
18996
18997 ac_libobjs=
18998 ac_ltlibobjs=
18999 U=
19000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19001   # 1. Remove the extension, and $U if already installed.
19002   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19003   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19004   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19005   #    will be set to the directory where LIBOBJS objects are built.
19006   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19007   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19008 done
19009 LIBOBJS=$ac_libobjs
19010
19011 LTLIBOBJS=$ac_ltlibobjs
19012
19013
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19015 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19016    if test -n "$am_sleep_pid"; then
19017      # Hide warnings about reused PIDs.
19018      wait $am_sleep_pid 2>/dev/null
19019    fi
19020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19021 $as_echo "done" >&6; }
19022  if test -n "$EXEEXT"; then
19023   am__EXEEXT_TRUE=
19024   am__EXEEXT_FALSE='#'
19025 else
19026   am__EXEEXT_TRUE='#'
19027   am__EXEEXT_FALSE=
19028 fi
19029
19030 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19031   as_fn_error $? "conditional \"AMDEP\" was never defined.
19032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19033 fi
19034 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19035   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19037 fi
19038 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19039   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19041 fi
19042 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
19043   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
19044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19045 fi
19046 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
19047   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
19048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19049 fi
19050 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
19051   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
19052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19053 fi
19054 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
19055   as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
19056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19057 fi
19058 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19059   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19061 fi
19062 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
19063   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
19064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19065 fi
19066 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19067   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19069 fi
19070
19071
19072 : "${CONFIG_STATUS=./config.status}"
19073 ac_write_fail=0
19074 ac_clean_files_save=$ac_clean_files
19075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19078 as_write_fail=0
19079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19080 #! $SHELL
19081 # Generated by $as_me.
19082 # Run this file to recreate the current configuration.
19083 # Compiler output produced by configure, useful for debugging
19084 # configure, is in config.log if it exists.
19085
19086 debug=false
19087 ac_cs_recheck=false
19088 ac_cs_silent=false
19089
19090 SHELL=\${CONFIG_SHELL-$SHELL}
19091 export SHELL
19092 _ASEOF
19093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19094 ## -------------------- ##
19095 ## M4sh Initialization. ##
19096 ## -------------------- ##
19097
19098 # Be more Bourne compatible
19099 DUALCASE=1; export DUALCASE # for MKS sh
19100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19101   emulate sh
19102   NULLCMD=:
19103   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19104   # is contrary to our usage.  Disable this feature.
19105   alias -g '${1+"$@"}'='"$@"'
19106   setopt NO_GLOB_SUBST
19107 else
19108   case `(set -o) 2>/dev/null` in #(
19109   *posix*) :
19110     set -o posix ;; #(
19111   *) :
19112      ;;
19113 esac
19114 fi
19115
19116
19117 as_nl='
19118 '
19119 export as_nl
19120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19124 # Prefer a ksh shell builtin over an external printf program on Solaris,
19125 # but without wasting forks for bash or zsh.
19126 if test -z "$BASH_VERSION$ZSH_VERSION" \
19127     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19128   as_echo='print -r --'
19129   as_echo_n='print -rn --'
19130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19131   as_echo='printf %s\n'
19132   as_echo_n='printf %s'
19133 else
19134   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19135     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19136     as_echo_n='/usr/ucb/echo -n'
19137   else
19138     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19139     as_echo_n_body='eval
19140       arg=$1;
19141       case $arg in #(
19142       *"$as_nl"*)
19143         expr "X$arg" : "X\\(.*\\)$as_nl";
19144         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19145       esac;
19146       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19147     '
19148     export as_echo_n_body
19149     as_echo_n='sh -c $as_echo_n_body as_echo'
19150   fi
19151   export as_echo_body
19152   as_echo='sh -c $as_echo_body as_echo'
19153 fi
19154
19155 # The user is always right.
19156 if test "${PATH_SEPARATOR+set}" != set; then
19157   PATH_SEPARATOR=:
19158   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19159     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19160       PATH_SEPARATOR=';'
19161   }
19162 fi
19163
19164
19165 # IFS
19166 # We need space, tab and new line, in precisely that order.  Quoting is
19167 # there to prevent editors from complaining about space-tab.
19168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19169 # splitting by setting IFS to empty value.)
19170 IFS=" ""        $as_nl"
19171
19172 # Find who we are.  Look in the path if we contain no directory separator.
19173 as_myself=
19174 case $0 in #((
19175   *[\\/]* ) as_myself=$0 ;;
19176   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19177 for as_dir in $PATH
19178 do
19179   IFS=$as_save_IFS
19180   test -z "$as_dir" && as_dir=.
19181     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19182   done
19183 IFS=$as_save_IFS
19184
19185      ;;
19186 esac
19187 # We did not find ourselves, most probably we were run as `sh COMMAND'
19188 # in which case we are not to be found in the path.
19189 if test "x$as_myself" = x; then
19190   as_myself=$0
19191 fi
19192 if test ! -f "$as_myself"; then
19193   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19194   exit 1
19195 fi
19196
19197 # Unset variables that we do not need and which cause bugs (e.g. in
19198 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19199 # suppresses any "Segmentation fault" message there.  '((' could
19200 # trigger a bug in pdksh 5.2.14.
19201 for as_var in BASH_ENV ENV MAIL MAILPATH
19202 do eval test x\${$as_var+set} = xset \
19203   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19204 done
19205 PS1='$ '
19206 PS2='> '
19207 PS4='+ '
19208
19209 # NLS nuisances.
19210 LC_ALL=C
19211 export LC_ALL
19212 LANGUAGE=C
19213 export LANGUAGE
19214
19215 # CDPATH.
19216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19217
19218
19219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19220 # ----------------------------------------
19221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19223 # script with STATUS, using 1 if that was 0.
19224 as_fn_error ()
19225 {
19226   as_status=$1; test $as_status -eq 0 && as_status=1
19227   if test "$4"; then
19228     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19229     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19230   fi
19231   $as_echo "$as_me: error: $2" >&2
19232   as_fn_exit $as_status
19233 } # as_fn_error
19234
19235
19236 # as_fn_set_status STATUS
19237 # -----------------------
19238 # Set $? to STATUS, without forking.
19239 as_fn_set_status ()
19240 {
19241   return $1
19242 } # as_fn_set_status
19243
19244 # as_fn_exit STATUS
19245 # -----------------
19246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19247 as_fn_exit ()
19248 {
19249   set +e
19250   as_fn_set_status $1
19251   exit $1
19252 } # as_fn_exit
19253
19254 # as_fn_unset VAR
19255 # ---------------
19256 # Portably unset VAR.
19257 as_fn_unset ()
19258 {
19259   { eval $1=; unset $1;}
19260 }
19261 as_unset=as_fn_unset
19262 # as_fn_append VAR VALUE
19263 # ----------------------
19264 # Append the text in VALUE to the end of the definition contained in VAR. Take
19265 # advantage of any shell optimizations that allow amortized linear growth over
19266 # repeated appends, instead of the typical quadratic growth present in naive
19267 # implementations.
19268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19269   eval 'as_fn_append ()
19270   {
19271     eval $1+=\$2
19272   }'
19273 else
19274   as_fn_append ()
19275   {
19276     eval $1=\$$1\$2
19277   }
19278 fi # as_fn_append
19279
19280 # as_fn_arith ARG...
19281 # ------------------
19282 # Perform arithmetic evaluation on the ARGs, and store the result in the
19283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19284 # must be portable across $(()) and expr.
19285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19286   eval 'as_fn_arith ()
19287   {
19288     as_val=$(( $* ))
19289   }'
19290 else
19291   as_fn_arith ()
19292   {
19293     as_val=`expr "$@" || test $? -eq 1`
19294   }
19295 fi # as_fn_arith
19296
19297
19298 if expr a : '\(a\)' >/dev/null 2>&1 &&
19299    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19300   as_expr=expr
19301 else
19302   as_expr=false
19303 fi
19304
19305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19306   as_basename=basename
19307 else
19308   as_basename=false
19309 fi
19310
19311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19312   as_dirname=dirname
19313 else
19314   as_dirname=false
19315 fi
19316
19317 as_me=`$as_basename -- "$0" ||
19318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19319          X"$0" : 'X\(//\)$' \| \
19320          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19321 $as_echo X/"$0" |
19322     sed '/^.*\/\([^/][^/]*\)\/*$/{
19323             s//\1/
19324             q
19325           }
19326           /^X\/\(\/\/\)$/{
19327             s//\1/
19328             q
19329           }
19330           /^X\/\(\/\).*/{
19331             s//\1/
19332             q
19333           }
19334           s/.*/./; q'`
19335
19336 # Avoid depending upon Character Ranges.
19337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19340 as_cr_digits='0123456789'
19341 as_cr_alnum=$as_cr_Letters$as_cr_digits
19342
19343 ECHO_C= ECHO_N= ECHO_T=
19344 case `echo -n x` in #(((((
19345 -n*)
19346   case `echo 'xy\c'` in
19347   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19348   xy)  ECHO_C='\c';;
19349   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19350        ECHO_T=' ';;
19351   esac;;
19352 *)
19353   ECHO_N='-n';;
19354 esac
19355
19356 rm -f conf$$ conf$$.exe conf$$.file
19357 if test -d conf$$.dir; then
19358   rm -f conf$$.dir/conf$$.file
19359 else
19360   rm -f conf$$.dir
19361   mkdir conf$$.dir 2>/dev/null
19362 fi
19363 if (echo >conf$$.file) 2>/dev/null; then
19364   if ln -s conf$$.file conf$$ 2>/dev/null; then
19365     as_ln_s='ln -s'
19366     # ... but there are two gotchas:
19367     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19368     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19369     # In both cases, we have to default to `cp -pR'.
19370     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19371       as_ln_s='cp -pR'
19372   elif ln conf$$.file conf$$ 2>/dev/null; then
19373     as_ln_s=ln
19374   else
19375     as_ln_s='cp -pR'
19376   fi
19377 else
19378   as_ln_s='cp -pR'
19379 fi
19380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19381 rmdir conf$$.dir 2>/dev/null
19382
19383
19384 # as_fn_mkdir_p
19385 # -------------
19386 # Create "$as_dir" as a directory, including parents if necessary.
19387 as_fn_mkdir_p ()
19388 {
19389
19390   case $as_dir in #(
19391   -*) as_dir=./$as_dir;;
19392   esac
19393   test -d "$as_dir" || eval $as_mkdir_p || {
19394     as_dirs=
19395     while :; do
19396       case $as_dir in #(
19397       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19398       *) as_qdir=$as_dir;;
19399       esac
19400       as_dirs="'$as_qdir' $as_dirs"
19401       as_dir=`$as_dirname -- "$as_dir" ||
19402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19403          X"$as_dir" : 'X\(//\)[^/]' \| \
19404          X"$as_dir" : 'X\(//\)$' \| \
19405          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19406 $as_echo X"$as_dir" |
19407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19408             s//\1/
19409             q
19410           }
19411           /^X\(\/\/\)[^/].*/{
19412             s//\1/
19413             q
19414           }
19415           /^X\(\/\/\)$/{
19416             s//\1/
19417             q
19418           }
19419           /^X\(\/\).*/{
19420             s//\1/
19421             q
19422           }
19423           s/.*/./; q'`
19424       test -d "$as_dir" && break
19425     done
19426     test -z "$as_dirs" || eval "mkdir $as_dirs"
19427   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19428
19429
19430 } # as_fn_mkdir_p
19431 if mkdir -p . 2>/dev/null; then
19432   as_mkdir_p='mkdir -p "$as_dir"'
19433 else
19434   test -d ./-p && rmdir ./-p
19435   as_mkdir_p=false
19436 fi
19437
19438
19439 # as_fn_executable_p FILE
19440 # -----------------------
19441 # Test if FILE is an executable regular file.
19442 as_fn_executable_p ()
19443 {
19444   test -f "$1" && test -x "$1"
19445 } # as_fn_executable_p
19446 as_test_x='test -x'
19447 as_executable_p=as_fn_executable_p
19448
19449 # Sed expression to map a string onto a valid CPP name.
19450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19451
19452 # Sed expression to map a string onto a valid variable name.
19453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19454
19455
19456 exec 6>&1
19457 ## ----------------------------------- ##
19458 ## Main body of $CONFIG_STATUS script. ##
19459 ## ----------------------------------- ##
19460 _ASEOF
19461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19462
19463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19464 # Save the log message, to keep $0 and so on meaningful, and to
19465 # report actual input values of CONFIG_FILES etc. instead of their
19466 # values after options handling.
19467 ac_log="
19468 This file was extended by fontconfig $as_me 2.13.0, which was
19469 generated by GNU Autoconf 2.69.  Invocation command line was
19470
19471   CONFIG_FILES    = $CONFIG_FILES
19472   CONFIG_HEADERS  = $CONFIG_HEADERS
19473   CONFIG_LINKS    = $CONFIG_LINKS
19474   CONFIG_COMMANDS = $CONFIG_COMMANDS
19475   $ $0 $@
19476
19477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19478 "
19479
19480 _ACEOF
19481
19482 case $ac_config_files in *"
19483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19484 esac
19485
19486 case $ac_config_headers in *"
19487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19488 esac
19489
19490
19491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19492 # Files that config.status was made for.
19493 config_files="$ac_config_files"
19494 config_headers="$ac_config_headers"
19495 config_commands="$ac_config_commands"
19496
19497 _ACEOF
19498
19499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19500 ac_cs_usage="\
19501 \`$as_me' instantiates files and other configuration actions
19502 from templates according to the current configuration.  Unless the files
19503 and actions are specified as TAGs, all are instantiated by default.
19504
19505 Usage: $0 [OPTION]... [TAG]...
19506
19507   -h, --help       print this help, then exit
19508   -V, --version    print version number and configuration settings, then exit
19509       --config     print configuration, then exit
19510   -q, --quiet, --silent
19511                    do not print progress messages
19512   -d, --debug      don't remove temporary files
19513       --recheck    update $as_me by reconfiguring in the same conditions
19514       --file=FILE[:TEMPLATE]
19515                    instantiate the configuration file FILE
19516       --header=FILE[:TEMPLATE]
19517                    instantiate the configuration header FILE
19518
19519 Configuration files:
19520 $config_files
19521
19522 Configuration headers:
19523 $config_headers
19524
19525 Configuration commands:
19526 $config_commands
19527
19528 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
19529
19530 _ACEOF
19531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19532 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19533 ac_cs_version="\\
19534 fontconfig config.status 2.13.0
19535 configured by $0, generated by GNU Autoconf 2.69,
19536   with options \\"\$ac_cs_config\\"
19537
19538 Copyright (C) 2012 Free Software Foundation, Inc.
19539 This config.status script is free software; the Free Software Foundation
19540 gives unlimited permission to copy, distribute and modify it."
19541
19542 ac_pwd='$ac_pwd'
19543 srcdir='$srcdir'
19544 INSTALL='$INSTALL'
19545 MKDIR_P='$MKDIR_P'
19546 AWK='$AWK'
19547 test -n "\$AWK" || AWK=awk
19548 _ACEOF
19549
19550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19551 # The default lists apply if the user does not specify any file.
19552 ac_need_defaults=:
19553 while test $# != 0
19554 do
19555   case $1 in
19556   --*=?*)
19557     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19558     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19559     ac_shift=:
19560     ;;
19561   --*=)
19562     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19563     ac_optarg=
19564     ac_shift=:
19565     ;;
19566   *)
19567     ac_option=$1
19568     ac_optarg=$2
19569     ac_shift=shift
19570     ;;
19571   esac
19572
19573   case $ac_option in
19574   # Handling of the options.
19575   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19576     ac_cs_recheck=: ;;
19577   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19578     $as_echo "$ac_cs_version"; exit ;;
19579   --config | --confi | --conf | --con | --co | --c )
19580     $as_echo "$ac_cs_config"; exit ;;
19581   --debug | --debu | --deb | --de | --d | -d )
19582     debug=: ;;
19583   --file | --fil | --fi | --f )
19584     $ac_shift
19585     case $ac_optarg in
19586     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19587     '') as_fn_error $? "missing file argument" ;;
19588     esac
19589     as_fn_append CONFIG_FILES " '$ac_optarg'"
19590     ac_need_defaults=false;;
19591   --header | --heade | --head | --hea )
19592     $ac_shift
19593     case $ac_optarg in
19594     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19595     esac
19596     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19597     ac_need_defaults=false;;
19598   --he | --h)
19599     # Conflict between --help and --header
19600     as_fn_error $? "ambiguous option: \`$1'
19601 Try \`$0 --help' for more information.";;
19602   --help | --hel | -h )
19603     $as_echo "$ac_cs_usage"; exit ;;
19604   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19605   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19606     ac_cs_silent=: ;;
19607
19608   # This is an error.
19609   -*) as_fn_error $? "unrecognized option: \`$1'
19610 Try \`$0 --help' for more information." ;;
19611
19612   *) as_fn_append ac_config_targets " $1"
19613      ac_need_defaults=false ;;
19614
19615   esac
19616   shift
19617 done
19618
19619 ac_configure_extra_args=
19620
19621 if $ac_cs_silent; then
19622   exec 6>/dev/null
19623   ac_configure_extra_args="$ac_configure_extra_args --silent"
19624 fi
19625
19626 _ACEOF
19627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19628 if \$ac_cs_recheck; then
19629   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19630   shift
19631   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19632   CONFIG_SHELL='$SHELL'
19633   export CONFIG_SHELL
19634   exec "\$@"
19635 fi
19636
19637 _ACEOF
19638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19639 exec 5>>config.log
19640 {
19641   echo
19642   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19643 ## Running $as_me. ##
19644 _ASBOX
19645   $as_echo "$ac_log"
19646 } >&5
19647
19648 _ACEOF
19649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19650 #
19651 # INIT-COMMANDS
19652 #
19653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19654
19655
19656 # The HP-UX ksh and POSIX shell print the target directory to stdout
19657 # if CDPATH is set.
19658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19659
19660 sed_quote_subst='$sed_quote_subst'
19661 double_quote_subst='$double_quote_subst'
19662 delay_variable_subst='$delay_variable_subst'
19663 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19664 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19665 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19666 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19667 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19668 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19669 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19670 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19671 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19672 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19673 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19674 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19675 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19676 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19677 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19678 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19679 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19680 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19681 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19682 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19683 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19684 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19685 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19686 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19687 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19688 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19689 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19690 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19691 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19692 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19693 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19694 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19695 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19696 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19697 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19698 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19699 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19700 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19701 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19702 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19703 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19704 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19705 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19706 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19707 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19708 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19709 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19710 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19711 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19712 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19713 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19714 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19715 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19716 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19717 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19718 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19719 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19720 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19721 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19722 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"`'
19723 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19724 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19725 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19726 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19727 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19728 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19729 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19730 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19731 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19732 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19733 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19734 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19735 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19736 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19737 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19738 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19739 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19740 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19741 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19742 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19743 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19744 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19745 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19746 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19747 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19748 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19749 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19750 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19751 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19752 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19753 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19754 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19755 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19756 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19757 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19758 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19759 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19760 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19761 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19762 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19763 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19764 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19765 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19766 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19767 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19768 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19769 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19770 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19771 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19772 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19773 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19774 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19775 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19776 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19777 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19778 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19779 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19780 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19781 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19782 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19783 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19784 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19785 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19786 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19787 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19788 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19789 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19790 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19791 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19792 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19793 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19794 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19795 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19796 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19797 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19798 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19799
19800 LTCC='$LTCC'
19801 LTCFLAGS='$LTCFLAGS'
19802 compiler='$compiler_DEFAULT'
19803
19804 # A function that is used when there is no print builtin or printf.
19805 func_fallback_echo ()
19806 {
19807   eval 'cat <<_LTECHO_EOF
19808 \$1
19809 _LTECHO_EOF'
19810 }
19811
19812 # Quote evaled strings.
19813 for var in AS \
19814 DLLTOOL \
19815 OBJDUMP \
19816 SHELL \
19817 ECHO \
19818 PATH_SEPARATOR \
19819 SED \
19820 GREP \
19821 EGREP \
19822 FGREP \
19823 LD \
19824 NM \
19825 LN_S \
19826 lt_SP2NL \
19827 lt_NL2SP \
19828 reload_flag \
19829 deplibs_check_method \
19830 file_magic_cmd \
19831 file_magic_glob \
19832 want_nocaseglob \
19833 sharedlib_from_linklib_cmd \
19834 AR \
19835 AR_FLAGS \
19836 archiver_list_spec \
19837 STRIP \
19838 RANLIB \
19839 CC \
19840 CFLAGS \
19841 compiler \
19842 lt_cv_sys_global_symbol_pipe \
19843 lt_cv_sys_global_symbol_to_cdecl \
19844 lt_cv_sys_global_symbol_to_import \
19845 lt_cv_sys_global_symbol_to_c_name_address \
19846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19847 lt_cv_nm_interface \
19848 nm_file_list_spec \
19849 lt_cv_truncate_bin \
19850 lt_prog_compiler_no_builtin_flag \
19851 lt_prog_compiler_pic \
19852 lt_prog_compiler_wl \
19853 lt_prog_compiler_static \
19854 lt_cv_prog_compiler_c_o \
19855 need_locks \
19856 MANIFEST_TOOL \
19857 DSYMUTIL \
19858 NMEDIT \
19859 LIPO \
19860 OTOOL \
19861 OTOOL64 \
19862 shrext_cmds \
19863 export_dynamic_flag_spec \
19864 whole_archive_flag_spec \
19865 compiler_needs_object \
19866 with_gnu_ld \
19867 allow_undefined_flag \
19868 no_undefined_flag \
19869 hardcode_libdir_flag_spec \
19870 hardcode_libdir_separator \
19871 exclude_expsyms \
19872 include_expsyms \
19873 file_list_spec \
19874 variables_saved_for_relink \
19875 libname_spec \
19876 library_names_spec \
19877 soname_spec \
19878 install_override_mode \
19879 finish_eval \
19880 old_striplib \
19881 striplib; do
19882     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19883     *[\\\\\\\`\\"\\\$]*)
19884       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19885       ;;
19886     *)
19887       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19888       ;;
19889     esac
19890 done
19891
19892 # Double-quote double-evaled strings.
19893 for var in reload_cmds \
19894 old_postinstall_cmds \
19895 old_postuninstall_cmds \
19896 old_archive_cmds \
19897 extract_expsyms_cmds \
19898 old_archive_from_new_cmds \
19899 old_archive_from_expsyms_cmds \
19900 archive_cmds \
19901 archive_expsym_cmds \
19902 module_cmds \
19903 module_expsym_cmds \
19904 export_symbols_cmds \
19905 prelink_cmds \
19906 postlink_cmds \
19907 postinstall_cmds \
19908 postuninstall_cmds \
19909 finish_cmds \
19910 sys_lib_search_path_spec \
19911 configure_time_dlsearch_path \
19912 configure_time_lt_sys_library_path; do
19913     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19914     *[\\\\\\\`\\"\\\$]*)
19915       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19916       ;;
19917     *)
19918       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19919       ;;
19920     esac
19921 done
19922
19923 ac_aux_dir='$ac_aux_dir'
19924
19925 # See if we are running on zsh, and set the options that allow our
19926 # commands through without removal of \ escapes INIT.
19927 if test -n "\${ZSH_VERSION+set}"; then
19928    setopt NO_GLOB_SUBST
19929 fi
19930
19931
19932     PACKAGE='$PACKAGE'
19933     VERSION='$VERSION'
19934     RM='$RM'
19935     ofile='$ofile'
19936
19937
19938
19939 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19940     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19941     # from automake < 1.5.
19942     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19943     # Capture the value of LINGUAS because we need it to compute CATALOGS.
19944     LINGUAS="${LINGUAS-%UNSET%}"
19945
19946 # variables for create stdint.h replacement
19947 PACKAGE="$PACKAGE"
19948 VERSION="$VERSION"
19949 ac_stdint_h="$ac_stdint_h"
19950 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19951 ac_cv_stdint_message="$ac_cv_stdint_message"
19952 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19953 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19954 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19955 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19956 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19957 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19958 ac_cv_char_data_model="$ac_cv_char_data_model"
19959 ac_cv_long_data_model="$ac_cv_long_data_model"
19960 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19961 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19962 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19963
19964
19965 _ACEOF
19966
19967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19968
19969 # Handling of arguments.
19970 for ac_config_target in $ac_config_targets
19971 do
19972   case $ac_config_target in
19973     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19974     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19975     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19976     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19977     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19978     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19979     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
19980     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
19981     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
19982     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19983     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
19984     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
19985     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
19986     "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
19987     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
19988     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
19989     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
19990     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
19991     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
19992     "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
19993     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19994     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
19995     "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
19996     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19997     "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
19998     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19999     "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
20000     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
20001     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
20002
20003   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20004   esac
20005 done
20006
20007
20008 # If the user did not use the arguments to specify the items to instantiate,
20009 # then the envvar interface is used.  Set only those that are not.
20010 # We use the long form for the default assignment because of an extremely
20011 # bizarre bug on SunOS 4.1.3.
20012 if $ac_need_defaults; then
20013   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20014   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20015   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20016 fi
20017
20018 # Have a temporary directory for convenience.  Make it in the build tree
20019 # simply because there is no reason against having it here, and in addition,
20020 # creating and moving files from /tmp can sometimes cause problems.
20021 # Hook for its removal unless debugging.
20022 # Note that there is a small window in which the directory will not be cleaned:
20023 # after its creation but before its name has been assigned to `$tmp'.
20024 $debug ||
20025 {
20026   tmp= ac_tmp=
20027   trap 'exit_status=$?
20028   : "${ac_tmp:=$tmp}"
20029   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20030 ' 0
20031   trap 'as_fn_exit 1' 1 2 13 15
20032 }
20033 # Create a (secure) tmp directory for tmp files.
20034
20035 {
20036   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20037   test -d "$tmp"
20038 }  ||
20039 {
20040   tmp=./conf$$-$RANDOM
20041   (umask 077 && mkdir "$tmp")
20042 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20043 ac_tmp=$tmp
20044
20045 # Set up the scripts for CONFIG_FILES section.
20046 # No need to generate them if there are no CONFIG_FILES.
20047 # This happens for instance with `./config.status config.h'.
20048 if test -n "$CONFIG_FILES"; then
20049
20050
20051 ac_cr=`echo X | tr X '\015'`
20052 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20053 # But we know of no other shell where ac_cr would be empty at this
20054 # point, so we can use a bashism as a fallback.
20055 if test "x$ac_cr" = x; then
20056   eval ac_cr=\$\'\\r\'
20057 fi
20058 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20059 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20060   ac_cs_awk_cr='\\r'
20061 else
20062   ac_cs_awk_cr=$ac_cr
20063 fi
20064
20065 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20066 _ACEOF
20067
20068
20069 {
20070   echo "cat >conf$$subs.awk <<_ACEOF" &&
20071   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20072   echo "_ACEOF"
20073 } >conf$$subs.sh ||
20074   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20075 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20076 ac_delim='%!_!# '
20077 for ac_last_try in false false false false false :; do
20078   . ./conf$$subs.sh ||
20079     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20080
20081   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20082   if test $ac_delim_n = $ac_delim_num; then
20083     break
20084   elif $ac_last_try; then
20085     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20086   else
20087     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20088   fi
20089 done
20090 rm -f conf$$subs.sh
20091
20092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20093 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20094 _ACEOF
20095 sed -n '
20096 h
20097 s/^/S["/; s/!.*/"]=/
20098 p
20099 g
20100 s/^[^!]*!//
20101 :repl
20102 t repl
20103 s/'"$ac_delim"'$//
20104 t delim
20105 :nl
20106 h
20107 s/\(.\{148\}\)..*/\1/
20108 t more1
20109 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20110 p
20111 n
20112 b repl
20113 :more1
20114 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20115 p
20116 g
20117 s/.\{148\}//
20118 t nl
20119 :delim
20120 h
20121 s/\(.\{148\}\)..*/\1/
20122 t more2
20123 s/["\\]/\\&/g; s/^/"/; s/$/"/
20124 p
20125 b
20126 :more2
20127 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20128 p
20129 g
20130 s/.\{148\}//
20131 t delim
20132 ' <conf$$subs.awk | sed '
20133 /^[^""]/{
20134   N
20135   s/\n//
20136 }
20137 ' >>$CONFIG_STATUS || ac_write_fail=1
20138 rm -f conf$$subs.awk
20139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20140 _ACAWK
20141 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20142   for (key in S) S_is_set[key] = 1
20143   FS = "\a"
20144
20145 }
20146 {
20147   line = $ 0
20148   nfields = split(line, field, "@")
20149   substed = 0
20150   len = length(field[1])
20151   for (i = 2; i < nfields; i++) {
20152     key = field[i]
20153     keylen = length(key)
20154     if (S_is_set[key]) {
20155       value = S[key]
20156       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20157       len += length(value) + length(field[++i])
20158       substed = 1
20159     } else
20160       len += 1 + keylen
20161   }
20162
20163   print line
20164 }
20165
20166 _ACAWK
20167 _ACEOF
20168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20169 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20170   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20171 else
20172   cat
20173 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20174   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20175 _ACEOF
20176
20177 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20178 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20179 # trailing colons and then remove the whole line if VPATH becomes empty
20180 # (actually we leave an empty line to preserve line numbers).
20181 if test "x$srcdir" = x.; then
20182   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20183 h
20184 s///
20185 s/^/:/
20186 s/[      ]*$/:/
20187 s/:\$(srcdir):/:/g
20188 s/:\${srcdir}:/:/g
20189 s/:@srcdir@:/:/g
20190 s/^:*//
20191 s/:*$//
20192 x
20193 s/\(=[   ]*\).*/\1/
20194 G
20195 s/\n//
20196 s/^[^=]*=[       ]*$//
20197 }'
20198 fi
20199
20200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20201 fi # test -n "$CONFIG_FILES"
20202
20203 # Set up the scripts for CONFIG_HEADERS section.
20204 # No need to generate them if there are no CONFIG_HEADERS.
20205 # This happens for instance with `./config.status Makefile'.
20206 if test -n "$CONFIG_HEADERS"; then
20207 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20208 BEGIN {
20209 _ACEOF
20210
20211 # Transform confdefs.h into an awk script `defines.awk', embedded as
20212 # here-document in config.status, that substitutes the proper values into
20213 # config.h.in to produce config.h.
20214
20215 # Create a delimiter string that does not exist in confdefs.h, to ease
20216 # handling of long lines.
20217 ac_delim='%!_!# '
20218 for ac_last_try in false false :; do
20219   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20220   if test -z "$ac_tt"; then
20221     break
20222   elif $ac_last_try; then
20223     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20224   else
20225     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20226   fi
20227 done
20228
20229 # For the awk script, D is an array of macro values keyed by name,
20230 # likewise P contains macro parameters if any.  Preserve backslash
20231 # newline sequences.
20232
20233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20234 sed -n '
20235 s/.\{148\}/&'"$ac_delim"'/g
20236 t rset
20237 :rset
20238 s/^[     ]*#[    ]*define[       ][      ]*/ /
20239 t def
20240 d
20241 :def
20242 s/\\$//
20243 t bsnl
20244 s/["\\]/\\&/g
20245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20246 D["\1"]=" \3"/p
20247 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20248 d
20249 :bsnl
20250 s/["\\]/\\&/g
20251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20252 D["\1"]=" \3\\\\\\n"\\/p
20253 t cont
20254 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20255 t cont
20256 d
20257 :cont
20258 n
20259 s/.\{148\}/&'"$ac_delim"'/g
20260 t clear
20261 :clear
20262 s/\\$//
20263 t bsnlc
20264 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20265 d
20266 :bsnlc
20267 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20268 b cont
20269 ' <confdefs.h | sed '
20270 s/'"$ac_delim"'/"\\\
20271 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20272
20273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274   for (key in D) D_is_set[key] = 1
20275   FS = "\a"
20276 }
20277 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20278   line = \$ 0
20279   split(line, arg, " ")
20280   if (arg[1] == "#") {
20281     defundef = arg[2]
20282     mac1 = arg[3]
20283   } else {
20284     defundef = substr(arg[1], 2)
20285     mac1 = arg[2]
20286   }
20287   split(mac1, mac2, "(") #)
20288   macro = mac2[1]
20289   prefix = substr(line, 1, index(line, defundef) - 1)
20290   if (D_is_set[macro]) {
20291     # Preserve the white space surrounding the "#".
20292     print prefix "define", macro P[macro] D[macro]
20293     next
20294   } else {
20295     # Replace #undef with comments.  This is necessary, for example,
20296     # in the case of _POSIX_SOURCE, which is predefined and required
20297     # on some systems where configure will not decide to define it.
20298     if (defundef == "undef") {
20299       print "/*", prefix defundef, macro, "*/"
20300       next
20301     }
20302   }
20303 }
20304 { print }
20305 _ACAWK
20306 _ACEOF
20307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20308   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20309 fi # test -n "$CONFIG_HEADERS"
20310
20311
20312 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20313 shift
20314 for ac_tag
20315 do
20316   case $ac_tag in
20317   :[FHLC]) ac_mode=$ac_tag; continue;;
20318   esac
20319   case $ac_mode$ac_tag in
20320   :[FHL]*:*);;
20321   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20322   :[FH]-) ac_tag=-:-;;
20323   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20324   esac
20325   ac_save_IFS=$IFS
20326   IFS=:
20327   set x $ac_tag
20328   IFS=$ac_save_IFS
20329   shift
20330   ac_file=$1
20331   shift
20332
20333   case $ac_mode in
20334   :L) ac_source=$1;;
20335   :[FH])
20336     ac_file_inputs=
20337     for ac_f
20338     do
20339       case $ac_f in
20340       -) ac_f="$ac_tmp/stdin";;
20341       *) # Look for the file first in the build tree, then in the source tree
20342          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20343          # because $ac_f cannot contain `:'.
20344          test -f "$ac_f" ||
20345            case $ac_f in
20346            [\\/$]*) false;;
20347            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20348            esac ||
20349            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20350       esac
20351       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20352       as_fn_append ac_file_inputs " '$ac_f'"
20353     done
20354
20355     # Let's still pretend it is `configure' which instantiates (i.e., don't
20356     # use $as_me), people would be surprised to read:
20357     #    /* config.h.  Generated by config.status.  */
20358     configure_input='Generated from '`
20359           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20360         `' by configure.'
20361     if test x"$ac_file" != x-; then
20362       configure_input="$ac_file.  $configure_input"
20363       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20364 $as_echo "$as_me: creating $ac_file" >&6;}
20365     fi
20366     # Neutralize special characters interpreted by sed in replacement strings.
20367     case $configure_input in #(
20368     *\&* | *\|* | *\\* )
20369        ac_sed_conf_input=`$as_echo "$configure_input" |
20370        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20371     *) ac_sed_conf_input=$configure_input;;
20372     esac
20373
20374     case $ac_tag in
20375     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20376       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20377     esac
20378     ;;
20379   esac
20380
20381   ac_dir=`$as_dirname -- "$ac_file" ||
20382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20383          X"$ac_file" : 'X\(//\)[^/]' \| \
20384          X"$ac_file" : 'X\(//\)$' \| \
20385          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20386 $as_echo X"$ac_file" |
20387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20388             s//\1/
20389             q
20390           }
20391           /^X\(\/\/\)[^/].*/{
20392             s//\1/
20393             q
20394           }
20395           /^X\(\/\/\)$/{
20396             s//\1/
20397             q
20398           }
20399           /^X\(\/\).*/{
20400             s//\1/
20401             q
20402           }
20403           s/.*/./; q'`
20404   as_dir="$ac_dir"; as_fn_mkdir_p
20405   ac_builddir=.
20406
20407 case "$ac_dir" in
20408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20409 *)
20410   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20411   # A ".." for each directory in $ac_dir_suffix.
20412   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20413   case $ac_top_builddir_sub in
20414   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20415   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20416   esac ;;
20417 esac
20418 ac_abs_top_builddir=$ac_pwd
20419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20420 # for backward compatibility:
20421 ac_top_builddir=$ac_top_build_prefix
20422
20423 case $srcdir in
20424   .)  # We are building in place.
20425     ac_srcdir=.
20426     ac_top_srcdir=$ac_top_builddir_sub
20427     ac_abs_top_srcdir=$ac_pwd ;;
20428   [\\/]* | ?:[\\/]* )  # Absolute name.
20429     ac_srcdir=$srcdir$ac_dir_suffix;
20430     ac_top_srcdir=$srcdir
20431     ac_abs_top_srcdir=$srcdir ;;
20432   *) # Relative name.
20433     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20434     ac_top_srcdir=$ac_top_build_prefix$srcdir
20435     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20436 esac
20437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20438
20439
20440   case $ac_mode in
20441   :F)
20442   #
20443   # CONFIG_FILE
20444   #
20445
20446   case $INSTALL in
20447   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20448   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20449   esac
20450   ac_MKDIR_P=$MKDIR_P
20451   case $MKDIR_P in
20452   [\\/$]* | ?:[\\/]* ) ;;
20453   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20454   esac
20455 _ACEOF
20456
20457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20458 # If the template does not know about datarootdir, expand it.
20459 # FIXME: This hack should be removed a few years after 2.60.
20460 ac_datarootdir_hack=; ac_datarootdir_seen=
20461 ac_sed_dataroot='
20462 /datarootdir/ {
20463   p
20464   q
20465 }
20466 /@datadir@/p
20467 /@docdir@/p
20468 /@infodir@/p
20469 /@localedir@/p
20470 /@mandir@/p'
20471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20472 *datarootdir*) ac_datarootdir_seen=yes;;
20473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20474   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20476 _ACEOF
20477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20478   ac_datarootdir_hack='
20479   s&@datadir@&$datadir&g
20480   s&@docdir@&$docdir&g
20481   s&@infodir@&$infodir&g
20482   s&@localedir@&$localedir&g
20483   s&@mandir@&$mandir&g
20484   s&\\\${datarootdir}&$datarootdir&g' ;;
20485 esac
20486 _ACEOF
20487
20488 # Neutralize VPATH when `$srcdir' = `.'.
20489 # Shell code in configure.ac might set extrasub.
20490 # FIXME: do we really want to maintain this feature?
20491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20492 ac_sed_extra="$ac_vpsub
20493 $extrasub
20494 _ACEOF
20495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20496 :t
20497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20498 s|@configure_input@|$ac_sed_conf_input|;t t
20499 s&@top_builddir@&$ac_top_builddir_sub&;t t
20500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20501 s&@srcdir@&$ac_srcdir&;t t
20502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20503 s&@top_srcdir@&$ac_top_srcdir&;t t
20504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20505 s&@builddir@&$ac_builddir&;t t
20506 s&@abs_builddir@&$ac_abs_builddir&;t t
20507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20508 s&@INSTALL@&$ac_INSTALL&;t t
20509 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20510 $ac_datarootdir_hack
20511 "
20512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20513   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20514
20515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20516   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20517   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20518       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20520 which seems to be undefined.  Please make sure it is defined" >&5
20521 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20522 which seems to be undefined.  Please make sure it is defined" >&2;}
20523
20524   rm -f "$ac_tmp/stdin"
20525   case $ac_file in
20526   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20527   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20528   esac \
20529   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20530  ;;
20531   :H)
20532   #
20533   # CONFIG_HEADER
20534   #
20535   if test x"$ac_file" != x-; then
20536     {
20537       $as_echo "/* $configure_input  */" \
20538       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20539     } >"$ac_tmp/config.h" \
20540       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20541     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20542       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20543 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20544     else
20545       rm -f "$ac_file"
20546       mv "$ac_tmp/config.h" "$ac_file" \
20547         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20548     fi
20549   else
20550     $as_echo "/* $configure_input  */" \
20551       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20552       || as_fn_error $? "could not create -" "$LINENO" 5
20553   fi
20554 # Compute "$ac_file"'s index in $config_headers.
20555 _am_arg="$ac_file"
20556 _am_stamp_count=1
20557 for _am_header in $config_headers :; do
20558   case $_am_header in
20559     $_am_arg | $_am_arg:* )
20560       break ;;
20561     * )
20562       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20563   esac
20564 done
20565 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20566 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20567          X"$_am_arg" : 'X\(//\)[^/]' \| \
20568          X"$_am_arg" : 'X\(//\)$' \| \
20569          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20570 $as_echo X"$_am_arg" |
20571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20572             s//\1/
20573             q
20574           }
20575           /^X\(\/\/\)[^/].*/{
20576             s//\1/
20577             q
20578           }
20579           /^X\(\/\/\)$/{
20580             s//\1/
20581             q
20582           }
20583           /^X\(\/\).*/{
20584             s//\1/
20585             q
20586           }
20587           s/.*/./; q'`/stamp-h$_am_stamp_count
20588  ;;
20589
20590   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20591 $as_echo "$as_me: executing $ac_file commands" >&6;}
20592  ;;
20593   esac
20594
20595
20596   case $ac_file$ac_mode in
20597     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20598   # Older Autoconf quotes --file arguments for eval, but not when files
20599   # are listed without --file.  Let's play safe and only enable the eval
20600   # if we detect the quoting.
20601   case $CONFIG_FILES in
20602   *\'*) eval set x "$CONFIG_FILES" ;;
20603   *)   set x $CONFIG_FILES ;;
20604   esac
20605   shift
20606   for mf
20607   do
20608     # Strip MF so we end up with the name of the file.
20609     mf=`echo "$mf" | sed -e 's/:.*$//'`
20610     # Check whether this is an Automake generated Makefile or not.
20611     # We used to match only the files named 'Makefile.in', but
20612     # some people rename them; so instead we look at the file content.
20613     # Grep'ing the first line is not enough: some people post-process
20614     # each Makefile.in and add a new line on top of each file to say so.
20615     # Grep'ing the whole file is not good either: AIX grep has a line
20616     # limit of 2048, but all sed's we know have understand at least 4000.
20617     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20618       dirpart=`$as_dirname -- "$mf" ||
20619 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20620          X"$mf" : 'X\(//\)[^/]' \| \
20621          X"$mf" : 'X\(//\)$' \| \
20622          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20623 $as_echo X"$mf" |
20624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20625             s//\1/
20626             q
20627           }
20628           /^X\(\/\/\)[^/].*/{
20629             s//\1/
20630             q
20631           }
20632           /^X\(\/\/\)$/{
20633             s//\1/
20634             q
20635           }
20636           /^X\(\/\).*/{
20637             s//\1/
20638             q
20639           }
20640           s/.*/./; q'`
20641     else
20642       continue
20643     fi
20644     # Extract the definition of DEPDIR, am__include, and am__quote
20645     # from the Makefile without running 'make'.
20646     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20647     test -z "$DEPDIR" && continue
20648     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20649     test -z "$am__include" && continue
20650     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20651     # Find all dependency output files, they are included files with
20652     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20653     # simplest approach to changing $(DEPDIR) to its actual value in the
20654     # expansion.
20655     for file in `sed -n "
20656       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20657          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20658       # Make sure the directory exists.
20659       test -f "$dirpart/$file" && continue
20660       fdir=`$as_dirname -- "$file" ||
20661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20662          X"$file" : 'X\(//\)[^/]' \| \
20663          X"$file" : 'X\(//\)$' \| \
20664          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20665 $as_echo X"$file" |
20666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20667             s//\1/
20668             q
20669           }
20670           /^X\(\/\/\)[^/].*/{
20671             s//\1/
20672             q
20673           }
20674           /^X\(\/\/\)$/{
20675             s//\1/
20676             q
20677           }
20678           /^X\(\/\).*/{
20679             s//\1/
20680             q
20681           }
20682           s/.*/./; q'`
20683       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20684       # echo "creating $dirpart/$file"
20685       echo '# dummy' > "$dirpart/$file"
20686     done
20687   done
20688 }
20689  ;;
20690     "libtool":C)
20691
20692     # See if we are running on zsh, and set the options that allow our
20693     # commands through without removal of \ escapes.
20694     if test -n "${ZSH_VERSION+set}"; then
20695       setopt NO_GLOB_SUBST
20696     fi
20697
20698     cfgfile=${ofile}T
20699     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20700     $RM "$cfgfile"
20701
20702     cat <<_LT_EOF >> "$cfgfile"
20703 #! $SHELL
20704 # Generated automatically by $as_me ($PACKAGE) $VERSION
20705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20707
20708 # Provide generalized library-building support services.
20709 # Written by Gordon Matzigkeit, 1996
20710
20711 # Copyright (C) 2014 Free Software Foundation, Inc.
20712 # This is free software; see the source for copying conditions.  There is NO
20713 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20714
20715 # GNU Libtool is free software; you can redistribute it and/or modify
20716 # it under the terms of the GNU General Public License as published by
20717 # the Free Software Foundation; either version 2 of of the License, or
20718 # (at your option) any later version.
20719 #
20720 # As a special exception to the GNU General Public License, if you
20721 # distribute this file as part of a program or library that is built
20722 # using GNU Libtool, you may include this file under the  same
20723 # distribution terms that you use for the rest of that program.
20724 #
20725 # GNU Libtool is distributed in the hope that it will be useful, but
20726 # WITHOUT ANY WARRANTY; without even the implied warranty of
20727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20728 # GNU General Public License for more details.
20729 #
20730 # You should have received a copy of the GNU General Public License
20731 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20732
20733
20734 # The names of the tagged configurations supported by this script.
20735 available_tags=''
20736
20737 # Configured defaults for sys_lib_dlsearch_path munging.
20738 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20739
20740 # ### BEGIN LIBTOOL CONFIG
20741
20742 # Which release of libtool.m4 was used?
20743 macro_version=$macro_version
20744 macro_revision=$macro_revision
20745
20746 # Whether or not to build static libraries.
20747 build_old_libs=$enable_static
20748
20749 # Assembler program.
20750 AS=$lt_AS
20751
20752 # DLL creation program.
20753 DLLTOOL=$lt_DLLTOOL
20754
20755 # Object dumper program.
20756 OBJDUMP=$lt_OBJDUMP
20757
20758 # Whether or not to build shared libraries.
20759 build_libtool_libs=$enable_shared
20760
20761 # What type of objects to build.
20762 pic_mode=$pic_mode
20763
20764 # Whether or not to optimize for fast installation.
20765 fast_install=$enable_fast_install
20766
20767 # Shared archive member basename,for filename based shared library versioning on AIX.
20768 shared_archive_member_spec=$shared_archive_member_spec
20769
20770 # Shell to use when invoking shell scripts.
20771 SHELL=$lt_SHELL
20772
20773 # An echo program that protects backslashes.
20774 ECHO=$lt_ECHO
20775
20776 # The PATH separator for the build system.
20777 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20778
20779 # The host system.
20780 host_alias=$host_alias
20781 host=$host
20782 host_os=$host_os
20783
20784 # The build system.
20785 build_alias=$build_alias
20786 build=$build
20787 build_os=$build_os
20788
20789 # A sed program that does not truncate output.
20790 SED=$lt_SED
20791
20792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20793 Xsed="\$SED -e 1s/^X//"
20794
20795 # A grep program that handles long lines.
20796 GREP=$lt_GREP
20797
20798 # An ERE matcher.
20799 EGREP=$lt_EGREP
20800
20801 # A literal string matcher.
20802 FGREP=$lt_FGREP
20803
20804 # A BSD- or MS-compatible name lister.
20805 NM=$lt_NM
20806
20807 # Whether we need soft or hard links.
20808 LN_S=$lt_LN_S
20809
20810 # What is the maximum length of a command?
20811 max_cmd_len=$max_cmd_len
20812
20813 # Object file suffix (normally "o").
20814 objext=$ac_objext
20815
20816 # Executable file suffix (normally "").
20817 exeext=$exeext
20818
20819 # whether the shell understands "unset".
20820 lt_unset=$lt_unset
20821
20822 # turn spaces into newlines.
20823 SP2NL=$lt_lt_SP2NL
20824
20825 # turn newlines into spaces.
20826 NL2SP=$lt_lt_NL2SP
20827
20828 # convert \$build file names to \$host format.
20829 to_host_file_cmd=$lt_cv_to_host_file_cmd
20830
20831 # convert \$build files to toolchain format.
20832 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20833
20834 # Method to check whether dependent libraries are shared objects.
20835 deplibs_check_method=$lt_deplibs_check_method
20836
20837 # Command to use when deplibs_check_method = "file_magic".
20838 file_magic_cmd=$lt_file_magic_cmd
20839
20840 # How to find potential files when deplibs_check_method = "file_magic".
20841 file_magic_glob=$lt_file_magic_glob
20842
20843 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20844 want_nocaseglob=$lt_want_nocaseglob
20845
20846 # Command to associate shared and link libraries.
20847 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20848
20849 # The archiver.
20850 AR=$lt_AR
20851
20852 # Flags to create an archive.
20853 AR_FLAGS=$lt_AR_FLAGS
20854
20855 # How to feed a file listing to the archiver.
20856 archiver_list_spec=$lt_archiver_list_spec
20857
20858 # A symbol stripping program.
20859 STRIP=$lt_STRIP
20860
20861 # Commands used to install an old-style archive.
20862 RANLIB=$lt_RANLIB
20863 old_postinstall_cmds=$lt_old_postinstall_cmds
20864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20865
20866 # Whether to use a lock for old archive extraction.
20867 lock_old_archive_extraction=$lock_old_archive_extraction
20868
20869 # A C compiler.
20870 LTCC=$lt_CC
20871
20872 # LTCC compiler flags.
20873 LTCFLAGS=$lt_CFLAGS
20874
20875 # Take the output of nm and produce a listing of raw symbols and C names.
20876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20877
20878 # Transform the output of nm in a proper C declaration.
20879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20880
20881 # Transform the output of nm into a list of symbols to manually relocate.
20882 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20883
20884 # Transform the output of nm in a C name address pair.
20885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20886
20887 # Transform the output of nm in a C name address pair when lib prefix is needed.
20888 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20889
20890 # The name lister interface.
20891 nm_interface=$lt_lt_cv_nm_interface
20892
20893 # Specify filename containing input files for \$NM.
20894 nm_file_list_spec=$lt_nm_file_list_spec
20895
20896 # The root where to search for dependent libraries,and where our libraries should be installed.
20897 lt_sysroot=$lt_sysroot
20898
20899 # Command to truncate a binary pipe.
20900 lt_truncate_bin=$lt_lt_cv_truncate_bin
20901
20902 # The name of the directory that contains temporary libtool files.
20903 objdir=$objdir
20904
20905 # Used to examine libraries when file_magic_cmd begins with "file".
20906 MAGIC_CMD=$MAGIC_CMD
20907
20908 # Must we lock files when doing compilation?
20909 need_locks=$lt_need_locks
20910
20911 # Manifest tool.
20912 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20913
20914 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20915 DSYMUTIL=$lt_DSYMUTIL
20916
20917 # Tool to change global to local symbols on Mac OS X.
20918 NMEDIT=$lt_NMEDIT
20919
20920 # Tool to manipulate fat objects and archives on Mac OS X.
20921 LIPO=$lt_LIPO
20922
20923 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20924 OTOOL=$lt_OTOOL
20925
20926 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20927 OTOOL64=$lt_OTOOL64
20928
20929 # Old archive suffix (normally "a").
20930 libext=$libext
20931
20932 # Shared library suffix (normally ".so").
20933 shrext_cmds=$lt_shrext_cmds
20934
20935 # The commands to extract the exported symbol list from a shared archive.
20936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20937
20938 # Variables whose values should be saved in libtool wrapper scripts and
20939 # restored at link time.
20940 variables_saved_for_relink=$lt_variables_saved_for_relink
20941
20942 # Do we need the "lib" prefix for modules?
20943 need_lib_prefix=$need_lib_prefix
20944
20945 # Do we need a version for libraries?
20946 need_version=$need_version
20947
20948 # Library versioning type.
20949 version_type=$version_type
20950
20951 # Shared library runtime path variable.
20952 runpath_var=$runpath_var
20953
20954 # Shared library path variable.
20955 shlibpath_var=$shlibpath_var
20956
20957 # Is shlibpath searched before the hard-coded library search path?
20958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20959
20960 # Format of library name prefix.
20961 libname_spec=$lt_libname_spec
20962
20963 # List of archive names.  First name is the real one, the rest are links.
20964 # The last name is the one that the linker finds with -lNAME
20965 library_names_spec=$lt_library_names_spec
20966
20967 # The coded name of the library, if different from the real name.
20968 soname_spec=$lt_soname_spec
20969
20970 # Permission mode override for installation of shared libraries.
20971 install_override_mode=$lt_install_override_mode
20972
20973 # Command to use after installation of a shared archive.
20974 postinstall_cmds=$lt_postinstall_cmds
20975
20976 # Command to use after uninstallation of a shared archive.
20977 postuninstall_cmds=$lt_postuninstall_cmds
20978
20979 # Commands used to finish a libtool library installation in a directory.
20980 finish_cmds=$lt_finish_cmds
20981
20982 # As "finish_cmds", except a single script fragment to be evaled but
20983 # not shown.
20984 finish_eval=$lt_finish_eval
20985
20986 # Whether we should hardcode library paths into libraries.
20987 hardcode_into_libs=$hardcode_into_libs
20988
20989 # Compile-time system search path for libraries.
20990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20991
20992 # Detected run-time system search path for libraries.
20993 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20994
20995 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20996 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20997
20998 # Whether dlopen is supported.
20999 dlopen_support=$enable_dlopen
21000
21001 # Whether dlopen of programs is supported.
21002 dlopen_self=$enable_dlopen_self
21003
21004 # Whether dlopen of statically linked programs is supported.
21005 dlopen_self_static=$enable_dlopen_self_static
21006
21007 # Commands to strip libraries.
21008 old_striplib=$lt_old_striplib
21009 striplib=$lt_striplib
21010
21011
21012 # The linker used to build libraries.
21013 LD=$lt_LD
21014
21015 # How to create reloadable object files.
21016 reload_flag=$lt_reload_flag
21017 reload_cmds=$lt_reload_cmds
21018
21019 # Commands used to build an old-style archive.
21020 old_archive_cmds=$lt_old_archive_cmds
21021
21022 # A language specific compiler.
21023 CC=$lt_compiler
21024
21025 # Is the compiler the GNU compiler?
21026 with_gcc=$GCC
21027
21028 # Compiler flag to turn off builtin functions.
21029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21030
21031 # Additional compiler flags for building library objects.
21032 pic_flag=$lt_lt_prog_compiler_pic
21033
21034 # How to pass a linker flag through the compiler.
21035 wl=$lt_lt_prog_compiler_wl
21036
21037 # Compiler flag to prevent dynamic linking.
21038 link_static_flag=$lt_lt_prog_compiler_static
21039
21040 # Does compiler simultaneously support -c and -o options?
21041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21042
21043 # Whether or not to add -lc for building shared libraries.
21044 build_libtool_need_lc=$archive_cmds_need_lc
21045
21046 # Whether or not to disallow shared libs when runtime libs are static.
21047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21048
21049 # Compiler flag to allow reflexive dlopens.
21050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21051
21052 # Compiler flag to generate shared objects directly from archives.
21053 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21054
21055 # Whether the compiler copes with passing no objects directly.
21056 compiler_needs_object=$lt_compiler_needs_object
21057
21058 # Create an old-style archive from a shared archive.
21059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21060
21061 # Create a temporary old-style archive to link instead of a shared archive.
21062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21063
21064 # Commands used to build a shared archive.
21065 archive_cmds=$lt_archive_cmds
21066 archive_expsym_cmds=$lt_archive_expsym_cmds
21067
21068 # Commands used to build a loadable module if different from building
21069 # a shared archive.
21070 module_cmds=$lt_module_cmds
21071 module_expsym_cmds=$lt_module_expsym_cmds
21072
21073 # Whether we are building with GNU ld or not.
21074 with_gnu_ld=$lt_with_gnu_ld
21075
21076 # Flag that allows shared libraries with undefined symbols to be built.
21077 allow_undefined_flag=$lt_allow_undefined_flag
21078
21079 # Flag that enforces no undefined symbols.
21080 no_undefined_flag=$lt_no_undefined_flag
21081
21082 # Flag to hardcode \$libdir into a binary during linking.
21083 # This must work even if \$libdir does not exist
21084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21085
21086 # Whether we need a single "-rpath" flag with a separated argument.
21087 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21088
21089 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21090 # DIR into the resulting binary.
21091 hardcode_direct=$hardcode_direct
21092
21093 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21094 # DIR into the resulting binary and the resulting library dependency is
21095 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21096 # library is relocated.
21097 hardcode_direct_absolute=$hardcode_direct_absolute
21098
21099 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21100 # into the resulting binary.
21101 hardcode_minus_L=$hardcode_minus_L
21102
21103 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21104 # into the resulting binary.
21105 hardcode_shlibpath_var=$hardcode_shlibpath_var
21106
21107 # Set to "yes" if building a shared library automatically hardcodes DIR
21108 # into the library and all subsequent libraries and executables linked
21109 # against it.
21110 hardcode_automatic=$hardcode_automatic
21111
21112 # Set to yes if linker adds runtime paths of dependent libraries
21113 # to runtime path list.
21114 inherit_rpath=$inherit_rpath
21115
21116 # Whether libtool must link a program against all its dependency libraries.
21117 link_all_deplibs=$link_all_deplibs
21118
21119 # Set to "yes" if exported symbols are required.
21120 always_export_symbols=$always_export_symbols
21121
21122 # The commands to list exported symbols.
21123 export_symbols_cmds=$lt_export_symbols_cmds
21124
21125 # Symbols that should not be listed in the preloaded symbols.
21126 exclude_expsyms=$lt_exclude_expsyms
21127
21128 # Symbols that must always be exported.
21129 include_expsyms=$lt_include_expsyms
21130
21131 # Commands necessary for linking programs (against libraries) with templates.
21132 prelink_cmds=$lt_prelink_cmds
21133
21134 # Commands necessary for finishing linking programs.
21135 postlink_cmds=$lt_postlink_cmds
21136
21137 # Specify filename containing input files.
21138 file_list_spec=$lt_file_list_spec
21139
21140 # How to hardcode a shared library path into an executable.
21141 hardcode_action=$hardcode_action
21142
21143 # ### END LIBTOOL CONFIG
21144
21145 _LT_EOF
21146
21147     cat <<'_LT_EOF' >> "$cfgfile"
21148
21149 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21150
21151 # func_munge_path_list VARIABLE PATH
21152 # -----------------------------------
21153 # VARIABLE is name of variable containing _space_ separated list of
21154 # directories to be munged by the contents of PATH, which is string
21155 # having a format:
21156 # "DIR[:DIR]:"
21157 #       string "DIR[ DIR]" will be prepended to VARIABLE
21158 # ":DIR[:DIR]"
21159 #       string "DIR[ DIR]" will be appended to VARIABLE
21160 # "DIRP[:DIRP]::[DIRA:]DIRA"
21161 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21162 #       "DIRA[ DIRA]" will be appended to VARIABLE
21163 # "DIR[:DIR]"
21164 #       VARIABLE will be replaced by "DIR[ DIR]"
21165 func_munge_path_list ()
21166 {
21167     case x$2 in
21168     x)
21169         ;;
21170     *:)
21171         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21172         ;;
21173     x:*)
21174         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21175         ;;
21176     *::*)
21177         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21178         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21179         ;;
21180     *)
21181         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21182         ;;
21183     esac
21184 }
21185
21186
21187 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21188 func_cc_basename ()
21189 {
21190     for cc_temp in $*""; do
21191       case $cc_temp in
21192         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21193         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21194         \-*) ;;
21195         *) break;;
21196       esac
21197     done
21198     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21199 }
21200
21201
21202 # ### END FUNCTIONS SHARED WITH CONFIGURE
21203
21204 _LT_EOF
21205
21206   case $host_os in
21207   aix3*)
21208     cat <<\_LT_EOF >> "$cfgfile"
21209 # AIX sometimes has problems with the GCC collect2 program.  For some
21210 # reason, if we set the COLLECT_NAMES environment variable, the problems
21211 # vanish in a puff of smoke.
21212 if test set != "${COLLECT_NAMES+set}"; then
21213   COLLECT_NAMES=
21214   export COLLECT_NAMES
21215 fi
21216 _LT_EOF
21217     ;;
21218   esac
21219
21220
21221 ltmain=$ac_aux_dir/ltmain.sh
21222
21223
21224   # We use sed instead of cat because bash on DJGPP gets confused if
21225   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21226   # text mode, it properly converts lines to CR/LF.  This bash problem
21227   # is reportedly fixed, but why not run on old versions too?
21228   sed '$q' "$ltmain" >> "$cfgfile" \
21229      || (rm -f "$cfgfile"; exit 1)
21230
21231    mv -f "$cfgfile" "$ofile" ||
21232     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21233   chmod +x "$ofile"
21234
21235  ;;
21236     "po-directories":C)
21237     for ac_file in $CONFIG_FILES; do
21238       # Support "outfile[:infile[:infile...]]"
21239       case "$ac_file" in
21240         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21241       esac
21242       # PO directories have a Makefile.in generated from Makefile.in.in.
21243       case "$ac_file" in */Makefile.in)
21244         # Adjust a relative srcdir.
21245         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21246         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21247         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21248         # In autoconf-2.13 it is called $ac_given_srcdir.
21249         # In autoconf-2.50 it is called $srcdir.
21250         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21251         case "$ac_given_srcdir" in
21252           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21253           /*) top_srcdir="$ac_given_srcdir" ;;
21254           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
21255         esac
21256         # Treat a directory as a PO directory if and only if it has a
21257         # POTFILES.in file. This allows packages to have multiple PO
21258         # directories under different names or in different locations.
21259         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21260           rm -f "$ac_dir/POTFILES"
21261           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21262           gt_tab=`printf '\t'`
21263           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21264           POMAKEFILEDEPS="POTFILES.in"
21265           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21266           # on $ac_dir but don't depend on user-specified configuration
21267           # parameters.
21268           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21269             # The LINGUAS file contains the set of available languages.
21270             if test -n "$OBSOLETE_ALL_LINGUAS"; then
21271               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21272             fi
21273             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21274             # Hide the ALL_LINGUAS assignment from automake < 1.5.
21275             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21276             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21277           else
21278             # The set of available languages was given in configure.in.
21279             # Hide the ALL_LINGUAS assignment from automake < 1.5.
21280             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21281           fi
21282           # Compute POFILES
21283           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21284           # Compute UPDATEPOFILES
21285           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21286           # Compute DUMMYPOFILES
21287           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21288           # Compute GMOFILES
21289           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21290           case "$ac_given_srcdir" in
21291             .) srcdirpre= ;;
21292             *) srcdirpre='$(srcdir)/' ;;
21293           esac
21294           POFILES=
21295           UPDATEPOFILES=
21296           DUMMYPOFILES=
21297           GMOFILES=
21298           for lang in $ALL_LINGUAS; do
21299             POFILES="$POFILES $srcdirpre$lang.po"
21300             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21301             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21302             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21303           done
21304           # CATALOGS depends on both $ac_dir and the user's LINGUAS
21305           # environment variable.
21306           INST_LINGUAS=
21307           if test -n "$ALL_LINGUAS"; then
21308             for presentlang in $ALL_LINGUAS; do
21309               useit=no
21310               if test "%UNSET%" != "$LINGUAS"; then
21311                 desiredlanguages="$LINGUAS"
21312               else
21313                 desiredlanguages="$ALL_LINGUAS"
21314               fi
21315               for desiredlang in $desiredlanguages; do
21316                 # Use the presentlang catalog if desiredlang is
21317                 #   a. equal to presentlang, or
21318                 #   b. a variant of presentlang (because in this case,
21319                 #      presentlang can be used as a fallback for messages
21320                 #      which are not translated in the desiredlang catalog).
21321                 case "$desiredlang" in
21322                   "$presentlang"*) useit=yes;;
21323                 esac
21324               done
21325               if test $useit = yes; then
21326                 INST_LINGUAS="$INST_LINGUAS $presentlang"
21327               fi
21328             done
21329           fi
21330           CATALOGS=
21331           if test -n "$INST_LINGUAS"; then
21332             for lang in $INST_LINGUAS; do
21333               CATALOGS="$CATALOGS $lang.gmo"
21334             done
21335           fi
21336           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21337           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21338           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21339             if test -f "$f"; then
21340               case "$f" in
21341                 *.orig | *.bak | *~) ;;
21342                 *) cat "$f" >> "$ac_dir/Makefile" ;;
21343               esac
21344             fi
21345           done
21346         fi
21347         ;;
21348       esac
21349     done ;;
21350     "$ac_stdint_h":C)
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
21352 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
21353 ac_stdint=$tmp/_stdint.h
21354
21355 echo "#ifndef" $_ac_stdint_h >$ac_stdint
21356 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
21357 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
21358 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
21359 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
21360 if test "_$ac_cv_header_stdint_t" != "_" ; then
21361 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
21362 echo "#include <stdint.h>" >>$ac_stdint
21363 echo "#endif" >>$ac_stdint
21364 echo "#endif" >>$ac_stdint
21365 else
21366
21367 cat >>$ac_stdint <<STDINT_EOF
21368
21369 /* ................... shortcircuit part ........................... */
21370
21371 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
21372 #include <stdint.h>
21373 #else
21374 #include <stddef.h>
21375
21376 /* .................... configured part ............................ */
21377
21378 STDINT_EOF
21379
21380 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
21381 if test "_$ac_cv_header_stdint_x" != "_" ; then
21382   ac_header="$ac_cv_header_stdint_x"
21383   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
21384 else
21385   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
21386 fi
21387
21388 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
21389 if  test "_$ac_cv_header_stdint_o" != "_" ; then
21390   ac_header="$ac_cv_header_stdint_o"
21391   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
21392 else
21393   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
21394 fi
21395
21396 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
21397 if  test "_$ac_cv_header_stdint_u" != "_" ; then
21398   ac_header="$ac_cv_header_stdint_u"
21399   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
21400 else
21401   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
21402 fi
21403
21404 echo "" >>$ac_stdint
21405
21406 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
21407   echo "#include <$ac_header>" >>$ac_stdint
21408   echo "" >>$ac_stdint
21409 fi fi
21410
21411 echo "/* which 64bit typedef has been found */" >>$ac_stdint
21412 if test "$ac_cv_type_uint64_t" = "yes" ; then
21413 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
21414 else
21415 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
21416 fi
21417 if test "$ac_cv_type_u_int64_t" = "yes" ; then
21418 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
21419 else
21420 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
21421 fi
21422 echo "" >>$ac_stdint
21423
21424 echo "/* which type model has been detected */" >>$ac_stdint
21425 if test "_$ac_cv_char_data_model" != "_" ; then
21426 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
21427 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
21428 else
21429 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
21430 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
21431 fi
21432 echo "" >>$ac_stdint
21433
21434 echo "/* whether int_least types were detected */" >>$ac_stdint
21435 if test "$ac_cv_type_int_least32_t" = "yes"; then
21436 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
21437 else
21438 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
21439 fi
21440 echo "/* whether int_fast types were detected */" >>$ac_stdint
21441 if test "$ac_cv_type_int_fast32_t" = "yes"; then
21442 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
21443 else
21444 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
21445 fi
21446 echo "/* whether intmax_t type was detected */" >>$ac_stdint
21447 if test "$ac_cv_type_intmax_t" = "yes"; then
21448 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
21449 else
21450 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
21451 fi
21452 echo "" >>$ac_stdint
21453
21454   cat >>$ac_stdint <<STDINT_EOF
21455 /* .................... detections part ............................ */
21456
21457 /* whether we need to define bitspecific types from compiler base types */
21458 #ifndef _STDINT_HEADER_INTPTR
21459 #ifndef _STDINT_HEADER_UINT32
21460 #ifndef _STDINT_HEADER_U_INT32
21461 #define _STDINT_NEED_INT_MODEL_T
21462 #else
21463 #define _STDINT_HAVE_U_INT_TYPES
21464 #endif
21465 #endif
21466 #endif
21467
21468 #ifdef _STDINT_HAVE_U_INT_TYPES
21469 #undef _STDINT_NEED_INT_MODEL_T
21470 #endif
21471
21472 #ifdef  _STDINT_CHAR_MODEL
21473 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
21474 #ifndef _STDINT_BYTE_MODEL
21475 #define _STDINT_BYTE_MODEL 12
21476 #endif
21477 #endif
21478 #endif
21479
21480 #ifndef _STDINT_HAVE_INT_LEAST32_T
21481 #define _STDINT_NEED_INT_LEAST_T
21482 #endif
21483
21484 #ifndef _STDINT_HAVE_INT_FAST32_T
21485 #define _STDINT_NEED_INT_FAST_T
21486 #endif
21487
21488 #ifndef _STDINT_HEADER_INTPTR
21489 #define _STDINT_NEED_INTPTR_T
21490 #ifndef _STDINT_HAVE_INTMAX_T
21491 #define _STDINT_NEED_INTMAX_T
21492 #endif
21493 #endif
21494
21495
21496 /* .................... definition part ............................ */
21497
21498 /* some system headers have good uint64_t */
21499 #ifndef _HAVE_UINT64_T
21500 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
21501 #define _HAVE_UINT64_T
21502 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
21503 #define _HAVE_UINT64_T
21504 typedef u_int64_t uint64_t;
21505 #endif
21506 #endif
21507
21508 #ifndef _HAVE_UINT64_T
21509 /* .. here are some common heuristics using compiler runtime specifics */
21510 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
21511 #define _HAVE_UINT64_T
21512 #define _HAVE_LONGLONG_UINT64_T
21513 typedef long long int64_t;
21514 typedef unsigned long long uint64_t;
21515
21516 #elif !defined __STRICT_ANSI__
21517 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21518 #define _HAVE_UINT64_T
21519 typedef __int64 int64_t;
21520 typedef unsigned __int64 uint64_t;
21521
21522 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
21523 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
21524 #if !defined _NO_LONGLONG
21525 #define _HAVE_UINT64_T
21526 #define _HAVE_LONGLONG_UINT64_T
21527 typedef long long int64_t;
21528 typedef unsigned long long uint64_t;
21529 #endif
21530
21531 #elif defined __alpha || (defined __mips && defined _ABIN32)
21532 #if !defined _NO_LONGLONG
21533 typedef long int64_t;
21534 typedef unsigned long uint64_t;
21535 #endif
21536   /* compiler/cpu type to define int64_t */
21537 #endif
21538 #endif
21539 #endif
21540
21541 #if defined _STDINT_HAVE_U_INT_TYPES
21542 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
21543 typedef u_int8_t uint8_t;
21544 typedef u_int16_t uint16_t;
21545 typedef u_int32_t uint32_t;
21546
21547 /* glibc compatibility */
21548 #ifndef __int8_t_defined
21549 #define __int8_t_defined
21550 #endif
21551 #endif
21552
21553 #ifdef _STDINT_NEED_INT_MODEL_T
21554 /* we must guess all the basic types. Apart from byte-adressable system, */
21555 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
21556 /* (btw, those nibble-addressable systems are way off, or so we assume) */
21557
21558
21559 #if defined _STDINT_BYTE_MODEL
21560 #if _STDINT_LONG_MODEL+0 == 242
21561 /* 2:4:2 =  IP16 = a normal 16-bit system                */
21562 typedef unsigned char   uint8_t;
21563 typedef unsigned short  uint16_t;
21564 typedef unsigned long   uint32_t;
21565 #ifndef __int8_t_defined
21566 #define __int8_t_defined
21567 typedef          char    int8_t;
21568 typedef          short   int16_t;
21569 typedef          long    int32_t;
21570 #endif
21571 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
21572 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
21573 /* 4:4:4 = ILP32 = a normal 32-bit system                */
21574 typedef unsigned char   uint8_t;
21575 typedef unsigned short  uint16_t;
21576 typedef unsigned int    uint32_t;
21577 #ifndef __int8_t_defined
21578 #define __int8_t_defined
21579 typedef          char    int8_t;
21580 typedef          short   int16_t;
21581 typedef          int     int32_t;
21582 #endif
21583 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
21584 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
21585 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
21586 typedef unsigned char   uint8_t;
21587 typedef unsigned short  uint16_t;
21588 typedef unsigned int    uint32_t;
21589 #ifndef __int8_t_defined
21590 #define __int8_t_defined
21591 typedef          char    int8_t;
21592 typedef          short   int16_t;
21593 typedef          int     int32_t;
21594 #endif
21595 /* this system has a "long" of 64bit */
21596 #ifndef _HAVE_UINT64_T
21597 #define _HAVE_UINT64_T
21598 typedef unsigned long   uint64_t;
21599 typedef          long    int64_t;
21600 #endif
21601 #elif _STDINT_LONG_MODEL+0 == 448
21602 /*      LLP64   a 64-bit system derived from a 32-bit system */
21603 typedef unsigned char   uint8_t;
21604 typedef unsigned short  uint16_t;
21605 typedef unsigned int    uint32_t;
21606 #ifndef __int8_t_defined
21607 #define __int8_t_defined
21608 typedef          char    int8_t;
21609 typedef          short   int16_t;
21610 typedef          int     int32_t;
21611 #endif
21612 /* assuming the system has a "long long" */
21613 #ifndef _HAVE_UINT64_T
21614 #define _HAVE_UINT64_T
21615 #define _HAVE_LONGLONG_UINT64_T
21616 typedef unsigned long long uint64_t;
21617 typedef          long long  int64_t;
21618 #endif
21619 #else
21620 #define _STDINT_NO_INT32_T
21621 #endif
21622 #else
21623 #define _STDINT_NO_INT8_T
21624 #define _STDINT_NO_INT32_T
21625 #endif
21626 #endif
21627
21628 /*
21629  * quote from SunOS-5.8 sys/inttypes.h:
21630  * Use at your own risk.  As of February 1996, the committee is squarely
21631  * behind the fixed sized types; the "least" and "fast" types are still being
21632  * discussed.  The probability that the "fast" types may be removed before
21633  * the standard is finalized is high enough that they are not currently
21634  * implemented.
21635  */
21636
21637 #if defined _STDINT_NEED_INT_LEAST_T
21638 typedef  int8_t    int_least8_t;
21639 typedef  int16_t   int_least16_t;
21640 typedef  int32_t   int_least32_t;
21641 #ifdef _HAVE_UINT64_T
21642 typedef  int64_t   int_least64_t;
21643 #endif
21644
21645 typedef uint8_t   uint_least8_t;
21646 typedef uint16_t  uint_least16_t;
21647 typedef uint32_t  uint_least32_t;
21648 #ifdef _HAVE_UINT64_T
21649 typedef uint64_t  uint_least64_t;
21650 #endif
21651   /* least types */
21652 #endif
21653
21654 #if defined _STDINT_NEED_INT_FAST_T
21655 typedef  int8_t    int_fast8_t;
21656 typedef  int       int_fast16_t;
21657 typedef  int32_t   int_fast32_t;
21658 #ifdef _HAVE_UINT64_T
21659 typedef  int64_t   int_fast64_t;
21660 #endif
21661
21662 typedef uint8_t   uint_fast8_t;
21663 typedef unsigned  uint_fast16_t;
21664 typedef uint32_t  uint_fast32_t;
21665 #ifdef _HAVE_UINT64_T
21666 typedef uint64_t  uint_fast64_t;
21667 #endif
21668   /* fast types */
21669 #endif
21670
21671 #ifdef _STDINT_NEED_INTMAX_T
21672 #ifdef _HAVE_UINT64_T
21673 typedef  int64_t       intmax_t;
21674 typedef uint64_t      uintmax_t;
21675 #else
21676 typedef          long  intmax_t;
21677 typedef unsigned long uintmax_t;
21678 #endif
21679 #endif
21680
21681 #ifdef _STDINT_NEED_INTPTR_T
21682 #ifndef __intptr_t_defined
21683 #define __intptr_t_defined
21684 /* we encourage using "long" to store pointer values, never use "int" ! */
21685 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
21686 typedef  unsigned int   uintptr_t;
21687 typedef           int    intptr_t;
21688 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
21689 typedef  unsigned long  uintptr_t;
21690 typedef           long   intptr_t;
21691 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
21692 typedef        uint64_t uintptr_t;
21693 typedef         int64_t  intptr_t;
21694 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
21695 typedef  unsigned long  uintptr_t;
21696 typedef           long   intptr_t;
21697 #endif
21698 #endif
21699 #endif
21700
21701 /* The ISO C99 standard specifies that in C++ implementations these
21702    should only be defined if explicitly requested.  */
21703 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
21704 #ifndef UINT32_C
21705
21706 /* Signed.  */
21707 # define INT8_C(c)      c
21708 # define INT16_C(c)     c
21709 # define INT32_C(c)     c
21710 # ifdef _HAVE_LONGLONG_UINT64_T
21711 #  define INT64_C(c)    c ## L
21712 # else
21713 #  define INT64_C(c)    c ## LL
21714 # endif
21715
21716 /* Unsigned.  */
21717 # define UINT8_C(c)     c ## U
21718 # define UINT16_C(c)    c ## U
21719 # define UINT32_C(c)    c ## U
21720 # ifdef _HAVE_LONGLONG_UINT64_T
21721 #  define UINT64_C(c)   c ## UL
21722 # else
21723 #  define UINT64_C(c)   c ## ULL
21724 # endif
21725
21726 /* Maximal type.  */
21727 # ifdef _HAVE_LONGLONG_UINT64_T
21728 #  define INTMAX_C(c)   c ## L
21729 #  define UINTMAX_C(c)  c ## UL
21730 # else
21731 #  define INTMAX_C(c)   c ## LL
21732 #  define UINTMAX_C(c)  c ## ULL
21733 # endif
21734
21735   /* literalnumbers */
21736 #endif
21737 #endif
21738
21739 /* These limits are merily those of a two complement byte-oriented system */
21740
21741 /* Minimum of signed integral types.  */
21742 # define INT8_MIN               (-128)
21743 # define INT16_MIN              (-32767-1)
21744 # define INT32_MIN              (-2147483647-1)
21745 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
21746 /* Maximum of signed integral types.  */
21747 # define INT8_MAX               (127)
21748 # define INT16_MAX              (32767)
21749 # define INT32_MAX              (2147483647)
21750 # define INT64_MAX              (__INT64_C(9223372036854775807))
21751
21752 /* Maximum of unsigned integral types.  */
21753 # define UINT8_MAX              (255)
21754 # define UINT16_MAX             (65535)
21755 # define UINT32_MAX             (4294967295U)
21756 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
21757
21758 /* Minimum of signed integral types having a minimum size.  */
21759 # define INT_LEAST8_MIN         INT8_MIN
21760 # define INT_LEAST16_MIN        INT16_MIN
21761 # define INT_LEAST32_MIN        INT32_MIN
21762 # define INT_LEAST64_MIN        INT64_MIN
21763 /* Maximum of signed integral types having a minimum size.  */
21764 # define INT_LEAST8_MAX         INT8_MAX
21765 # define INT_LEAST16_MAX        INT16_MAX
21766 # define INT_LEAST32_MAX        INT32_MAX
21767 # define INT_LEAST64_MAX        INT64_MAX
21768
21769 /* Maximum of unsigned integral types having a minimum size.  */
21770 # define UINT_LEAST8_MAX        UINT8_MAX
21771 # define UINT_LEAST16_MAX       UINT16_MAX
21772 # define UINT_LEAST32_MAX       UINT32_MAX
21773 # define UINT_LEAST64_MAX       UINT64_MAX
21774
21775   /* shortcircuit*/
21776 #endif
21777   /* once */
21778 #endif
21779 #endif
21780 STDINT_EOF
21781 fi
21782     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
21783       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
21784 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
21785     else
21786       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
21787 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21788          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
21789          X"$ac_stdint_h" : 'X\(//\)$' \| \
21790          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
21791 $as_echo X"$ac_stdint_h" |
21792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21793             s//\1/
21794             q
21795           }
21796           /^X\(\/\/\)[^/].*/{
21797             s//\1/
21798             q
21799           }
21800           /^X\(\/\/\)$/{
21801             s//\1/
21802             q
21803           }
21804           /^X\(\/\).*/{
21805             s//\1/
21806             q
21807           }
21808           s/.*/./; q'`
21809       as_dir="$ac_dir"; as_fn_mkdir_p
21810       rm -f $ac_stdint_h
21811       mv $ac_stdint $ac_stdint_h
21812     fi
21813  ;;
21814
21815   esac
21816 done # for ac_tag
21817
21818
21819 as_fn_exit 0
21820 _ACEOF
21821 ac_clean_files=$ac_clean_files_save
21822
21823 test $ac_write_fail = 0 ||
21824   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21825
21826
21827 # configure is writing to config.log, and then calls config.status.
21828 # config.status does its own redirection, appending to config.log.
21829 # Unfortunately, on DOS this fails, as config.log is still kept open
21830 # by configure, so config.status won't be able to write to it; its
21831 # output is simply discarded.  So we exec the FD to /dev/null,
21832 # effectively closing config.log, so it can be properly (re)opened and
21833 # appended to by config.status.  When coming back to configure, we
21834 # need to make the FD available again.
21835 if test "$no_create" != yes; then
21836   ac_cs_success=:
21837   ac_config_status_args=
21838   test "$silent" = yes &&
21839     ac_config_status_args="$ac_config_status_args --quiet"
21840   exec 5>/dev/null
21841   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21842   exec 5>>config.log
21843   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21844   # would make configure fail if this is the last instruction.
21845   $ac_cs_success || as_fn_exit 1
21846 fi
21847 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21848   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21849 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21850 fi
21851