248b0eb6400e1270295aaf770fbdddcf05866ca7
[platform/upstream/harfbuzz.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for HarfBuzz 0.9.12.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='HarfBuzz'
573 PACKAGE_TARNAME='harfbuzz'
574 PACKAGE_VERSION='0.9.12'
575 PACKAGE_STRING='HarfBuzz 0.9.12'
576 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz'
577 PACKAGE_URL='http://harfbuzz.org/'
578
579 ac_unique_file="harfbuzz.pc.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 HAVE_CORETEXT_FALSE
621 HAVE_CORETEXT_TRUE
622 CORETEXT_LIBS
623 CORETEXT_CFLAGS
624 HAVE_UNISCRIBE_FALSE
625 HAVE_UNISCRIBE_TRUE
626 UNISCRIBE_LIBS
627 UNISCRIBE_CFLAGS
628 HAVE_FREETYPE_FALSE
629 HAVE_FREETYPE_TRUE
630 FREETYPE_LIBS
631 FREETYPE_CFLAGS
632 HAVE_GRAPHITE2_FALSE
633 HAVE_GRAPHITE2_TRUE
634 GRAPHITE2_LIBS
635 GRAPHITE2_CFLAGS
636 HAVE_ICU_LE_FALSE
637 HAVE_ICU_LE_TRUE
638 ICU_LE_LIBS
639 ICU_LE_CFLAGS
640 HAVE_ICU_FALSE
641 HAVE_ICU_TRUE
642 ICU_LIBS
643 ICU_CFLAGS
644 HAVE_CAIRO_FT_FALSE
645 HAVE_CAIRO_FT_TRUE
646 CAIRO_FT_LIBS
647 CAIRO_FT_CFLAGS
648 HAVE_CAIRO_FALSE
649 HAVE_CAIRO_TRUE
650 CAIRO_LIBS
651 CAIRO_CFLAGS
652 HAVE_GOBJECT_FALSE
653 HAVE_GOBJECT_TRUE
654 GLIB_MKENUMS
655 GOBJECT_LIBS
656 GOBJECT_CFLAGS
657 HAVE_GTHREAD_FALSE
658 HAVE_GTHREAD_TRUE
659 GTHREAD_LIBS
660 GTHREAD_CFLAGS
661 HAVE_GLIB_FALSE
662 HAVE_GLIB_TRUE
663 GLIB_LIBS
664 GLIB_CFLAGS
665 HAVE_UCDN_FALSE
666 HAVE_UCDN_TRUE
667 HAVE_HB_OLD_FALSE
668 HAVE_HB_OLD_TRUE
669 HAVE_OT_FALSE
670 HAVE_OT_TRUE
671 HAVE_PTHREAD_FALSE
672 HAVE_PTHREAD_TRUE
673 PTHREAD_CFLAGS
674 PTHREAD_LIBS
675 PTHREAD_CC
676 ax_pthread_config
677 OS_WIN32_FALSE
678 OS_WIN32_TRUE
679 HAVE_GCC_FALSE
680 HAVE_GCC_TRUE
681 HB_LIBTOOL_VERSION_INFO
682 HB_VERSION
683 HB_VERSION_MICRO
684 HB_VERSION_MINOR
685 HB_VERSION_MAJOR
686 PKG_CONFIG
687 CXXCPP
688 am__fastdepCXX_FALSE
689 am__fastdepCXX_TRUE
690 CXXDEPMODE
691 ac_ct_CXX
692 CXXFLAGS
693 CXX
694 CPP
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 DLLTOOL
705 OBJDUMP
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 am__quote
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 LIBTOOL
741 AM_BACKSLASH
742 AM_DEFAULT_VERBOSITY
743 AM_DEFAULT_V
744 AM_V
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_silent_rules
810 enable_static
811 enable_shared
812 with_pic
813 enable_fast_install
814 enable_dependency_tracking
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 '
819       ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CPP
828 CXX
829 CXXFLAGS
830 CCC
831 CXXCPP
832 PKG_CONFIG
833 GLIB_CFLAGS
834 GLIB_LIBS
835 GTHREAD_CFLAGS
836 GTHREAD_LIBS
837 GOBJECT_CFLAGS
838 GOBJECT_LIBS
839 CAIRO_CFLAGS
840 CAIRO_LIBS
841 CAIRO_FT_CFLAGS
842 CAIRO_FT_LIBS
843 ICU_CFLAGS
844 ICU_LIBS
845 ICU_LE_CFLAGS
846 ICU_LE_LIBS
847 GRAPHITE2_CFLAGS
848 GRAPHITE2_LIBS
849 FREETYPE_CFLAGS
850 FREETYPE_LIBS'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905   # If the previous option needs an argument, assign it.
906   if test -n "$ac_prev"; then
907     eval $ac_prev=\$ac_option
908     ac_prev=
909     continue
910   fi
911
912   case $ac_option in
913   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914   *=)   ac_optarg= ;;
915   *)    ac_optarg=yes ;;
916   esac
917
918   # Accept the important Cygnus configure options, so we can diagnose typos.
919
920   case $ac_dashdash$ac_option in
921   --)
922     ac_dashdash=yes ;;
923
924   -bindir | --bindir | --bindi | --bind | --bin | --bi)
925     ac_prev=bindir ;;
926   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927     bindir=$ac_optarg ;;
928
929   -build | --build | --buil | --bui | --bu)
930     ac_prev=build_alias ;;
931   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932     build_alias=$ac_optarg ;;
933
934   -cache-file | --cache-file | --cache-fil | --cache-fi \
935   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936     ac_prev=cache_file ;;
937   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939     cache_file=$ac_optarg ;;
940
941   --config-cache | -C)
942     cache_file=config.cache ;;
943
944   -datadir | --datadir | --datadi | --datad)
945     ac_prev=datadir ;;
946   -datadir=* | --datadir=* | --datadi=* | --datad=*)
947     datadir=$ac_optarg ;;
948
949   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950   | --dataroo | --dataro | --datar)
951     ac_prev=datarootdir ;;
952   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954     datarootdir=$ac_optarg ;;
955
956   -disable-* | --disable-*)
957     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958     # Reject names that are not valid shell variable names.
959     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960       as_fn_error $? "invalid feature name: $ac_useropt"
961     ac_useropt_orig=$ac_useropt
962     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963     case $ac_user_opts in
964       *"
965 "enable_$ac_useropt"
966 "*) ;;
967       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968          ac_unrecognized_sep=', ';;
969     esac
970     eval enable_$ac_useropt=no ;;
971
972   -docdir | --docdir | --docdi | --doc | --do)
973     ac_prev=docdir ;;
974   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975     docdir=$ac_optarg ;;
976
977   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978     ac_prev=dvidir ;;
979   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980     dvidir=$ac_optarg ;;
981
982   -enable-* | --enable-*)
983     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986       as_fn_error $? "invalid feature name: $ac_useropt"
987     ac_useropt_orig=$ac_useropt
988     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989     case $ac_user_opts in
990       *"
991 "enable_$ac_useropt"
992 "*) ;;
993       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994          ac_unrecognized_sep=', ';;
995     esac
996     eval enable_$ac_useropt=\$ac_optarg ;;
997
998   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000   | --exec | --exe | --ex)
1001     ac_prev=exec_prefix ;;
1002   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004   | --exec=* | --exe=* | --ex=*)
1005     exec_prefix=$ac_optarg ;;
1006
1007   -gas | --gas | --ga | --g)
1008     # Obsolete; use --with-gas.
1009     with_gas=yes ;;
1010
1011   -help | --help | --hel | --he | -h)
1012     ac_init_help=long ;;
1013   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014     ac_init_help=recursive ;;
1015   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016     ac_init_help=short ;;
1017
1018   -host | --host | --hos | --ho)
1019     ac_prev=host_alias ;;
1020   -host=* | --host=* | --hos=* | --ho=*)
1021     host_alias=$ac_optarg ;;
1022
1023   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024     ac_prev=htmldir ;;
1025   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026   | --ht=*)
1027     htmldir=$ac_optarg ;;
1028
1029   -includedir | --includedir | --includedi | --included | --include \
1030   | --includ | --inclu | --incl | --inc)
1031     ac_prev=includedir ;;
1032   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033   | --includ=* | --inclu=* | --incl=* | --inc=*)
1034     includedir=$ac_optarg ;;
1035
1036   -infodir | --infodir | --infodi | --infod | --info | --inf)
1037     ac_prev=infodir ;;
1038   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039     infodir=$ac_optarg ;;
1040
1041   -libdir | --libdir | --libdi | --libd)
1042     ac_prev=libdir ;;
1043   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044     libdir=$ac_optarg ;;
1045
1046   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047   | --libexe | --libex | --libe)
1048     ac_prev=libexecdir ;;
1049   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050   | --libexe=* | --libex=* | --libe=*)
1051     libexecdir=$ac_optarg ;;
1052
1053   -localedir | --localedir | --localedi | --localed | --locale)
1054     ac_prev=localedir ;;
1055   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056     localedir=$ac_optarg ;;
1057
1058   -localstatedir | --localstatedir | --localstatedi | --localstated \
1059   | --localstate | --localstat | --localsta | --localst | --locals)
1060     ac_prev=localstatedir ;;
1061   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063     localstatedir=$ac_optarg ;;
1064
1065   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066     ac_prev=mandir ;;
1067   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068     mandir=$ac_optarg ;;
1069
1070   -nfp | --nfp | --nf)
1071     # Obsolete; use --without-fp.
1072     with_fp=no ;;
1073
1074   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075   | --no-cr | --no-c | -n)
1076     no_create=yes ;;
1077
1078   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080     no_recursion=yes ;;
1081
1082   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084   | --oldin | --oldi | --old | --ol | --o)
1085     ac_prev=oldincludedir ;;
1086   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089     oldincludedir=$ac_optarg ;;
1090
1091   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092     ac_prev=prefix ;;
1093   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094     prefix=$ac_optarg ;;
1095
1096   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097   | --program-pre | --program-pr | --program-p)
1098     ac_prev=program_prefix ;;
1099   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101     program_prefix=$ac_optarg ;;
1102
1103   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104   | --program-suf | --program-su | --program-s)
1105     ac_prev=program_suffix ;;
1106   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108     program_suffix=$ac_optarg ;;
1109
1110   -program-transform-name | --program-transform-name \
1111   | --program-transform-nam | --program-transform-na \
1112   | --program-transform-n | --program-transform- \
1113   | --program-transform | --program-transfor \
1114   | --program-transfo | --program-transf \
1115   | --program-trans | --program-tran \
1116   | --progr-tra | --program-tr | --program-t)
1117     ac_prev=program_transform_name ;;
1118   -program-transform-name=* | --program-transform-name=* \
1119   | --program-transform-nam=* | --program-transform-na=* \
1120   | --program-transform-n=* | --program-transform-=* \
1121   | --program-transform=* | --program-transfor=* \
1122   | --program-transfo=* | --program-transf=* \
1123   | --program-trans=* | --program-tran=* \
1124   | --progr-tra=* | --program-tr=* | --program-t=*)
1125     program_transform_name=$ac_optarg ;;
1126
1127   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128     ac_prev=pdfdir ;;
1129   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130     pdfdir=$ac_optarg ;;
1131
1132   -psdir | --psdir | --psdi | --psd | --ps)
1133     ac_prev=psdir ;;
1134   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135     psdir=$ac_optarg ;;
1136
1137   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138   | -silent | --silent | --silen | --sile | --sil)
1139     silent=yes ;;
1140
1141   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142     ac_prev=sbindir ;;
1143   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144   | --sbi=* | --sb=*)
1145     sbindir=$ac_optarg ;;
1146
1147   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149   | --sharedst | --shareds | --shared | --share | --shar \
1150   | --sha | --sh)
1151     ac_prev=sharedstatedir ;;
1152   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155   | --sha=* | --sh=*)
1156     sharedstatedir=$ac_optarg ;;
1157
1158   -site | --site | --sit)
1159     ac_prev=site ;;
1160   -site=* | --site=* | --sit=*)
1161     site=$ac_optarg ;;
1162
1163   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164     ac_prev=srcdir ;;
1165   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166     srcdir=$ac_optarg ;;
1167
1168   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169   | --syscon | --sysco | --sysc | --sys | --sy)
1170     ac_prev=sysconfdir ;;
1171   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173     sysconfdir=$ac_optarg ;;
1174
1175   -target | --target | --targe | --targ | --tar | --ta | --t)
1176     ac_prev=target_alias ;;
1177   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178     target_alias=$ac_optarg ;;
1179
1180   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181     verbose=yes ;;
1182
1183   -version | --version | --versio | --versi | --vers | -V)
1184     ac_init_version=: ;;
1185
1186   -with-* | --with-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=\$ac_optarg ;;
1201
1202   -without-* | --without-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       as_fn_error $? "invalid package name: $ac_useropt"
1207     ac_useropt_orig=$ac_useropt
1208     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209     case $ac_user_opts in
1210       *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214          ac_unrecognized_sep=', ';;
1215     esac
1216     eval with_$ac_useropt=no ;;
1217
1218   --x)
1219     # Obsolete; use --with-x.
1220     with_x=yes ;;
1221
1222   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223   | --x-incl | --x-inc | --x-in | --x-i)
1224     ac_prev=x_includes ;;
1225   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227     x_includes=$ac_optarg ;;
1228
1229   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231     ac_prev=x_libraries ;;
1232   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234     x_libraries=$ac_optarg ;;
1235
1236   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1238     ;;
1239
1240   *=*)
1241     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242     # Reject names that are not valid shell variable names.
1243     case $ac_envvar in #(
1244       '' | [0-9]* | *[!_$as_cr_alnum]* )
1245       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246     esac
1247     eval $ac_envvar=\$ac_optarg
1248     export $ac_envvar ;;
1249
1250   *)
1251     # FIXME: should be removed in autoconf 3.0.
1252     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256     ;;
1257
1258   esac
1259 done
1260
1261 if test -n "$ac_prev"; then
1262   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263   as_fn_error $? "missing argument to $ac_option"
1264 fi
1265
1266 if test -n "$ac_unrecognized_opts"; then
1267   case $enable_option_checking in
1268     no) ;;
1269     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271   esac
1272 fi
1273
1274 # Check all directory arguments for consistency.
1275 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276                 datadir sysconfdir sharedstatedir localstatedir includedir \
1277                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278                 libdir localedir mandir
1279 do
1280   eval ac_val=\$$ac_var
1281   # Remove trailing slashes.
1282   case $ac_val in
1283     */ )
1284       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285       eval $ac_var=\$ac_val;;
1286   esac
1287   # Be sure to have absolute directory names.
1288   case $ac_val in
1289     [\\/$]* | ?:[\\/]* )  continue;;
1290     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291   esac
1292   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used" >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324   as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329   ac_srcdir_defaulted=yes
1330   # Try the directory containing this script, then the parent directory.
1331   ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333          X"$as_myself" : 'X\(//\)[^/]' \| \
1334          X"$as_myself" : 'X\(//\)$' \| \
1335          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)[^/].*/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\).*/{
1350             s//\1/
1351             q
1352           }
1353           s/.*/./; q'`
1354   srcdir=$ac_confdir
1355   if test ! -r "$srcdir/$ac_unique_file"; then
1356     srcdir=..
1357   fi
1358 else
1359   ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368         pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371   srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_env_${ac_var}_value=\$${ac_var}
1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390   # Omit some internal or obsolete options to make the list less imposing.
1391   # This message is too long to be a string in the A/UX 3.1 sh.
1392   cat <<_ACEOF
1393 \`configure' configures HarfBuzz 0.9.12 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403   -h, --help              display this help and exit
1404       --help=short        display options specific to this package
1405       --help=recursive    display the short help of all the included packages
1406   -V, --version           display version information and exit
1407   -q, --quiet, --silent   do not print \`checking ...' messages
1408       --cache-file=FILE   cache test results in FILE [disabled]
1409   -C, --config-cache      alias for \`--cache-file=config.cache'
1410   -n, --no-create         do not create output files
1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414   --prefix=PREFIX         install architecture-independent files in PREFIX
1415                           [$ac_default_prefix]
1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                           [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427   --bindir=DIR            user executables [EPREFIX/bin]
1428   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1429   --libexecdir=DIR        program executables [EPREFIX/libexec]
1430   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1431   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1432   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1433   --libdir=DIR            object code libraries [EPREFIX/lib]
1434   --includedir=DIR        C header files [PREFIX/include]
1435   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1436   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1437   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1438   --infodir=DIR           info documentation [DATAROOTDIR/info]
1439   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1440   --mandir=DIR            man documentation [DATAROOTDIR/man]
1441   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1442   --htmldir=DIR           html documentation [DOCDIR]
1443   --dvidir=DIR            dvi documentation [DOCDIR]
1444   --pdfdir=DIR            pdf documentation [DOCDIR]
1445   --psdir=DIR             ps documentation [DOCDIR]
1446 _ACEOF
1447
1448   cat <<\_ACEOF
1449
1450 Program names:
1451   --program-prefix=PREFIX            prepend PREFIX to installed program names
1452   --program-suffix=SUFFIX            append SUFFIX to installed program names
1453   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1454
1455 System types:
1456   --build=BUILD     configure for building on BUILD [guessed]
1457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462   case $ac_init_help in
1463      short | recursive ) echo "Configuration of HarfBuzz 0.9.12:";;
1464    esac
1465   cat <<\_ACEOF
1466
1467 Optional Features:
1468   --disable-option-checking  ignore unrecognized --enable/--with options
1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471   --enable-silent-rules          less verbose build output (undo: `make V=1')
1472   --disable-silent-rules         verbose build output (undo: `make V=0')
1473   --enable-static[=PKGS]  build static libraries [default=no]
1474   --enable-shared[=PKGS]  build shared libraries [default=yes]
1475   --enable-fast-install[=PKGS]
1476                           optimize for fast installation [default=yes]
1477   --disable-dependency-tracking  speeds up one-time build
1478   --enable-dependency-tracking   do not reject slow dependency extractors
1479   --disable-libtool-lock  avoid locking (might break parallel builds)
1480
1481 Optional Packages:
1482   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1485                           both]
1486   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487   --with-sysroot=DIR Search for dependent libraries within DIR
1488                         (or the compiler's sysroot if not specified).
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   LIBS        libraries to pass to the linker, e.g. -l<library>
1496   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497               you have headers in a nonstandard directory <include dir>
1498   CPP         C preprocessor
1499   CXX         C++ compiler command
1500   CXXFLAGS    C++ compiler flags
1501   CXXCPP      C++ preprocessor
1502   PKG_CONFIG  path to pkg-config utility
1503   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1504   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1505   GTHREAD_CFLAGS
1506               C compiler flags for GTHREAD, overriding pkg-config
1507   GTHREAD_LIBS
1508               linker flags for GTHREAD, overriding pkg-config
1509   GOBJECT_CFLAGS
1510               C compiler flags for GOBJECT, overriding pkg-config
1511   GOBJECT_LIBS
1512               linker flags for GOBJECT, overriding pkg-config
1513   CAIRO_CFLAGS
1514               C compiler flags for CAIRO, overriding pkg-config
1515   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1516   CAIRO_FT_CFLAGS
1517               C compiler flags for CAIRO_FT, overriding pkg-config
1518   CAIRO_FT_LIBS
1519               linker flags for CAIRO_FT, overriding pkg-config
1520   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1521   ICU_LIBS    linker flags for ICU, overriding pkg-config
1522   ICU_LE_CFLAGS
1523               C compiler flags for ICU_LE, overriding pkg-config
1524   ICU_LE_LIBS linker flags for ICU_LE, overriding pkg-config
1525   GRAPHITE2_CFLAGS
1526               C compiler flags for GRAPHITE2, overriding pkg-config
1527   GRAPHITE2_LIBS
1528               linker flags for GRAPHITE2, overriding pkg-config
1529   FREETYPE_CFLAGS
1530               C compiler flags for FREETYPE, overriding pkg-config
1531   FREETYPE_LIBS
1532               linker flags for FREETYPE, overriding pkg-config
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
1538 HarfBuzz home page: <http://harfbuzz.org/>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544   # If there are subdirs, report their specific --help.
1545   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546     test -d "$ac_dir" ||
1547       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548       continue
1549     ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555   # A ".." for each directory in $ac_dir_suffix.
1556   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557   case $ac_top_builddir_sub in
1558   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560   esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568   .)  # We are building in place.
1569     ac_srcdir=.
1570     ac_top_srcdir=$ac_top_builddir_sub
1571     ac_abs_top_srcdir=$ac_pwd ;;
1572   [\\/]* | ?:[\\/]* )  # Absolute name.
1573     ac_srcdir=$srcdir$ac_dir_suffix;
1574     ac_top_srcdir=$srcdir
1575     ac_abs_top_srcdir=$srcdir ;;
1576   *) # Relative name.
1577     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578     ac_top_srcdir=$ac_top_build_prefix$srcdir
1579     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583     cd "$ac_dir" || { ac_status=$?; continue; }
1584     # Check for guested configure.
1585     if test -f "$ac_srcdir/configure.gnu"; then
1586       echo &&
1587       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588     elif test -f "$ac_srcdir/configure"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure" --help=recursive
1591     else
1592       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593     fi || ac_status=$?
1594     cd "$ac_pwd" || { ac_status=$?; break; }
1595   done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600   cat <<\_ACEOF
1601 HarfBuzz configure 0.9.12
1602 generated by GNU Autoconf 2.68
1603
1604 Copyright (C) 2010 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608   exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   rm -f conftest.$ac_objext
1622   if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_compile") 2>conftest.err
1630   ac_status=$?
1631   if test -s conftest.err; then
1632     grep -v '^ *+' conftest.err >conftest.er1
1633     cat conftest.er1 >&5
1634     mv -f conftest.er1 conftest.err
1635   fi
1636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637   test $ac_status = 0; } && {
1638          test -z "$ac_c_werror_flag" ||
1639          test ! -s conftest.err
1640        } && test -s conftest.$ac_objext; then :
1641   ac_retval=0
1642 else
1643   $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646         ac_retval=1
1647 fi
1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649   as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_compile
1652
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   rm -f conftest.$ac_objext conftest$ac_exeext
1660   if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_link") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && {
1676          test -z "$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        } && test -s conftest$ac_exeext && {
1679          test "$cross_compiling" = yes ||
1680          $as_test_x conftest$ac_exeext
1681        }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687         ac_retval=1
1688 fi
1689   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691   # interfere with the next link command; also delete a directory that is
1692   # left behind by Apple's compiler.  We do this before executing the actions.
1693   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h.  */
1713 $4
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717   eval "$3=yes"
1718 else
1719   eval "$3=no"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 fi
1723 eval ac_res=\$$3
1724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728 } # ac_fn_c_check_header_compile
1729
1730 # ac_fn_c_try_cpp LINENO
1731 # ----------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_cpp ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } > conftest.i && {
1752          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        }; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760     ac_retval=1
1761 fi
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763   as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_cpp
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_link") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785   { { case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_try") 2>&5
1792   ac_status=$?
1793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794   test $ac_status = 0; }; }; then :
1795   ac_retval=0
1796 else
1797   $as_echo "$as_me: program exited with status $ac_status" >&5
1798        $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801        ac_retval=$ac_status
1802 fi
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818   $as_echo_n "(cached) " >&6
1819 else
1820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824 #define $2 innocuous_$2
1825
1826 /* System header to define __stub macros and hopefully few prototypes,
1827     which can conflict with char $2 (); below.
1828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829     <limits.h> exists even on freestanding compilers.  */
1830
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1836
1837 #undef $2
1838
1839 /* Override any GCC internal prototype to avoid an error.
1840    Use char because int might match the return type of a GCC
1841    builtin and then its argument prototype would still apply.  */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847     to always fail with ENOSYS.  Some functions are actually named
1848     something starting with __ and the normal name is an alias.  */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1852
1853 int
1854 main ()
1855 {
1856 return $2 ();
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862   eval "$3=yes"
1863 else
1864   eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext \
1867     conftest$ac_exeext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_func
1875
1876 # ac_fn_cxx_try_compile LINENO
1877 # ----------------------------
1878 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_cxx_try_compile ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   rm -f conftest.$ac_objext
1883   if { { ac_try="$ac_compile"
1884 case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_compile") 2>conftest.err
1891   ac_status=$?
1892   if test -s conftest.err; then
1893     grep -v '^ *+' conftest.err >conftest.er1
1894     cat conftest.er1 >&5
1895     mv -f conftest.er1 conftest.err
1896   fi
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } && {
1899          test -z "$ac_cxx_werror_flag" ||
1900          test ! -s conftest.err
1901        } && test -s conftest.$ac_objext; then :
1902   ac_retval=0
1903 else
1904   $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907         ac_retval=1
1908 fi
1909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910   as_fn_set_status $ac_retval
1911
1912 } # ac_fn_cxx_try_compile
1913
1914 # ac_fn_cxx_try_cpp LINENO
1915 # ------------------------
1916 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_cxx_try_cpp ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 case "(($ac_try" in
1922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923   *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928   ac_status=$?
1929   if test -s conftest.err; then
1930     grep -v '^ *+' conftest.err >conftest.er1
1931     cat conftest.er1 >&5
1932     mv -f conftest.er1 conftest.err
1933   fi
1934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935   test $ac_status = 0; } > conftest.i && {
1936          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1937          test ! -s conftest.err
1938        }; then :
1939   ac_retval=0
1940 else
1941   $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1943
1944     ac_retval=1
1945 fi
1946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947   as_fn_set_status $ac_retval
1948
1949 } # ac_fn_cxx_try_cpp
1950
1951 # ac_fn_cxx_try_link LINENO
1952 # -------------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_cxx_try_link ()
1955 {
1956   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957   rm -f conftest.$ac_objext conftest$ac_exeext
1958   if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_link") 2>conftest.err
1966   ac_status=$?
1967   if test -s conftest.err; then
1968     grep -v '^ *+' conftest.err >conftest.er1
1969     cat conftest.er1 >&5
1970     mv -f conftest.er1 conftest.err
1971   fi
1972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973   test $ac_status = 0; } && {
1974          test -z "$ac_cxx_werror_flag" ||
1975          test ! -s conftest.err
1976        } && test -s conftest$ac_exeext && {
1977          test "$cross_compiling" = yes ||
1978          $as_test_x conftest$ac_exeext
1979        }; then :
1980   ac_retval=0
1981 else
1982   $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985         ac_retval=1
1986 fi
1987   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989   # interfere with the next link command; also delete a directory that is
1990   # left behind by Apple's compiler.  We do this before executing the actions.
1991   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993   as_fn_set_status $ac_retval
1994
1995 } # ac_fn_cxx_try_link
1996
1997 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1998 # -------------------------------------------------------
1999 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2000 # the include files in INCLUDES and setting the cache variable VAR
2001 # accordingly.
2002 ac_fn_c_check_header_mongrel ()
2003 {
2004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005   if eval \${$3+:} false; then :
2006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009   $as_echo_n "(cached) " >&6
2010 fi
2011 eval ac_res=\$$3
2012                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 else
2015   # Is the header compilable?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2017 $as_echo_n "checking $2 usability... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $4
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   ac_header_compiler=yes
2025 else
2026   ac_header_compiler=no
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2030 $as_echo "$ac_header_compiler" >&6; }
2031
2032 # Is the header present?
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2034 $as_echo_n "checking $2 presence... " >&6; }
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_c_try_cpp "$LINENO"; then :
2040   ac_header_preproc=yes
2041 else
2042   ac_header_preproc=no
2043 fi
2044 rm -f conftest.err conftest.i conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046 $as_echo "$ac_header_preproc" >&6; }
2047
2048 # So?  What about this header?
2049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050   yes:no: )
2051     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2052 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2053     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055     ;;
2056   no:yes:* )
2057     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2058 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2060 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2062 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2064 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 ( $as_echo "## ------------------------------------------------------------------------- ##
2068 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz ##
2069 ## ------------------------------------------------------------------------- ##"
2070      ) | sed "s/^/$as_me: WARNING:     /" >&2
2071     ;;
2072 esac
2073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if eval \${$3+:} false; then :
2076   $as_echo_n "(cached) " >&6
2077 else
2078   eval "$3=\$ac_header_compiler"
2079 fi
2080 eval ac_res=\$$3
2081                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 fi
2084   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086 } # ac_fn_c_check_header_mongrel
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 cat >config.log <<_ACEOF
2142 This file contains any messages produced by compilers while
2143 running configure, to aid debugging if configure makes a mistake.
2144
2145 It was created by HarfBuzz $as_me 0.9.12, which was
2146 generated by GNU Autoconf 2.68.  Invocation command line was
2147
2148   $ $0 $@
2149
2150 _ACEOF
2151 exec 5>>config.log
2152 {
2153 cat <<_ASUNAME
2154 ## --------- ##
2155 ## Platform. ##
2156 ## --------- ##
2157
2158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2166
2167 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2168 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2171 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2172 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2173 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2174
2175 _ASUNAME
2176
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182     $as_echo "PATH: $as_dir"
2183   done
2184 IFS=$as_save_IFS
2185
2186 } >&5
2187
2188 cat >&5 <<_ACEOF
2189
2190
2191 ## ----------- ##
2192 ## Core tests. ##
2193 ## ----------- ##
2194
2195 _ACEOF
2196
2197
2198 # Keep a trace of the command line.
2199 # Strip out --no-create and --no-recursion so they do not pile up.
2200 # Strip out --silent because we don't want to record it for future runs.
2201 # Also quote any args containing shell meta-characters.
2202 # Make two passes to allow for proper duplicate-argument suppression.
2203 ac_configure_args=
2204 ac_configure_args0=
2205 ac_configure_args1=
2206 ac_must_keep_next=false
2207 for ac_pass in 1 2
2208 do
2209   for ac_arg
2210   do
2211     case $ac_arg in
2212     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214     | -silent | --silent | --silen | --sile | --sil)
2215       continue ;;
2216     *\'*)
2217       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218     esac
2219     case $ac_pass in
2220     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2221     2)
2222       as_fn_append ac_configure_args1 " '$ac_arg'"
2223       if test $ac_must_keep_next = true; then
2224         ac_must_keep_next=false # Got value, back to normal.
2225       else
2226         case $ac_arg in
2227           *=* | --config-cache | -C | -disable-* | --disable-* \
2228           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230           | -with-* | --with-* | -without-* | --without-* | --x)
2231             case "$ac_configure_args0 " in
2232               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233             esac
2234             ;;
2235           -* ) ac_must_keep_next=true ;;
2236         esac
2237       fi
2238       as_fn_append ac_configure_args " '$ac_arg'"
2239       ;;
2240     esac
2241   done
2242 done
2243 { ac_configure_args0=; unset ac_configure_args0;}
2244 { ac_configure_args1=; unset ac_configure_args1;}
2245
2246 # When interrupted or exit'd, cleanup temporary files, and complete
2247 # config.log.  We remove comments because anyway the quotes in there
2248 # would cause problems or look ugly.
2249 # WARNING: Use '\'' to represent an apostrophe within the trap.
2250 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251 trap 'exit_status=$?
2252   # Save into config.log some information that might help in debugging.
2253   {
2254     echo
2255
2256     $as_echo "## ---------------- ##
2257 ## Cache variables. ##
2258 ## ---------------- ##"
2259     echo
2260     # The following way of writing the cache mishandles newlines in values,
2261 (
2262   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263     eval ac_val=\$$ac_var
2264     case $ac_val in #(
2265     *${as_nl}*)
2266       case $ac_var in #(
2267       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269       esac
2270       case $ac_var in #(
2271       _ | IFS | as_nl) ;; #(
2272       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273       *) { eval $ac_var=; unset $ac_var;} ;;
2274       esac ;;
2275     esac
2276   done
2277   (set) 2>&1 |
2278     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279     *${as_nl}ac_space=\ *)
2280       sed -n \
2281         "s/'\''/'\''\\\\'\'''\''/g;
2282           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283       ;; #(
2284     *)
2285       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286       ;;
2287     esac |
2288     sort
2289 )
2290     echo
2291
2292     $as_echo "## ----------------- ##
2293 ## Output variables. ##
2294 ## ----------------- ##"
2295     echo
2296     for ac_var in $ac_subst_vars
2297     do
2298       eval ac_val=\$$ac_var
2299       case $ac_val in
2300       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301       esac
2302       $as_echo "$ac_var='\''$ac_val'\''"
2303     done | sort
2304     echo
2305
2306     if test -n "$ac_subst_files"; then
2307       $as_echo "## ------------------- ##
2308 ## File substitutions. ##
2309 ## ------------------- ##"
2310       echo
2311       for ac_var in $ac_subst_files
2312       do
2313         eval ac_val=\$$ac_var
2314         case $ac_val in
2315         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316         esac
2317         $as_echo "$ac_var='\''$ac_val'\''"
2318       done | sort
2319       echo
2320     fi
2321
2322     if test -s confdefs.h; then
2323       $as_echo "## ----------- ##
2324 ## confdefs.h. ##
2325 ## ----------- ##"
2326       echo
2327       cat confdefs.h
2328       echo
2329     fi
2330     test "$ac_signal" != 0 &&
2331       $as_echo "$as_me: caught signal $ac_signal"
2332     $as_echo "$as_me: exit $exit_status"
2333   } >&5
2334   rm -f core *.core core.conftest.* &&
2335     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336     exit $exit_status
2337 ' 0
2338 for ac_signal in 1 2 13 15; do
2339   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340 done
2341 ac_signal=0
2342
2343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2344 rm -f -r conftest* confdefs.h
2345
2346 $as_echo "/* confdefs.h */" > confdefs.h
2347
2348 # Predefined preprocessor variables.
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 _ACEOF
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 _ACEOF
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_URL "$PACKAGE_URL"
2372 _ACEOF
2373
2374
2375 # Let the site file select an alternate cache file if it wants to.
2376 # Prefer an explicitly selected file to automatically selected ones.
2377 ac_site_file1=NONE
2378 ac_site_file2=NONE
2379 if test -n "$CONFIG_SITE"; then
2380   # We do not want a PATH search for config.site.
2381   case $CONFIG_SITE in #((
2382     -*)  ac_site_file1=./$CONFIG_SITE;;
2383     */*) ac_site_file1=$CONFIG_SITE;;
2384     *)   ac_site_file1=./$CONFIG_SITE;;
2385   esac
2386 elif test "x$prefix" != xNONE; then
2387   ac_site_file1=$prefix/share/config.site
2388   ac_site_file2=$prefix/etc/config.site
2389 else
2390   ac_site_file1=$ac_default_prefix/share/config.site
2391   ac_site_file2=$ac_default_prefix/etc/config.site
2392 fi
2393 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2394 do
2395   test "x$ac_site_file" = xNONE && continue
2396   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2398 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399     sed 's/^/| /' "$ac_site_file" >&5
2400     . "$ac_site_file" \
2401       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403 as_fn_error $? "failed to load site script $ac_site_file
2404 See \`config.log' for more details" "$LINENO" 5; }
2405   fi
2406 done
2407
2408 if test -r "$cache_file"; then
2409   # Some versions of bash will fail to source /dev/null (special files
2410   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2411   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2412     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2413 $as_echo "$as_me: loading cache $cache_file" >&6;}
2414     case $cache_file in
2415       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2416       *)                      . "./$cache_file";;
2417     esac
2418   fi
2419 else
2420   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2421 $as_echo "$as_me: creating cache $cache_file" >&6;}
2422   >$cache_file
2423 fi
2424
2425 # Check that the precious variables saved in the cache have kept the same
2426 # value.
2427 ac_cache_corrupted=false
2428 for ac_var in $ac_precious_vars; do
2429   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430   eval ac_new_set=\$ac_env_${ac_var}_set
2431   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432   eval ac_new_val=\$ac_env_${ac_var}_value
2433   case $ac_old_set,$ac_new_set in
2434     set,)
2435       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2436 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437       ac_cache_corrupted=: ;;
2438     ,set)
2439       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2440 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441       ac_cache_corrupted=: ;;
2442     ,);;
2443     *)
2444       if test "x$ac_old_val" != "x$ac_new_val"; then
2445         # differences in whitespace do not lead to failure.
2446         ac_old_val_w=`echo x $ac_old_val`
2447         ac_new_val_w=`echo x $ac_new_val`
2448         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2451           ac_cache_corrupted=:
2452         else
2453           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2454 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455           eval $ac_var=\$ac_old_val
2456         fi
2457         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2458 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2459         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2460 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2461       fi;;
2462   esac
2463   # Pass precious variables to config.status.
2464   if test "$ac_new_set" = set; then
2465     case $ac_new_val in
2466     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2467     *) ac_arg=$ac_var=$ac_new_val ;;
2468     esac
2469     case " $ac_configure_args " in
2470       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2471       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472     esac
2473   fi
2474 done
2475 if $ac_cache_corrupted; then
2476   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2481 fi
2482 ## -------------------- ##
2483 ## Main body of script. ##
2484 ## -------------------- ##
2485
2486 ac_ext=c
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491
2492
2493
2494
2495
2496 ac_config_headers="$ac_config_headers config.h"
2497
2498
2499 am__api_version='1.11'
2500
2501 ac_aux_dir=
2502 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2503   if test -f "$ac_dir/install-sh"; then
2504     ac_aux_dir=$ac_dir
2505     ac_install_sh="$ac_aux_dir/install-sh -c"
2506     break
2507   elif test -f "$ac_dir/install.sh"; then
2508     ac_aux_dir=$ac_dir
2509     ac_install_sh="$ac_aux_dir/install.sh -c"
2510     break
2511   elif test -f "$ac_dir/shtool"; then
2512     ac_aux_dir=$ac_dir
2513     ac_install_sh="$ac_aux_dir/shtool install -c"
2514     break
2515   fi
2516 done
2517 if test -z "$ac_aux_dir"; then
2518   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2519 fi
2520
2521 # These three variables are undocumented and unsupported,
2522 # and are intended to be withdrawn in a future Autoconf release.
2523 # They can cause serious problems if a builder's source tree is in a directory
2524 # whose full name contains unusual characters.
2525 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2526 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2527 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2528
2529
2530 # Find a good install program.  We prefer a C program (faster),
2531 # so one script is as good as another.  But avoid the broken or
2532 # incompatible versions:
2533 # SysV /etc/install, /usr/sbin/install
2534 # SunOS /usr/etc/install
2535 # IRIX /sbin/install
2536 # AIX /bin/install
2537 # AmigaOS /C/install, which installs bootblocks on floppy discs
2538 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2539 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2540 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2541 # OS/2's system install, which has a completely different semantic
2542 # ./install, which can be erroneously created by make from ./install.sh.
2543 # Reject install programs that cannot install multiple files.
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2545 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2546 if test -z "$INSTALL"; then
2547 if ${ac_cv_path_install+:} false; then :
2548   $as_echo_n "(cached) " >&6
2549 else
2550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555     # Account for people who put trailing slashes in PATH elements.
2556 case $as_dir/ in #((
2557   ./ | .// | /[cC]/* | \
2558   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2559   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2560   /usr/ucb/* ) ;;
2561   *)
2562     # OSF1 and SCO ODT 3.0 have their own names for install.
2563     # Don't use installbsd from OSF since it installs stuff as root
2564     # by default.
2565     for ac_prog in ginstall scoinst install; do
2566       for ac_exec_ext in '' $ac_executable_extensions; do
2567         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2568           if test $ac_prog = install &&
2569             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2570             # AIX install.  It has an incompatible calling convention.
2571             :
2572           elif test $ac_prog = install &&
2573             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2574             # program-specific install script used by HP pwplus--don't use.
2575             :
2576           else
2577             rm -rf conftest.one conftest.two conftest.dir
2578             echo one > conftest.one
2579             echo two > conftest.two
2580             mkdir conftest.dir
2581             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2582               test -s conftest.one && test -s conftest.two &&
2583               test -s conftest.dir/conftest.one &&
2584               test -s conftest.dir/conftest.two
2585             then
2586               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2587               break 3
2588             fi
2589           fi
2590         fi
2591       done
2592     done
2593     ;;
2594 esac
2595
2596   done
2597 IFS=$as_save_IFS
2598
2599 rm -rf conftest.one conftest.two conftest.dir
2600
2601 fi
2602   if test "${ac_cv_path_install+set}" = set; then
2603     INSTALL=$ac_cv_path_install
2604   else
2605     # As a last resort, use the slow shell script.  Don't cache a
2606     # value for INSTALL within a source directory, because that will
2607     # break other packages using the cache if that directory is
2608     # removed, or if the value is a relative name.
2609     INSTALL=$ac_install_sh
2610   fi
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2613 $as_echo "$INSTALL" >&6; }
2614
2615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2616 # It thinks the first close brace ends the variable substitution.
2617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2618
2619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2620
2621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2624 $as_echo_n "checking whether build environment is sane... " >&6; }
2625 # Just in case
2626 sleep 1
2627 echo timestamp > conftest.file
2628 # Reject unsafe characters in $srcdir or the absolute working directory
2629 # name.  Accept space and tab only in the latter.
2630 am_lf='
2631 '
2632 case `pwd` in
2633   *[\\\"\#\$\&\'\`$am_lf]*)
2634     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2635 esac
2636 case $srcdir in
2637   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2638     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2639 esac
2640
2641 # Do `set' in a subshell so we don't clobber the current shell's
2642 # arguments.  Must try -L first in case configure is actually a
2643 # symlink; some systems play weird games with the mod time of symlinks
2644 # (eg FreeBSD returns the mod time of the symlink's containing
2645 # directory).
2646 if (
2647    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2648    if test "$*" = "X"; then
2649       # -L didn't work.
2650       set X `ls -t "$srcdir/configure" conftest.file`
2651    fi
2652    rm -f conftest.file
2653    if test "$*" != "X $srcdir/configure conftest.file" \
2654       && test "$*" != "X conftest.file $srcdir/configure"; then
2655
2656       # If neither matched, then we have a broken ls.  This can happen
2657       # if, for instance, CONFIG_SHELL is bash and it inherits a
2658       # broken ls alias from the environment.  This has actually
2659       # happened.  Such a system could not be considered "sane".
2660       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2661 alias in your environment" "$LINENO" 5
2662    fi
2663
2664    test "$2" = conftest.file
2665    )
2666 then
2667    # Ok.
2668    :
2669 else
2670    as_fn_error $? "newly created file is older than distributed files!
2671 Check your system clock" "$LINENO" 5
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 test "$program_prefix" != NONE &&
2676   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2677 # Use a double $ so make ignores it.
2678 test "$program_suffix" != NONE &&
2679   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2680 # Double any \ or $.
2681 # By default was `s,x,x', remove it if useless.
2682 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2683 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2684
2685 # expand $ac_aux_dir to an absolute path
2686 am_aux_dir=`cd $ac_aux_dir && pwd`
2687
2688 if test x"${MISSING+set}" != xset; then
2689   case $am_aux_dir in
2690   *\ * | *\     *)
2691     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2692   *)
2693     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2694   esac
2695 fi
2696 # Use eval to expand $SHELL
2697 if eval "$MISSING --run true"; then
2698   am_missing_run="$MISSING --run "
2699 else
2700   am_missing_run=
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2702 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2703 fi
2704
2705 if test x"${install_sh}" != xset; then
2706   case $am_aux_dir in
2707   *\ * | *\     *)
2708     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2709   *)
2710     install_sh="\${SHELL} $am_aux_dir/install-sh"
2711   esac
2712 fi
2713
2714 # Installed binaries are usually stripped using `strip' when the user
2715 # run `make install-strip'.  However `strip' might not be the right
2716 # tool to use in cross-compilation environments, therefore Automake
2717 # will honor the `STRIP' environment variable to overrule this program.
2718 if test "$cross_compiling" != no; then
2719   if test -n "$ac_tool_prefix"; then
2720   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}strip; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_STRIP+:} false; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   if test -n "$STRIP"; then
2728   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735     for ac_exec_ext in '' $ac_executable_extensions; do
2736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739     break 2
2740   fi
2741 done
2742   done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 STRIP=$ac_cv_prog_STRIP
2748 if test -n "$STRIP"; then
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2750 $as_echo "$STRIP" >&6; }
2751 else
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$ac_cv_prog_STRIP"; then
2759   ac_ct_STRIP=$STRIP
2760   # Extract the first word of "strip", so it can be a program name with args.
2761 set dummy strip; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$ac_ct_STRIP"; then
2768   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_ac_ct_STRIP="strip"
2778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782   done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2788 if test -n "$ac_ct_STRIP"; then
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2790 $as_echo "$ac_ct_STRIP" >&6; }
2791 else
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796   if test "x$ac_ct_STRIP" = x; then
2797     STRIP=":"
2798   else
2799     case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805     STRIP=$ac_ct_STRIP
2806   fi
2807 else
2808   STRIP="$ac_cv_prog_STRIP"
2809 fi
2810
2811 fi
2812 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2815 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2816 if test -z "$MKDIR_P"; then
2817   if ${ac_cv_path_mkdir+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825     for ac_prog in mkdir gmkdir; do
2826          for ac_exec_ext in '' $ac_executable_extensions; do
2827            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2828            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829              'mkdir (GNU coreutils) '* | \
2830              'mkdir (coreutils) '* | \
2831              'mkdir (fileutils) '4.1*)
2832                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2833                break 3;;
2834            esac
2835          done
2836        done
2837   done
2838 IFS=$as_save_IFS
2839
2840 fi
2841
2842   test -d ./--version && rmdir ./--version
2843   if test "${ac_cv_path_mkdir+set}" = set; then
2844     MKDIR_P="$ac_cv_path_mkdir -p"
2845   else
2846     # As a last resort, use the slow shell script.  Don't cache a
2847     # value for MKDIR_P within a source directory, because that will
2848     # break other packages using the cache if that directory is
2849     # removed, or if the value is a relative name.
2850     MKDIR_P="$ac_install_sh -d"
2851   fi
2852 fi
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2854 $as_echo "$MKDIR_P" >&6; }
2855
2856 mkdir_p="$MKDIR_P"
2857 case $mkdir_p in
2858   [\\/$]* | ?:[\\/]*) ;;
2859   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2860 esac
2861
2862 for ac_prog in gawk mawk nawk awk
2863 do
2864   # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_AWK+:} false; then :
2869   $as_echo_n "(cached) " >&6
2870 else
2871   if test -n "$AWK"; then
2872   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877   IFS=$as_save_IFS
2878   test -z "$as_dir" && as_dir=.
2879     for ac_exec_ext in '' $ac_executable_extensions; do
2880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881     ac_cv_prog_AWK="$ac_prog"
2882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883     break 2
2884   fi
2885 done
2886   done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 AWK=$ac_cv_prog_AWK
2892 if test -n "$AWK"; then
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2894 $as_echo "$AWK" >&6; }
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901   test -n "$AWK" && break
2902 done
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2905 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2906 set x ${MAKE-make}
2907 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2908 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2909   $as_echo_n "(cached) " >&6
2910 else
2911   cat >conftest.make <<\_ACEOF
2912 SHELL = /bin/sh
2913 all:
2914         @echo '@@@%%%=$(MAKE)=@@@%%%'
2915 _ACEOF
2916 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2917 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2918   *@@@%%%=?*=@@@%%%*)
2919     eval ac_cv_prog_make_${ac_make}_set=yes;;
2920   *)
2921     eval ac_cv_prog_make_${ac_make}_set=no;;
2922 esac
2923 rm -f conftest.make
2924 fi
2925 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927 $as_echo "yes" >&6; }
2928   SET_MAKE=
2929 else
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932   SET_MAKE="MAKE=${MAKE-make}"
2933 fi
2934
2935 rm -rf .tst 2>/dev/null
2936 mkdir .tst 2>/dev/null
2937 if test -d .tst; then
2938   am__leading_dot=.
2939 else
2940   am__leading_dot=_
2941 fi
2942 rmdir .tst 2>/dev/null
2943
2944 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2945   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2946   # is not polluted with repeated "-I."
2947   am__isrc=' -I$(srcdir)'
2948   # test to see if srcdir already configured
2949   if test -f $srcdir/config.status; then
2950     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2951   fi
2952 fi
2953
2954 # test whether we have cygpath
2955 if test -z "$CYGPATH_W"; then
2956   if (cygpath --version) >/dev/null 2>/dev/null; then
2957     CYGPATH_W='cygpath -w'
2958   else
2959     CYGPATH_W=echo
2960   fi
2961 fi
2962
2963
2964 # Define the identity of the package.
2965  PACKAGE='harfbuzz'
2966  VERSION='0.9.12'
2967
2968
2969 # Some tools Automake needs.
2970
2971 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2972
2973
2974 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2975
2976
2977 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2978
2979
2980 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2981
2982
2983 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2984
2985 # We need awk for the "check" target.  The system "awk" is bad on
2986 # some platforms.
2987 # Always define AMTAR for backward compatibility.  Yes, it's still used
2988 # in the wild :-(  We should find a proper way to deprecate it ...
2989 AMTAR='$${TAR-tar}'
2990
2991 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2992
2993
2994
2995
2996
2997 # Check whether --enable-silent-rules was given.
2998 if test "${enable_silent_rules+set}" = set; then :
2999   enableval=$enable_silent_rules;
3000 fi
3001
3002 case $enable_silent_rules in
3003 yes) AM_DEFAULT_VERBOSITY=0;;
3004 no)  AM_DEFAULT_VERBOSITY=1;;
3005 *)   AM_DEFAULT_VERBOSITY=0;;
3006 esac
3007 am_make=${MAKE-make}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3009 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3010 if ${am_cv_make_support_nested_variables+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if $as_echo 'TRUE=$(BAR$(V))
3014 BAR0=false
3015 BAR1=true
3016 V=1
3017 am__doit:
3018         @$(TRUE)
3019 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3020   am_cv_make_support_nested_variables=yes
3021 else
3022   am_cv_make_support_nested_variables=no
3023 fi
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3026 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3027 if test $am_cv_make_support_nested_variables = yes; then
3028     AM_V='$(V)'
3029   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3030 else
3031   AM_V=$AM_DEFAULT_VERBOSITY
3032   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3033 fi
3034 AM_BACKSLASH='\'
3035
3036
3037 # Initialize libtool
3038
3039 case `pwd` in
3040   *\ * | *\     *)
3041     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3042 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3043 esac
3044
3045
3046
3047 macro_version='2.4.2'
3048 macro_revision='1.3337'
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062 ltmain="$ac_aux_dir/ltmain.sh"
3063
3064 # Make sure we can run config.sub.
3065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3066   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069 $as_echo_n "checking build system type... " >&6; }
3070 if ${ac_cv_build+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   ac_build_alias=$build_alias
3074 test "x$ac_build_alias" = x &&
3075   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3076 test "x$ac_build_alias" = x &&
3077   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3079   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3083 $as_echo "$ac_cv_build" >&6; }
3084 case $ac_cv_build in
3085 *-*-*) ;;
3086 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3087 esac
3088 build=$ac_cv_build
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_build
3091 shift
3092 build_cpu=$1
3093 build_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 build_os=$*
3098 IFS=$ac_save_IFS
3099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if ${ac_cv_host+:} false; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test "x$host_alias" = x; then
3108   ac_cv_host=$ac_cv_build
3109 else
3110   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3112 fi
3113
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3117 case $ac_cv_host in
3118 *-*-*) ;;
3119 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3120 esac
3121 host=$ac_cv_host
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_host
3124 shift
3125 host_cpu=$1
3126 host_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 host_os=$*
3131 IFS=$ac_save_IFS
3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3133
3134
3135 # Backslashify metacharacters that are still active within
3136 # double-quoted strings.
3137 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3138
3139 # Same as above, but do not quote variable references.
3140 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3141
3142 # Sed substitution to delay expansion of an escaped shell variable in a
3143 # double_quote_subst'ed string.
3144 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3145
3146 # Sed substitution to delay expansion of an escaped single quote.
3147 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3148
3149 # Sed substitution to avoid accidental globbing in evaled expressions
3150 no_glob_subst='s/\*/\\\*/g'
3151
3152 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3153 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3154 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3157 $as_echo_n "checking how to print strings... " >&6; }
3158 # Test print first, because it will be a builtin if present.
3159 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3160    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3161   ECHO='print -r --'
3162 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3163   ECHO='printf %s\n'
3164 else
3165   # Use this function as a fallback that always works.
3166   func_fallback_echo ()
3167   {
3168     eval 'cat <<_LTECHO_EOF
3169 $1
3170 _LTECHO_EOF'
3171   }
3172   ECHO='func_fallback_echo'
3173 fi
3174
3175 # func_echo_all arg...
3176 # Invoke $ECHO with all args, space-separated.
3177 func_echo_all ()
3178 {
3179     $ECHO ""
3180 }
3181
3182 case "$ECHO" in
3183   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3184 $as_echo "printf" >&6; } ;;
3185   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3186 $as_echo "print -r" >&6; } ;;
3187   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3188 $as_echo "cat" >&6; } ;;
3189 esac
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204 DEPDIR="${am__leading_dot}deps"
3205
3206 ac_config_commands="$ac_config_commands depfiles"
3207
3208
3209 am_make=${MAKE-make}
3210 cat > confinc << 'END'
3211 am__doit:
3212         @echo this is the am__doit target
3213 .PHONY: am__doit
3214 END
3215 # If we don't find an include directive, just comment out the code.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3217 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3218 am__include="#"
3219 am__quote=
3220 _am_result=none
3221 # First try GNU make style include.
3222 echo "include confinc" > confmf
3223 # Ignore all kinds of additional output from `make'.
3224 case `$am_make -s -f confmf 2> /dev/null` in #(
3225 *the\ am__doit\ target*)
3226   am__include=include
3227   am__quote=
3228   _am_result=GNU
3229   ;;
3230 esac
3231 # Now try BSD make style include.
3232 if test "$am__include" = "#"; then
3233    echo '.include "confinc"' > confmf
3234    case `$am_make -s -f confmf 2> /dev/null` in #(
3235    *the\ am__doit\ target*)
3236      am__include=.include
3237      am__quote="\""
3238      _am_result=BSD
3239      ;;
3240    esac
3241 fi
3242
3243
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3245 $as_echo "$_am_result" >&6; }
3246 rm -f confinc confmf
3247
3248 # Check whether --enable-dependency-tracking was given.
3249 if test "${enable_dependency_tracking+set}" = set; then :
3250   enableval=$enable_dependency_tracking;
3251 fi
3252
3253 if test "x$enable_dependency_tracking" != xno; then
3254   am_depcomp="$ac_aux_dir/depcomp"
3255   AMDEPBACKSLASH='\'
3256   am__nodep='_no'
3257 fi
3258  if test "x$enable_dependency_tracking" != xno; then
3259   AMDEP_TRUE=
3260   AMDEP_FALSE='#'
3261 else
3262   AMDEP_TRUE='#'
3263   AMDEP_FALSE=
3264 fi
3265
3266
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   if test -n "$CC"; then
3281   ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288     for ac_exec_ext in '' $ac_executable_extensions; do
3289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292     break 2
3293   fi
3294 done
3295   done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 if test -z "$ac_cv_prog_CC"; then
3312   ac_ct_CC=$CC
3313   # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3318   $as_echo_n "(cached) " >&6
3319 else
3320   if test -n "$ac_ct_CC"; then
3321   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328     for ac_exec_ext in '' $ac_executable_extensions; do
3329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330     ac_cv_prog_ac_ct_CC="gcc"
3331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335   done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3343 $as_echo "$ac_ct_CC" >&6; }
3344 else
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349   if test "x$ac_ct_CC" = x; then
3350     CC=""
3351   else
3352     case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358     CC=$ac_ct_CC
3359   fi
3360 else
3361   CC="$ac_cv_prog_CC"
3362 fi
3363
3364 if test -z "$CC"; then
3365           if test -n "$ac_tool_prefix"; then
3366     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3367 set dummy ${ac_tool_prefix}cc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371   $as_echo_n "(cached) " >&6
3372 else
3373   if test -n "$CC"; then
3374   ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379   IFS=$as_save_IFS
3380   test -z "$as_dir" && as_dir=.
3381     for ac_exec_ext in '' $ac_executable_extensions; do
3382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383     ac_cv_prog_CC="${ac_tool_prefix}cc"
3384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388   done
3389 IFS=$as_save_IFS
3390
3391 fi
3392 fi
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402
3403   fi
3404 fi
3405 if test -z "$CC"; then
3406   # Extract the first word of "cc", so it can be a program name with args.
3407 set dummy cc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_CC+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -n "$CC"; then
3414   ac_cv_prog_CC="$CC" # Let the user override the test.
3415 else
3416   ac_prog_rejected=no
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420   IFS=$as_save_IFS
3421   test -z "$as_dir" && as_dir=.
3422     for ac_exec_ext in '' $ac_executable_extensions; do
3423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3425        ac_prog_rejected=yes
3426        continue
3427      fi
3428     ac_cv_prog_CC="cc"
3429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433   done
3434 IFS=$as_save_IFS
3435
3436 if test $ac_prog_rejected = yes; then
3437   # We found a bogon in the path, so make sure we never use it.
3438   set dummy $ac_cv_prog_CC
3439   shift
3440   if test $# != 0; then
3441     # We chose a different compiler from the bogus one.
3442     # However, it has the same basename, so the bogon will be chosen
3443     # first if we set CC to just the basename; use the full file name.
3444     shift
3445     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3446   fi
3447 fi
3448 fi
3449 fi
3450 CC=$ac_cv_prog_CC
3451 if test -n "$CC"; then
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453 $as_echo "$CC" >&6; }
3454 else
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3457 fi
3458
3459
3460 fi
3461 if test -z "$CC"; then
3462   if test -n "$ac_tool_prefix"; then
3463   for ac_prog in cl.exe
3464   do
3465     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_prog_CC+:} false; then :
3470   $as_echo_n "(cached) " >&6
3471 else
3472   if test -n "$CC"; then
3473   ac_cv_prog_CC="$CC" # Let the user override the test.
3474 else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480     for ac_exec_ext in '' $ac_executable_extensions; do
3481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487   done
3488 IFS=$as_save_IFS
3489
3490 fi
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3496 else
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3499 fi
3500
3501
3502     test -n "$CC" && break
3503   done
3504 fi
3505 if test -z "$CC"; then
3506   ac_ct_CC=$CC
3507   for ac_prog in cl.exe
3508 do
3509   # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3514   $as_echo_n "(cached) " >&6
3515 else
3516   if test -n "$ac_ct_CC"; then
3517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524     for ac_exec_ext in '' $ac_executable_extensions; do
3525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526     ac_cv_prog_ac_ct_CC="$ac_prog"
3527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528     break 2
3529   fi
3530 done
3531   done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3537 if test -n "$ac_ct_CC"; then
3538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3539 $as_echo "$ac_ct_CC" >&6; }
3540 else
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545
3546   test -n "$ac_ct_CC" && break
3547 done
3548
3549   if test "x$ac_ct_CC" = x; then
3550     CC=""
3551   else
3552     case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558     CC=$ac_ct_CC
3559   fi
3560 fi
3561
3562 fi
3563
3564
3565 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "no acceptable C compiler found in \$PATH
3568 See \`config.log' for more details" "$LINENO" 5; }
3569
3570 # Provide some information about the compiler.
3571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3572 set X $ac_compile
3573 ac_compiler=$2
3574 for ac_option in --version -v -V -qversion; do
3575   { { ac_try="$ac_compiler $ac_option >&5"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3583   ac_status=$?
3584   if test -s conftest.err; then
3585     sed '10a\
3586 ... rest of stderr output deleted ...
3587          10q' conftest.err >conftest.er1
3588     cat conftest.er1 >&5
3589   fi
3590   rm -f conftest.er1 conftest.err
3591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592   test $ac_status = 0; }
3593 done
3594
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h.  */
3597
3598 int
3599 main ()
3600 {
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 ac_clean_files_save=$ac_clean_files
3607 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3608 # Try to create an executable without -o first, disregard a.out.
3609 # It will help us diagnose broken compilers, and finding out an intuition
3610 # of exeext.
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3612 $as_echo_n "checking whether the C compiler works... " >&6; }
3613 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3614
3615 # The possible output files:
3616 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3617
3618 ac_rmfiles=
3619 for ac_file in $ac_files
3620 do
3621   case $ac_file in
3622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3623     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3624   esac
3625 done
3626 rm -f $ac_rmfiles
3627
3628 if { { ac_try="$ac_link_default"
3629 case "(($ac_try" in
3630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631   *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635   (eval "$ac_link_default") 2>&5
3636   ac_status=$?
3637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638   test $ac_status = 0; }; then :
3639   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3640 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3641 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3642 # so that the user can short-circuit this test for compilers unknown to
3643 # Autoconf.
3644 for ac_file in $ac_files ''
3645 do
3646   test -f "$ac_file" || continue
3647   case $ac_file in
3648     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3649         ;;
3650     [ab].out )
3651         # We found the default executable, but exeext='' is most
3652         # certainly right.
3653         break;;
3654     *.* )
3655         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3656         then :; else
3657            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658         fi
3659         # We set ac_cv_exeext here because the later test for it is not
3660         # safe: cross compilers may not add the suffix if given an `-o'
3661         # argument, so we may need to know it at that point already.
3662         # Even if this section looks crufty: it has the advantage of
3663         # actually working.
3664         break;;
3665     * )
3666         break;;
3667   esac
3668 done
3669 test "$ac_cv_exeext" = no && ac_cv_exeext=
3670
3671 else
3672   ac_file=''
3673 fi
3674 if test -z "$ac_file"; then :
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error 77 "C compiler cannot create executables
3683 See \`config.log' for more details" "$LINENO" 5; }
3684 else
3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3689 $as_echo_n "checking for C compiler default output file name... " >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3691 $as_echo "$ac_file" >&6; }
3692 ac_exeext=$ac_cv_exeext
3693
3694 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3695 ac_clean_files=$ac_clean_files_save
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3697 $as_echo_n "checking for suffix of executables... " >&6; }
3698 if { { ac_try="$ac_link"
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_link") 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708   test $ac_status = 0; }; then :
3709   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3710 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3711 # work properly (i.e., refer to `conftest.exe'), while it won't with
3712 # `rm'.
3713 for ac_file in conftest.exe conftest conftest.*; do
3714   test -f "$ac_file" || continue
3715   case $ac_file in
3716     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3717     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3718           break;;
3719     * ) break;;
3720   esac
3721 done
3722 else
3723   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3726 See \`config.log' for more details" "$LINENO" 5; }
3727 fi
3728 rm -f conftest conftest$ac_cv_exeext
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3730 $as_echo "$ac_cv_exeext" >&6; }
3731
3732 rm -f conftest.$ac_ext
3733 EXEEXT=$ac_cv_exeext
3734 ac_exeext=$EXEEXT
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h.  */
3737 #include <stdio.h>
3738 int
3739 main ()
3740 {
3741 FILE *f = fopen ("conftest.out", "w");
3742  return ferror (f) || fclose (f) != 0;
3743
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 ac_clean_files="$ac_clean_files conftest.out"
3749 # Check that the compiler produces executables we can run.  If not, either
3750 # the compiler is broken, or we cross compile.
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3752 $as_echo_n "checking whether we are cross compiling... " >&6; }
3753 if test "$cross_compiling" != yes; then
3754   { { ac_try="$ac_link"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_link") 2>&5
3762   ac_status=$?
3763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764   test $ac_status = 0; }
3765   if { ac_try='./conftest$ac_cv_exeext'
3766   { { case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772   (eval "$ac_try") 2>&5
3773   ac_status=$?
3774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775   test $ac_status = 0; }; }; then
3776     cross_compiling=no
3777   else
3778     if test "$cross_compiling" = maybe; then
3779         cross_compiling=yes
3780     else
3781         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error $? "cannot run C compiled programs.
3784 If you meant to cross compile, use \`--host'.
3785 See \`config.log' for more details" "$LINENO" 5; }
3786     fi
3787   fi
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3790 $as_echo "$cross_compiling" >&6; }
3791
3792 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3793 ac_clean_files=$ac_clean_files_save
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3795 $as_echo_n "checking for suffix of object files... " >&6; }
3796 if ${ac_cv_objext+:} false; then :
3797   $as_echo_n "(cached) " >&6
3798 else
3799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 rm -f conftest.o conftest.obj
3811 if { { ac_try="$ac_compile"
3812 case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818   (eval "$ac_compile") 2>&5
3819   ac_status=$?
3820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821   test $ac_status = 0; }; then :
3822   for ac_file in conftest.o conftest.obj conftest.*; do
3823   test -f "$ac_file" || continue;
3824   case $ac_file in
3825     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3826     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3827        break;;
3828   esac
3829 done
3830 else
3831   $as_echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "cannot compute suffix of object files: cannot compile
3837 See \`config.log' for more details" "$LINENO" 5; }
3838 fi
3839 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3842 $as_echo "$ac_cv_objext" >&6; }
3843 OBJEXT=$ac_cv_objext
3844 ac_objext=$OBJEXT
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3846 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3847 if ${ac_cv_c_compiler_gnu+:} false; then :
3848   $as_echo_n "(cached) " >&6
3849 else
3850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h.  */
3852
3853 int
3854 main ()
3855 {
3856 #ifndef __GNUC__
3857        choke me
3858 #endif
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865   ac_compiler_gnu=yes
3866 else
3867   ac_compiler_gnu=no
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3874 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3875 if test $ac_compiler_gnu = yes; then
3876   GCC=yes
3877 else
3878   GCC=
3879 fi
3880 ac_test_CFLAGS=${CFLAGS+set}
3881 ac_save_CFLAGS=$CFLAGS
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3883 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3884 if ${ac_cv_prog_cc_g+:} false; then :
3885   $as_echo_n "(cached) " >&6
3886 else
3887   ac_save_c_werror_flag=$ac_c_werror_flag
3888    ac_c_werror_flag=yes
3889    ac_cv_prog_cc_g=no
3890    CFLAGS="-g"
3891    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h.  */
3893
3894 int
3895 main ()
3896 {
3897
3898   ;
3899   return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903   ac_cv_prog_cc_g=yes
3904 else
3905   CFLAGS=""
3906       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918
3919 else
3920   ac_c_werror_flag=$ac_save_c_werror_flag
3921          CFLAGS="-g"
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 if ac_fn_c_try_compile "$LINENO"; then :
3934   ac_cv_prog_cc_g=yes
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941    ac_c_werror_flag=$ac_save_c_werror_flag
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3944 $as_echo "$ac_cv_prog_cc_g" >&6; }
3945 if test "$ac_test_CFLAGS" = set; then
3946   CFLAGS=$ac_save_CFLAGS
3947 elif test $ac_cv_prog_cc_g = yes; then
3948   if test "$GCC" = yes; then
3949     CFLAGS="-g -O2"
3950   else
3951     CFLAGS="-g"
3952   fi
3953 else
3954   if test "$GCC" = yes; then
3955     CFLAGS="-O2"
3956   else
3957     CFLAGS=
3958   fi
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3961 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3962 if ${ac_cv_prog_cc_c89+:} false; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   ac_cv_prog_cc_c89=no
3966 ac_save_CC=$CC
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969 #include <stdarg.h>
3970 #include <stdio.h>
3971 #include <sys/types.h>
3972 #include <sys/stat.h>
3973 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3974 struct buf { int x; };
3975 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3976 static char *e (p, i)
3977      char **p;
3978      int i;
3979 {
3980   return p[i];
3981 }
3982 static char *f (char * (*g) (char **, int), char **p, ...)
3983 {
3984   char *s;
3985   va_list v;
3986   va_start (v,p);
3987   s = g (p, va_arg (v,int));
3988   va_end (v);
3989   return s;
3990 }
3991
3992 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3993    function prototypes and stuff, but not '\xHH' hex character constants.
3994    These don't provoke an error unfortunately, instead are silently treated
3995    as 'x'.  The following induces an error, until -std is added to get
3996    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3997    array size at least.  It's necessary to write '\x00'==0 to get something
3998    that's true only with -std.  */
3999 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4000
4001 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4002    inside strings and character constants.  */
4003 #define FOO(x) 'x'
4004 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4005
4006 int test (int i, double x);
4007 struct s1 {int (*f) (int a);};
4008 struct s2 {int (*f) (double a);};
4009 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4010 int argc;
4011 char **argv;
4012 int
4013 main ()
4014 {
4015 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4021         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 do
4023   CC="$ac_save_CC $ac_arg"
4024   if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_cv_prog_cc_c89=$ac_arg
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext
4028   test "x$ac_cv_prog_cc_c89" != "xno" && break
4029 done
4030 rm -f conftest.$ac_ext
4031 CC=$ac_save_CC
4032
4033 fi
4034 # AC_CACHE_VAL
4035 case "x$ac_cv_prog_cc_c89" in
4036   x)
4037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4038 $as_echo "none needed" >&6; } ;;
4039   xno)
4040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4041 $as_echo "unsupported" >&6; } ;;
4042   *)
4043     CC="$CC $ac_cv_prog_cc_c89"
4044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4045 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4046 esac
4047 if test "x$ac_cv_prog_cc_c89" != xno; then :
4048
4049 fi
4050
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056
4057 depcc="$CC"   am_compiler_list=
4058
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4060 $as_echo_n "checking dependency style of $depcc... " >&6; }
4061 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4065   # We make a subdir and do the tests there.  Otherwise we can end up
4066   # making bogus files that we don't know about and never remove.  For
4067   # instance it was reported that on HP-UX the gcc test will end up
4068   # making a dummy file named `D' -- because `-MD' means `put the output
4069   # in D'.
4070   rm -rf conftest.dir
4071   mkdir conftest.dir
4072   # Copy depcomp to subdir because otherwise we won't find it if we're
4073   # using a relative directory.
4074   cp "$am_depcomp" conftest.dir
4075   cd conftest.dir
4076   # We will build objects and dependencies in a subdirectory because
4077   # it helps to detect inapplicable dependency modes.  For instance
4078   # both Tru64's cc and ICC support -MD to output dependencies as a
4079   # side effect of compilation, but ICC will put the dependencies in
4080   # the current directory while Tru64 will put them in the object
4081   # directory.
4082   mkdir sub
4083
4084   am_cv_CC_dependencies_compiler_type=none
4085   if test "$am_compiler_list" = ""; then
4086      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4087   fi
4088   am__universal=false
4089   case " $depcc " in #(
4090      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4091      esac
4092
4093   for depmode in $am_compiler_list; do
4094     # Setup a source with many dependencies, because some compilers
4095     # like to wrap large dependency lists on column 80 (with \), and
4096     # we should not choose a depcomp mode which is confused by this.
4097     #
4098     # We need to recreate these files for each test, as the compiler may
4099     # overwrite some of them when testing with obscure command lines.
4100     # This happens at least with the AIX C compiler.
4101     : > sub/conftest.c
4102     for i in 1 2 3 4 5 6; do
4103       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4104       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4105       # Solaris 8's {/usr,}/bin/sh.
4106       touch sub/conftst$i.h
4107     done
4108     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4109
4110     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4111     # mode.  It turns out that the SunPro C++ compiler does not properly
4112     # handle `-M -o', and we need to detect this.  Also, some Intel
4113     # versions had trouble with output in subdirs
4114     am__obj=sub/conftest.${OBJEXT-o}
4115     am__minus_obj="-o $am__obj"
4116     case $depmode in
4117     gcc)
4118       # This depmode causes a compiler race in universal mode.
4119       test "$am__universal" = false || continue
4120       ;;
4121     nosideeffect)
4122       # after this tag, mechanisms are not by side-effect, so they'll
4123       # only be used when explicitly requested
4124       if test "x$enable_dependency_tracking" = xyes; then
4125         continue
4126       else
4127         break
4128       fi
4129       ;;
4130     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4131       # This compiler won't grok `-c -o', but also, the minuso test has
4132       # not run yet.  These depmodes are late enough in the game, and
4133       # so weak that their functioning should not be impacted.
4134       am__obj=conftest.${OBJEXT-o}
4135       am__minus_obj=
4136       ;;
4137     none) break ;;
4138     esac
4139     if depmode=$depmode \
4140        source=sub/conftest.c object=$am__obj \
4141        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4142        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4143          >/dev/null 2>conftest.err &&
4144        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4145        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4146        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4147        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4148       # icc doesn't choke on unknown options, it will just issue warnings
4149       # or remarks (even with -Werror).  So we grep stderr for any message
4150       # that says an option was ignored or not supported.
4151       # When given -MP, icc 7.0 and 7.1 complain thusly:
4152       #   icc: Command line warning: ignoring option '-M'; no argument required
4153       # The diagnosis changed in icc 8.0:
4154       #   icc: Command line remark: option '-MP' not supported
4155       if (grep 'ignoring option' conftest.err ||
4156           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4157         am_cv_CC_dependencies_compiler_type=$depmode
4158         break
4159       fi
4160     fi
4161   done
4162
4163   cd ..
4164   rm -rf conftest.dir
4165 else
4166   am_cv_CC_dependencies_compiler_type=none
4167 fi
4168
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4171 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4172 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4173
4174  if
4175   test "x$enable_dependency_tracking" != xno \
4176   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4177   am__fastdepCC_TRUE=
4178   am__fastdepCC_FALSE='#'
4179 else
4180   am__fastdepCC_TRUE='#'
4181   am__fastdepCC_FALSE=
4182 fi
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4186 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4187 if ${ac_cv_path_SED+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4191      for ac_i in 1 2 3 4 5 6 7; do
4192        ac_script="$ac_script$as_nl$ac_script"
4193      done
4194      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4195      { ac_script=; unset ac_script;}
4196      if test -z "$SED"; then
4197   ac_path_SED_found=false
4198   # Loop through the user's path and test for each of PROGNAME-LIST
4199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204     for ac_prog in sed gsed; do
4205     for ac_exec_ext in '' $ac_executable_extensions; do
4206       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4207       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4208 # Check for GNU ac_path_SED and select it if it is found.
4209   # Check for GNU $ac_path_SED
4210 case `"$ac_path_SED" --version 2>&1` in
4211 *GNU*)
4212   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4213 *)
4214   ac_count=0
4215   $as_echo_n 0123456789 >"conftest.in"
4216   while :
4217   do
4218     cat "conftest.in" "conftest.in" >"conftest.tmp"
4219     mv "conftest.tmp" "conftest.in"
4220     cp "conftest.in" "conftest.nl"
4221     $as_echo '' >> "conftest.nl"
4222     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224     as_fn_arith $ac_count + 1 && ac_count=$as_val
4225     if test $ac_count -gt ${ac_path_SED_max-0}; then
4226       # Best one so far, save it but keep looking for a better one
4227       ac_cv_path_SED="$ac_path_SED"
4228       ac_path_SED_max=$ac_count
4229     fi
4230     # 10*(2^10) chars as input seems more than enough
4231     test $ac_count -gt 10 && break
4232   done
4233   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4235
4236       $ac_path_SED_found && break 3
4237     done
4238   done
4239   done
4240 IFS=$as_save_IFS
4241   if test -z "$ac_cv_path_SED"; then
4242     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4243   fi
4244 else
4245   ac_cv_path_SED=$SED
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4250 $as_echo "$ac_cv_path_SED" >&6; }
4251  SED="$ac_cv_path_SED"
4252   rm -f conftest.sed
4253
4254 test -z "$SED" && SED=sed
4255 Xsed="$SED -e 1s/^X//"
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4268 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4269 if ${ac_cv_path_GREP+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if test -z "$GREP"; then
4273   ac_path_GREP_found=false
4274   # Loop through the user's path and test for each of PROGNAME-LIST
4275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280     for ac_prog in grep ggrep; do
4281     for ac_exec_ext in '' $ac_executable_extensions; do
4282       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4283       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4284 # Check for GNU ac_path_GREP and select it if it is found.
4285   # Check for GNU $ac_path_GREP
4286 case `"$ac_path_GREP" --version 2>&1` in
4287 *GNU*)
4288   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4289 *)
4290   ac_count=0
4291   $as_echo_n 0123456789 >"conftest.in"
4292   while :
4293   do
4294     cat "conftest.in" "conftest.in" >"conftest.tmp"
4295     mv "conftest.tmp" "conftest.in"
4296     cp "conftest.in" "conftest.nl"
4297     $as_echo 'GREP' >> "conftest.nl"
4298     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300     as_fn_arith $ac_count + 1 && ac_count=$as_val
4301     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4302       # Best one so far, save it but keep looking for a better one
4303       ac_cv_path_GREP="$ac_path_GREP"
4304       ac_path_GREP_max=$ac_count
4305     fi
4306     # 10*(2^10) chars as input seems more than enough
4307     test $ac_count -gt 10 && break
4308   done
4309   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310 esac
4311
4312       $ac_path_GREP_found && break 3
4313     done
4314   done
4315   done
4316 IFS=$as_save_IFS
4317   if test -z "$ac_cv_path_GREP"; then
4318     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4319   fi
4320 else
4321   ac_cv_path_GREP=$GREP
4322 fi
4323
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4326 $as_echo "$ac_cv_path_GREP" >&6; }
4327  GREP="$ac_cv_path_GREP"
4328
4329
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4331 $as_echo_n "checking for egrep... " >&6; }
4332 if ${ac_cv_path_EGREP+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4336    then ac_cv_path_EGREP="$GREP -E"
4337    else
4338      if test -z "$EGREP"; then
4339   ac_path_EGREP_found=false
4340   # Loop through the user's path and test for each of PROGNAME-LIST
4341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4343 do
4344   IFS=$as_save_IFS
4345   test -z "$as_dir" && as_dir=.
4346     for ac_prog in egrep; do
4347     for ac_exec_ext in '' $ac_executable_extensions; do
4348       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4349       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4350 # Check for GNU ac_path_EGREP and select it if it is found.
4351   # Check for GNU $ac_path_EGREP
4352 case `"$ac_path_EGREP" --version 2>&1` in
4353 *GNU*)
4354   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4355 *)
4356   ac_count=0
4357   $as_echo_n 0123456789 >"conftest.in"
4358   while :
4359   do
4360     cat "conftest.in" "conftest.in" >"conftest.tmp"
4361     mv "conftest.tmp" "conftest.in"
4362     cp "conftest.in" "conftest.nl"
4363     $as_echo 'EGREP' >> "conftest.nl"
4364     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366     as_fn_arith $ac_count + 1 && ac_count=$as_val
4367     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4368       # Best one so far, save it but keep looking for a better one
4369       ac_cv_path_EGREP="$ac_path_EGREP"
4370       ac_path_EGREP_max=$ac_count
4371     fi
4372     # 10*(2^10) chars as input seems more than enough
4373     test $ac_count -gt 10 && break
4374   done
4375   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376 esac
4377
4378       $ac_path_EGREP_found && break 3
4379     done
4380   done
4381   done
4382 IFS=$as_save_IFS
4383   if test -z "$ac_cv_path_EGREP"; then
4384     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385   fi
4386 else
4387   ac_cv_path_EGREP=$EGREP
4388 fi
4389
4390    fi
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4393 $as_echo "$ac_cv_path_EGREP" >&6; }
4394  EGREP="$ac_cv_path_EGREP"
4395
4396
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4398 $as_echo_n "checking for fgrep... " >&6; }
4399 if ${ac_cv_path_FGREP+:} false; then :
4400   $as_echo_n "(cached) " >&6
4401 else
4402   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4403    then ac_cv_path_FGREP="$GREP -F"
4404    else
4405      if test -z "$FGREP"; then
4406   ac_path_FGREP_found=false
4407   # Loop through the user's path and test for each of PROGNAME-LIST
4408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413     for ac_prog in fgrep; do
4414     for ac_exec_ext in '' $ac_executable_extensions; do
4415       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4416       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4417 # Check for GNU ac_path_FGREP and select it if it is found.
4418   # Check for GNU $ac_path_FGREP
4419 case `"$ac_path_FGREP" --version 2>&1` in
4420 *GNU*)
4421   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4422 *)
4423   ac_count=0
4424   $as_echo_n 0123456789 >"conftest.in"
4425   while :
4426   do
4427     cat "conftest.in" "conftest.in" >"conftest.tmp"
4428     mv "conftest.tmp" "conftest.in"
4429     cp "conftest.in" "conftest.nl"
4430     $as_echo 'FGREP' >> "conftest.nl"
4431     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433     as_fn_arith $ac_count + 1 && ac_count=$as_val
4434     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4435       # Best one so far, save it but keep looking for a better one
4436       ac_cv_path_FGREP="$ac_path_FGREP"
4437       ac_path_FGREP_max=$ac_count
4438     fi
4439     # 10*(2^10) chars as input seems more than enough
4440     test $ac_count -gt 10 && break
4441   done
4442   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443 esac
4444
4445       $ac_path_FGREP_found && break 3
4446     done
4447   done
4448   done
4449 IFS=$as_save_IFS
4450   if test -z "$ac_cv_path_FGREP"; then
4451     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4452   fi
4453 else
4454   ac_cv_path_FGREP=$FGREP
4455 fi
4456
4457    fi
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4460 $as_echo "$ac_cv_path_FGREP" >&6; }
4461  FGREP="$ac_cv_path_FGREP"
4462
4463
4464 test -z "$GREP" && GREP=grep
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484 # Check whether --with-gnu-ld was given.
4485 if test "${with_gnu_ld+set}" = set; then :
4486   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4487 else
4488   with_gnu_ld=no
4489 fi
4490
4491 ac_prog=ld
4492 if test "$GCC" = yes; then
4493   # Check if gcc -print-prog-name=ld gives a path.
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4495 $as_echo_n "checking for ld used by $CC... " >&6; }
4496   case $host in
4497   *-*-mingw*)
4498     # gcc leaves a trailing carriage return which upsets mingw
4499     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4500   *)
4501     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4502   esac
4503   case $ac_prog in
4504     # Accept absolute paths.
4505     [\\/]* | ?:[\\/]*)
4506       re_direlt='/[^/][^/]*/\.\./'
4507       # Canonicalize the pathname of ld
4508       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4509       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4510         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4511       done
4512       test -z "$LD" && LD="$ac_prog"
4513       ;;
4514   "")
4515     # If it fails, then pretend we aren't using GCC.
4516     ac_prog=ld
4517     ;;
4518   *)
4519     # If it is relative, then search for the first ld in PATH.
4520     with_gnu_ld=unknown
4521     ;;
4522   esac
4523 elif test "$with_gnu_ld" = yes; then
4524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4525 $as_echo_n "checking for GNU ld... " >&6; }
4526 else
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4528 $as_echo_n "checking for non-GNU ld... " >&6; }
4529 fi
4530 if ${lt_cv_path_LD+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   if test -z "$LD"; then
4534   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4535   for ac_dir in $PATH; do
4536     IFS="$lt_save_ifs"
4537     test -z "$ac_dir" && ac_dir=.
4538     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4539       lt_cv_path_LD="$ac_dir/$ac_prog"
4540       # Check to see if the program is GNU ld.  I'd rather use --version,
4541       # but apparently some variants of GNU ld only accept -v.
4542       # Break only if it was the GNU/non-GNU ld that we prefer.
4543       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4544       *GNU* | *'with BFD'*)
4545         test "$with_gnu_ld" != no && break
4546         ;;
4547       *)
4548         test "$with_gnu_ld" != yes && break
4549         ;;
4550       esac
4551     fi
4552   done
4553   IFS="$lt_save_ifs"
4554 else
4555   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4556 fi
4557 fi
4558
4559 LD="$lt_cv_path_LD"
4560 if test -n "$LD"; then
4561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4562 $as_echo "$LD" >&6; }
4563 else
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 fi
4567 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4569 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4570 if ${lt_cv_prog_gnu_ld+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4574 case `$LD -v 2>&1 </dev/null` in
4575 *GNU* | *'with BFD'*)
4576   lt_cv_prog_gnu_ld=yes
4577   ;;
4578 *)
4579   lt_cv_prog_gnu_ld=no
4580   ;;
4581 esac
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4584 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4585 with_gnu_ld=$lt_cv_prog_gnu_ld
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4596 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4597 if ${lt_cv_path_NM+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -n "$NM"; then
4601   # Let the user override the test.
4602   lt_cv_path_NM="$NM"
4603 else
4604   lt_nm_to_check="${ac_tool_prefix}nm"
4605   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4606     lt_nm_to_check="$lt_nm_to_check nm"
4607   fi
4608   for lt_tmp_nm in $lt_nm_to_check; do
4609     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4610     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4611       IFS="$lt_save_ifs"
4612       test -z "$ac_dir" && ac_dir=.
4613       tmp_nm="$ac_dir/$lt_tmp_nm"
4614       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4615         # Check to see if the nm accepts a BSD-compat flag.
4616         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4617         #   nm: unknown option "B" ignored
4618         # Tru64's nm complains that /dev/null is an invalid object file
4619         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4620         */dev/null* | *'Invalid file or object type'*)
4621           lt_cv_path_NM="$tmp_nm -B"
4622           break
4623           ;;
4624         *)
4625           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4626           */dev/null*)
4627             lt_cv_path_NM="$tmp_nm -p"
4628             break
4629             ;;
4630           *)
4631             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4632             continue # so that we can try to find one that supports BSD flags
4633             ;;
4634           esac
4635           ;;
4636         esac
4637       fi
4638     done
4639     IFS="$lt_save_ifs"
4640   done
4641   : ${lt_cv_path_NM=no}
4642 fi
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4645 $as_echo "$lt_cv_path_NM" >&6; }
4646 if test "$lt_cv_path_NM" != "no"; then
4647   NM="$lt_cv_path_NM"
4648 else
4649   # Didn't find any BSD compatible name lister, look for dumpbin.
4650   if test -n "$DUMPBIN"; then :
4651     # Let the user override the test.
4652   else
4653     if test -n "$ac_tool_prefix"; then
4654   for ac_prog in dumpbin "link -dump"
4655   do
4656     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_DUMPBIN+:} false; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$DUMPBIN"; then
4664   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 DUMPBIN=$ac_cv_prog_DUMPBIN
4684 if test -n "$DUMPBIN"; then
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4686 $as_echo "$DUMPBIN" >&6; }
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692
4693     test -n "$DUMPBIN" && break
4694   done
4695 fi
4696 if test -z "$DUMPBIN"; then
4697   ac_ct_DUMPBIN=$DUMPBIN
4698   for ac_prog in dumpbin "link -dump"
4699 do
4700   # Extract the first word of "$ac_prog", so it can be a program name with args.
4701 set dummy $ac_prog; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   if test -n "$ac_ct_DUMPBIN"; then
4708   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715     for ac_exec_ext in '' $ac_executable_extensions; do
4716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722   done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4728 if test -n "$ac_ct_DUMPBIN"; then
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4730 $as_echo "$ac_ct_DUMPBIN" >&6; }
4731 else
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736
4737   test -n "$ac_ct_DUMPBIN" && break
4738 done
4739
4740   if test "x$ac_ct_DUMPBIN" = x; then
4741     DUMPBIN=":"
4742   else
4743     case $cross_compiling:$ac_tool_warned in
4744 yes:)
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4747 ac_tool_warned=yes ;;
4748 esac
4749     DUMPBIN=$ac_ct_DUMPBIN
4750   fi
4751 fi
4752
4753     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4754     *COFF*)
4755       DUMPBIN="$DUMPBIN -symbols"
4756       ;;
4757     *)
4758       DUMPBIN=:
4759       ;;
4760     esac
4761   fi
4762
4763   if test "$DUMPBIN" != ":"; then
4764     NM="$DUMPBIN"
4765   fi
4766 fi
4767 test -z "$NM" && NM=nm
4768
4769
4770
4771
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4775 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4776 if ${lt_cv_nm_interface+:} false; then :
4777   $as_echo_n "(cached) " >&6
4778 else
4779   lt_cv_nm_interface="BSD nm"
4780   echo "int some_variable = 0;" > conftest.$ac_ext
4781   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4782   (eval "$ac_compile" 2>conftest.err)
4783   cat conftest.err >&5
4784   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4785   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4786   cat conftest.err >&5
4787   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4788   cat conftest.out >&5
4789   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4790     lt_cv_nm_interface="MS dumpbin"
4791   fi
4792   rm -f conftest*
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4795 $as_echo "$lt_cv_nm_interface" >&6; }
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4798 $as_echo_n "checking whether ln -s works... " >&6; }
4799 LN_S=$as_ln_s
4800 if test "$LN_S" = "ln -s"; then
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4802 $as_echo "yes" >&6; }
4803 else
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4805 $as_echo "no, using $LN_S" >&6; }
4806 fi
4807
4808 # find the maximum length of command line arguments
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4810 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4811 if ${lt_cv_sys_max_cmd_len+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814     i=0
4815   teststring="ABCD"
4816
4817   case $build_os in
4818   msdosdjgpp*)
4819     # On DJGPP, this test can blow up pretty badly due to problems in libc
4820     # (any single argument exceeding 2000 bytes causes a buffer overrun
4821     # during glob expansion).  Even if it were fixed, the result of this
4822     # check would be larger than it should be.
4823     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4824     ;;
4825
4826   gnu*)
4827     # Under GNU Hurd, this test is not required because there is
4828     # no limit to the length of command line arguments.
4829     # Libtool will interpret -1 as no limit whatsoever
4830     lt_cv_sys_max_cmd_len=-1;
4831     ;;
4832
4833   cygwin* | mingw* | cegcc*)
4834     # On Win9x/ME, this test blows up -- it succeeds, but takes
4835     # about 5 minutes as the teststring grows exponentially.
4836     # Worse, since 9x/ME are not pre-emptively multitasking,
4837     # you end up with a "frozen" computer, even though with patience
4838     # the test eventually succeeds (with a max line length of 256k).
4839     # Instead, let's just punt: use the minimum linelength reported by
4840     # all of the supported platforms: 8192 (on NT/2K/XP).
4841     lt_cv_sys_max_cmd_len=8192;
4842     ;;
4843
4844   mint*)
4845     # On MiNT this can take a long time and run out of memory.
4846     lt_cv_sys_max_cmd_len=8192;
4847     ;;
4848
4849   amigaos*)
4850     # On AmigaOS with pdksh, this test takes hours, literally.
4851     # So we just punt and use a minimum line length of 8192.
4852     lt_cv_sys_max_cmd_len=8192;
4853     ;;
4854
4855   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4856     # This has been around since 386BSD, at least.  Likely further.
4857     if test -x /sbin/sysctl; then
4858       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4859     elif test -x /usr/sbin/sysctl; then
4860       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4861     else
4862       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4863     fi
4864     # And add a safety zone
4865     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4866     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4867     ;;
4868
4869   interix*)
4870     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4871     lt_cv_sys_max_cmd_len=196608
4872     ;;
4873
4874   os2*)
4875     # The test takes a long time on OS/2.
4876     lt_cv_sys_max_cmd_len=8192
4877     ;;
4878
4879   osf*)
4880     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4881     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4882     # nice to cause kernel panics so lets avoid the loop below.
4883     # First set a reasonable default.
4884     lt_cv_sys_max_cmd_len=16384
4885     #
4886     if test -x /sbin/sysconfig; then
4887       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4888         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4889       esac
4890     fi
4891     ;;
4892   sco3.2v5*)
4893     lt_cv_sys_max_cmd_len=102400
4894     ;;
4895   sysv5* | sco5v6* | sysv4.2uw2*)
4896     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4897     if test -n "$kargmax"; then
4898       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4899     else
4900       lt_cv_sys_max_cmd_len=32768
4901     fi
4902     ;;
4903   *)
4904     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4905     if test -n "$lt_cv_sys_max_cmd_len"; then
4906       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4907       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4908     else
4909       # Make teststring a little bigger before we do anything with it.
4910       # a 1K string should be a reasonable start.
4911       for i in 1 2 3 4 5 6 7 8 ; do
4912         teststring=$teststring$teststring
4913       done
4914       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4915       # If test is not a shell built-in, we'll probably end up computing a
4916       # maximum length that is only half of the actual maximum length, but
4917       # we can't tell.
4918       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4919                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4920               test $i != 17 # 1/2 MB should be enough
4921       do
4922         i=`expr $i + 1`
4923         teststring=$teststring$teststring
4924       done
4925       # Only check the string length outside the loop.
4926       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4927       teststring=
4928       # Add a significant safety factor because C++ compilers can tack on
4929       # massive amounts of additional arguments before passing them to the
4930       # linker.  It appears as though 1/2 is a usable value.
4931       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4932     fi
4933     ;;
4934   esac
4935
4936 fi
4937
4938 if test -n $lt_cv_sys_max_cmd_len ; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4940 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4943 $as_echo "none" >&6; }
4944 fi
4945 max_cmd_len=$lt_cv_sys_max_cmd_len
4946
4947
4948
4949
4950
4951
4952 : ${CP="cp -f"}
4953 : ${MV="mv -f"}
4954 : ${RM="rm -f"}
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4957 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4958 # Try some XSI features
4959 xsi_shell=no
4960 ( _lt_dummy="a/b/c"
4961   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4962       = c,a/b,b/c, \
4963     && eval 'test $(( 1 + 1 )) -eq 2 \
4964     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4965   && xsi_shell=yes
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4967 $as_echo "$xsi_shell" >&6; }
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4971 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4972 lt_shell_append=no
4973 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4974     >/dev/null 2>&1 \
4975   && lt_shell_append=yes
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4977 $as_echo "$lt_shell_append" >&6; }
4978
4979
4980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4981   lt_unset=unset
4982 else
4983   lt_unset=false
4984 fi
4985
4986
4987
4988
4989
4990 # test EBCDIC or ASCII
4991 case `echo X|tr X '\101'` in
4992  A) # ASCII based system
4993     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4994   lt_SP2NL='tr \040 \012'
4995   lt_NL2SP='tr \015\012 \040\040'
4996   ;;
4997  *) # EBCDIC based system
4998   lt_SP2NL='tr \100 \n'
4999   lt_NL2SP='tr \r\n \100\100'
5000   ;;
5001 esac
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5012 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5013 if ${lt_cv_to_host_file_cmd+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   case $host in
5017   *-*-mingw* )
5018     case $build in
5019       *-*-mingw* ) # actually msys
5020         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5021         ;;
5022       *-*-cygwin* )
5023         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5024         ;;
5025       * ) # otherwise, assume *nix
5026         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5027         ;;
5028     esac
5029     ;;
5030   *-*-cygwin* )
5031     case $build in
5032       *-*-mingw* ) # actually msys
5033         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5034         ;;
5035       *-*-cygwin* )
5036         lt_cv_to_host_file_cmd=func_convert_file_noop
5037         ;;
5038       * ) # otherwise, assume *nix
5039         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5040         ;;
5041     esac
5042     ;;
5043   * ) # unhandled hosts (and "normal" native builds)
5044     lt_cv_to_host_file_cmd=func_convert_file_noop
5045     ;;
5046 esac
5047
5048 fi
5049
5050 to_host_file_cmd=$lt_cv_to_host_file_cmd
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5052 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5053
5054
5055
5056
5057
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5059 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5060 if ${lt_cv_to_tool_file_cmd+:} false; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   #assume ordinary cross tools, or native build.
5064 lt_cv_to_tool_file_cmd=func_convert_file_noop
5065 case $host in
5066   *-*-mingw* )
5067     case $build in
5068       *-*-mingw* ) # actually msys
5069         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5070         ;;
5071     esac
5072     ;;
5073 esac
5074
5075 fi
5076
5077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5079 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5080
5081
5082
5083
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5086 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5087 if ${lt_cv_ld_reload_flag+:} false; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090   lt_cv_ld_reload_flag='-r'
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5093 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5094 reload_flag=$lt_cv_ld_reload_flag
5095 case $reload_flag in
5096 "" | " "*) ;;
5097 *) reload_flag=" $reload_flag" ;;
5098 esac
5099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5100 case $host_os in
5101   cygwin* | mingw* | pw32* | cegcc*)
5102     if test "$GCC" != yes; then
5103       reload_cmds=false
5104     fi
5105     ;;
5106   darwin*)
5107     if test "$GCC" = yes; then
5108       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5109     else
5110       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5111     fi
5112     ;;
5113 esac
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123 if test -n "$ac_tool_prefix"; then
5124   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_OBJDUMP+:} false; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   if test -n "$OBJDUMP"; then
5132   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_exec_ext in '' $ac_executable_extensions; do
5140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146   done
5147 IFS=$as_save_IFS
5148
5149 fi
5150 fi
5151 OBJDUMP=$ac_cv_prog_OBJDUMP
5152 if test -n "$OBJDUMP"; then
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5154 $as_echo "$OBJDUMP" >&6; }
5155 else
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160
5161 fi
5162 if test -z "$ac_cv_prog_OBJDUMP"; then
5163   ac_ct_OBJDUMP=$OBJDUMP
5164   # Extract the first word of "objdump", so it can be a program name with args.
5165 set dummy objdump; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if test -n "$ac_ct_OBJDUMP"; then
5172   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5192 if test -n "$ac_ct_OBJDUMP"; then
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5194 $as_echo "$ac_ct_OBJDUMP" >&6; }
5195 else
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200   if test "x$ac_ct_OBJDUMP" = x; then
5201     OBJDUMP="false"
5202   else
5203     case $cross_compiling:$ac_tool_warned in
5204 yes:)
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned=yes ;;
5208 esac
5209     OBJDUMP=$ac_ct_OBJDUMP
5210   fi
5211 else
5212   OBJDUMP="$ac_cv_prog_OBJDUMP"
5213 fi
5214
5215 test -z "$OBJDUMP" && OBJDUMP=objdump
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5226 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5227 if ${lt_cv_deplibs_check_method+:} false; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230   lt_cv_file_magic_cmd='$MAGIC_CMD'
5231 lt_cv_file_magic_test_file=
5232 lt_cv_deplibs_check_method='unknown'
5233 # Need to set the preceding variable on all platforms that support
5234 # interlibrary dependencies.
5235 # 'none' -- dependencies not supported.
5236 # `unknown' -- same as none, but documents that we really don't know.
5237 # 'pass_all' -- all dependencies passed with no checks.
5238 # 'test_compile' -- check by making test program.
5239 # 'file_magic [[regex]]' -- check by looking for files in library path
5240 # which responds to the $file_magic_cmd with a given extended regex.
5241 # If you have `file' or equivalent on your system and you're not sure
5242 # whether `pass_all' will *always* work, you probably want this one.
5243
5244 case $host_os in
5245 aix[4-9]*)
5246   lt_cv_deplibs_check_method=pass_all
5247   ;;
5248
5249 beos*)
5250   lt_cv_deplibs_check_method=pass_all
5251   ;;
5252
5253 bsdi[45]*)
5254   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5255   lt_cv_file_magic_cmd='/usr/bin/file -L'
5256   lt_cv_file_magic_test_file=/shlib/libc.so
5257   ;;
5258
5259 cygwin*)
5260   # func_win32_libid is a shell function defined in ltmain.sh
5261   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5262   lt_cv_file_magic_cmd='func_win32_libid'
5263   ;;
5264
5265 mingw* | pw32*)
5266   # Base MSYS/MinGW do not provide the 'file' command needed by
5267   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5268   # unless we find 'file', for example because we are cross-compiling.
5269   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5270   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5271     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5272     lt_cv_file_magic_cmd='func_win32_libid'
5273   else
5274     # Keep this pattern in sync with the one in func_win32_libid.
5275     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5276     lt_cv_file_magic_cmd='$OBJDUMP -f'
5277   fi
5278   ;;
5279
5280 cegcc*)
5281   # use the weaker test based on 'objdump'. See mingw*.
5282   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5283   lt_cv_file_magic_cmd='$OBJDUMP -f'
5284   ;;
5285
5286 darwin* | rhapsody*)
5287   lt_cv_deplibs_check_method=pass_all
5288   ;;
5289
5290 freebsd* | dragonfly*)
5291   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5292     case $host_cpu in
5293     i*86 )
5294       # Not sure whether the presence of OpenBSD here was a mistake.
5295       # Let's accept both of them until this is cleared up.
5296       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5297       lt_cv_file_magic_cmd=/usr/bin/file
5298       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5299       ;;
5300     esac
5301   else
5302     lt_cv_deplibs_check_method=pass_all
5303   fi
5304   ;;
5305
5306 gnu*)
5307   lt_cv_deplibs_check_method=pass_all
5308   ;;
5309
5310 haiku*)
5311   lt_cv_deplibs_check_method=pass_all
5312   ;;
5313
5314 hpux10.20* | hpux11*)
5315   lt_cv_file_magic_cmd=/usr/bin/file
5316   case $host_cpu in
5317   ia64*)
5318     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5319     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5320     ;;
5321   hppa*64*)
5322     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]'
5323     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5324     ;;
5325   *)
5326     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5327     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5328     ;;
5329   esac
5330   ;;
5331
5332 interix[3-9]*)
5333   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5334   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5335   ;;
5336
5337 irix5* | irix6* | nonstopux*)
5338   case $LD in
5339   *-32|*"-32 ") libmagic=32-bit;;
5340   *-n32|*"-n32 ") libmagic=N32;;
5341   *-64|*"-64 ") libmagic=64-bit;;
5342   *) libmagic=never-match;;
5343   esac
5344   lt_cv_deplibs_check_method=pass_all
5345   ;;
5346
5347 # This must be glibc/ELF.
5348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5349   lt_cv_deplibs_check_method=pass_all
5350   ;;
5351
5352 netbsd* | netbsdelf*-gnu)
5353   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5355   else
5356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5357   fi
5358   ;;
5359
5360 newos6*)
5361   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5362   lt_cv_file_magic_cmd=/usr/bin/file
5363   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5364   ;;
5365
5366 *nto* | *qnx*)
5367   lt_cv_deplibs_check_method=pass_all
5368   ;;
5369
5370 openbsd*)
5371   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5373   else
5374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5375   fi
5376   ;;
5377
5378 osf3* | osf4* | osf5*)
5379   lt_cv_deplibs_check_method=pass_all
5380   ;;
5381
5382 rdos*)
5383   lt_cv_deplibs_check_method=pass_all
5384   ;;
5385
5386 solaris*)
5387   lt_cv_deplibs_check_method=pass_all
5388   ;;
5389
5390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5391   lt_cv_deplibs_check_method=pass_all
5392   ;;
5393
5394 sysv4 | sysv4.3*)
5395   case $host_vendor in
5396   motorola)
5397     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]'
5398     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5399     ;;
5400   ncr)
5401     lt_cv_deplibs_check_method=pass_all
5402     ;;
5403   sequent)
5404     lt_cv_file_magic_cmd='/bin/file'
5405     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5406     ;;
5407   sni)
5408     lt_cv_file_magic_cmd='/bin/file'
5409     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5410     lt_cv_file_magic_test_file=/lib/libc.so
5411     ;;
5412   siemens)
5413     lt_cv_deplibs_check_method=pass_all
5414     ;;
5415   pc)
5416     lt_cv_deplibs_check_method=pass_all
5417     ;;
5418   esac
5419   ;;
5420
5421 tpf*)
5422   lt_cv_deplibs_check_method=pass_all
5423   ;;
5424 esac
5425
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5428 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5429
5430 file_magic_glob=
5431 want_nocaseglob=no
5432 if test "$build" = "$host"; then
5433   case $host_os in
5434   mingw* | pw32*)
5435     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5436       want_nocaseglob=yes
5437     else
5438       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5439     fi
5440     ;;
5441   esac
5442 fi
5443
5444 file_magic_cmd=$lt_cv_file_magic_cmd
5445 deplibs_check_method=$lt_cv_deplibs_check_method
5446 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469 if test -n "$ac_tool_prefix"; then
5470   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5471 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_prog_DLLTOOL+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   if test -n "$DLLTOOL"; then
5478   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483   IFS=$as_save_IFS
5484   test -z "$as_dir" && as_dir=.
5485     for ac_exec_ext in '' $ac_executable_extensions; do
5486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489     break 2
5490   fi
5491 done
5492   done
5493 IFS=$as_save_IFS
5494
5495 fi
5496 fi
5497 DLLTOOL=$ac_cv_prog_DLLTOOL
5498 if test -n "$DLLTOOL"; then
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5500 $as_echo "$DLLTOOL" >&6; }
5501 else
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507 fi
5508 if test -z "$ac_cv_prog_DLLTOOL"; then
5509   ac_ct_DLLTOOL=$DLLTOOL
5510   # Extract the first word of "dlltool", so it can be a program name with args.
5511 set dummy dlltool; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517   if test -n "$ac_ct_DLLTOOL"; then
5518   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525     for ac_exec_ext in '' $ac_executable_extensions; do
5526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532   done
5533 IFS=$as_save_IFS
5534
5535 fi
5536 fi
5537 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5538 if test -n "$ac_ct_DLLTOOL"; then
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5540 $as_echo "$ac_ct_DLLTOOL" >&6; }
5541 else
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545
5546   if test "x$ac_ct_DLLTOOL" = x; then
5547     DLLTOOL="false"
5548   else
5549     case $cross_compiling:$ac_tool_warned in
5550 yes:)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned=yes ;;
5554 esac
5555     DLLTOOL=$ac_ct_DLLTOOL
5556   fi
5557 else
5558   DLLTOOL="$ac_cv_prog_DLLTOOL"
5559 fi
5560
5561 test -z "$DLLTOOL" && DLLTOOL=dlltool
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5573 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5574 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   lt_cv_sharedlib_from_linklib_cmd='unknown'
5578
5579 case $host_os in
5580 cygwin* | mingw* | pw32* | cegcc*)
5581   # two different shell functions defined in ltmain.sh
5582   # decide which to use based on capabilities of $DLLTOOL
5583   case `$DLLTOOL --help 2>&1` in
5584   *--identify-strict*)
5585     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5586     ;;
5587   *)
5588     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5589     ;;
5590   esac
5591   ;;
5592 *)
5593   # fallback: assume linklib IS sharedlib
5594   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5595   ;;
5596 esac
5597
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5600 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5601 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5602 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5603
5604
5605
5606
5607
5608
5609
5610
5611 if test -n "$ac_tool_prefix"; then
5612   for ac_prog in ar
5613   do
5614     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_AR+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test -n "$AR"; then
5622   ac_cv_prog_AR="$AR" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 AR=$ac_cv_prog_AR
5642 if test -n "$AR"; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5644 $as_echo "$AR" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650
5651     test -n "$AR" && break
5652   done
5653 fi
5654 if test -z "$AR"; then
5655   ac_ct_AR=$AR
5656   for ac_prog in ar
5657 do
5658   # Extract the first word of "$ac_prog", so it can be a program name with args.
5659 set dummy $ac_prog; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   if test -n "$ac_ct_AR"; then
5666   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673     for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_prog_ac_ct_AR="$ac_prog"
5676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680   done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5686 if test -n "$ac_ct_AR"; then
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5688 $as_echo "$ac_ct_AR" >&6; }
5689 else
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694
5695   test -n "$ac_ct_AR" && break
5696 done
5697
5698   if test "x$ac_ct_AR" = x; then
5699     AR="false"
5700   else
5701     case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707     AR=$ac_ct_AR
5708   fi
5709 fi
5710
5711 : ${AR=ar}
5712 : ${AR_FLAGS=cru}
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5725 $as_echo_n "checking for archiver @FILE support... " >&6; }
5726 if ${lt_cv_ar_at_file+:} false; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729   lt_cv_ar_at_file=no
5730    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h.  */
5732
5733 int
5734 main ()
5735 {
5736
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742   echo conftest.$ac_objext > conftest.lst
5743       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5744       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5745   (eval $lt_ar_try) 2>&5
5746   ac_status=$?
5747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748   test $ac_status = 0; }
5749       if test "$ac_status" -eq 0; then
5750         # Ensure the archiver fails upon bogus file names.
5751         rm -f conftest.$ac_objext libconftest.a
5752         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5753   (eval $lt_ar_try) 2>&5
5754   ac_status=$?
5755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756   test $ac_status = 0; }
5757         if test "$ac_status" -ne 0; then
5758           lt_cv_ar_at_file=@
5759         fi
5760       fi
5761       rm -f conftest.* libconftest.a
5762
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5768 $as_echo "$lt_cv_ar_at_file" >&6; }
5769
5770 if test "x$lt_cv_ar_at_file" = xno; then
5771   archiver_list_spec=
5772 else
5773   archiver_list_spec=$lt_cv_ar_at_file
5774 fi
5775
5776
5777
5778
5779
5780
5781
5782 if test -n "$ac_tool_prefix"; then
5783   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}strip; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_STRIP+:} false; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if test -n "$STRIP"; then
5791   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 STRIP=$ac_cv_prog_STRIP
5811 if test -n "$STRIP"; then
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5813 $as_echo "$STRIP" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819
5820 fi
5821 if test -z "$ac_cv_prog_STRIP"; then
5822   ac_ct_STRIP=$STRIP
5823   # Extract the first word of "strip", so it can be a program name with args.
5824 set dummy strip; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   if test -n "$ac_ct_STRIP"; then
5831   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838     for ac_exec_ext in '' $ac_executable_extensions; do
5839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840     ac_cv_prog_ac_ct_STRIP="strip"
5841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845   done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5851 if test -n "$ac_ct_STRIP"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5853 $as_echo "$ac_ct_STRIP" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859   if test "x$ac_ct_STRIP" = x; then
5860     STRIP=":"
5861   else
5862     case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866 ac_tool_warned=yes ;;
5867 esac
5868     STRIP=$ac_ct_STRIP
5869   fi
5870 else
5871   STRIP="$ac_cv_prog_STRIP"
5872 fi
5873
5874 test -z "$STRIP" && STRIP=:
5875
5876
5877
5878
5879
5880
5881 if test -n "$ac_tool_prefix"; then
5882   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5883 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if ${ac_cv_prog_RANLIB+:} false; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   if test -n "$RANLIB"; then
5890   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897     for ac_exec_ext in '' $ac_executable_extensions; do
5898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904   done
5905 IFS=$as_save_IFS
5906
5907 fi
5908 fi
5909 RANLIB=$ac_cv_prog_RANLIB
5910 if test -n "$RANLIB"; then
5911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5912 $as_echo "$RANLIB" >&6; }
5913 else
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5916 fi
5917
5918
5919 fi
5920 if test -z "$ac_cv_prog_RANLIB"; then
5921   ac_ct_RANLIB=$RANLIB
5922   # Extract the first word of "ranlib", so it can be a program name with args.
5923 set dummy ranlib; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   if test -n "$ac_ct_RANLIB"; then
5930   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937     for ac_exec_ext in '' $ac_executable_extensions; do
5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939     ac_cv_prog_ac_ct_RANLIB="ranlib"
5940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944   done
5945 IFS=$as_save_IFS
5946
5947 fi
5948 fi
5949 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5950 if test -n "$ac_ct_RANLIB"; then
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5952 $as_echo "$ac_ct_RANLIB" >&6; }
5953 else
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5956 fi
5957
5958   if test "x$ac_ct_RANLIB" = x; then
5959     RANLIB=":"
5960   else
5961     case $cross_compiling:$ac_tool_warned in
5962 yes:)
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965 ac_tool_warned=yes ;;
5966 esac
5967     RANLIB=$ac_ct_RANLIB
5968   fi
5969 else
5970   RANLIB="$ac_cv_prog_RANLIB"
5971 fi
5972
5973 test -z "$RANLIB" && RANLIB=:
5974
5975
5976
5977
5978
5979
5980 # Determine commands to create old-style static archives.
5981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5982 old_postinstall_cmds='chmod 644 $oldlib'
5983 old_postuninstall_cmds=
5984
5985 if test -n "$RANLIB"; then
5986   case $host_os in
5987   openbsd*)
5988     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5989     ;;
5990   *)
5991     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5992     ;;
5993   esac
5994   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5995 fi
5996
5997 case $host_os in
5998   darwin*)
5999     lock_old_archive_extraction=yes ;;
6000   *)
6001     lock_old_archive_extraction=no ;;
6002 esac
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 # If no C compiler was specified, use CC.
6043 LTCC=${LTCC-"$CC"}
6044
6045 # If no C compiler flags were specified, use CFLAGS.
6046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6047
6048 # Allow CC to be a program name with arguments.
6049 compiler=$CC
6050
6051
6052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6054 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6055 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058
6059 # These are sane defaults that work on at least a few old systems.
6060 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6061
6062 # Character class describing NM global symbol codes.
6063 symcode='[BCDEGRST]'
6064
6065 # Regexp to match symbols that can be accessed directly from C.
6066 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6067
6068 # Define system-specific variables.
6069 case $host_os in
6070 aix*)
6071   symcode='[BCDT]'
6072   ;;
6073 cygwin* | mingw* | pw32* | cegcc*)
6074   symcode='[ABCDGISTW]'
6075   ;;
6076 hpux*)
6077   if test "$host_cpu" = ia64; then
6078     symcode='[ABCDEGRST]'
6079   fi
6080   ;;
6081 irix* | nonstopux*)
6082   symcode='[BCDEGRST]'
6083   ;;
6084 osf*)
6085   symcode='[BCDEGQRST]'
6086   ;;
6087 solaris*)
6088   symcode='[BDRT]'
6089   ;;
6090 sco3.2v5*)
6091   symcode='[DT]'
6092   ;;
6093 sysv4.2uw2*)
6094   symcode='[DT]'
6095   ;;
6096 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6097   symcode='[ABDT]'
6098   ;;
6099 sysv4)
6100   symcode='[DFNSTU]'
6101   ;;
6102 esac
6103
6104 # If we're using GNU nm, then use its standard symbol codes.
6105 case `$NM -V 2>&1` in
6106 *GNU* | *'with BFD'*)
6107   symcode='[ABCDGIRSTW]' ;;
6108 esac
6109
6110 # Transform an extracted symbol line into a proper C declaration.
6111 # Some systems (esp. on ia64) link data and code symbols differently,
6112 # so use this general approach.
6113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6114
6115 # Transform an extracted symbol line into symbol name and symbol address
6116 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6117 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6118
6119 # Handle CRLF in mingw tool chain
6120 opt_cr=
6121 case $build_os in
6122 mingw*)
6123   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6124   ;;
6125 esac
6126
6127 # Try without a prefix underscore, then with it.
6128 for ac_symprfx in "" "_"; do
6129
6130   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6131   symxfrm="\\1 $ac_symprfx\\2 \\2"
6132
6133   # Write the raw and C identifiers.
6134   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6135     # Fake it for dumpbin and say T for any non-static function
6136     # and D for any global variable.
6137     # Also find C++ and __fastcall symbols from MSVC++,
6138     # which start with @ or ?.
6139     lt_cv_sys_global_symbol_pipe="$AWK '"\
6140 "     {last_section=section; section=\$ 3};"\
6141 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6142 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6143 "     \$ 0!~/External *\|/{next};"\
6144 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6145 "     {if(hide[section]) next};"\
6146 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6147 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6148 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6149 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6150 "     ' prfx=^$ac_symprfx"
6151   else
6152     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6153   fi
6154   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6155
6156   # Check to see that the pipe works correctly.
6157   pipe_works=no
6158
6159   rm -f conftest*
6160   cat > conftest.$ac_ext <<_LT_EOF
6161 #ifdef __cplusplus
6162 extern "C" {
6163 #endif
6164 char nm_test_var;
6165 void nm_test_func(void);
6166 void nm_test_func(void){}
6167 #ifdef __cplusplus
6168 }
6169 #endif
6170 int main(){nm_test_var='a';nm_test_func();return(0);}
6171 _LT_EOF
6172
6173   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6174   (eval $ac_compile) 2>&5
6175   ac_status=$?
6176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177   test $ac_status = 0; }; then
6178     # Now try to grab the symbols.
6179     nlist=conftest.nm
6180     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6181   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6182   ac_status=$?
6183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6184   test $ac_status = 0; } && test -s "$nlist"; then
6185       # Try sorting and uniquifying the output.
6186       if sort "$nlist" | uniq > "$nlist"T; then
6187         mv -f "$nlist"T "$nlist"
6188       else
6189         rm -f "$nlist"T
6190       fi
6191
6192       # Make sure that we snagged all the symbols we need.
6193       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6194         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6195           cat <<_LT_EOF > conftest.$ac_ext
6196 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6197 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6198 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6199    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6200 # define LT_DLSYM_CONST
6201 #elif defined(__osf__)
6202 /* This system does not cope well with relocations in const data.  */
6203 # define LT_DLSYM_CONST
6204 #else
6205 # define LT_DLSYM_CONST const
6206 #endif
6207
6208 #ifdef __cplusplus
6209 extern "C" {
6210 #endif
6211
6212 _LT_EOF
6213           # Now generate the symbol file.
6214           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6215
6216           cat <<_LT_EOF >> conftest.$ac_ext
6217
6218 /* The mapping between symbol names and symbols.  */
6219 LT_DLSYM_CONST struct {
6220   const char *name;
6221   void       *address;
6222 }
6223 lt__PROGRAM__LTX_preloaded_symbols[] =
6224 {
6225   { "@PROGRAM@", (void *) 0 },
6226 _LT_EOF
6227           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6228           cat <<\_LT_EOF >> conftest.$ac_ext
6229   {0, (void *) 0}
6230 };
6231
6232 /* This works around a problem in FreeBSD linker */
6233 #ifdef FREEBSD_WORKAROUND
6234 static const void *lt_preloaded_setup() {
6235   return lt__PROGRAM__LTX_preloaded_symbols;
6236 }
6237 #endif
6238
6239 #ifdef __cplusplus
6240 }
6241 #endif
6242 _LT_EOF
6243           # Now try linking the two files.
6244           mv conftest.$ac_objext conftstm.$ac_objext
6245           lt_globsym_save_LIBS=$LIBS
6246           lt_globsym_save_CFLAGS=$CFLAGS
6247           LIBS="conftstm.$ac_objext"
6248           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6249           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6250   (eval $ac_link) 2>&5
6251   ac_status=$?
6252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6254             pipe_works=yes
6255           fi
6256           LIBS=$lt_globsym_save_LIBS
6257           CFLAGS=$lt_globsym_save_CFLAGS
6258         else
6259           echo "cannot find nm_test_func in $nlist" >&5
6260         fi
6261       else
6262         echo "cannot find nm_test_var in $nlist" >&5
6263       fi
6264     else
6265       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6266     fi
6267   else
6268     echo "$progname: failed program was:" >&5
6269     cat conftest.$ac_ext >&5
6270   fi
6271   rm -rf conftest* conftst*
6272
6273   # Do not use the global_symbol_pipe unless it works.
6274   if test "$pipe_works" = yes; then
6275     break
6276   else
6277     lt_cv_sys_global_symbol_pipe=
6278   fi
6279 done
6280
6281 fi
6282
6283 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6284   lt_cv_sys_global_symbol_to_cdecl=
6285 fi
6286 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6288 $as_echo "failed" >&6; }
6289 else
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6291 $as_echo "ok" >&6; }
6292 fi
6293
6294 # Response file support.
6295 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6296   nm_file_list_spec='@'
6297 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6298   nm_file_list_spec='@'
6299 fi
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6328 $as_echo_n "checking for sysroot... " >&6; }
6329
6330 # Check whether --with-sysroot was given.
6331 if test "${with_sysroot+set}" = set; then :
6332   withval=$with_sysroot;
6333 else
6334   with_sysroot=no
6335 fi
6336
6337
6338 lt_sysroot=
6339 case ${with_sysroot} in #(
6340  yes)
6341    if test "$GCC" = yes; then
6342      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6343    fi
6344    ;; #(
6345  /*)
6346    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6347    ;; #(
6348  no|'')
6349    ;; #(
6350  *)
6351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6352 $as_echo "${with_sysroot}" >&6; }
6353    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6354    ;;
6355 esac
6356
6357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6358 $as_echo "${lt_sysroot:-no}" >&6; }
6359
6360
6361
6362
6363
6364 # Check whether --enable-libtool-lock was given.
6365 if test "${enable_libtool_lock+set}" = set; then :
6366   enableval=$enable_libtool_lock;
6367 fi
6368
6369 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6370
6371 # Some flags need to be propagated to the compiler or linker for good
6372 # libtool support.
6373 case $host in
6374 ia64-*-hpux*)
6375   # Find out which ABI we are using.
6376   echo 'int i;' > conftest.$ac_ext
6377   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6378   (eval $ac_compile) 2>&5
6379   ac_status=$?
6380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381   test $ac_status = 0; }; then
6382     case `/usr/bin/file conftest.$ac_objext` in
6383       *ELF-32*)
6384         HPUX_IA64_MODE="32"
6385         ;;
6386       *ELF-64*)
6387         HPUX_IA64_MODE="64"
6388         ;;
6389     esac
6390   fi
6391   rm -rf conftest*
6392   ;;
6393 *-*-irix6*)
6394   # Find out which ABI we are using.
6395   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6396   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6397   (eval $ac_compile) 2>&5
6398   ac_status=$?
6399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400   test $ac_status = 0; }; then
6401     if test "$lt_cv_prog_gnu_ld" = yes; then
6402       case `/usr/bin/file conftest.$ac_objext` in
6403         *32-bit*)
6404           LD="${LD-ld} -melf32bsmip"
6405           ;;
6406         *N32*)
6407           LD="${LD-ld} -melf32bmipn32"
6408           ;;
6409         *64-bit*)
6410           LD="${LD-ld} -melf64bmip"
6411         ;;
6412       esac
6413     else
6414       case `/usr/bin/file conftest.$ac_objext` in
6415         *32-bit*)
6416           LD="${LD-ld} -32"
6417           ;;
6418         *N32*)
6419           LD="${LD-ld} -n32"
6420           ;;
6421         *64-bit*)
6422           LD="${LD-ld} -64"
6423           ;;
6424       esac
6425     fi
6426   fi
6427   rm -rf conftest*
6428   ;;
6429
6430 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6431 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6432   # Find out which ABI we are using.
6433   echo 'int i;' > conftest.$ac_ext
6434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435   (eval $ac_compile) 2>&5
6436   ac_status=$?
6437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438   test $ac_status = 0; }; then
6439     case `/usr/bin/file conftest.o` in
6440       *32-bit*)
6441         case $host in
6442           x86_64-*kfreebsd*-gnu)
6443             LD="${LD-ld} -m elf_i386_fbsd"
6444             ;;
6445           x86_64-*linux*)
6446             LD="${LD-ld} -m elf_i386"
6447             ;;
6448           ppc64-*linux*|powerpc64-*linux*)
6449             LD="${LD-ld} -m elf32ppclinux"
6450             ;;
6451           s390x-*linux*)
6452             LD="${LD-ld} -m elf_s390"
6453             ;;
6454           sparc64-*linux*)
6455             LD="${LD-ld} -m elf32_sparc"
6456             ;;
6457         esac
6458         ;;
6459       *64-bit*)
6460         case $host in
6461           x86_64-*kfreebsd*-gnu)
6462             LD="${LD-ld} -m elf_x86_64_fbsd"
6463             ;;
6464           x86_64-*linux*)
6465             LD="${LD-ld} -m elf_x86_64"
6466             ;;
6467           ppc*-*linux*|powerpc*-*linux*)
6468             LD="${LD-ld} -m elf64ppc"
6469             ;;
6470           s390*-*linux*|s390*-*tpf*)
6471             LD="${LD-ld} -m elf64_s390"
6472             ;;
6473           sparc*-*linux*)
6474             LD="${LD-ld} -m elf64_sparc"
6475             ;;
6476         esac
6477         ;;
6478     esac
6479   fi
6480   rm -rf conftest*
6481   ;;
6482
6483 *-*-sco3.2v5*)
6484   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6485   SAVE_CFLAGS="$CFLAGS"
6486   CFLAGS="$CFLAGS -belf"
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6488 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6489 if ${lt_cv_cc_needs_belf+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   ac_ext=c
6493 ac_cpp='$CPP $CPPFLAGS'
6494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6497
6498      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h.  */
6500
6501 int
6502 main ()
6503 {
6504
6505   ;
6506   return 0;
6507 }
6508 _ACEOF
6509 if ac_fn_c_try_link "$LINENO"; then :
6510   lt_cv_cc_needs_belf=yes
6511 else
6512   lt_cv_cc_needs_belf=no
6513 fi
6514 rm -f core conftest.err conftest.$ac_objext \
6515     conftest$ac_exeext conftest.$ac_ext
6516      ac_ext=c
6517 ac_cpp='$CPP $CPPFLAGS'
6518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6524 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6525   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6526     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6527     CFLAGS="$SAVE_CFLAGS"
6528   fi
6529   ;;
6530 *-*solaris*)
6531   # Find out which ABI we are using.
6532   echo 'int i;' > conftest.$ac_ext
6533   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6534   (eval $ac_compile) 2>&5
6535   ac_status=$?
6536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537   test $ac_status = 0; }; then
6538     case `/usr/bin/file conftest.o` in
6539     *64-bit*)
6540       case $lt_cv_prog_gnu_ld in
6541       yes*)
6542         case $host in
6543         i?86-*-solaris*)
6544           LD="${LD-ld} -m elf_x86_64"
6545           ;;
6546         sparc*-*-solaris*)
6547           LD="${LD-ld} -m elf64_sparc"
6548           ;;
6549         esac
6550         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6551         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6552           LD="${LD-ld}_sol2"
6553         fi
6554         ;;
6555       *)
6556         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6557           LD="${LD-ld} -64"
6558         fi
6559         ;;
6560       esac
6561       ;;
6562     esac
6563   fi
6564   rm -rf conftest*
6565   ;;
6566 esac
6567
6568 need_locks="$enable_libtool_lock"
6569
6570 if test -n "$ac_tool_prefix"; then
6571   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}mt; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$MANIFEST_TOOL"; then
6579   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593   done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6599 if test -n "$MANIFEST_TOOL"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6601 $as_echo "$MANIFEST_TOOL" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6610   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6611   # Extract the first word of "mt", so it can be a program name with args.
6612 set dummy mt; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   if test -n "$ac_ct_MANIFEST_TOOL"; then
6619   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6639 if test -n "$ac_ct_MANIFEST_TOOL"; then
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6641 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6642 else
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6648     MANIFEST_TOOL=":"
6649   else
6650     case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6657   fi
6658 else
6659   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6660 fi
6661
6662 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6664 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6665 if ${lt_cv_path_mainfest_tool+:} false; then :
6666   $as_echo_n "(cached) " >&6
6667 else
6668   lt_cv_path_mainfest_tool=no
6669   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6670   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6671   cat conftest.err >&5
6672   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6673     lt_cv_path_mainfest_tool=yes
6674   fi
6675   rm -f conftest*
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6678 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6679 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6680   MANIFEST_TOOL=:
6681 fi
6682
6683
6684
6685
6686
6687
6688   case $host_os in
6689     rhapsody* | darwin*)
6690     if test -n "$ac_tool_prefix"; then
6691   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6696   $as_echo_n "(cached) " >&6
6697 else
6698   if test -n "$DSYMUTIL"; then
6699   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706     for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713   done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6719 if test -n "$DSYMUTIL"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6721 $as_echo "$DSYMUTIL" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_DSYMUTIL"; then
6730   ac_ct_DSYMUTIL=$DSYMUTIL
6731   # Extract the first word of "dsymutil", so it can be a program name with args.
6732 set dummy dsymutil; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   if test -n "$ac_ct_DSYMUTIL"; then
6739   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746     for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753   done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6759 if test -n "$ac_ct_DSYMUTIL"; then
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6761 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6762 else
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767   if test "x$ac_ct_DSYMUTIL" = x; then
6768     DSYMUTIL=":"
6769   else
6770     case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776     DSYMUTIL=$ac_ct_DSYMUTIL
6777   fi
6778 else
6779   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6780 fi
6781
6782     if test -n "$ac_tool_prefix"; then
6783   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if ${ac_cv_prog_NMEDIT+:} false; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   if test -n "$NMEDIT"; then
6791   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798     for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805   done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 NMEDIT=$ac_cv_prog_NMEDIT
6811 if test -n "$NMEDIT"; then
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6813 $as_echo "$NMEDIT" >&6; }
6814 else
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_NMEDIT"; then
6822   ac_ct_NMEDIT=$NMEDIT
6823   # Extract the first word of "nmedit", so it can be a program name with args.
6824 set dummy nmedit; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$ac_ct_NMEDIT"; then
6831   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6851 if test -n "$ac_ct_NMEDIT"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6853 $as_echo "$ac_ct_NMEDIT" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859   if test "x$ac_ct_NMEDIT" = x; then
6860     NMEDIT=":"
6861   else
6862     case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868     NMEDIT=$ac_ct_NMEDIT
6869   fi
6870 else
6871   NMEDIT="$ac_cv_prog_NMEDIT"
6872 fi
6873
6874     if test -n "$ac_tool_prefix"; then
6875   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_LIPO+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   if test -n "$LIPO"; then
6883   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888   IFS=$as_save_IFS
6889   test -z "$as_dir" && as_dir=.
6890     for ac_exec_ext in '' $ac_executable_extensions; do
6891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894     break 2
6895   fi
6896 done
6897   done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 LIPO=$ac_cv_prog_LIPO
6903 if test -n "$LIPO"; then
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6905 $as_echo "$LIPO" >&6; }
6906 else
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911
6912 fi
6913 if test -z "$ac_cv_prog_LIPO"; then
6914   ac_ct_LIPO=$LIPO
6915   # Extract the first word of "lipo", so it can be a program name with args.
6916 set dummy lipo; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -n "$ac_ct_LIPO"; then
6923   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_prog_ac_ct_LIPO="lipo"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6943 if test -n "$ac_ct_LIPO"; then
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6945 $as_echo "$ac_ct_LIPO" >&6; }
6946 else
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951   if test "x$ac_ct_LIPO" = x; then
6952     LIPO=":"
6953   else
6954     case $cross_compiling:$ac_tool_warned in
6955 yes:)
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960     LIPO=$ac_ct_LIPO
6961   fi
6962 else
6963   LIPO="$ac_cv_prog_LIPO"
6964 fi
6965
6966     if test -n "$ac_tool_prefix"; then
6967   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}otool; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_OTOOL+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   if test -n "$OTOOL"; then
6975   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982     for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989   done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 OTOOL=$ac_cv_prog_OTOOL
6995 if test -n "$OTOOL"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6997 $as_echo "$OTOOL" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_OTOOL"; then
7006   ac_ct_OTOOL=$OTOOL
7007   # Extract the first word of "otool", so it can be a program name with args.
7008 set dummy otool; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$ac_ct_OTOOL"; then
7015   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_ac_ct_OTOOL="otool"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7035 if test -n "$ac_ct_OTOOL"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7037 $as_echo "$ac_ct_OTOOL" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043   if test "x$ac_ct_OTOOL" = x; then
7044     OTOOL=":"
7045   else
7046     case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052     OTOOL=$ac_ct_OTOOL
7053   fi
7054 else
7055   OTOOL="$ac_cv_prog_OTOOL"
7056 fi
7057
7058     if test -n "$ac_tool_prefix"; then
7059   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7060 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_OTOOL64+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   if test -n "$OTOOL64"; then
7067   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074     for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081   done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 OTOOL64=$ac_cv_prog_OTOOL64
7087 if test -n "$OTOOL64"; then
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7089 $as_echo "$OTOOL64" >&6; }
7090 else
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095
7096 fi
7097 if test -z "$ac_cv_prog_OTOOL64"; then
7098   ac_ct_OTOOL64=$OTOOL64
7099   # Extract the first word of "otool64", so it can be a program name with args.
7100 set dummy otool64; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   if test -n "$ac_ct_OTOOL64"; then
7107   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114     for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_prog_ac_ct_OTOOL64="otool64"
7117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121   done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7127 if test -n "$ac_ct_OTOOL64"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7129 $as_echo "$ac_ct_OTOOL64" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135   if test "x$ac_ct_OTOOL64" = x; then
7136     OTOOL64=":"
7137   else
7138     case $cross_compiling:$ac_tool_warned in
7139 yes:)
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7143 esac
7144     OTOOL64=$ac_ct_OTOOL64
7145   fi
7146 else
7147   OTOOL64="$ac_cv_prog_OTOOL64"
7148 fi
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7177 $as_echo_n "checking for -single_module linker flag... " >&6; }
7178 if ${lt_cv_apple_cc_single_mod+:} false; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   lt_cv_apple_cc_single_mod=no
7182       if test -z "${LT_MULTI_MODULE}"; then
7183         # By default we will add the -single_module flag. You can override
7184         # by either setting the environment variable LT_MULTI_MODULE
7185         # non-empty at configure time, or by adding -multi_module to the
7186         # link flags.
7187         rm -rf libconftest.dylib*
7188         echo "int foo(void){return 1;}" > conftest.c
7189         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7190 -dynamiclib -Wl,-single_module conftest.c" >&5
7191         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7192           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7193         _lt_result=$?
7194         # If there is a non-empty error log, and "single_module"
7195         # appears in it, assume the flag caused a linker warning
7196         if test -s conftest.err && $GREP single_module conftest.err; then
7197           cat conftest.err >&5
7198         # Otherwise, if the output was created with a 0 exit code from
7199         # the compiler, it worked.
7200         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7201           lt_cv_apple_cc_single_mod=yes
7202         else
7203           cat conftest.err >&5
7204         fi
7205         rm -rf libconftest.dylib*
7206         rm -f conftest.*
7207       fi
7208 fi
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7210 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7211
7212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7213 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7214 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   lt_cv_ld_exported_symbols_list=no
7218       save_LDFLAGS=$LDFLAGS
7219       echo "_main" > conftest.sym
7220       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7221       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h.  */
7223
7224 int
7225 main ()
7226 {
7227
7228   ;
7229   return 0;
7230 }
7231 _ACEOF
7232 if ac_fn_c_try_link "$LINENO"; then :
7233   lt_cv_ld_exported_symbols_list=yes
7234 else
7235   lt_cv_ld_exported_symbols_list=no
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext \
7238     conftest$ac_exeext conftest.$ac_ext
7239         LDFLAGS="$save_LDFLAGS"
7240
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7243 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7244
7245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7246 $as_echo_n "checking for -force_load linker flag... " >&6; }
7247 if ${lt_cv_ld_force_load+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   lt_cv_ld_force_load=no
7251       cat > conftest.c << _LT_EOF
7252 int forced_loaded() { return 2;}
7253 _LT_EOF
7254       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7255       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7256       echo "$AR cru libconftest.a conftest.o" >&5
7257       $AR cru libconftest.a conftest.o 2>&5
7258       echo "$RANLIB libconftest.a" >&5
7259       $RANLIB libconftest.a 2>&5
7260       cat > conftest.c << _LT_EOF
7261 int main() { return 0;}
7262 _LT_EOF
7263       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7264       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7265       _lt_result=$?
7266       if test -s conftest.err && $GREP force_load conftest.err; then
7267         cat conftest.err >&5
7268       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7269         lt_cv_ld_force_load=yes
7270       else
7271         cat conftest.err >&5
7272       fi
7273         rm -f conftest.err libconftest.a conftest conftest.c
7274         rm -rf conftest.dSYM
7275
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7278 $as_echo "$lt_cv_ld_force_load" >&6; }
7279     case $host_os in
7280     rhapsody* | darwin1.[012])
7281       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7282     darwin1.*)
7283       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7284     darwin*) # darwin 5.x on
7285       # if running on 10.5 or later, the deployment target defaults
7286       # to the OS version, if on x86, and 10.4, the deployment
7287       # target defaults to 10.4. Don't you love it?
7288       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7289         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7290           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7291         10.[012]*)
7292           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7293         10.*)
7294           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7295       esac
7296     ;;
7297   esac
7298     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7299       _lt_dar_single_mod='$single_module'
7300     fi
7301     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7302       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7303     else
7304       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7305     fi
7306     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7307       _lt_dsymutil='~$DSYMUTIL $lib || :'
7308     else
7309       _lt_dsymutil=
7310     fi
7311     ;;
7312   esac
7313
7314 ac_ext=c
7315 ac_cpp='$CPP $CPPFLAGS'
7316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7320 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7321 # On Suns, sometimes $CPP names a directory.
7322 if test -n "$CPP" && test -d "$CPP"; then
7323   CPP=
7324 fi
7325 if test -z "$CPP"; then
7326   if ${ac_cv_prog_CPP+:} false; then :
7327   $as_echo_n "(cached) " >&6
7328 else
7329       # Double quotes because CPP needs to be expanded
7330     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7331     do
7332       ac_preproc_ok=false
7333 for ac_c_preproc_warn_flag in '' yes
7334 do
7335   # Use a header file that comes with gcc, so configuring glibc
7336   # with a fresh cross-compiler works.
7337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338   # <limits.h> exists even on freestanding compilers.
7339   # On the NeXT, cc -E runs the code through the compiler's parser,
7340   # not just through cpp. "Syntax error" is here to catch this case.
7341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h.  */
7343 #ifdef __STDC__
7344 # include <limits.h>
7345 #else
7346 # include <assert.h>
7347 #endif
7348                      Syntax error
7349 _ACEOF
7350 if ac_fn_c_try_cpp "$LINENO"; then :
7351
7352 else
7353   # Broken: fails on valid input.
7354 continue
7355 fi
7356 rm -f conftest.err conftest.i conftest.$ac_ext
7357
7358   # OK, works on sane cases.  Now check whether nonexistent headers
7359   # can be detected and how.
7360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h.  */
7362 #include <ac_nonexistent.h>
7363 _ACEOF
7364 if ac_fn_c_try_cpp "$LINENO"; then :
7365   # Broken: success on invalid input.
7366 continue
7367 else
7368   # Passes both tests.
7369 ac_preproc_ok=:
7370 break
7371 fi
7372 rm -f conftest.err conftest.i conftest.$ac_ext
7373
7374 done
7375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7376 rm -f conftest.i conftest.err conftest.$ac_ext
7377 if $ac_preproc_ok; then :
7378   break
7379 fi
7380
7381     done
7382     ac_cv_prog_CPP=$CPP
7383
7384 fi
7385   CPP=$ac_cv_prog_CPP
7386 else
7387   ac_cv_prog_CPP=$CPP
7388 fi
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7390 $as_echo "$CPP" >&6; }
7391 ac_preproc_ok=false
7392 for ac_c_preproc_warn_flag in '' yes
7393 do
7394   # Use a header file that comes with gcc, so configuring glibc
7395   # with a fresh cross-compiler works.
7396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7397   # <limits.h> exists even on freestanding compilers.
7398   # On the NeXT, cc -E runs the code through the compiler's parser,
7399   # not just through cpp. "Syntax error" is here to catch this case.
7400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h.  */
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407                      Syntax error
7408 _ACEOF
7409 if ac_fn_c_try_cpp "$LINENO"; then :
7410
7411 else
7412   # Broken: fails on valid input.
7413 continue
7414 fi
7415 rm -f conftest.err conftest.i conftest.$ac_ext
7416
7417   # OK, works on sane cases.  Now check whether nonexistent headers
7418   # can be detected and how.
7419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h.  */
7421 #include <ac_nonexistent.h>
7422 _ACEOF
7423 if ac_fn_c_try_cpp "$LINENO"; then :
7424   # Broken: success on invalid input.
7425 continue
7426 else
7427   # Passes both tests.
7428 ac_preproc_ok=:
7429 break
7430 fi
7431 rm -f conftest.err conftest.i conftest.$ac_ext
7432
7433 done
7434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7435 rm -f conftest.i conftest.err conftest.$ac_ext
7436 if $ac_preproc_ok; then :
7437
7438 else
7439   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7441 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7442 See \`config.log' for more details" "$LINENO" 5; }
7443 fi
7444
7445 ac_ext=c
7446 ac_cpp='$CPP $CPPFLAGS'
7447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450
7451
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7453 $as_echo_n "checking for ANSI C header files... " >&6; }
7454 if ${ac_cv_header_stdc+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h.  */
7459 #include <stdlib.h>
7460 #include <stdarg.h>
7461 #include <string.h>
7462 #include <float.h>
7463
7464 int
7465 main ()
7466 {
7467
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473   ac_cv_header_stdc=yes
7474 else
7475   ac_cv_header_stdc=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478
7479 if test $ac_cv_header_stdc = yes; then
7480   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h.  */
7483 #include <string.h>
7484
7485 _ACEOF
7486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7487   $EGREP "memchr" >/dev/null 2>&1; then :
7488
7489 else
7490   ac_cv_header_stdc=no
7491 fi
7492 rm -f conftest*
7493
7494 fi
7495
7496 if test $ac_cv_header_stdc = yes; then
7497   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h.  */
7500 #include <stdlib.h>
7501
7502 _ACEOF
7503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7504   $EGREP "free" >/dev/null 2>&1; then :
7505
7506 else
7507   ac_cv_header_stdc=no
7508 fi
7509 rm -f conftest*
7510
7511 fi
7512
7513 if test $ac_cv_header_stdc = yes; then
7514   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7515   if test "$cross_compiling" = yes; then :
7516   :
7517 else
7518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h.  */
7520 #include <ctype.h>
7521 #include <stdlib.h>
7522 #if ((' ' & 0x0FF) == 0x020)
7523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7525 #else
7526 # define ISLOWER(c) \
7527                    (('a' <= (c) && (c) <= 'i') \
7528                      || ('j' <= (c) && (c) <= 'r') \
7529                      || ('s' <= (c) && (c) <= 'z'))
7530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7531 #endif
7532
7533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7534 int
7535 main ()
7536 {
7537   int i;
7538   for (i = 0; i < 256; i++)
7539     if (XOR (islower (i), ISLOWER (i))
7540         || toupper (i) != TOUPPER (i))
7541       return 2;
7542   return 0;
7543 }
7544 _ACEOF
7545 if ac_fn_c_try_run "$LINENO"; then :
7546
7547 else
7548   ac_cv_header_stdc=no
7549 fi
7550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7551   conftest.$ac_objext conftest.beam conftest.$ac_ext
7552 fi
7553
7554 fi
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7557 $as_echo "$ac_cv_header_stdc" >&6; }
7558 if test $ac_cv_header_stdc = yes; then
7559
7560 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7561
7562 fi
7563
7564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7565 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7566                   inttypes.h stdint.h unistd.h
7567 do :
7568   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7569 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7570 "
7571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7572   cat >>confdefs.h <<_ACEOF
7573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7574 _ACEOF
7575
7576 fi
7577
7578 done
7579
7580
7581 for ac_header in dlfcn.h
7582 do :
7583   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7584 "
7585 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7586   cat >>confdefs.h <<_ACEOF
7587 #define HAVE_DLFCN_H 1
7588 _ACEOF
7589
7590 fi
7591
7592 done
7593
7594
7595
7596
7597
7598 # Set options
7599 # Check whether --enable-static was given.
7600 if test "${enable_static+set}" = set; then :
7601   enableval=$enable_static; p=${PACKAGE-default}
7602     case $enableval in
7603     yes) enable_static=yes ;;
7604     no) enable_static=no ;;
7605     *)
7606      enable_static=no
7607       # Look at the argument we got.  We use all the common list separators.
7608       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7609       for pkg in $enableval; do
7610         IFS="$lt_save_ifs"
7611         if test "X$pkg" = "X$p"; then
7612           enable_static=yes
7613         fi
7614       done
7615       IFS="$lt_save_ifs"
7616       ;;
7617     esac
7618 else
7619   enable_static=no
7620 fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631         enable_dlopen=no
7632
7633
7634   enable_win32_dll=no
7635
7636
7637             # Check whether --enable-shared was given.
7638 if test "${enable_shared+set}" = set; then :
7639   enableval=$enable_shared; p=${PACKAGE-default}
7640     case $enableval in
7641     yes) enable_shared=yes ;;
7642     no) enable_shared=no ;;
7643     *)
7644       enable_shared=no
7645       # Look at the argument we got.  We use all the common list separators.
7646       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647       for pkg in $enableval; do
7648         IFS="$lt_save_ifs"
7649         if test "X$pkg" = "X$p"; then
7650           enable_shared=yes
7651         fi
7652       done
7653       IFS="$lt_save_ifs"
7654       ;;
7655     esac
7656 else
7657   enable_shared=yes
7658 fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670 # Check whether --with-pic was given.
7671 if test "${with_pic+set}" = set; then :
7672   withval=$with_pic; lt_p=${PACKAGE-default}
7673     case $withval in
7674     yes|no) pic_mode=$withval ;;
7675     *)
7676       pic_mode=default
7677       # Look at the argument we got.  We use all the common list separators.
7678       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7679       for lt_pkg in $withval; do
7680         IFS="$lt_save_ifs"
7681         if test "X$lt_pkg" = "X$lt_p"; then
7682           pic_mode=yes
7683         fi
7684       done
7685       IFS="$lt_save_ifs"
7686       ;;
7687     esac
7688 else
7689   pic_mode=default
7690 fi
7691
7692
7693 test -z "$pic_mode" && pic_mode=default
7694
7695
7696
7697
7698
7699
7700
7701   # Check whether --enable-fast-install was given.
7702 if test "${enable_fast_install+set}" = set; then :
7703   enableval=$enable_fast_install; p=${PACKAGE-default}
7704     case $enableval in
7705     yes) enable_fast_install=yes ;;
7706     no) enable_fast_install=no ;;
7707     *)
7708       enable_fast_install=no
7709       # Look at the argument we got.  We use all the common list separators.
7710       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711       for pkg in $enableval; do
7712         IFS="$lt_save_ifs"
7713         if test "X$pkg" = "X$p"; then
7714           enable_fast_install=yes
7715         fi
7716       done
7717       IFS="$lt_save_ifs"
7718       ;;
7719     esac
7720 else
7721   enable_fast_install=yes
7722 fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 # This can be used to rebuild libtool when needed
7735 LIBTOOL_DEPS="$ltmain"
7736
7737 # Always use our own libtool.
7738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 test -z "$LN_S" && LN_S="ln -s"
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 if test -n "${ZSH_VERSION+set}" ; then
7785    setopt NO_GLOB_SUBST
7786 fi
7787
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7789 $as_echo_n "checking for objdir... " >&6; }
7790 if ${lt_cv_objdir+:} false; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793   rm -f .libs 2>/dev/null
7794 mkdir .libs 2>/dev/null
7795 if test -d .libs; then
7796   lt_cv_objdir=.libs
7797 else
7798   # MS-DOS does not allow filenames that begin with a dot.
7799   lt_cv_objdir=_libs
7800 fi
7801 rmdir .libs 2>/dev/null
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7804 $as_echo "$lt_cv_objdir" >&6; }
7805 objdir=$lt_cv_objdir
7806
7807
7808
7809
7810
7811 cat >>confdefs.h <<_ACEOF
7812 #define LT_OBJDIR "$lt_cv_objdir/"
7813 _ACEOF
7814
7815
7816
7817
7818 case $host_os in
7819 aix3*)
7820   # AIX sometimes has problems with the GCC collect2 program.  For some
7821   # reason, if we set the COLLECT_NAMES environment variable, the problems
7822   # vanish in a puff of smoke.
7823   if test "X${COLLECT_NAMES+set}" != Xset; then
7824     COLLECT_NAMES=
7825     export COLLECT_NAMES
7826   fi
7827   ;;
7828 esac
7829
7830 # Global variables:
7831 ofile=libtool
7832 can_build_shared=yes
7833
7834 # All known linkers require a `.a' archive for static linking (except MSVC,
7835 # which needs '.lib').
7836 libext=a
7837
7838 with_gnu_ld="$lt_cv_prog_gnu_ld"
7839
7840 old_CC="$CC"
7841 old_CFLAGS="$CFLAGS"
7842
7843 # Set sane defaults for various variables
7844 test -z "$CC" && CC=cc
7845 test -z "$LTCC" && LTCC=$CC
7846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7847 test -z "$LD" && LD=ld
7848 test -z "$ac_objext" && ac_objext=o
7849
7850 for cc_temp in $compiler""; do
7851   case $cc_temp in
7852     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7853     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7854     \-*) ;;
7855     *) break;;
7856   esac
7857 done
7858 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7859
7860
7861 # Only perform the check for file, if the check method requires it
7862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7863 case $deplibs_check_method in
7864 file_magic*)
7865   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7868 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7869   $as_echo_n "(cached) " >&6
7870 else
7871   case $MAGIC_CMD in
7872 [\\/*] |  ?:[\\/]*)
7873   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7874   ;;
7875 *)
7876   lt_save_MAGIC_CMD="$MAGIC_CMD"
7877   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7878   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7879   for ac_dir in $ac_dummy; do
7880     IFS="$lt_save_ifs"
7881     test -z "$ac_dir" && ac_dir=.
7882     if test -f $ac_dir/${ac_tool_prefix}file; then
7883       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7884       if test -n "$file_magic_test_file"; then
7885         case $deplibs_check_method in
7886         "file_magic "*)
7887           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7888           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7889           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7890             $EGREP "$file_magic_regex" > /dev/null; then
7891             :
7892           else
7893             cat <<_LT_EOF 1>&2
7894
7895 *** Warning: the command libtool uses to detect shared libraries,
7896 *** $file_magic_cmd, produces output that libtool cannot recognize.
7897 *** The result is that libtool may fail to recognize shared libraries
7898 *** as such.  This will affect the creation of libtool libraries that
7899 *** depend on shared libraries, but programs linked with such libtool
7900 *** libraries will work regardless of this problem.  Nevertheless, you
7901 *** may want to report the problem to your system manager and/or to
7902 *** bug-libtool@gnu.org
7903
7904 _LT_EOF
7905           fi ;;
7906         esac
7907       fi
7908       break
7909     fi
7910   done
7911   IFS="$lt_save_ifs"
7912   MAGIC_CMD="$lt_save_MAGIC_CMD"
7913   ;;
7914 esac
7915 fi
7916
7917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918 if test -n "$MAGIC_CMD"; then
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7920 $as_echo "$MAGIC_CMD" >&6; }
7921 else
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7924 fi
7925
7926
7927
7928
7929
7930 if test -z "$lt_cv_path_MAGIC_CMD"; then
7931   if test -n "$ac_tool_prefix"; then
7932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7933 $as_echo_n "checking for file... " >&6; }
7934 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   case $MAGIC_CMD in
7938 [\\/*] |  ?:[\\/]*)
7939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7940   ;;
7941 *)
7942   lt_save_MAGIC_CMD="$MAGIC_CMD"
7943   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7944   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7945   for ac_dir in $ac_dummy; do
7946     IFS="$lt_save_ifs"
7947     test -z "$ac_dir" && ac_dir=.
7948     if test -f $ac_dir/file; then
7949       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7950       if test -n "$file_magic_test_file"; then
7951         case $deplibs_check_method in
7952         "file_magic "*)
7953           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7954           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7956             $EGREP "$file_magic_regex" > /dev/null; then
7957             :
7958           else
7959             cat <<_LT_EOF 1>&2
7960
7961 *** Warning: the command libtool uses to detect shared libraries,
7962 *** $file_magic_cmd, produces output that libtool cannot recognize.
7963 *** The result is that libtool may fail to recognize shared libraries
7964 *** as such.  This will affect the creation of libtool libraries that
7965 *** depend on shared libraries, but programs linked with such libtool
7966 *** libraries will work regardless of this problem.  Nevertheless, you
7967 *** may want to report the problem to your system manager and/or to
7968 *** bug-libtool@gnu.org
7969
7970 _LT_EOF
7971           fi ;;
7972         esac
7973       fi
7974       break
7975     fi
7976   done
7977   IFS="$lt_save_ifs"
7978   MAGIC_CMD="$lt_save_MAGIC_CMD"
7979   ;;
7980 esac
7981 fi
7982
7983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7984 if test -n "$MAGIC_CMD"; then
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7986 $as_echo "$MAGIC_CMD" >&6; }
7987 else
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7990 fi
7991
7992
7993   else
7994     MAGIC_CMD=:
7995   fi
7996 fi
7997
7998   fi
7999   ;;
8000 esac
8001
8002 # Use C for the default configuration in the libtool script
8003
8004 lt_save_CC="$CC"
8005 ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012 # Source file extension for C test sources.
8013 ac_ext=c
8014
8015 # Object file extension for compiled C test sources.
8016 objext=o
8017 objext=$objext
8018
8019 # Code to be used in simple compile tests
8020 lt_simple_compile_test_code="int some_variable = 0;"
8021
8022 # Code to be used in simple link tests
8023 lt_simple_link_test_code='int main(){return(0);}'
8024
8025
8026
8027
8028
8029
8030
8031 # If no C compiler was specified, use CC.
8032 LTCC=${LTCC-"$CC"}
8033
8034 # If no C compiler flags were specified, use CFLAGS.
8035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8036
8037 # Allow CC to be a program name with arguments.
8038 compiler=$CC
8039
8040 # Save the default compiler, since it gets overwritten when the other
8041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8042 compiler_DEFAULT=$CC
8043
8044 # save warnings/boilerplate of simple test code
8045 ac_outfile=conftest.$ac_objext
8046 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8047 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8048 _lt_compiler_boilerplate=`cat conftest.err`
8049 $RM conftest*
8050
8051 ac_outfile=conftest.$ac_objext
8052 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8053 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8054 _lt_linker_boilerplate=`cat conftest.err`
8055 $RM -r conftest*
8056
8057
8058 ## CAVEAT EMPTOR:
8059 ## There is no encapsulation within the following macros, do not change
8060 ## the running order or otherwise move them around unless you know exactly
8061 ## what you are doing...
8062 if test -n "$compiler"; then
8063
8064 lt_prog_compiler_no_builtin_flag=
8065
8066 if test "$GCC" = yes; then
8067   case $cc_basename in
8068   nvcc*)
8069     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8070   *)
8071     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8072   esac
8073
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8075 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8076 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   lt_cv_prog_compiler_rtti_exceptions=no
8080    ac_outfile=conftest.$ac_objext
8081    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8082    lt_compiler_flag="-fno-rtti -fno-exceptions"
8083    # Insert the option either (1) after the last *FLAGS variable, or
8084    # (2) before a word containing "conftest.", or (3) at the end.
8085    # Note that $ac_compile itself does not contain backslashes and begins
8086    # with a dollar sign (not a hyphen), so the echo should work correctly.
8087    # The option is referenced via a variable to avoid confusing sed.
8088    lt_compile=`echo "$ac_compile" | $SED \
8089    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8091    -e 's:$: $lt_compiler_flag:'`
8092    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8093    (eval "$lt_compile" 2>conftest.err)
8094    ac_status=$?
8095    cat conftest.err >&5
8096    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097    if (exit $ac_status) && test -s "$ac_outfile"; then
8098      # The compiler can only warn and ignore the option if not recognized
8099      # So say no if there are warnings other than the usual output.
8100      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8101      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8102      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8103        lt_cv_prog_compiler_rtti_exceptions=yes
8104      fi
8105    fi
8106    $RM conftest*
8107
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8110 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8111
8112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8113     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8114 else
8115     :
8116 fi
8117
8118 fi
8119
8120
8121
8122
8123
8124
8125   lt_prog_compiler_wl=
8126 lt_prog_compiler_pic=
8127 lt_prog_compiler_static=
8128
8129
8130   if test "$GCC" = yes; then
8131     lt_prog_compiler_wl='-Wl,'
8132     lt_prog_compiler_static='-static'
8133
8134     case $host_os in
8135       aix*)
8136       # All AIX code is PIC.
8137       if test "$host_cpu" = ia64; then
8138         # AIX 5 now supports IA64 processor
8139         lt_prog_compiler_static='-Bstatic'
8140       fi
8141       ;;
8142
8143     amigaos*)
8144       case $host_cpu in
8145       powerpc)
8146             # see comment about AmigaOS4 .so support
8147             lt_prog_compiler_pic='-fPIC'
8148         ;;
8149       m68k)
8150             # FIXME: we need at least 68020 code to build shared libraries, but
8151             # adding the `-m68020' flag to GCC prevents building anything better,
8152             # like `-m68040'.
8153             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8154         ;;
8155       esac
8156       ;;
8157
8158     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8159       # PIC is the default for these OSes.
8160       ;;
8161
8162     mingw* | cygwin* | pw32* | os2* | cegcc*)
8163       # This hack is so that the source file can tell whether it is being
8164       # built for inclusion in a dll (and should export symbols for example).
8165       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8166       # (--disable-auto-import) libraries
8167       lt_prog_compiler_pic='-DDLL_EXPORT'
8168       ;;
8169
8170     darwin* | rhapsody*)
8171       # PIC is the default on this platform
8172       # Common symbols not allowed in MH_DYLIB files
8173       lt_prog_compiler_pic='-fno-common'
8174       ;;
8175
8176     haiku*)
8177       # PIC is the default for Haiku.
8178       # The "-static" flag exists, but is broken.
8179       lt_prog_compiler_static=
8180       ;;
8181
8182     hpux*)
8183       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8184       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8185       # sets the default TLS model and affects inlining.
8186       case $host_cpu in
8187       hppa*64*)
8188         # +Z the default
8189         ;;
8190       *)
8191         lt_prog_compiler_pic='-fPIC'
8192         ;;
8193       esac
8194       ;;
8195
8196     interix[3-9]*)
8197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8198       # Instead, we relocate shared libraries at runtime.
8199       ;;
8200
8201     msdosdjgpp*)
8202       # Just because we use GCC doesn't mean we suddenly get shared libraries
8203       # on systems that don't support them.
8204       lt_prog_compiler_can_build_shared=no
8205       enable_shared=no
8206       ;;
8207
8208     *nto* | *qnx*)
8209       # QNX uses GNU C++, but need to define -shared option too, otherwise
8210       # it will coredump.
8211       lt_prog_compiler_pic='-fPIC -shared'
8212       ;;
8213
8214     sysv4*MP*)
8215       if test -d /usr/nec; then
8216         lt_prog_compiler_pic=-Kconform_pic
8217       fi
8218       ;;
8219
8220     *)
8221       lt_prog_compiler_pic='-fPIC'
8222       ;;
8223     esac
8224
8225     case $cc_basename in
8226     nvcc*) # Cuda Compiler Driver 2.2
8227       lt_prog_compiler_wl='-Xlinker '
8228       if test -n "$lt_prog_compiler_pic"; then
8229         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8230       fi
8231       ;;
8232     esac
8233   else
8234     # PORTME Check for flag to pass linker flags through the system compiler.
8235     case $host_os in
8236     aix*)
8237       lt_prog_compiler_wl='-Wl,'
8238       if test "$host_cpu" = ia64; then
8239         # AIX 5 now supports IA64 processor
8240         lt_prog_compiler_static='-Bstatic'
8241       else
8242         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8243       fi
8244       ;;
8245
8246     mingw* | cygwin* | pw32* | os2* | cegcc*)
8247       # This hack is so that the source file can tell whether it is being
8248       # built for inclusion in a dll (and should export symbols for example).
8249       lt_prog_compiler_pic='-DDLL_EXPORT'
8250       ;;
8251
8252     hpux9* | hpux10* | hpux11*)
8253       lt_prog_compiler_wl='-Wl,'
8254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8255       # not for PA HP-UX.
8256       case $host_cpu in
8257       hppa*64*|ia64*)
8258         # +Z the default
8259         ;;
8260       *)
8261         lt_prog_compiler_pic='+Z'
8262         ;;
8263       esac
8264       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8265       lt_prog_compiler_static='${wl}-a ${wl}archive'
8266       ;;
8267
8268     irix5* | irix6* | nonstopux*)
8269       lt_prog_compiler_wl='-Wl,'
8270       # PIC (with -KPIC) is the default.
8271       lt_prog_compiler_static='-non_shared'
8272       ;;
8273
8274     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8275       case $cc_basename in
8276       # old Intel for x86_64 which still supported -KPIC.
8277       ecc*)
8278         lt_prog_compiler_wl='-Wl,'
8279         lt_prog_compiler_pic='-KPIC'
8280         lt_prog_compiler_static='-static'
8281         ;;
8282       # icc used to be incompatible with GCC.
8283       # ICC 10 doesn't accept -KPIC any more.
8284       icc* | ifort*)
8285         lt_prog_compiler_wl='-Wl,'
8286         lt_prog_compiler_pic='-fPIC'
8287         lt_prog_compiler_static='-static'
8288         ;;
8289       # Lahey Fortran 8.1.
8290       lf95*)
8291         lt_prog_compiler_wl='-Wl,'
8292         lt_prog_compiler_pic='--shared'
8293         lt_prog_compiler_static='--static'
8294         ;;
8295       nagfor*)
8296         # NAG Fortran compiler
8297         lt_prog_compiler_wl='-Wl,-Wl,,'
8298         lt_prog_compiler_pic='-PIC'
8299         lt_prog_compiler_static='-Bstatic'
8300         ;;
8301       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8302         # Portland Group compilers (*not* the Pentium gcc compiler,
8303         # which looks to be a dead project)
8304         lt_prog_compiler_wl='-Wl,'
8305         lt_prog_compiler_pic='-fpic'
8306         lt_prog_compiler_static='-Bstatic'
8307         ;;
8308       ccc*)
8309         lt_prog_compiler_wl='-Wl,'
8310         # All Alpha code is PIC.
8311         lt_prog_compiler_static='-non_shared'
8312         ;;
8313       xl* | bgxl* | bgf* | mpixl*)
8314         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8315         lt_prog_compiler_wl='-Wl,'
8316         lt_prog_compiler_pic='-qpic'
8317         lt_prog_compiler_static='-qstaticlink'
8318         ;;
8319       *)
8320         case `$CC -V 2>&1 | sed 5q` in
8321         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8322           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8323           lt_prog_compiler_pic='-KPIC'
8324           lt_prog_compiler_static='-Bstatic'
8325           lt_prog_compiler_wl=''
8326           ;;
8327         *Sun\ F* | *Sun*Fortran*)
8328           lt_prog_compiler_pic='-KPIC'
8329           lt_prog_compiler_static='-Bstatic'
8330           lt_prog_compiler_wl='-Qoption ld '
8331           ;;
8332         *Sun\ C*)
8333           # Sun C 5.9
8334           lt_prog_compiler_pic='-KPIC'
8335           lt_prog_compiler_static='-Bstatic'
8336           lt_prog_compiler_wl='-Wl,'
8337           ;;
8338         *Intel*\ [CF]*Compiler*)
8339           lt_prog_compiler_wl='-Wl,'
8340           lt_prog_compiler_pic='-fPIC'
8341           lt_prog_compiler_static='-static'
8342           ;;
8343         *Portland\ Group*)
8344           lt_prog_compiler_wl='-Wl,'
8345           lt_prog_compiler_pic='-fpic'
8346           lt_prog_compiler_static='-Bstatic'
8347           ;;
8348         esac
8349         ;;
8350       esac
8351       ;;
8352
8353     newsos6)
8354       lt_prog_compiler_pic='-KPIC'
8355       lt_prog_compiler_static='-Bstatic'
8356       ;;
8357
8358     *nto* | *qnx*)
8359       # QNX uses GNU C++, but need to define -shared option too, otherwise
8360       # it will coredump.
8361       lt_prog_compiler_pic='-fPIC -shared'
8362       ;;
8363
8364     osf3* | osf4* | osf5*)
8365       lt_prog_compiler_wl='-Wl,'
8366       # All OSF/1 code is PIC.
8367       lt_prog_compiler_static='-non_shared'
8368       ;;
8369
8370     rdos*)
8371       lt_prog_compiler_static='-non_shared'
8372       ;;
8373
8374     solaris*)
8375       lt_prog_compiler_pic='-KPIC'
8376       lt_prog_compiler_static='-Bstatic'
8377       case $cc_basename in
8378       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8379         lt_prog_compiler_wl='-Qoption ld ';;
8380       *)
8381         lt_prog_compiler_wl='-Wl,';;
8382       esac
8383       ;;
8384
8385     sunos4*)
8386       lt_prog_compiler_wl='-Qoption ld '
8387       lt_prog_compiler_pic='-PIC'
8388       lt_prog_compiler_static='-Bstatic'
8389       ;;
8390
8391     sysv4 | sysv4.2uw2* | sysv4.3*)
8392       lt_prog_compiler_wl='-Wl,'
8393       lt_prog_compiler_pic='-KPIC'
8394       lt_prog_compiler_static='-Bstatic'
8395       ;;
8396
8397     sysv4*MP*)
8398       if test -d /usr/nec ;then
8399         lt_prog_compiler_pic='-Kconform_pic'
8400         lt_prog_compiler_static='-Bstatic'
8401       fi
8402       ;;
8403
8404     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8405       lt_prog_compiler_wl='-Wl,'
8406       lt_prog_compiler_pic='-KPIC'
8407       lt_prog_compiler_static='-Bstatic'
8408       ;;
8409
8410     unicos*)
8411       lt_prog_compiler_wl='-Wl,'
8412       lt_prog_compiler_can_build_shared=no
8413       ;;
8414
8415     uts4*)
8416       lt_prog_compiler_pic='-pic'
8417       lt_prog_compiler_static='-Bstatic'
8418       ;;
8419
8420     *)
8421       lt_prog_compiler_can_build_shared=no
8422       ;;
8423     esac
8424   fi
8425
8426 case $host_os in
8427   # For platforms which do not support PIC, -DPIC is meaningless:
8428   *djgpp*)
8429     lt_prog_compiler_pic=
8430     ;;
8431   *)
8432     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8433     ;;
8434 esac
8435
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8438 if ${lt_cv_prog_compiler_pic+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8444 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8445 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8446
8447 #
8448 # Check to make sure the PIC flag actually works.
8449 #
8450 if test -n "$lt_prog_compiler_pic"; then
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8453 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   lt_cv_prog_compiler_pic_works=no
8457    ac_outfile=conftest.$ac_objext
8458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8459    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8460    # Insert the option either (1) after the last *FLAGS variable, or
8461    # (2) before a word containing "conftest.", or (3) at the end.
8462    # Note that $ac_compile itself does not contain backslashes and begins
8463    # with a dollar sign (not a hyphen), so the echo should work correctly.
8464    # The option is referenced via a variable to avoid confusing sed.
8465    lt_compile=`echo "$ac_compile" | $SED \
8466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468    -e 's:$: $lt_compiler_flag:'`
8469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8470    (eval "$lt_compile" 2>conftest.err)
8471    ac_status=$?
8472    cat conftest.err >&5
8473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474    if (exit $ac_status) && test -s "$ac_outfile"; then
8475      # The compiler can only warn and ignore the option if not recognized
8476      # So say no if there are warnings other than the usual output.
8477      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8478      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8479      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8480        lt_cv_prog_compiler_pic_works=yes
8481      fi
8482    fi
8483    $RM conftest*
8484
8485 fi
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8487 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8488
8489 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8490     case $lt_prog_compiler_pic in
8491      "" | " "*) ;;
8492      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8493      esac
8494 else
8495     lt_prog_compiler_pic=
8496      lt_prog_compiler_can_build_shared=no
8497 fi
8498
8499 fi
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511 #
8512 # Check to make sure the static flag actually works.
8513 #
8514 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8516 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8517 if ${lt_cv_prog_compiler_static_works+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   lt_cv_prog_compiler_static_works=no
8521    save_LDFLAGS="$LDFLAGS"
8522    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8523    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8524    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8525      # The linker can only warn and ignore the option if not recognized
8526      # So say no if there are warnings
8527      if test -s conftest.err; then
8528        # Append any errors to the config.log.
8529        cat conftest.err 1>&5
8530        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8531        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8532        if diff conftest.exp conftest.er2 >/dev/null; then
8533          lt_cv_prog_compiler_static_works=yes
8534        fi
8535      else
8536        lt_cv_prog_compiler_static_works=yes
8537      fi
8538    fi
8539    $RM -r conftest*
8540    LDFLAGS="$save_LDFLAGS"
8541
8542 fi
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8544 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8545
8546 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8547     :
8548 else
8549     lt_prog_compiler_static=
8550 fi
8551
8552
8553
8554
8555
8556
8557
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8560 if ${lt_cv_prog_compiler_c_o+:} false; then :
8561   $as_echo_n "(cached) " >&6
8562 else
8563   lt_cv_prog_compiler_c_o=no
8564    $RM -r conftest 2>/dev/null
8565    mkdir conftest
8566    cd conftest
8567    mkdir out
8568    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8569
8570    lt_compiler_flag="-o out/conftest2.$ac_objext"
8571    # Insert the option either (1) after the last *FLAGS variable, or
8572    # (2) before a word containing "conftest.", or (3) at the end.
8573    # Note that $ac_compile itself does not contain backslashes and begins
8574    # with a dollar sign (not a hyphen), so the echo should work correctly.
8575    lt_compile=`echo "$ac_compile" | $SED \
8576    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8578    -e 's:$: $lt_compiler_flag:'`
8579    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8580    (eval "$lt_compile" 2>out/conftest.err)
8581    ac_status=$?
8582    cat out/conftest.err >&5
8583    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8585    then
8586      # The compiler can only warn and ignore the option if not recognized
8587      # So say no if there are warnings
8588      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8589      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8590      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8591        lt_cv_prog_compiler_c_o=yes
8592      fi
8593    fi
8594    chmod u+w . 2>&5
8595    $RM conftest*
8596    # SGI C++ compiler will create directory out/ii_files/ for
8597    # template instantiation
8598    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8599    $RM out/* && rmdir out
8600    cd ..
8601    $RM -r conftest
8602    $RM conftest*
8603
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8606 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8607
8608
8609
8610
8611
8612
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8615 if ${lt_cv_prog_compiler_c_o+:} false; then :
8616   $as_echo_n "(cached) " >&6
8617 else
8618   lt_cv_prog_compiler_c_o=no
8619    $RM -r conftest 2>/dev/null
8620    mkdir conftest
8621    cd conftest
8622    mkdir out
8623    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8624
8625    lt_compiler_flag="-o out/conftest2.$ac_objext"
8626    # Insert the option either (1) after the last *FLAGS variable, or
8627    # (2) before a word containing "conftest.", or (3) at the end.
8628    # Note that $ac_compile itself does not contain backslashes and begins
8629    # with a dollar sign (not a hyphen), so the echo should work correctly.
8630    lt_compile=`echo "$ac_compile" | $SED \
8631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8633    -e 's:$: $lt_compiler_flag:'`
8634    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8635    (eval "$lt_compile" 2>out/conftest.err)
8636    ac_status=$?
8637    cat out/conftest.err >&5
8638    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8640    then
8641      # The compiler can only warn and ignore the option if not recognized
8642      # So say no if there are warnings
8643      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8644      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8645      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8646        lt_cv_prog_compiler_c_o=yes
8647      fi
8648    fi
8649    chmod u+w . 2>&5
8650    $RM conftest*
8651    # SGI C++ compiler will create directory out/ii_files/ for
8652    # template instantiation
8653    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8654    $RM out/* && rmdir out
8655    cd ..
8656    $RM -r conftest
8657    $RM conftest*
8658
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8661 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8662
8663
8664
8665
8666 hard_links="nottested"
8667 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8668   # do not overwrite the value of need_locks provided by the user
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8670 $as_echo_n "checking if we can lock with hard links... " >&6; }
8671   hard_links=yes
8672   $RM conftest*
8673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8674   touch conftest.a
8675   ln conftest.a conftest.b 2>&5 || hard_links=no
8676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8678 $as_echo "$hard_links" >&6; }
8679   if test "$hard_links" = no; then
8680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8681 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8682     need_locks=warn
8683   fi
8684 else
8685   need_locks=no
8686 fi
8687
8688
8689
8690
8691
8692
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8694 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8695
8696   runpath_var=
8697   allow_undefined_flag=
8698   always_export_symbols=no
8699   archive_cmds=
8700   archive_expsym_cmds=
8701   compiler_needs_object=no
8702   enable_shared_with_static_runtimes=no
8703   export_dynamic_flag_spec=
8704   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8705   hardcode_automatic=no
8706   hardcode_direct=no
8707   hardcode_direct_absolute=no
8708   hardcode_libdir_flag_spec=
8709   hardcode_libdir_separator=
8710   hardcode_minus_L=no
8711   hardcode_shlibpath_var=unsupported
8712   inherit_rpath=no
8713   link_all_deplibs=unknown
8714   module_cmds=
8715   module_expsym_cmds=
8716   old_archive_from_new_cmds=
8717   old_archive_from_expsyms_cmds=
8718   thread_safe_flag_spec=
8719   whole_archive_flag_spec=
8720   # include_expsyms should be a list of space-separated symbols to be *always*
8721   # included in the symbol list
8722   include_expsyms=
8723   # exclude_expsyms can be an extended regexp of symbols to exclude
8724   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8725   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8726   # as well as any symbol that contains `d'.
8727   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8728   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8729   # platforms (ab)use it in PIC code, but their linkers get confused if
8730   # the symbol is explicitly referenced.  Since portable code cannot
8731   # rely on this symbol name, it's probably fine to never include it in
8732   # preloaded symbol tables.
8733   # Exclude shared library initialization/finalization symbols.
8734   extract_expsyms_cmds=
8735
8736   case $host_os in
8737   cygwin* | mingw* | pw32* | cegcc*)
8738     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8739     # When not using gcc, we currently assume that we are using
8740     # Microsoft Visual C++.
8741     if test "$GCC" != yes; then
8742       with_gnu_ld=no
8743     fi
8744     ;;
8745   interix*)
8746     # we just hope/assume this is gcc and not c89 (= MSVC++)
8747     with_gnu_ld=yes
8748     ;;
8749   openbsd*)
8750     with_gnu_ld=no
8751     ;;
8752   linux* | k*bsd*-gnu | gnu*)
8753     link_all_deplibs=no
8754     ;;
8755   esac
8756
8757   ld_shlibs=yes
8758
8759   # On some targets, GNU ld is compatible enough with the native linker
8760   # that we're better off using the native interface for both.
8761   lt_use_gnu_ld_interface=no
8762   if test "$with_gnu_ld" = yes; then
8763     case $host_os in
8764       aix*)
8765         # The AIX port of GNU ld has always aspired to compatibility
8766         # with the native linker.  However, as the warning in the GNU ld
8767         # block says, versions before 2.19.5* couldn't really create working
8768         # shared libraries, regardless of the interface used.
8769         case `$LD -v 2>&1` in
8770           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8773           *)
8774             lt_use_gnu_ld_interface=yes
8775             ;;
8776         esac
8777         ;;
8778       *)
8779         lt_use_gnu_ld_interface=yes
8780         ;;
8781     esac
8782   fi
8783
8784   if test "$lt_use_gnu_ld_interface" = yes; then
8785     # If archive_cmds runs LD, not CC, wlarc should be empty
8786     wlarc='${wl}'
8787
8788     # Set some defaults for GNU ld with shared library support. These
8789     # are reset later if shared libraries are not supported. Putting them
8790     # here allows them to be overridden if necessary.
8791     runpath_var=LD_RUN_PATH
8792     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793     export_dynamic_flag_spec='${wl}--export-dynamic'
8794     # ancient GNU ld didn't support --whole-archive et. al.
8795     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797     else
8798       whole_archive_flag_spec=
8799     fi
8800     supports_anon_versioning=no
8801     case `$LD -v 2>&1` in
8802       *GNU\ gold*) supports_anon_versioning=yes ;;
8803       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806       *\ 2.11.*) ;; # other 2.11 versions
8807       *) supports_anon_versioning=yes ;;
8808     esac
8809
8810     # See if GNU ld supports shared libraries.
8811     case $host_os in
8812     aix[3-9]*)
8813       # On AIX/PPC, the GNU linker is very broken
8814       if test "$host_cpu" != ia64; then
8815         ld_shlibs=no
8816         cat <<_LT_EOF 1>&2
8817
8818 *** Warning: the GNU linker, at least up to release 2.19, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support.  If you
8821 *** really care for shared libraries, you may want to install binutils
8822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823 *** You will then need to restart the configuration process.
8824
8825 _LT_EOF
8826       fi
8827       ;;
8828
8829     amigaos*)
8830       case $host_cpu in
8831       powerpc)
8832             # see comment about AmigaOS4 .so support
8833             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834             archive_expsym_cmds=''
8835         ;;
8836       m68k)
8837             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)'
8838             hardcode_libdir_flag_spec='-L$libdir'
8839             hardcode_minus_L=yes
8840         ;;
8841       esac
8842       ;;
8843
8844     beos*)
8845       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846         allow_undefined_flag=unsupported
8847         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8848         # support --undefined.  This deserves some investigation.  FIXME
8849         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850       else
8851         ld_shlibs=no
8852       fi
8853       ;;
8854
8855     cygwin* | mingw* | pw32* | cegcc*)
8856       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857       # as there is no search path for DLLs.
8858       hardcode_libdir_flag_spec='-L$libdir'
8859       export_dynamic_flag_spec='${wl}--export-all-symbols'
8860       allow_undefined_flag=unsupported
8861       always_export_symbols=no
8862       enable_shared_with_static_runtimes=yes
8863       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'
8864       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8865
8866       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8868         # If the export-symbols file already is a .def file (1st line
8869         # is EXPORTS), use it as is; otherwise, prepend...
8870         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8871           cp $export_symbols $output_objdir/$soname.def;
8872         else
8873           echo EXPORTS > $output_objdir/$soname.def;
8874           cat $export_symbols >> $output_objdir/$soname.def;
8875         fi~
8876         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877       else
8878         ld_shlibs=no
8879       fi
8880       ;;
8881
8882     haiku*)
8883       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884       link_all_deplibs=yes
8885       ;;
8886
8887     interix[3-9]*)
8888       hardcode_direct=no
8889       hardcode_shlibpath_var=no
8890       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8891       export_dynamic_flag_spec='${wl}-E'
8892       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8893       # Instead, shared libraries are loaded at an image base (0x10000000 by
8894       # default) and relocated if they conflict, which is a slow very memory
8895       # consuming and fragmenting process.  To avoid this, we pick a random,
8896       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8897       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8898       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8899       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'
8900       ;;
8901
8902     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8903       tmp_diet=no
8904       if test "$host_os" = linux-dietlibc; then
8905         case $cc_basename in
8906           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8907         esac
8908       fi
8909       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8910          && test "$tmp_diet" = no
8911       then
8912         tmp_addflag=' $pic_flag'
8913         tmp_sharedflag='-shared'
8914         case $cc_basename,$host_cpu in
8915         pgcc*)                          # Portland Group C compiler
8916           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'
8917           tmp_addflag=' $pic_flag'
8918           ;;
8919         pgf77* | pgf90* | pgf95* | pgfortran*)
8920                                         # Portland Group f77 and f90 compilers
8921           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'
8922           tmp_addflag=' $pic_flag -Mnomain' ;;
8923         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8924           tmp_addflag=' -i_dynamic' ;;
8925         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8926           tmp_addflag=' -i_dynamic -nofor_main' ;;
8927         ifc* | ifort*)                  # Intel Fortran compiler
8928           tmp_addflag=' -nofor_main' ;;
8929         lf95*)                          # Lahey Fortran 8.1
8930           whole_archive_flag_spec=
8931           tmp_sharedflag='--shared' ;;
8932         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8933           tmp_sharedflag='-qmkshrobj'
8934           tmp_addflag= ;;
8935         nvcc*)  # Cuda Compiler Driver 2.2
8936           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'
8937           compiler_needs_object=yes
8938           ;;
8939         esac
8940         case `$CC -V 2>&1 | sed 5q` in
8941         *Sun\ C*)                       # Sun C 5.9
8942           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'
8943           compiler_needs_object=yes
8944           tmp_sharedflag='-G' ;;
8945         *Sun\ F*)                       # Sun Fortran 8.3
8946           tmp_sharedflag='-G' ;;
8947         esac
8948         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949
8950         if test "x$supports_anon_versioning" = xyes; then
8951           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953             echo "local: *; };" >> $output_objdir/$libname.ver~
8954             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8955         fi
8956
8957         case $cc_basename in
8958         xlf* | bgf* | bgxlf* | mpixlf*)
8959           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8960           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8961           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8963           if test "x$supports_anon_versioning" = xyes; then
8964             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966               echo "local: *; };" >> $output_objdir/$libname.ver~
8967               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8968           fi
8969           ;;
8970         esac
8971       else
8972         ld_shlibs=no
8973       fi
8974       ;;
8975
8976     netbsd* | netbsdelf*-gnu)
8977       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8979         wlarc=
8980       else
8981         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983       fi
8984       ;;
8985
8986     solaris*)
8987       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988         ld_shlibs=no
8989         cat <<_LT_EOF 1>&2
8990
8991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992 *** create shared libraries on Solaris systems.  Therefore, libtool
8993 *** is disabling shared libraries support.  We urge you to upgrade GNU
8994 *** binutils to release 2.9.1 or newer.  Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8997
8998 _LT_EOF
8999       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002       else
9003         ld_shlibs=no
9004       fi
9005       ;;
9006
9007     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008       case `$LD -v 2>&1` in
9009         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010         ld_shlibs=no
9011         cat <<_LT_EOF 1>&2
9012
9013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9015 *** is disabling shared libraries support.  We urge you to upgrade GNU
9016 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9019
9020 _LT_EOF
9021         ;;
9022         *)
9023           # For security reasons, it is highly recommended that you always
9024           # use absolute paths for naming shared libraries, and exclude the
9025           # DT_RUNPATH tag from executables and libraries.  But doing so
9026           # requires that you compile everything twice, which is a pain.
9027           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031           else
9032             ld_shlibs=no
9033           fi
9034         ;;
9035       esac
9036       ;;
9037
9038     sunos4*)
9039       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040       wlarc=
9041       hardcode_direct=yes
9042       hardcode_shlibpath_var=no
9043       ;;
9044
9045     *)
9046       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049       else
9050         ld_shlibs=no
9051       fi
9052       ;;
9053     esac
9054
9055     if test "$ld_shlibs" = no; then
9056       runpath_var=
9057       hardcode_libdir_flag_spec=
9058       export_dynamic_flag_spec=
9059       whole_archive_flag_spec=
9060     fi
9061   else
9062     # PORTME fill in a description of your system's linker (not GNU ld)
9063     case $host_os in
9064     aix3*)
9065       allow_undefined_flag=unsupported
9066       always_export_symbols=yes
9067       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'
9068       # Note: this linker hardcodes the directories in LIBPATH if there
9069       # are no directories specified by -L.
9070       hardcode_minus_L=yes
9071       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072         # Neither direct hardcoding nor static linking is supported with a
9073         # broken collect2.
9074         hardcode_direct=unsupported
9075       fi
9076       ;;
9077
9078     aix[4-9]*)
9079       if test "$host_cpu" = ia64; then
9080         # On IA64, the linker does run time linking by default, so we don't
9081         # have to do anything special.
9082         aix_use_runtimelinking=no
9083         exp_sym_flag='-Bexport'
9084         no_entry_flag=""
9085       else
9086         # If we're using GNU nm, then we don't want the "-C" option.
9087         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9088         # Also, AIX nm treats weak defined symbols like other global
9089         # defined symbols, whereas GNU nm marks them as "W".
9090         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9092         else
9093           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9094         fi
9095         aix_use_runtimelinking=no
9096
9097         # Test if we are trying to use run time linking or normal
9098         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099         # need to do runtime linking.
9100         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101           for ld_flag in $LDFLAGS; do
9102           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103             aix_use_runtimelinking=yes
9104             break
9105           fi
9106           done
9107           ;;
9108         esac
9109
9110         exp_sym_flag='-bexport'
9111         no_entry_flag='-bnoentry'
9112       fi
9113
9114       # When large executables or shared objects are built, AIX ld can
9115       # have problems creating the table of contents.  If linking a library
9116       # or program results in "error TOC overflow" add -mminimal-toc to
9117       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9118       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9119
9120       archive_cmds=''
9121       hardcode_direct=yes
9122       hardcode_direct_absolute=yes
9123       hardcode_libdir_separator=':'
9124       link_all_deplibs=yes
9125       file_list_spec='${wl}-f,'
9126
9127       if test "$GCC" = yes; then
9128         case $host_os in aix4.[012]|aix4.[012].*)
9129         # We only want to do this on AIX 4.2 and lower, the check
9130         # below for broken collect2 doesn't work under 4.3+
9131           collect2name=`${CC} -print-prog-name=collect2`
9132           if test -f "$collect2name" &&
9133            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134           then
9135           # We have reworked collect2
9136           :
9137           else
9138           # We have old collect2
9139           hardcode_direct=unsupported
9140           # It fails to find uninstalled libraries when the uninstalled
9141           # path is not listed in the libpath.  Setting hardcode_minus_L
9142           # to unsupported forces relinking
9143           hardcode_minus_L=yes
9144           hardcode_libdir_flag_spec='-L$libdir'
9145           hardcode_libdir_separator=
9146           fi
9147           ;;
9148         esac
9149         shared_flag='-shared'
9150         if test "$aix_use_runtimelinking" = yes; then
9151           shared_flag="$shared_flag "'${wl}-G'
9152         fi
9153         link_all_deplibs=no
9154       else
9155         # not using gcc
9156         if test "$host_cpu" = ia64; then
9157         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9158         # chokes on -Wl,-G. The following line is correct:
9159           shared_flag='-G'
9160         else
9161           if test "$aix_use_runtimelinking" = yes; then
9162             shared_flag='${wl}-G'
9163           else
9164             shared_flag='${wl}-bM:SRE'
9165           fi
9166         fi
9167       fi
9168
9169       export_dynamic_flag_spec='${wl}-bexpall'
9170       # It seems that -bexpall does not export symbols beginning with
9171       # underscore (_), so it is better to generate a list of symbols to export.
9172       always_export_symbols=yes
9173       if test "$aix_use_runtimelinking" = yes; then
9174         # Warning - without using the other runtime loading flags (-brtl),
9175         # -berok will link without error, but may produce a broken library.
9176         allow_undefined_flag='-berok'
9177         # Determine the default libpath from the value encoded in an
9178         # empty executable.
9179         if test "${lt_cv_aix_libpath+set}" = set; then
9180   aix_libpath=$lt_cv_aix_libpath
9181 else
9182   if ${lt_cv_aix_libpath_+:} false; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h.  */
9187
9188 int
9189 main ()
9190 {
9191
9192   ;
9193   return 0;
9194 }
9195 _ACEOF
9196 if ac_fn_c_try_link "$LINENO"; then :
9197
9198   lt_aix_libpath_sed='
9199       /Import File Strings/,/^$/ {
9200           /^0/ {
9201               s/^0  *\([^ ]*\) *$/\1/
9202               p
9203           }
9204       }'
9205   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9206   # Check for a 64-bit object if we didn't find anything.
9207   if test -z "$lt_cv_aix_libpath_"; then
9208     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209   fi
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext \
9212     conftest$ac_exeext conftest.$ac_ext
9213   if test -z "$lt_cv_aix_libpath_"; then
9214     lt_cv_aix_libpath_="/usr/lib:/lib"
9215   fi
9216
9217 fi
9218
9219   aix_libpath=$lt_cv_aix_libpath_
9220 fi
9221
9222         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9223         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9224       else
9225         if test "$host_cpu" = ia64; then
9226           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9227           allow_undefined_flag="-z nodefs"
9228           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"
9229         else
9230          # Determine the default libpath from the value encoded in an
9231          # empty executable.
9232          if test "${lt_cv_aix_libpath+set}" = set; then
9233   aix_libpath=$lt_cv_aix_libpath
9234 else
9235   if ${lt_cv_aix_libpath_+:} false; then :
9236   $as_echo_n "(cached) " >&6
9237 else
9238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h.  */
9240
9241 int
9242 main ()
9243 {
9244
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"; then :
9250
9251   lt_aix_libpath_sed='
9252       /Import File Strings/,/^$/ {
9253           /^0/ {
9254               s/^0  *\([^ ]*\) *$/\1/
9255               p
9256           }
9257       }'
9258   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9259   # Check for a 64-bit object if we didn't find anything.
9260   if test -z "$lt_cv_aix_libpath_"; then
9261     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262   fi
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext \
9265     conftest$ac_exeext conftest.$ac_ext
9266   if test -z "$lt_cv_aix_libpath_"; then
9267     lt_cv_aix_libpath_="/usr/lib:/lib"
9268   fi
9269
9270 fi
9271
9272   aix_libpath=$lt_cv_aix_libpath_
9273 fi
9274
9275          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276           # Warning - without using the other run time loading flags,
9277           # -berok will link without error, but may produce a broken library.
9278           no_undefined_flag=' ${wl}-bernotok'
9279           allow_undefined_flag=' ${wl}-berok'
9280           if test "$with_gnu_ld" = yes; then
9281             # We only use this code for GNU lds that support --whole-archive.
9282             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283           else
9284             # Exported symbols can be pulled into shared objects from archives
9285             whole_archive_flag_spec='$convenience'
9286           fi
9287           archive_cmds_need_lc=yes
9288           # This is similar to how AIX traditionally builds its shared libraries.
9289           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9290         fi
9291       fi
9292       ;;
9293
9294     amigaos*)
9295       case $host_cpu in
9296       powerpc)
9297             # see comment about AmigaOS4 .so support
9298             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299             archive_expsym_cmds=''
9300         ;;
9301       m68k)
9302             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)'
9303             hardcode_libdir_flag_spec='-L$libdir'
9304             hardcode_minus_L=yes
9305         ;;
9306       esac
9307       ;;
9308
9309     bsdi[45]*)
9310       export_dynamic_flag_spec=-rdynamic
9311       ;;
9312
9313     cygwin* | mingw* | pw32* | cegcc*)
9314       # When not using gcc, we currently assume that we are using
9315       # Microsoft Visual C++.
9316       # hardcode_libdir_flag_spec is actually meaningless, as there is
9317       # no search path for DLLs.
9318       case $cc_basename in
9319       cl*)
9320         # Native MSVC
9321         hardcode_libdir_flag_spec=' '
9322         allow_undefined_flag=unsupported
9323         always_export_symbols=yes
9324         file_list_spec='@'
9325         # Tell ltmain to make .lib files, not .a files.
9326         libext=lib
9327         # Tell ltmain to make .dll files, not .so files.
9328         shrext_cmds=".dll"
9329         # FIXME: Setting linknames here is a bad hack.
9330         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9331         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9332             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9333           else
9334             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9335           fi~
9336           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9337           linknames='
9338         # The linker will not automatically build a static lib if we build a DLL.
9339         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9340         enable_shared_with_static_runtimes=yes
9341         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9342         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9343         # Don't use ranlib
9344         old_postinstall_cmds='chmod 644 $oldlib'
9345         postlink_cmds='lt_outputfile="@OUTPUT@"~
9346           lt_tool_outputfile="@TOOL_OUTPUT@"~
9347           case $lt_outputfile in
9348             *.exe|*.EXE) ;;
9349             *)
9350               lt_outputfile="$lt_outputfile.exe"
9351               lt_tool_outputfile="$lt_tool_outputfile.exe"
9352               ;;
9353           esac~
9354           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9355             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9356             $RM "$lt_outputfile.manifest";
9357           fi'
9358         ;;
9359       *)
9360         # Assume MSVC wrapper
9361         hardcode_libdir_flag_spec=' '
9362         allow_undefined_flag=unsupported
9363         # Tell ltmain to make .lib files, not .a files.
9364         libext=lib
9365         # Tell ltmain to make .dll files, not .so files.
9366         shrext_cmds=".dll"
9367         # FIXME: Setting linknames here is a bad hack.
9368         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9369         # The linker will automatically build a .lib file if we build a DLL.
9370         old_archive_from_new_cmds='true'
9371         # FIXME: Should let the user specify the lib program.
9372         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9373         enable_shared_with_static_runtimes=yes
9374         ;;
9375       esac
9376       ;;
9377
9378     darwin* | rhapsody*)
9379
9380
9381   archive_cmds_need_lc=no
9382   hardcode_direct=no
9383   hardcode_automatic=yes
9384   hardcode_shlibpath_var=unsupported
9385   if test "$lt_cv_ld_force_load" = "yes"; then
9386     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\"`'
9387
9388   else
9389     whole_archive_flag_spec=''
9390   fi
9391   link_all_deplibs=yes
9392   allow_undefined_flag="$_lt_dar_allow_undefined"
9393   case $cc_basename in
9394      ifort*) _lt_dar_can_shared=yes ;;
9395      *) _lt_dar_can_shared=$GCC ;;
9396   esac
9397   if test "$_lt_dar_can_shared" = "yes"; then
9398     output_verbose_link_cmd=func_echo_all
9399     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9400     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9401     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}"
9402     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}"
9403
9404   else
9405   ld_shlibs=no
9406   fi
9407
9408       ;;
9409
9410     dgux*)
9411       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412       hardcode_libdir_flag_spec='-L$libdir'
9413       hardcode_shlibpath_var=no
9414       ;;
9415
9416     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9417     # support.  Future versions do this automatically, but an explicit c++rt0.o
9418     # does not break anything, and helps significantly (at the cost of a little
9419     # extra space).
9420     freebsd2.2*)
9421       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9422       hardcode_libdir_flag_spec='-R$libdir'
9423       hardcode_direct=yes
9424       hardcode_shlibpath_var=no
9425       ;;
9426
9427     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9428     freebsd2.*)
9429       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9430       hardcode_direct=yes
9431       hardcode_minus_L=yes
9432       hardcode_shlibpath_var=no
9433       ;;
9434
9435     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9436     freebsd* | dragonfly*)
9437       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9438       hardcode_libdir_flag_spec='-R$libdir'
9439       hardcode_direct=yes
9440       hardcode_shlibpath_var=no
9441       ;;
9442
9443     hpux9*)
9444       if test "$GCC" = yes; then
9445         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9446       else
9447         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9448       fi
9449       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9450       hardcode_libdir_separator=:
9451       hardcode_direct=yes
9452
9453       # hardcode_minus_L: Not really in the search PATH,
9454       # but as the default location of the library.
9455       hardcode_minus_L=yes
9456       export_dynamic_flag_spec='${wl}-E'
9457       ;;
9458
9459     hpux10*)
9460       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9461         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9462       else
9463         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9464       fi
9465       if test "$with_gnu_ld" = no; then
9466         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9467         hardcode_libdir_separator=:
9468         hardcode_direct=yes
9469         hardcode_direct_absolute=yes
9470         export_dynamic_flag_spec='${wl}-E'
9471         # hardcode_minus_L: Not really in the search PATH,
9472         # but as the default location of the library.
9473         hardcode_minus_L=yes
9474       fi
9475       ;;
9476
9477     hpux11*)
9478       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9479         case $host_cpu in
9480         hppa*64*)
9481           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9482           ;;
9483         ia64*)
9484           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9485           ;;
9486         *)
9487           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9488           ;;
9489         esac
9490       else
9491         case $host_cpu in
9492         hppa*64*)
9493           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9494           ;;
9495         ia64*)
9496           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9497           ;;
9498         *)
9499
9500           # Older versions of the 11.00 compiler do not understand -b yet
9501           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9502           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9503 $as_echo_n "checking if $CC understands -b... " >&6; }
9504 if ${lt_cv_prog_compiler__b+:} false; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   lt_cv_prog_compiler__b=no
9508    save_LDFLAGS="$LDFLAGS"
9509    LDFLAGS="$LDFLAGS -b"
9510    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9511    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9512      # The linker can only warn and ignore the option if not recognized
9513      # So say no if there are warnings
9514      if test -s conftest.err; then
9515        # Append any errors to the config.log.
9516        cat conftest.err 1>&5
9517        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9518        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9519        if diff conftest.exp conftest.er2 >/dev/null; then
9520          lt_cv_prog_compiler__b=yes
9521        fi
9522      else
9523        lt_cv_prog_compiler__b=yes
9524      fi
9525    fi
9526    $RM -r conftest*
9527    LDFLAGS="$save_LDFLAGS"
9528
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9531 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9532
9533 if test x"$lt_cv_prog_compiler__b" = xyes; then
9534     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535 else
9536     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9537 fi
9538
9539           ;;
9540         esac
9541       fi
9542       if test "$with_gnu_ld" = no; then
9543         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9544         hardcode_libdir_separator=:
9545
9546         case $host_cpu in
9547         hppa*64*|ia64*)
9548           hardcode_direct=no
9549           hardcode_shlibpath_var=no
9550           ;;
9551         *)
9552           hardcode_direct=yes
9553           hardcode_direct_absolute=yes
9554           export_dynamic_flag_spec='${wl}-E'
9555
9556           # hardcode_minus_L: Not really in the search PATH,
9557           # but as the default location of the library.
9558           hardcode_minus_L=yes
9559           ;;
9560         esac
9561       fi
9562       ;;
9563
9564     irix5* | irix6* | nonstopux*)
9565       if test "$GCC" = yes; then
9566         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'
9567         # Try to use the -exported_symbol ld option, if it does not
9568         # work, assume that -exports_file does not work either and
9569         # implicitly export all symbols.
9570         # This should be the same for all languages, so no per-tag cache variable.
9571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9572 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9573 if ${lt_cv_irix_exported_symbol+:} false; then :
9574   $as_echo_n "(cached) " >&6
9575 else
9576   save_LDFLAGS="$LDFLAGS"
9577            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9578            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h.  */
9580 int foo (void) { return 0; }
9581 _ACEOF
9582 if ac_fn_c_try_link "$LINENO"; then :
9583   lt_cv_irix_exported_symbol=yes
9584 else
9585   lt_cv_irix_exported_symbol=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588     conftest$ac_exeext conftest.$ac_ext
9589            LDFLAGS="$save_LDFLAGS"
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9592 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9593         if test "$lt_cv_irix_exported_symbol" = yes; then
9594           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'
9595         fi
9596       else
9597         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'
9598         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'
9599       fi
9600       archive_cmds_need_lc='no'
9601       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602       hardcode_libdir_separator=:
9603       inherit_rpath=yes
9604       link_all_deplibs=yes
9605       ;;
9606
9607     netbsd* | netbsdelf*-gnu)
9608       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9609         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9610       else
9611         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9612       fi
9613       hardcode_libdir_flag_spec='-R$libdir'
9614       hardcode_direct=yes
9615       hardcode_shlibpath_var=no
9616       ;;
9617
9618     newsos6)
9619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620       hardcode_direct=yes
9621       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622       hardcode_libdir_separator=:
9623       hardcode_shlibpath_var=no
9624       ;;
9625
9626     *nto* | *qnx*)
9627       ;;
9628
9629     openbsd*)
9630       if test -f /usr/libexec/ld.so; then
9631         hardcode_direct=yes
9632         hardcode_shlibpath_var=no
9633         hardcode_direct_absolute=yes
9634         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9635           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9636           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9637           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9638           export_dynamic_flag_spec='${wl}-E'
9639         else
9640           case $host_os in
9641            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9642              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9643              hardcode_libdir_flag_spec='-R$libdir'
9644              ;;
9645            *)
9646              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9647              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648              ;;
9649           esac
9650         fi
9651       else
9652         ld_shlibs=no
9653       fi
9654       ;;
9655
9656     os2*)
9657       hardcode_libdir_flag_spec='-L$libdir'
9658       hardcode_minus_L=yes
9659       allow_undefined_flag=unsupported
9660       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9661       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9662       ;;
9663
9664     osf3*)
9665       if test "$GCC" = yes; then
9666         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9667         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'
9668       else
9669         allow_undefined_flag=' -expect_unresolved \*'
9670         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'
9671       fi
9672       archive_cmds_need_lc='no'
9673       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9674       hardcode_libdir_separator=:
9675       ;;
9676
9677     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9678       if test "$GCC" = yes; then
9679         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9680         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'
9681         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682       else
9683         allow_undefined_flag=' -expect_unresolved \*'
9684         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'
9685         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~
9686         $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'
9687
9688         # Both c and cxx compiler support -rpath directly
9689         hardcode_libdir_flag_spec='-rpath $libdir'
9690       fi
9691       archive_cmds_need_lc='no'
9692       hardcode_libdir_separator=:
9693       ;;
9694
9695     solaris*)
9696       no_undefined_flag=' -z defs'
9697       if test "$GCC" = yes; then
9698         wlarc='${wl}'
9699         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9701           $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'
9702       else
9703         case `$CC -V 2>&1` in
9704         *"Compilers 5.0"*)
9705           wlarc=''
9706           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9709           ;;
9710         *)
9711           wlarc='${wl}'
9712           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9713           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9714           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9715           ;;
9716         esac
9717       fi
9718       hardcode_libdir_flag_spec='-R$libdir'
9719       hardcode_shlibpath_var=no
9720       case $host_os in
9721       solaris2.[0-5] | solaris2.[0-5].*) ;;
9722       *)
9723         # The compiler driver will combine and reorder linker options,
9724         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9725         # but is careful enough not to reorder.
9726         # Supported since Solaris 2.6 (maybe 2.5.1?)
9727         if test "$GCC" = yes; then
9728           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9729         else
9730           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9731         fi
9732         ;;
9733       esac
9734       link_all_deplibs=yes
9735       ;;
9736
9737     sunos4*)
9738       if test "x$host_vendor" = xsequent; then
9739         # Use $CC to link under sequent, because it throws in some extra .o
9740         # files that make .init and .fini sections work.
9741         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9742       else
9743         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9744       fi
9745       hardcode_libdir_flag_spec='-L$libdir'
9746       hardcode_direct=yes
9747       hardcode_minus_L=yes
9748       hardcode_shlibpath_var=no
9749       ;;
9750
9751     sysv4)
9752       case $host_vendor in
9753         sni)
9754           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755           hardcode_direct=yes # is this really true???
9756         ;;
9757         siemens)
9758           ## LD is ld it makes a PLAMLIB
9759           ## CC just makes a GrossModule.
9760           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9761           reload_cmds='$CC -r -o $output$reload_objs'
9762           hardcode_direct=no
9763         ;;
9764         motorola)
9765           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9767         ;;
9768       esac
9769       runpath_var='LD_RUN_PATH'
9770       hardcode_shlibpath_var=no
9771       ;;
9772
9773     sysv4.3*)
9774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775       hardcode_shlibpath_var=no
9776       export_dynamic_flag_spec='-Bexport'
9777       ;;
9778
9779     sysv4*MP*)
9780       if test -d /usr/nec; then
9781         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782         hardcode_shlibpath_var=no
9783         runpath_var=LD_RUN_PATH
9784         hardcode_runpath_var=yes
9785         ld_shlibs=yes
9786       fi
9787       ;;
9788
9789     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9790       no_undefined_flag='${wl}-z,text'
9791       archive_cmds_need_lc=no
9792       hardcode_shlibpath_var=no
9793       runpath_var='LD_RUN_PATH'
9794
9795       if test "$GCC" = yes; then
9796         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798       else
9799         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801       fi
9802       ;;
9803
9804     sysv5* | sco3.2v5* | sco5v6*)
9805       # Note: We can NOT use -z defs as we might desire, because we do not
9806       # link with -lc, and that would cause any symbols used from libc to
9807       # always be unresolved, which means just about no library would
9808       # ever link correctly.  If we're not using GNU ld we use -z text
9809       # though, which does catch some bad symbols but isn't as heavy-handed
9810       # as -z defs.
9811       no_undefined_flag='${wl}-z,text'
9812       allow_undefined_flag='${wl}-z,nodefs'
9813       archive_cmds_need_lc=no
9814       hardcode_shlibpath_var=no
9815       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9816       hardcode_libdir_separator=':'
9817       link_all_deplibs=yes
9818       export_dynamic_flag_spec='${wl}-Bexport'
9819       runpath_var='LD_RUN_PATH'
9820
9821       if test "$GCC" = yes; then
9822         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824       else
9825         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827       fi
9828       ;;
9829
9830     uts4*)
9831       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832       hardcode_libdir_flag_spec='-L$libdir'
9833       hardcode_shlibpath_var=no
9834       ;;
9835
9836     *)
9837       ld_shlibs=no
9838       ;;
9839     esac
9840
9841     if test x$host_vendor = xsni; then
9842       case $host in
9843       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9844         export_dynamic_flag_spec='${wl}-Blargedynsym'
9845         ;;
9846       esac
9847     fi
9848   fi
9849
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9851 $as_echo "$ld_shlibs" >&6; }
9852 test "$ld_shlibs" = no && can_build_shared=no
9853
9854 with_gnu_ld=$with_gnu_ld
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870 #
9871 # Do we need to explicitly link libc?
9872 #
9873 case "x$archive_cmds_need_lc" in
9874 x|xyes)
9875   # Assume -lc should be added
9876   archive_cmds_need_lc=yes
9877
9878   if test "$enable_shared" = yes && test "$GCC" = yes; then
9879     case $archive_cmds in
9880     *'~'*)
9881       # FIXME: we may have to deal with multi-command sequences.
9882       ;;
9883     '$CC '*)
9884       # Test whether the compiler implicitly links with -lc since on some
9885       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9886       # to ld, don't add -lc before -lgcc.
9887       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9888 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9889 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9890   $as_echo_n "(cached) " >&6
9891 else
9892   $RM conftest*
9893         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9894
9895         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9896   (eval $ac_compile) 2>&5
9897   ac_status=$?
9898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9899   test $ac_status = 0; } 2>conftest.err; then
9900           soname=conftest
9901           lib=conftest
9902           libobjs=conftest.$ac_objext
9903           deplibs=
9904           wl=$lt_prog_compiler_wl
9905           pic_flag=$lt_prog_compiler_pic
9906           compiler_flags=-v
9907           linker_flags=-v
9908           verstring=
9909           output_objdir=.
9910           libname=conftest
9911           lt_save_allow_undefined_flag=$allow_undefined_flag
9912           allow_undefined_flag=
9913           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9914   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9915   ac_status=$?
9916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917   test $ac_status = 0; }
9918           then
9919             lt_cv_archive_cmds_need_lc=no
9920           else
9921             lt_cv_archive_cmds_need_lc=yes
9922           fi
9923           allow_undefined_flag=$lt_save_allow_undefined_flag
9924         else
9925           cat conftest.err 1>&5
9926         fi
9927         $RM conftest*
9928
9929 fi
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9931 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9932       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9933       ;;
9934     esac
9935   fi
9936   ;;
9937 esac
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10091 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10092
10093 if test "$GCC" = yes; then
10094   case $host_os in
10095     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10096     *) lt_awk_arg="/^libraries:/" ;;
10097   esac
10098   case $host_os in
10099     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10100     *) lt_sed_strip_eq="s,=/,/,g" ;;
10101   esac
10102   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10103   case $lt_search_path_spec in
10104   *\;*)
10105     # if the path contains ";" then we assume it to be the separator
10106     # otherwise default to the standard path separator (i.e. ":") - it is
10107     # assumed that no part of a normal pathname contains ";" but that should
10108     # okay in the real world where ";" in dirpaths is itself problematic.
10109     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10110     ;;
10111   *)
10112     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10113     ;;
10114   esac
10115   # Ok, now we have the path, separated by spaces, we can step through it
10116   # and add multilib dir if necessary.
10117   lt_tmp_lt_search_path_spec=
10118   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10119   for lt_sys_path in $lt_search_path_spec; do
10120     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10121       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10122     else
10123       test -d "$lt_sys_path" && \
10124         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10125     fi
10126   done
10127   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10128 BEGIN {RS=" "; FS="/|\n";} {
10129   lt_foo="";
10130   lt_count=0;
10131   for (lt_i = NF; lt_i > 0; lt_i--) {
10132     if ($lt_i != "" && $lt_i != ".") {
10133       if ($lt_i == "..") {
10134         lt_count++;
10135       } else {
10136         if (lt_count == 0) {
10137           lt_foo="/" $lt_i lt_foo;
10138         } else {
10139           lt_count--;
10140         }
10141       }
10142     }
10143   }
10144   if (lt_foo != "") { lt_freq[lt_foo]++; }
10145   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10146 }'`
10147   # AWK program above erroneously prepends '/' to C:/dos/paths
10148   # for these hosts.
10149   case $host_os in
10150     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10151       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10152   esac
10153   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10154 else
10155   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10156 fi
10157 library_names_spec=
10158 libname_spec='lib$name'
10159 soname_spec=
10160 shrext_cmds=".so"
10161 postinstall_cmds=
10162 postuninstall_cmds=
10163 finish_cmds=
10164 finish_eval=
10165 shlibpath_var=
10166 shlibpath_overrides_runpath=unknown
10167 version_type=none
10168 dynamic_linker="$host_os ld.so"
10169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10170 need_lib_prefix=unknown
10171 hardcode_into_libs=no
10172
10173 # when you set need_version to no, make sure it does not cause -set_version
10174 # flags to be left without arguments
10175 need_version=unknown
10176
10177 case $host_os in
10178 aix3*)
10179   version_type=linux # correct to gnu/linux during the next big refactor
10180   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10181   shlibpath_var=LIBPATH
10182
10183   # AIX 3 has no versioning support, so we append a major version to the name.
10184   soname_spec='${libname}${release}${shared_ext}$major'
10185   ;;
10186
10187 aix[4-9]*)
10188   version_type=linux # correct to gnu/linux during the next big refactor
10189   need_lib_prefix=no
10190   need_version=no
10191   hardcode_into_libs=yes
10192   if test "$host_cpu" = ia64; then
10193     # AIX 5 supports IA64
10194     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10195     shlibpath_var=LD_LIBRARY_PATH
10196   else
10197     # With GCC up to 2.95.x, collect2 would create an import file
10198     # for dependence libraries.  The import file would start with
10199     # the line `#! .'.  This would cause the generated library to
10200     # depend on `.', always an invalid library.  This was fixed in
10201     # development snapshots of GCC prior to 3.0.
10202     case $host_os in
10203       aix4 | aix4.[01] | aix4.[01].*)
10204       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10205            echo ' yes '
10206            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10207         :
10208       else
10209         can_build_shared=no
10210       fi
10211       ;;
10212     esac
10213     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10214     # soname into executable. Probably we can add versioning support to
10215     # collect2, so additional links can be useful in future.
10216     if test "$aix_use_runtimelinking" = yes; then
10217       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10218       # instead of lib<name>.a to let people know that these are not
10219       # typical AIX shared libraries.
10220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221     else
10222       # We preserve .a as extension for shared libraries through AIX4.2
10223       # and later when we are not doing run time linking.
10224       library_names_spec='${libname}${release}.a $libname.a'
10225       soname_spec='${libname}${release}${shared_ext}$major'
10226     fi
10227     shlibpath_var=LIBPATH
10228   fi
10229   ;;
10230
10231 amigaos*)
10232   case $host_cpu in
10233   powerpc)
10234     # Since July 2007 AmigaOS4 officially supports .so libraries.
10235     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237     ;;
10238   m68k)
10239     library_names_spec='$libname.ixlibrary $libname.a'
10240     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10241     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10242     ;;
10243   esac
10244   ;;
10245
10246 beos*)
10247   library_names_spec='${libname}${shared_ext}'
10248   dynamic_linker="$host_os ld.so"
10249   shlibpath_var=LIBRARY_PATH
10250   ;;
10251
10252 bsdi[45]*)
10253   version_type=linux # correct to gnu/linux during the next big refactor
10254   need_version=no
10255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256   soname_spec='${libname}${release}${shared_ext}$major'
10257   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10258   shlibpath_var=LD_LIBRARY_PATH
10259   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10260   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10261   # the default ld.so.conf also contains /usr/contrib/lib and
10262   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10263   # libtool to hard-code these into programs
10264   ;;
10265
10266 cygwin* | mingw* | pw32* | cegcc*)
10267   version_type=windows
10268   shrext_cmds=".dll"
10269   need_version=no
10270   need_lib_prefix=no
10271
10272   case $GCC,$cc_basename in
10273   yes,*)
10274     # gcc
10275     library_names_spec='$libname.dll.a'
10276     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10277     postinstall_cmds='base_file=`basename \${file}`~
10278       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10279       dldir=$destdir/`dirname \$dlpath`~
10280       test -d \$dldir || mkdir -p \$dldir~
10281       $install_prog $dir/$dlname \$dldir/$dlname~
10282       chmod a+x \$dldir/$dlname~
10283       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10284         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10285       fi'
10286     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10287       dlpath=$dir/\$dldll~
10288        $RM \$dlpath'
10289     shlibpath_overrides_runpath=yes
10290
10291     case $host_os in
10292     cygwin*)
10293       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10294       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295
10296       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10297       ;;
10298     mingw* | cegcc*)
10299       # MinGW DLLs use traditional 'lib' prefix
10300       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301       ;;
10302     pw32*)
10303       # pw32 DLLs use 'pw' prefix rather than 'lib'
10304       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10305       ;;
10306     esac
10307     dynamic_linker='Win32 ld.exe'
10308     ;;
10309
10310   *,cl*)
10311     # Native MSVC
10312     libname_spec='$name'
10313     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314     library_names_spec='${libname}.dll.lib'
10315
10316     case $build_os in
10317     mingw*)
10318       sys_lib_search_path_spec=
10319       lt_save_ifs=$IFS
10320       IFS=';'
10321       for lt_path in $LIB
10322       do
10323         IFS=$lt_save_ifs
10324         # Let DOS variable expansion print the short 8.3 style file name.
10325         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10326         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10327       done
10328       IFS=$lt_save_ifs
10329       # Convert to MSYS style.
10330       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10331       ;;
10332     cygwin*)
10333       # Convert to unix form, then to dos form, then back to unix form
10334       # but this time dos style (no spaces!) so that the unix form looks
10335       # like /cygdrive/c/PROGRA~1:/cygdr...
10336       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10337       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10338       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10339       ;;
10340     *)
10341       sys_lib_search_path_spec="$LIB"
10342       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10343         # It is most probably a Windows format PATH.
10344         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10345       else
10346         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10347       fi
10348       # FIXME: find the short name or the path components, as spaces are
10349       # common. (e.g. "Program Files" -> "PROGRA~1")
10350       ;;
10351     esac
10352
10353     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10354     postinstall_cmds='base_file=`basename \${file}`~
10355       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10356       dldir=$destdir/`dirname \$dlpath`~
10357       test -d \$dldir || mkdir -p \$dldir~
10358       $install_prog $dir/$dlname \$dldir/$dlname'
10359     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10360       dlpath=$dir/\$dldll~
10361        $RM \$dlpath'
10362     shlibpath_overrides_runpath=yes
10363     dynamic_linker='Win32 link.exe'
10364     ;;
10365
10366   *)
10367     # Assume MSVC wrapper
10368     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10369     dynamic_linker='Win32 ld.exe'
10370     ;;
10371   esac
10372   # FIXME: first we should search . and the directory the executable is in
10373   shlibpath_var=PATH
10374   ;;
10375
10376 darwin* | rhapsody*)
10377   dynamic_linker="$host_os dyld"
10378   version_type=darwin
10379   need_lib_prefix=no
10380   need_version=no
10381   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10382   soname_spec='${libname}${release}${major}$shared_ext'
10383   shlibpath_overrides_runpath=yes
10384   shlibpath_var=DYLD_LIBRARY_PATH
10385   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10386
10387   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10388   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10389   ;;
10390
10391 dgux*)
10392   version_type=linux # correct to gnu/linux during the next big refactor
10393   need_lib_prefix=no
10394   need_version=no
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   ;;
10399
10400 freebsd* | dragonfly*)
10401   # DragonFly does not have aout.  When/if they implement a new
10402   # versioning mechanism, adjust this.
10403   if test -x /usr/bin/objformat; then
10404     objformat=`/usr/bin/objformat`
10405   else
10406     case $host_os in
10407     freebsd[23].*) objformat=aout ;;
10408     *) objformat=elf ;;
10409     esac
10410   fi
10411   version_type=freebsd-$objformat
10412   case $version_type in
10413     freebsd-elf*)
10414       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415       need_version=no
10416       need_lib_prefix=no
10417       ;;
10418     freebsd-*)
10419       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10420       need_version=yes
10421       ;;
10422   esac
10423   shlibpath_var=LD_LIBRARY_PATH
10424   case $host_os in
10425   freebsd2.*)
10426     shlibpath_overrides_runpath=yes
10427     ;;
10428   freebsd3.[01]* | freebsdelf3.[01]*)
10429     shlibpath_overrides_runpath=yes
10430     hardcode_into_libs=yes
10431     ;;
10432   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10433   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10434     shlibpath_overrides_runpath=no
10435     hardcode_into_libs=yes
10436     ;;
10437   *) # from 4.6 on, and DragonFly
10438     shlibpath_overrides_runpath=yes
10439     hardcode_into_libs=yes
10440     ;;
10441   esac
10442   ;;
10443
10444 gnu*)
10445   version_type=linux # correct to gnu/linux during the next big refactor
10446   need_lib_prefix=no
10447   need_version=no
10448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10449   soname_spec='${libname}${release}${shared_ext}$major'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   shlibpath_overrides_runpath=no
10452   hardcode_into_libs=yes
10453   ;;
10454
10455 haiku*)
10456   version_type=linux # correct to gnu/linux during the next big refactor
10457   need_lib_prefix=no
10458   need_version=no
10459   dynamic_linker="$host_os runtime_loader"
10460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10461   soname_spec='${libname}${release}${shared_ext}$major'
10462   shlibpath_var=LIBRARY_PATH
10463   shlibpath_overrides_runpath=yes
10464   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10465   hardcode_into_libs=yes
10466   ;;
10467
10468 hpux9* | hpux10* | hpux11*)
10469   # Give a soname corresponding to the major version so that dld.sl refuses to
10470   # link against other versions.
10471   version_type=sunos
10472   need_lib_prefix=no
10473   need_version=no
10474   case $host_cpu in
10475   ia64*)
10476     shrext_cmds='.so'
10477     hardcode_into_libs=yes
10478     dynamic_linker="$host_os dld.so"
10479     shlibpath_var=LD_LIBRARY_PATH
10480     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482     soname_spec='${libname}${release}${shared_ext}$major'
10483     if test "X$HPUX_IA64_MODE" = X32; then
10484       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10485     else
10486       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10487     fi
10488     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10489     ;;
10490   hppa*64*)
10491     shrext_cmds='.sl'
10492     hardcode_into_libs=yes
10493     dynamic_linker="$host_os dld.sl"
10494     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10495     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497     soname_spec='${libname}${release}${shared_ext}$major'
10498     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10499     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10500     ;;
10501   *)
10502     shrext_cmds='.sl'
10503     dynamic_linker="$host_os dld.sl"
10504     shlibpath_var=SHLIB_PATH
10505     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507     soname_spec='${libname}${release}${shared_ext}$major'
10508     ;;
10509   esac
10510   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10511   postinstall_cmds='chmod 555 $lib'
10512   # or fails outright, so override atomically:
10513   install_override_mode=555
10514   ;;
10515
10516 interix[3-9]*)
10517   version_type=linux # correct to gnu/linux during the next big refactor
10518   need_lib_prefix=no
10519   need_version=no
10520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10521   soname_spec='${libname}${release}${shared_ext}$major'
10522   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10523   shlibpath_var=LD_LIBRARY_PATH
10524   shlibpath_overrides_runpath=no
10525   hardcode_into_libs=yes
10526   ;;
10527
10528 irix5* | irix6* | nonstopux*)
10529   case $host_os in
10530     nonstopux*) version_type=nonstopux ;;
10531     *)
10532         if test "$lt_cv_prog_gnu_ld" = yes; then
10533                 version_type=linux # correct to gnu/linux during the next big refactor
10534         else
10535                 version_type=irix
10536         fi ;;
10537   esac
10538   need_lib_prefix=no
10539   need_version=no
10540   soname_spec='${libname}${release}${shared_ext}$major'
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10542   case $host_os in
10543   irix5* | nonstopux*)
10544     libsuff= shlibsuff=
10545     ;;
10546   *)
10547     case $LD in # libtool.m4 will add one of these switches to LD
10548     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10549       libsuff= shlibsuff= libmagic=32-bit;;
10550     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10551       libsuff=32 shlibsuff=N32 libmagic=N32;;
10552     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10553       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10554     *) libsuff= shlibsuff= libmagic=never-match;;
10555     esac
10556     ;;
10557   esac
10558   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10559   shlibpath_overrides_runpath=no
10560   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10561   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10562   hardcode_into_libs=yes
10563   ;;
10564
10565 # No shared lib support for Linux oldld, aout, or coff.
10566 linux*oldld* | linux*aout* | linux*coff*)
10567   dynamic_linker=no
10568   ;;
10569
10570 # This must be glibc/ELF.
10571 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10572   version_type=linux # correct to gnu/linux during the next big refactor
10573   need_lib_prefix=no
10574   need_version=no
10575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576   soname_spec='${libname}${release}${shared_ext}$major'
10577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10578   shlibpath_var=LD_LIBRARY_PATH
10579   shlibpath_overrides_runpath=no
10580
10581   # Some binutils ld are patched to set DT_RUNPATH
10582   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10583   $as_echo_n "(cached) " >&6
10584 else
10585   lt_cv_shlibpath_overrides_runpath=no
10586     save_LDFLAGS=$LDFLAGS
10587     save_libdir=$libdir
10588     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10589          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h.  */
10592
10593 int
10594 main ()
10595 {
10596
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10603   lt_cv_shlibpath_overrides_runpath=yes
10604 fi
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext \
10607     conftest$ac_exeext conftest.$ac_ext
10608     LDFLAGS=$save_LDFLAGS
10609     libdir=$save_libdir
10610
10611 fi
10612
10613   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10614
10615   # This implies no fast_install, which is unacceptable.
10616   # Some rework will be needed to allow for fast_install
10617   # before this can be enabled.
10618   hardcode_into_libs=yes
10619
10620   # Append ld.so.conf contents to the search path
10621   if test -f /etc/ld.so.conf; then
10622     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' ' '`
10623     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10624   fi
10625
10626   # We used to test for /lib/ld.so.1 and disable shared libraries on
10627   # powerpc, because MkLinux only supported shared libraries with the
10628   # GNU dynamic linker.  Since this was broken with cross compilers,
10629   # most powerpc-linux boxes support dynamic linking these days and
10630   # people can always --disable-shared, the test was removed, and we
10631   # assume the GNU/Linux dynamic linker is in use.
10632   dynamic_linker='GNU/Linux ld.so'
10633   ;;
10634
10635 netbsdelf*-gnu)
10636   version_type=linux
10637   need_lib_prefix=no
10638   need_version=no
10639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10640   soname_spec='${libname}${release}${shared_ext}$major'
10641   shlibpath_var=LD_LIBRARY_PATH
10642   shlibpath_overrides_runpath=no
10643   hardcode_into_libs=yes
10644   dynamic_linker='NetBSD ld.elf_so'
10645   ;;
10646
10647 netbsd*)
10648   version_type=sunos
10649   need_lib_prefix=no
10650   need_version=no
10651   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10653     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10654     dynamic_linker='NetBSD (a.out) ld.so'
10655   else
10656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10657     soname_spec='${libname}${release}${shared_ext}$major'
10658     dynamic_linker='NetBSD ld.elf_so'
10659   fi
10660   shlibpath_var=LD_LIBRARY_PATH
10661   shlibpath_overrides_runpath=yes
10662   hardcode_into_libs=yes
10663   ;;
10664
10665 newsos6)
10666   version_type=linux # correct to gnu/linux during the next big refactor
10667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668   shlibpath_var=LD_LIBRARY_PATH
10669   shlibpath_overrides_runpath=yes
10670   ;;
10671
10672 *nto* | *qnx*)
10673   version_type=qnx
10674   need_lib_prefix=no
10675   need_version=no
10676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677   soname_spec='${libname}${release}${shared_ext}$major'
10678   shlibpath_var=LD_LIBRARY_PATH
10679   shlibpath_overrides_runpath=no
10680   hardcode_into_libs=yes
10681   dynamic_linker='ldqnx.so'
10682   ;;
10683
10684 openbsd*)
10685   version_type=sunos
10686   sys_lib_dlsearch_path_spec="/usr/lib"
10687   need_lib_prefix=no
10688   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10689   case $host_os in
10690     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10691     *)                          need_version=no  ;;
10692   esac
10693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10694   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10695   shlibpath_var=LD_LIBRARY_PATH
10696   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10697     case $host_os in
10698       openbsd2.[89] | openbsd2.[89].*)
10699         shlibpath_overrides_runpath=no
10700         ;;
10701       *)
10702         shlibpath_overrides_runpath=yes
10703         ;;
10704       esac
10705   else
10706     shlibpath_overrides_runpath=yes
10707   fi
10708   ;;
10709
10710 os2*)
10711   libname_spec='$name'
10712   shrext_cmds=".dll"
10713   need_lib_prefix=no
10714   library_names_spec='$libname${shared_ext} $libname.a'
10715   dynamic_linker='OS/2 ld.exe'
10716   shlibpath_var=LIBPATH
10717   ;;
10718
10719 osf3* | osf4* | osf5*)
10720   version_type=osf
10721   need_lib_prefix=no
10722   need_version=no
10723   soname_spec='${libname}${release}${shared_ext}$major'
10724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725   shlibpath_var=LD_LIBRARY_PATH
10726   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10727   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10728   ;;
10729
10730 rdos*)
10731   dynamic_linker=no
10732   ;;
10733
10734 solaris*)
10735   version_type=linux # correct to gnu/linux during the next big refactor
10736   need_lib_prefix=no
10737   need_version=no
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   shlibpath_var=LD_LIBRARY_PATH
10741   shlibpath_overrides_runpath=yes
10742   hardcode_into_libs=yes
10743   # ldd complains unless libraries are executable
10744   postinstall_cmds='chmod +x $lib'
10745   ;;
10746
10747 sunos4*)
10748   version_type=sunos
10749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10750   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10751   shlibpath_var=LD_LIBRARY_PATH
10752   shlibpath_overrides_runpath=yes
10753   if test "$with_gnu_ld" = yes; then
10754     need_lib_prefix=no
10755   fi
10756   need_version=yes
10757   ;;
10758
10759 sysv4 | sysv4.3*)
10760   version_type=linux # correct to gnu/linux during the next big refactor
10761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762   soname_spec='${libname}${release}${shared_ext}$major'
10763   shlibpath_var=LD_LIBRARY_PATH
10764   case $host_vendor in
10765     sni)
10766       shlibpath_overrides_runpath=no
10767       need_lib_prefix=no
10768       runpath_var=LD_RUN_PATH
10769       ;;
10770     siemens)
10771       need_lib_prefix=no
10772       ;;
10773     motorola)
10774       need_lib_prefix=no
10775       need_version=no
10776       shlibpath_overrides_runpath=no
10777       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10778       ;;
10779   esac
10780   ;;
10781
10782 sysv4*MP*)
10783   if test -d /usr/nec ;then
10784     version_type=linux # correct to gnu/linux during the next big refactor
10785     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10786     soname_spec='$libname${shared_ext}.$major'
10787     shlibpath_var=LD_LIBRARY_PATH
10788   fi
10789   ;;
10790
10791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10792   version_type=freebsd-elf
10793   need_lib_prefix=no
10794   need_version=no
10795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10796   soname_spec='${libname}${release}${shared_ext}$major'
10797   shlibpath_var=LD_LIBRARY_PATH
10798   shlibpath_overrides_runpath=yes
10799   hardcode_into_libs=yes
10800   if test "$with_gnu_ld" = yes; then
10801     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10802   else
10803     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10804     case $host_os in
10805       sco3.2v5*)
10806         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10807         ;;
10808     esac
10809   fi
10810   sys_lib_dlsearch_path_spec='/usr/lib'
10811   ;;
10812
10813 tpf*)
10814   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10815   version_type=linux # correct to gnu/linux during the next big refactor
10816   need_lib_prefix=no
10817   need_version=no
10818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819   shlibpath_var=LD_LIBRARY_PATH
10820   shlibpath_overrides_runpath=no
10821   hardcode_into_libs=yes
10822   ;;
10823
10824 uts4*)
10825   version_type=linux # correct to gnu/linux during the next big refactor
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827   soname_spec='${libname}${release}${shared_ext}$major'
10828   shlibpath_var=LD_LIBRARY_PATH
10829   ;;
10830
10831 *)
10832   dynamic_linker=no
10833   ;;
10834 esac
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10836 $as_echo "$dynamic_linker" >&6; }
10837 test "$dynamic_linker" = no && can_build_shared=no
10838
10839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10840 if test "$GCC" = yes; then
10841   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10842 fi
10843
10844 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10845   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10846 fi
10847 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10848   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10849 fi
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10943 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10944 hardcode_action=
10945 if test -n "$hardcode_libdir_flag_spec" ||
10946    test -n "$runpath_var" ||
10947    test "X$hardcode_automatic" = "Xyes" ; then
10948
10949   # We can hardcode non-existent directories.
10950   if test "$hardcode_direct" != no &&
10951      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10952      # have to relink, otherwise we might link with an installed library
10953      # when we should be linking with a yet-to-be-installed one
10954      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10955      test "$hardcode_minus_L" != no; then
10956     # Linking always hardcodes the temporary library directory.
10957     hardcode_action=relink
10958   else
10959     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10960     hardcode_action=immediate
10961   fi
10962 else
10963   # We cannot hardcode anything, or else we can only hardcode existing
10964   # directories.
10965   hardcode_action=unsupported
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10968 $as_echo "$hardcode_action" >&6; }
10969
10970 if test "$hardcode_action" = relink ||
10971    test "$inherit_rpath" = yes; then
10972   # Fast installation is not supported
10973   enable_fast_install=no
10974 elif test "$shlibpath_overrides_runpath" = yes ||
10975      test "$enable_shared" = no; then
10976   # Fast installation is not necessary
10977   enable_fast_install=needless
10978 fi
10979
10980
10981
10982
10983
10984
10985   if test "x$enable_dlopen" != xyes; then
10986   enable_dlopen=unknown
10987   enable_dlopen_self=unknown
10988   enable_dlopen_self_static=unknown
10989 else
10990   lt_cv_dlopen=no
10991   lt_cv_dlopen_libs=
10992
10993   case $host_os in
10994   beos*)
10995     lt_cv_dlopen="load_add_on"
10996     lt_cv_dlopen_libs=
10997     lt_cv_dlopen_self=yes
10998     ;;
10999
11000   mingw* | pw32* | cegcc*)
11001     lt_cv_dlopen="LoadLibrary"
11002     lt_cv_dlopen_libs=
11003     ;;
11004
11005   cygwin*)
11006     lt_cv_dlopen="dlopen"
11007     lt_cv_dlopen_libs=
11008     ;;
11009
11010   darwin*)
11011   # if libdl is installed we need to link against it
11012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11013 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11014 if ${ac_cv_lib_dl_dlopen+:} false; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   ac_check_lib_save_LIBS=$LIBS
11018 LIBS="-ldl  $LIBS"
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h.  */
11021
11022 /* Override any GCC internal prototype to avoid an error.
11023    Use char because int might match the return type of a GCC
11024    builtin and then its argument prototype would still apply.  */
11025 #ifdef __cplusplus
11026 extern "C"
11027 #endif
11028 char dlopen ();
11029 int
11030 main ()
11031 {
11032 return dlopen ();
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038   ac_cv_lib_dl_dlopen=yes
11039 else
11040   ac_cv_lib_dl_dlopen=no
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext \
11043     conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11047 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11048 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11049   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11050 else
11051
11052     lt_cv_dlopen="dyld"
11053     lt_cv_dlopen_libs=
11054     lt_cv_dlopen_self=yes
11055
11056 fi
11057
11058     ;;
11059
11060   *)
11061     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11062 if test "x$ac_cv_func_shl_load" = xyes; then :
11063   lt_cv_dlopen="shl_load"
11064 else
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11066 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11067 if ${ac_cv_lib_dld_shl_load+:} false; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldld  $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h.  */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076    Use char because int might match the return type of a GCC
11077    builtin and then its argument prototype would still apply.  */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char shl_load ();
11082 int
11083 main ()
11084 {
11085 return shl_load ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091   ac_cv_lib_dld_shl_load=yes
11092 else
11093   ac_cv_lib_dld_shl_load=no
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096     conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11100 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11101 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11102   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11103 else
11104   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11105 if test "x$ac_cv_func_dlopen" = xyes; then :
11106   lt_cv_dlopen="dlopen"
11107 else
11108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11110 if ${ac_cv_lib_dl_dlopen+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-ldl  $LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h.  */
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119    Use char because int might match the return type of a GCC
11120    builtin and then its argument prototype would still apply.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char dlopen ();
11125 int
11126 main ()
11127 {
11128 return dlopen ();
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134   ac_cv_lib_dl_dlopen=yes
11135 else
11136   ac_cv_lib_dl_dlopen=no
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext \
11139     conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11144 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11145   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11146 else
11147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11148 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11149 if ${ac_cv_lib_svld_dlopen+:} false; then :
11150   $as_echo_n "(cached) " >&6
11151 else
11152   ac_check_lib_save_LIBS=$LIBS
11153 LIBS="-lsvld  $LIBS"
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h.  */
11156
11157 /* Override any GCC internal prototype to avoid an error.
11158    Use char because int might match the return type of a GCC
11159    builtin and then its argument prototype would still apply.  */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 char dlopen ();
11164 int
11165 main ()
11166 {
11167 return dlopen ();
11168   ;
11169   return 0;
11170 }
11171 _ACEOF
11172 if ac_fn_c_try_link "$LINENO"; then :
11173   ac_cv_lib_svld_dlopen=yes
11174 else
11175   ac_cv_lib_svld_dlopen=no
11176 fi
11177 rm -f core conftest.err conftest.$ac_objext \
11178     conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11182 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11183 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11184   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11185 else
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11187 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11188 if ${ac_cv_lib_dld_dld_link+:} false; then :
11189   $as_echo_n "(cached) " >&6
11190 else
11191   ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-ldld  $LIBS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h.  */
11195
11196 /* Override any GCC internal prototype to avoid an error.
11197    Use char because int might match the return type of a GCC
11198    builtin and then its argument prototype would still apply.  */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 char dld_link ();
11203 int
11204 main ()
11205 {
11206 return dld_link ();
11207   ;
11208   return 0;
11209 }
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"; then :
11212   ac_cv_lib_dld_dld_link=yes
11213 else
11214   ac_cv_lib_dld_dld_link=no
11215 fi
11216 rm -f core conftest.err conftest.$ac_objext \
11217     conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11221 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11222 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11223   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11224 fi
11225
11226
11227 fi
11228
11229
11230 fi
11231
11232
11233 fi
11234
11235
11236 fi
11237
11238
11239 fi
11240
11241     ;;
11242   esac
11243
11244   if test "x$lt_cv_dlopen" != xno; then
11245     enable_dlopen=yes
11246   else
11247     enable_dlopen=no
11248   fi
11249
11250   case $lt_cv_dlopen in
11251   dlopen)
11252     save_CPPFLAGS="$CPPFLAGS"
11253     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11254
11255     save_LDFLAGS="$LDFLAGS"
11256     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11257
11258     save_LIBS="$LIBS"
11259     LIBS="$lt_cv_dlopen_libs $LIBS"
11260
11261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11262 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11263 if ${lt_cv_dlopen_self+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266           if test "$cross_compiling" = yes; then :
11267   lt_cv_dlopen_self=cross
11268 else
11269   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11270   lt_status=$lt_dlunknown
11271   cat > conftest.$ac_ext <<_LT_EOF
11272 #line $LINENO "configure"
11273 #include "confdefs.h"
11274
11275 #if HAVE_DLFCN_H
11276 #include <dlfcn.h>
11277 #endif
11278
11279 #include <stdio.h>
11280
11281 #ifdef RTLD_GLOBAL
11282 #  define LT_DLGLOBAL           RTLD_GLOBAL
11283 #else
11284 #  ifdef DL_GLOBAL
11285 #    define LT_DLGLOBAL         DL_GLOBAL
11286 #  else
11287 #    define LT_DLGLOBAL         0
11288 #  endif
11289 #endif
11290
11291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11292    find out it does not work in some platform. */
11293 #ifndef LT_DLLAZY_OR_NOW
11294 #  ifdef RTLD_LAZY
11295 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11296 #  else
11297 #    ifdef DL_LAZY
11298 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11299 #    else
11300 #      ifdef RTLD_NOW
11301 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11302 #      else
11303 #        ifdef DL_NOW
11304 #          define LT_DLLAZY_OR_NOW      DL_NOW
11305 #        else
11306 #          define LT_DLLAZY_OR_NOW      0
11307 #        endif
11308 #      endif
11309 #    endif
11310 #  endif
11311 #endif
11312
11313 /* When -fvisbility=hidden is used, assume the code has been annotated
11314    correspondingly for the symbols needed.  */
11315 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11316 int fnord () __attribute__((visibility("default")));
11317 #endif
11318
11319 int fnord () { return 42; }
11320 int main ()
11321 {
11322   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11323   int status = $lt_dlunknown;
11324
11325   if (self)
11326     {
11327       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11328       else
11329         {
11330           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11331           else puts (dlerror ());
11332         }
11333       /* dlclose (self); */
11334     }
11335   else
11336     puts (dlerror ());
11337
11338   return status;
11339 }
11340 _LT_EOF
11341   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11342   (eval $ac_link) 2>&5
11343   ac_status=$?
11344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11345   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11346     (./conftest; exit; ) >&5 2>/dev/null
11347     lt_status=$?
11348     case x$lt_status in
11349       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11350       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11351       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11352     esac
11353   else :
11354     # compilation failed
11355     lt_cv_dlopen_self=no
11356   fi
11357 fi
11358 rm -fr conftest*
11359
11360
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11363 $as_echo "$lt_cv_dlopen_self" >&6; }
11364
11365     if test "x$lt_cv_dlopen_self" = xyes; then
11366       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11367       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11368 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11369 if ${lt_cv_dlopen_self_static+:} false; then :
11370   $as_echo_n "(cached) " >&6
11371 else
11372           if test "$cross_compiling" = yes; then :
11373   lt_cv_dlopen_self_static=cross
11374 else
11375   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11376   lt_status=$lt_dlunknown
11377   cat > conftest.$ac_ext <<_LT_EOF
11378 #line $LINENO "configure"
11379 #include "confdefs.h"
11380
11381 #if HAVE_DLFCN_H
11382 #include <dlfcn.h>
11383 #endif
11384
11385 #include <stdio.h>
11386
11387 #ifdef RTLD_GLOBAL
11388 #  define LT_DLGLOBAL           RTLD_GLOBAL
11389 #else
11390 #  ifdef DL_GLOBAL
11391 #    define LT_DLGLOBAL         DL_GLOBAL
11392 #  else
11393 #    define LT_DLGLOBAL         0
11394 #  endif
11395 #endif
11396
11397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11398    find out it does not work in some platform. */
11399 #ifndef LT_DLLAZY_OR_NOW
11400 #  ifdef RTLD_LAZY
11401 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11402 #  else
11403 #    ifdef DL_LAZY
11404 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11405 #    else
11406 #      ifdef RTLD_NOW
11407 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11408 #      else
11409 #        ifdef DL_NOW
11410 #          define LT_DLLAZY_OR_NOW      DL_NOW
11411 #        else
11412 #          define LT_DLLAZY_OR_NOW      0
11413 #        endif
11414 #      endif
11415 #    endif
11416 #  endif
11417 #endif
11418
11419 /* When -fvisbility=hidden is used, assume the code has been annotated
11420    correspondingly for the symbols needed.  */
11421 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11422 int fnord () __attribute__((visibility("default")));
11423 #endif
11424
11425 int fnord () { return 42; }
11426 int main ()
11427 {
11428   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11429   int status = $lt_dlunknown;
11430
11431   if (self)
11432     {
11433       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11434       else
11435         {
11436           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11437           else puts (dlerror ());
11438         }
11439       /* dlclose (self); */
11440     }
11441   else
11442     puts (dlerror ());
11443
11444   return status;
11445 }
11446 _LT_EOF
11447   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11448   (eval $ac_link) 2>&5
11449   ac_status=$?
11450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11451   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11452     (./conftest; exit; ) >&5 2>/dev/null
11453     lt_status=$?
11454     case x$lt_status in
11455       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11456       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11457       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11458     esac
11459   else :
11460     # compilation failed
11461     lt_cv_dlopen_self_static=no
11462   fi
11463 fi
11464 rm -fr conftest*
11465
11466
11467 fi
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11469 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11470     fi
11471
11472     CPPFLAGS="$save_CPPFLAGS"
11473     LDFLAGS="$save_LDFLAGS"
11474     LIBS="$save_LIBS"
11475     ;;
11476   esac
11477
11478   case $lt_cv_dlopen_self in
11479   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11480   *) enable_dlopen_self=unknown ;;
11481   esac
11482
11483   case $lt_cv_dlopen_self_static in
11484   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11485   *) enable_dlopen_self_static=unknown ;;
11486   esac
11487 fi
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505 striplib=
11506 old_striplib=
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11508 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11509 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11510   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11511   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11513 $as_echo "yes" >&6; }
11514 else
11515 # FIXME - insert some real tests, host_os isn't really good enough
11516   case $host_os in
11517   darwin*)
11518     if test -n "$STRIP" ; then
11519       striplib="$STRIP -x"
11520       old_striplib="$STRIP -S"
11521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11522 $as_echo "yes" >&6; }
11523     else
11524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11526     fi
11527     ;;
11528   *)
11529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11531     ;;
11532   esac
11533 fi
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546   # Report which library types will actually be built
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11548 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11550 $as_echo "$can_build_shared" >&6; }
11551
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11553 $as_echo_n "checking whether to build shared libraries... " >&6; }
11554   test "$can_build_shared" = "no" && enable_shared=no
11555
11556   # On AIX, shared libraries and static libraries use the same namespace, and
11557   # are all built from PIC.
11558   case $host_os in
11559   aix3*)
11560     test "$enable_shared" = yes && enable_static=no
11561     if test -n "$RANLIB"; then
11562       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11563       postinstall_cmds='$RANLIB $lib'
11564     fi
11565     ;;
11566
11567   aix[4-9]*)
11568     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11569       test "$enable_shared" = yes && enable_static=no
11570     fi
11571     ;;
11572   esac
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11574 $as_echo "$enable_shared" >&6; }
11575
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11577 $as_echo_n "checking whether to build static libraries... " >&6; }
11578   # Make sure either enable_shared or enable_static is yes.
11579   test "$enable_shared" = yes || enable_static=yes
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11581 $as_echo "$enable_static" >&6; }
11582
11583
11584
11585
11586 fi
11587 ac_ext=c
11588 ac_cpp='$CPP $CPPFLAGS'
11589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11592
11593 CC="$lt_save_CC"
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609         ac_config_commands="$ac_config_commands libtool"
11610
11611
11612
11613
11614 # Only expand once:
11615
11616
11617
11618 # Check for programs
11619 ac_ext=c
11620 ac_cpp='$CPP $CPPFLAGS'
11621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11624 if test -n "$ac_tool_prefix"; then
11625   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if ${ac_cv_prog_CC+:} false; then :
11630   $as_echo_n "(cached) " >&6
11631 else
11632   if test -n "$CC"; then
11633   ac_cv_prog_CC="$CC" # Let the user override the test.
11634 else
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638   IFS=$as_save_IFS
11639   test -z "$as_dir" && as_dir=.
11640     for ac_exec_ext in '' $ac_executable_extensions; do
11641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11642     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644     break 2
11645   fi
11646 done
11647   done
11648 IFS=$as_save_IFS
11649
11650 fi
11651 fi
11652 CC=$ac_cv_prog_CC
11653 if test -n "$CC"; then
11654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11655 $as_echo "$CC" >&6; }
11656 else
11657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659 fi
11660
11661
11662 fi
11663 if test -z "$ac_cv_prog_CC"; then
11664   ac_ct_CC=$CC
11665   # Extract the first word of "gcc", so it can be a program name with args.
11666 set dummy gcc; ac_word=$2
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11670   $as_echo_n "(cached) " >&6
11671 else
11672   if test -n "$ac_ct_CC"; then
11673   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11674 else
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678   IFS=$as_save_IFS
11679   test -z "$as_dir" && as_dir=.
11680     for ac_exec_ext in '' $ac_executable_extensions; do
11681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682     ac_cv_prog_ac_ct_CC="gcc"
11683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684     break 2
11685   fi
11686 done
11687   done
11688 IFS=$as_save_IFS
11689
11690 fi
11691 fi
11692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11693 if test -n "$ac_ct_CC"; then
11694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11695 $as_echo "$ac_ct_CC" >&6; }
11696 else
11697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11699 fi
11700
11701   if test "x$ac_ct_CC" = x; then
11702     CC=""
11703   else
11704     case $cross_compiling:$ac_tool_warned in
11705 yes:)
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11708 ac_tool_warned=yes ;;
11709 esac
11710     CC=$ac_ct_CC
11711   fi
11712 else
11713   CC="$ac_cv_prog_CC"
11714 fi
11715
11716 if test -z "$CC"; then
11717           if test -n "$ac_tool_prefix"; then
11718     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11719 set dummy ${ac_tool_prefix}cc; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_prog_CC+:} false; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   if test -n "$CC"; then
11726   ac_cv_prog_CC="$CC" # Let the user override the test.
11727 else
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11730 do
11731   IFS=$as_save_IFS
11732   test -z "$as_dir" && as_dir=.
11733     for ac_exec_ext in '' $ac_executable_extensions; do
11734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735     ac_cv_prog_CC="${ac_tool_prefix}cc"
11736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737     break 2
11738   fi
11739 done
11740   done
11741 IFS=$as_save_IFS
11742
11743 fi
11744 fi
11745 CC=$ac_cv_prog_CC
11746 if test -n "$CC"; then
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11748 $as_echo "$CC" >&6; }
11749 else
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 fi
11753
11754
11755   fi
11756 fi
11757 if test -z "$CC"; then
11758   # Extract the first word of "cc", so it can be a program name with args.
11759 set dummy cc; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 $as_echo_n "checking for $ac_word... " >&6; }
11762 if ${ac_cv_prog_CC+:} false; then :
11763   $as_echo_n "(cached) " >&6
11764 else
11765   if test -n "$CC"; then
11766   ac_cv_prog_CC="$CC" # Let the user override the test.
11767 else
11768   ac_prog_rejected=no
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11771 do
11772   IFS=$as_save_IFS
11773   test -z "$as_dir" && as_dir=.
11774     for ac_exec_ext in '' $ac_executable_extensions; do
11775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11776     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11777        ac_prog_rejected=yes
11778        continue
11779      fi
11780     ac_cv_prog_CC="cc"
11781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782     break 2
11783   fi
11784 done
11785   done
11786 IFS=$as_save_IFS
11787
11788 if test $ac_prog_rejected = yes; then
11789   # We found a bogon in the path, so make sure we never use it.
11790   set dummy $ac_cv_prog_CC
11791   shift
11792   if test $# != 0; then
11793     # We chose a different compiler from the bogus one.
11794     # However, it has the same basename, so the bogon will be chosen
11795     # first if we set CC to just the basename; use the full file name.
11796     shift
11797     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11798   fi
11799 fi
11800 fi
11801 fi
11802 CC=$ac_cv_prog_CC
11803 if test -n "$CC"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11805 $as_echo "$CC" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810
11811
11812 fi
11813 if test -z "$CC"; then
11814   if test -n "$ac_tool_prefix"; then
11815   for ac_prog in cl.exe
11816   do
11817     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if ${ac_cv_prog_CC+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   if test -n "$CC"; then
11825   ac_cv_prog_CC="$CC" # Let the user override the test.
11826 else
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11829 do
11830   IFS=$as_save_IFS
11831   test -z "$as_dir" && as_dir=.
11832     for ac_exec_ext in '' $ac_executable_extensions; do
11833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836     break 2
11837   fi
11838 done
11839   done
11840 IFS=$as_save_IFS
11841
11842 fi
11843 fi
11844 CC=$ac_cv_prog_CC
11845 if test -n "$CC"; then
11846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11847 $as_echo "$CC" >&6; }
11848 else
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11851 fi
11852
11853
11854     test -n "$CC" && break
11855   done
11856 fi
11857 if test -z "$CC"; then
11858   ac_ct_CC=$CC
11859   for ac_prog in cl.exe
11860 do
11861   # Extract the first word of "$ac_prog", so it can be a program name with args.
11862 set dummy $ac_prog; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11866   $as_echo_n "(cached) " >&6
11867 else
11868   if test -n "$ac_ct_CC"; then
11869   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11870 else
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_exec_ext in '' $ac_executable_extensions; do
11877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11878     ac_cv_prog_ac_ct_CC="$ac_prog"
11879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880     break 2
11881   fi
11882 done
11883   done
11884 IFS=$as_save_IFS
11885
11886 fi
11887 fi
11888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11889 if test -n "$ac_ct_CC"; then
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11891 $as_echo "$ac_ct_CC" >&6; }
11892 else
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 fi
11896
11897
11898   test -n "$ac_ct_CC" && break
11899 done
11900
11901   if test "x$ac_ct_CC" = x; then
11902     CC=""
11903   else
11904     case $cross_compiling:$ac_tool_warned in
11905 yes:)
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11908 ac_tool_warned=yes ;;
11909 esac
11910     CC=$ac_ct_CC
11911   fi
11912 fi
11913
11914 fi
11915
11916
11917 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11919 as_fn_error $? "no acceptable C compiler found in \$PATH
11920 See \`config.log' for more details" "$LINENO" 5; }
11921
11922 # Provide some information about the compiler.
11923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11924 set X $ac_compile
11925 ac_compiler=$2
11926 for ac_option in --version -v -V -qversion; do
11927   { { ac_try="$ac_compiler $ac_option >&5"
11928 case "(($ac_try" in
11929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930   *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11933 $as_echo "$ac_try_echo"; } >&5
11934   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11935   ac_status=$?
11936   if test -s conftest.err; then
11937     sed '10a\
11938 ... rest of stderr output deleted ...
11939          10q' conftest.err >conftest.er1
11940     cat conftest.er1 >&5
11941   fi
11942   rm -f conftest.er1 conftest.err
11943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11944   test $ac_status = 0; }
11945 done
11946
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11948 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11949 if ${ac_cv_c_compiler_gnu+:} false; then :
11950   $as_echo_n "(cached) " >&6
11951 else
11952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h.  */
11954
11955 int
11956 main ()
11957 {
11958 #ifndef __GNUC__
11959        choke me
11960 #endif
11961
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967   ac_compiler_gnu=yes
11968 else
11969   ac_compiler_gnu=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11976 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11977 if test $ac_compiler_gnu = yes; then
11978   GCC=yes
11979 else
11980   GCC=
11981 fi
11982 ac_test_CFLAGS=${CFLAGS+set}
11983 ac_save_CFLAGS=$CFLAGS
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11985 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11986 if ${ac_cv_prog_cc_g+:} false; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   ac_save_c_werror_flag=$ac_c_werror_flag
11990    ac_c_werror_flag=yes
11991    ac_cv_prog_cc_g=no
11992    CFLAGS="-g"
11993    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h.  */
11995
11996 int
11997 main ()
11998 {
11999
12000   ;
12001   return 0;
12002 }
12003 _ACEOF
12004 if ac_fn_c_try_compile "$LINENO"; then :
12005   ac_cv_prog_cc_g=yes
12006 else
12007   CFLAGS=""
12008       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h.  */
12010
12011 int
12012 main ()
12013 {
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020
12021 else
12022   ac_c_werror_flag=$ac_save_c_werror_flag
12023          CFLAGS="-g"
12024          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026
12027 int
12028 main ()
12029 {
12030
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036   ac_cv_prog_cc_g=yes
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043    ac_c_werror_flag=$ac_save_c_werror_flag
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12046 $as_echo "$ac_cv_prog_cc_g" >&6; }
12047 if test "$ac_test_CFLAGS" = set; then
12048   CFLAGS=$ac_save_CFLAGS
12049 elif test $ac_cv_prog_cc_g = yes; then
12050   if test "$GCC" = yes; then
12051     CFLAGS="-g -O2"
12052   else
12053     CFLAGS="-g"
12054   fi
12055 else
12056   if test "$GCC" = yes; then
12057     CFLAGS="-O2"
12058   else
12059     CFLAGS=
12060   fi
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12064 if ${ac_cv_prog_cc_c89+:} false; then :
12065   $as_echo_n "(cached) " >&6
12066 else
12067   ac_cv_prog_cc_c89=no
12068 ac_save_CC=$CC
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h.  */
12071 #include <stdarg.h>
12072 #include <stdio.h>
12073 #include <sys/types.h>
12074 #include <sys/stat.h>
12075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12076 struct buf { int x; };
12077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12078 static char *e (p, i)
12079      char **p;
12080      int i;
12081 {
12082   return p[i];
12083 }
12084 static char *f (char * (*g) (char **, int), char **p, ...)
12085 {
12086   char *s;
12087   va_list v;
12088   va_start (v,p);
12089   s = g (p, va_arg (v,int));
12090   va_end (v);
12091   return s;
12092 }
12093
12094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12095    function prototypes and stuff, but not '\xHH' hex character constants.
12096    These don't provoke an error unfortunately, instead are silently treated
12097    as 'x'.  The following induces an error, until -std is added to get
12098    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12099    array size at least.  It's necessary to write '\x00'==0 to get something
12100    that's true only with -std.  */
12101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12102
12103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12104    inside strings and character constants.  */
12105 #define FOO(x) 'x'
12106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12107
12108 int test (int i, double x);
12109 struct s1 {int (*f) (int a);};
12110 struct s2 {int (*f) (double a);};
12111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12112 int argc;
12113 char **argv;
12114 int
12115 main ()
12116 {
12117 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12123         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12124 do
12125   CC="$ac_save_CC $ac_arg"
12126   if ac_fn_c_try_compile "$LINENO"; then :
12127   ac_cv_prog_cc_c89=$ac_arg
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext
12130   test "x$ac_cv_prog_cc_c89" != "xno" && break
12131 done
12132 rm -f conftest.$ac_ext
12133 CC=$ac_save_CC
12134
12135 fi
12136 # AC_CACHE_VAL
12137 case "x$ac_cv_prog_cc_c89" in
12138   x)
12139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12140 $as_echo "none needed" >&6; } ;;
12141   xno)
12142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12143 $as_echo "unsupported" >&6; } ;;
12144   *)
12145     CC="$CC $ac_cv_prog_cc_c89"
12146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12147 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12148 esac
12149 if test "x$ac_cv_prog_cc_c89" != xno; then :
12150
12151 fi
12152
12153 ac_ext=c
12154 ac_cpp='$CPP $CPPFLAGS'
12155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158
12159 depcc="$CC"   am_compiler_list=
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12162 $as_echo_n "checking dependency style of $depcc... " >&6; }
12163 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12167   # We make a subdir and do the tests there.  Otherwise we can end up
12168   # making bogus files that we don't know about and never remove.  For
12169   # instance it was reported that on HP-UX the gcc test will end up
12170   # making a dummy file named `D' -- because `-MD' means `put the output
12171   # in D'.
12172   rm -rf conftest.dir
12173   mkdir conftest.dir
12174   # Copy depcomp to subdir because otherwise we won't find it if we're
12175   # using a relative directory.
12176   cp "$am_depcomp" conftest.dir
12177   cd conftest.dir
12178   # We will build objects and dependencies in a subdirectory because
12179   # it helps to detect inapplicable dependency modes.  For instance
12180   # both Tru64's cc and ICC support -MD to output dependencies as a
12181   # side effect of compilation, but ICC will put the dependencies in
12182   # the current directory while Tru64 will put them in the object
12183   # directory.
12184   mkdir sub
12185
12186   am_cv_CC_dependencies_compiler_type=none
12187   if test "$am_compiler_list" = ""; then
12188      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12189   fi
12190   am__universal=false
12191   case " $depcc " in #(
12192      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12193      esac
12194
12195   for depmode in $am_compiler_list; do
12196     # Setup a source with many dependencies, because some compilers
12197     # like to wrap large dependency lists on column 80 (with \), and
12198     # we should not choose a depcomp mode which is confused by this.
12199     #
12200     # We need to recreate these files for each test, as the compiler may
12201     # overwrite some of them when testing with obscure command lines.
12202     # This happens at least with the AIX C compiler.
12203     : > sub/conftest.c
12204     for i in 1 2 3 4 5 6; do
12205       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12206       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12207       # Solaris 8's {/usr,}/bin/sh.
12208       touch sub/conftst$i.h
12209     done
12210     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12211
12212     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12213     # mode.  It turns out that the SunPro C++ compiler does not properly
12214     # handle `-M -o', and we need to detect this.  Also, some Intel
12215     # versions had trouble with output in subdirs
12216     am__obj=sub/conftest.${OBJEXT-o}
12217     am__minus_obj="-o $am__obj"
12218     case $depmode in
12219     gcc)
12220       # This depmode causes a compiler race in universal mode.
12221       test "$am__universal" = false || continue
12222       ;;
12223     nosideeffect)
12224       # after this tag, mechanisms are not by side-effect, so they'll
12225       # only be used when explicitly requested
12226       if test "x$enable_dependency_tracking" = xyes; then
12227         continue
12228       else
12229         break
12230       fi
12231       ;;
12232     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12233       # This compiler won't grok `-c -o', but also, the minuso test has
12234       # not run yet.  These depmodes are late enough in the game, and
12235       # so weak that their functioning should not be impacted.
12236       am__obj=conftest.${OBJEXT-o}
12237       am__minus_obj=
12238       ;;
12239     none) break ;;
12240     esac
12241     if depmode=$depmode \
12242        source=sub/conftest.c object=$am__obj \
12243        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12244        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12245          >/dev/null 2>conftest.err &&
12246        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12247        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12248        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12249        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12250       # icc doesn't choke on unknown options, it will just issue warnings
12251       # or remarks (even with -Werror).  So we grep stderr for any message
12252       # that says an option was ignored or not supported.
12253       # When given -MP, icc 7.0 and 7.1 complain thusly:
12254       #   icc: Command line warning: ignoring option '-M'; no argument required
12255       # The diagnosis changed in icc 8.0:
12256       #   icc: Command line remark: option '-MP' not supported
12257       if (grep 'ignoring option' conftest.err ||
12258           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12259         am_cv_CC_dependencies_compiler_type=$depmode
12260         break
12261       fi
12262     fi
12263   done
12264
12265   cd ..
12266   rm -rf conftest.dir
12267 else
12268   am_cv_CC_dependencies_compiler_type=none
12269 fi
12270
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12275
12276  if
12277   test "x$enable_dependency_tracking" != xno \
12278   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12279   am__fastdepCC_TRUE=
12280   am__fastdepCC_FALSE='#'
12281 else
12282   am__fastdepCC_TRUE='#'
12283   am__fastdepCC_FALSE=
12284 fi
12285
12286
12287 if test "x$CC" != xcc; then
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12289 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12290 else
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12292 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12293 fi
12294 set dummy $CC; ac_cc=`$as_echo "$2" |
12295                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12296 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h.  */
12301
12302 int
12303 main ()
12304 {
12305
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 # Make sure it works both with $CC and with simple cc.
12311 # We do the test twice because some compilers refuse to overwrite an
12312 # existing .o file with -o, though they will create one.
12313 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12314 rm -f conftest2.*
12315 if { { case "(($ac_try" in
12316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317   *) ac_try_echo=$ac_try;;
12318 esac
12319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12320 $as_echo "$ac_try_echo"; } >&5
12321   (eval "$ac_try") 2>&5
12322   ac_status=$?
12323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324   test $ac_status = 0; } &&
12325    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12330 $as_echo "$ac_try_echo"; } >&5
12331   (eval "$ac_try") 2>&5
12332   ac_status=$?
12333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334   test $ac_status = 0; };
12335 then
12336   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12337   if test "x$CC" != xcc; then
12338     # Test first that cc exists at all.
12339     if { ac_try='cc -c conftest.$ac_ext >&5'
12340   { { case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12345 $as_echo "$ac_try_echo"; } >&5
12346   (eval "$ac_try") 2>&5
12347   ac_status=$?
12348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12349   test $ac_status = 0; }; }; then
12350       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12351       rm -f conftest2.*
12352       if { { case "(($ac_try" in
12353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354   *) ac_try_echo=$ac_try;;
12355 esac
12356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12357 $as_echo "$ac_try_echo"; } >&5
12358   (eval "$ac_try") 2>&5
12359   ac_status=$?
12360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361   test $ac_status = 0; } &&
12362          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364   *) ac_try_echo=$ac_try;;
12365 esac
12366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12367 $as_echo "$ac_try_echo"; } >&5
12368   (eval "$ac_try") 2>&5
12369   ac_status=$?
12370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12371   test $ac_status = 0; };
12372       then
12373         # cc works too.
12374         :
12375       else
12376         # cc exists but doesn't like -o.
12377         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12378       fi
12379     fi
12380   fi
12381 else
12382   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12383 fi
12384 rm -f core conftest*
12385
12386 fi
12387 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12390 else
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393
12394 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12395
12396 fi
12397
12398 # FIXME: we rely on the cache variable name because
12399 # there is no other way.
12400 set dummy $CC
12401 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12402 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12403 if test "$am_t" != yes; then
12404    # Losing compiler, so override with the script.
12405    # FIXME: It is wrong to rewrite CC.
12406    # But if we don't then we get into trouble of one sort or another.
12407    # A longer-term fix would be to have automake use am__CC in this case,
12408    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12409    CC="$am_aux_dir/compile $CC"
12410 fi
12411
12412
12413 ac_ext=cpp
12414 ac_cpp='$CXXCPP $CPPFLAGS'
12415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12418 if test -z "$CXX"; then
12419   if test -n "$CCC"; then
12420     CXX=$CCC
12421   else
12422     if test -n "$ac_tool_prefix"; then
12423   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12424   do
12425     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_prog_CXX+:} false; then :
12430   $as_echo_n "(cached) " >&6
12431 else
12432   if test -n "$CXX"; then
12433   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12434 else
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12437 do
12438   IFS=$as_save_IFS
12439   test -z "$as_dir" && as_dir=.
12440     for ac_exec_ext in '' $ac_executable_extensions; do
12441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12442     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444     break 2
12445   fi
12446 done
12447   done
12448 IFS=$as_save_IFS
12449
12450 fi
12451 fi
12452 CXX=$ac_cv_prog_CXX
12453 if test -n "$CXX"; then
12454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12455 $as_echo "$CXX" >&6; }
12456 else
12457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460
12461
12462     test -n "$CXX" && break
12463   done
12464 fi
12465 if test -z "$CXX"; then
12466   ac_ct_CXX=$CXX
12467   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12468 do
12469   # Extract the first word of "$ac_prog", so it can be a program name with args.
12470 set dummy $ac_prog; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   if test -n "$ac_ct_CXX"; then
12477   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12478 else
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12481 do
12482   IFS=$as_save_IFS
12483   test -z "$as_dir" && as_dir=.
12484     for ac_exec_ext in '' $ac_executable_extensions; do
12485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486     ac_cv_prog_ac_ct_CXX="$ac_prog"
12487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488     break 2
12489   fi
12490 done
12491   done
12492 IFS=$as_save_IFS
12493
12494 fi
12495 fi
12496 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12497 if test -n "$ac_ct_CXX"; then
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12499 $as_echo "$ac_ct_CXX" >&6; }
12500 else
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 fi
12504
12505
12506   test -n "$ac_ct_CXX" && break
12507 done
12508
12509   if test "x$ac_ct_CXX" = x; then
12510     CXX="g++"
12511   else
12512     case $cross_compiling:$ac_tool_warned in
12513 yes:)
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12516 ac_tool_warned=yes ;;
12517 esac
12518     CXX=$ac_ct_CXX
12519   fi
12520 fi
12521
12522   fi
12523 fi
12524 # Provide some information about the compiler.
12525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12526 set X $ac_compile
12527 ac_compiler=$2
12528 for ac_option in --version -v -V -qversion; do
12529   { { ac_try="$ac_compiler $ac_option >&5"
12530 case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12535 $as_echo "$ac_try_echo"; } >&5
12536   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12537   ac_status=$?
12538   if test -s conftest.err; then
12539     sed '10a\
12540 ... rest of stderr output deleted ...
12541          10q' conftest.err >conftest.er1
12542     cat conftest.er1 >&5
12543   fi
12544   rm -f conftest.er1 conftest.err
12545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546   test $ac_status = 0; }
12547 done
12548
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12550 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12551 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h.  */
12556
12557 int
12558 main ()
12559 {
12560 #ifndef __GNUC__
12561        choke me
12562 #endif
12563
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 if ac_fn_cxx_try_compile "$LINENO"; then :
12569   ac_compiler_gnu=yes
12570 else
12571   ac_compiler_gnu=no
12572 fi
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12575
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12578 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12579 if test $ac_compiler_gnu = yes; then
12580   GXX=yes
12581 else
12582   GXX=
12583 fi
12584 ac_test_CXXFLAGS=${CXXFLAGS+set}
12585 ac_save_CXXFLAGS=$CXXFLAGS
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12587 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12588 if ${ac_cv_prog_cxx_g+:} false; then :
12589   $as_echo_n "(cached) " >&6
12590 else
12591   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12592    ac_cxx_werror_flag=yes
12593    ac_cv_prog_cxx_g=no
12594    CXXFLAGS="-g"
12595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h.  */
12597
12598 int
12599 main ()
12600 {
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_cxx_try_compile "$LINENO"; then :
12607   ac_cv_prog_cxx_g=yes
12608 else
12609   CXXFLAGS=""
12610       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h.  */
12612
12613 int
12614 main ()
12615 {
12616
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 if ac_fn_cxx_try_compile "$LINENO"; then :
12622
12623 else
12624   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12625          CXXFLAGS="-g"
12626          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h.  */
12628
12629 int
12630 main ()
12631 {
12632
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_cxx_try_compile "$LINENO"; then :
12638   ac_cv_prog_cxx_g=yes
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 fi
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12648 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12649 if test "$ac_test_CXXFLAGS" = set; then
12650   CXXFLAGS=$ac_save_CXXFLAGS
12651 elif test $ac_cv_prog_cxx_g = yes; then
12652   if test "$GXX" = yes; then
12653     CXXFLAGS="-g -O2"
12654   else
12655     CXXFLAGS="-g"
12656   fi
12657 else
12658   if test "$GXX" = yes; then
12659     CXXFLAGS="-O2"
12660   else
12661     CXXFLAGS=
12662   fi
12663 fi
12664 ac_ext=c
12665 ac_cpp='$CPP $CPPFLAGS'
12666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12669
12670 depcc="$CXX"  am_compiler_list=
12671
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12673 $as_echo_n "checking dependency style of $depcc... " >&6; }
12674 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12675   $as_echo_n "(cached) " >&6
12676 else
12677   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12678   # We make a subdir and do the tests there.  Otherwise we can end up
12679   # making bogus files that we don't know about and never remove.  For
12680   # instance it was reported that on HP-UX the gcc test will end up
12681   # making a dummy file named `D' -- because `-MD' means `put the output
12682   # in D'.
12683   rm -rf conftest.dir
12684   mkdir conftest.dir
12685   # Copy depcomp to subdir because otherwise we won't find it if we're
12686   # using a relative directory.
12687   cp "$am_depcomp" conftest.dir
12688   cd conftest.dir
12689   # We will build objects and dependencies in a subdirectory because
12690   # it helps to detect inapplicable dependency modes.  For instance
12691   # both Tru64's cc and ICC support -MD to output dependencies as a
12692   # side effect of compilation, but ICC will put the dependencies in
12693   # the current directory while Tru64 will put them in the object
12694   # directory.
12695   mkdir sub
12696
12697   am_cv_CXX_dependencies_compiler_type=none
12698   if test "$am_compiler_list" = ""; then
12699      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12700   fi
12701   am__universal=false
12702   case " $depcc " in #(
12703      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12704      esac
12705
12706   for depmode in $am_compiler_list; do
12707     # Setup a source with many dependencies, because some compilers
12708     # like to wrap large dependency lists on column 80 (with \), and
12709     # we should not choose a depcomp mode which is confused by this.
12710     #
12711     # We need to recreate these files for each test, as the compiler may
12712     # overwrite some of them when testing with obscure command lines.
12713     # This happens at least with the AIX C compiler.
12714     : > sub/conftest.c
12715     for i in 1 2 3 4 5 6; do
12716       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12717       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12718       # Solaris 8's {/usr,}/bin/sh.
12719       touch sub/conftst$i.h
12720     done
12721     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12722
12723     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12724     # mode.  It turns out that the SunPro C++ compiler does not properly
12725     # handle `-M -o', and we need to detect this.  Also, some Intel
12726     # versions had trouble with output in subdirs
12727     am__obj=sub/conftest.${OBJEXT-o}
12728     am__minus_obj="-o $am__obj"
12729     case $depmode in
12730     gcc)
12731       # This depmode causes a compiler race in universal mode.
12732       test "$am__universal" = false || continue
12733       ;;
12734     nosideeffect)
12735       # after this tag, mechanisms are not by side-effect, so they'll
12736       # only be used when explicitly requested
12737       if test "x$enable_dependency_tracking" = xyes; then
12738         continue
12739       else
12740         break
12741       fi
12742       ;;
12743     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12744       # This compiler won't grok `-c -o', but also, the minuso test has
12745       # not run yet.  These depmodes are late enough in the game, and
12746       # so weak that their functioning should not be impacted.
12747       am__obj=conftest.${OBJEXT-o}
12748       am__minus_obj=
12749       ;;
12750     none) break ;;
12751     esac
12752     if depmode=$depmode \
12753        source=sub/conftest.c object=$am__obj \
12754        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12755        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12756          >/dev/null 2>conftest.err &&
12757        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12758        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12759        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12760        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12761       # icc doesn't choke on unknown options, it will just issue warnings
12762       # or remarks (even with -Werror).  So we grep stderr for any message
12763       # that says an option was ignored or not supported.
12764       # When given -MP, icc 7.0 and 7.1 complain thusly:
12765       #   icc: Command line warning: ignoring option '-M'; no argument required
12766       # The diagnosis changed in icc 8.0:
12767       #   icc: Command line remark: option '-MP' not supported
12768       if (grep 'ignoring option' conftest.err ||
12769           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12770         am_cv_CXX_dependencies_compiler_type=$depmode
12771         break
12772       fi
12773     fi
12774   done
12775
12776   cd ..
12777   rm -rf conftest.dir
12778 else
12779   am_cv_CXX_dependencies_compiler_type=none
12780 fi
12781
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12784 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12785 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12786
12787  if
12788   test "x$enable_dependency_tracking" != xno \
12789   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12790   am__fastdepCXX_TRUE=
12791   am__fastdepCXX_FALSE='#'
12792 else
12793   am__fastdepCXX_TRUE='#'
12794   am__fastdepCXX_FALSE=
12795 fi
12796
12797
12798
12799
12800 func_stripname_cnf ()
12801 {
12802   case ${2} in
12803   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12804   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12805   esac
12806 } # func_stripname_cnf
12807
12808       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12809     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12810     (test "X$CXX" != "Xg++"))) ; then
12811   ac_ext=cpp
12812 ac_cpp='$CXXCPP $CPPFLAGS'
12813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12817 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12818 if test -z "$CXXCPP"; then
12819   if ${ac_cv_prog_CXXCPP+:} false; then :
12820   $as_echo_n "(cached) " >&6
12821 else
12822       # Double quotes because CXXCPP needs to be expanded
12823     for CXXCPP in "$CXX -E" "/lib/cpp"
12824     do
12825       ac_preproc_ok=false
12826 for ac_cxx_preproc_warn_flag in '' yes
12827 do
12828   # Use a header file that comes with gcc, so configuring glibc
12829   # with a fresh cross-compiler works.
12830   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12831   # <limits.h> exists even on freestanding compilers.
12832   # On the NeXT, cc -E runs the code through the compiler's parser,
12833   # not just through cpp. "Syntax error" is here to catch this case.
12834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h.  */
12836 #ifdef __STDC__
12837 # include <limits.h>
12838 #else
12839 # include <assert.h>
12840 #endif
12841                      Syntax error
12842 _ACEOF
12843 if ac_fn_cxx_try_cpp "$LINENO"; then :
12844
12845 else
12846   # Broken: fails on valid input.
12847 continue
12848 fi
12849 rm -f conftest.err conftest.i conftest.$ac_ext
12850
12851   # OK, works on sane cases.  Now check whether nonexistent headers
12852   # can be detected and how.
12853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h.  */
12855 #include <ac_nonexistent.h>
12856 _ACEOF
12857 if ac_fn_cxx_try_cpp "$LINENO"; then :
12858   # Broken: success on invalid input.
12859 continue
12860 else
12861   # Passes both tests.
12862 ac_preproc_ok=:
12863 break
12864 fi
12865 rm -f conftest.err conftest.i conftest.$ac_ext
12866
12867 done
12868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12869 rm -f conftest.i conftest.err conftest.$ac_ext
12870 if $ac_preproc_ok; then :
12871   break
12872 fi
12873
12874     done
12875     ac_cv_prog_CXXCPP=$CXXCPP
12876
12877 fi
12878   CXXCPP=$ac_cv_prog_CXXCPP
12879 else
12880   ac_cv_prog_CXXCPP=$CXXCPP
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12883 $as_echo "$CXXCPP" >&6; }
12884 ac_preproc_ok=false
12885 for ac_cxx_preproc_warn_flag in '' yes
12886 do
12887   # Use a header file that comes with gcc, so configuring glibc
12888   # with a fresh cross-compiler works.
12889   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12890   # <limits.h> exists even on freestanding compilers.
12891   # On the NeXT, cc -E runs the code through the compiler's parser,
12892   # not just through cpp. "Syntax error" is here to catch this case.
12893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h.  */
12895 #ifdef __STDC__
12896 # include <limits.h>
12897 #else
12898 # include <assert.h>
12899 #endif
12900                      Syntax error
12901 _ACEOF
12902 if ac_fn_cxx_try_cpp "$LINENO"; then :
12903
12904 else
12905   # Broken: fails on valid input.
12906 continue
12907 fi
12908 rm -f conftest.err conftest.i conftest.$ac_ext
12909
12910   # OK, works on sane cases.  Now check whether nonexistent headers
12911   # can be detected and how.
12912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h.  */
12914 #include <ac_nonexistent.h>
12915 _ACEOF
12916 if ac_fn_cxx_try_cpp "$LINENO"; then :
12917   # Broken: success on invalid input.
12918 continue
12919 else
12920   # Passes both tests.
12921 ac_preproc_ok=:
12922 break
12923 fi
12924 rm -f conftest.err conftest.i conftest.$ac_ext
12925
12926 done
12927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12928 rm -f conftest.i conftest.err conftest.$ac_ext
12929 if $ac_preproc_ok; then :
12930
12931 else
12932   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12934 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12935 See \`config.log' for more details" "$LINENO" 5; }
12936 fi
12937
12938 ac_ext=c
12939 ac_cpp='$CPP $CPPFLAGS'
12940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
12944 else
12945   _lt_caught_CXX_error=yes
12946 fi
12947
12948 ac_ext=cpp
12949 ac_cpp='$CXXCPP $CPPFLAGS'
12950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12953
12954 archive_cmds_need_lc_CXX=no
12955 allow_undefined_flag_CXX=
12956 always_export_symbols_CXX=no
12957 archive_expsym_cmds_CXX=
12958 compiler_needs_object_CXX=no
12959 export_dynamic_flag_spec_CXX=
12960 hardcode_direct_CXX=no
12961 hardcode_direct_absolute_CXX=no
12962 hardcode_libdir_flag_spec_CXX=
12963 hardcode_libdir_separator_CXX=
12964 hardcode_minus_L_CXX=no
12965 hardcode_shlibpath_var_CXX=unsupported
12966 hardcode_automatic_CXX=no
12967 inherit_rpath_CXX=no
12968 module_cmds_CXX=
12969 module_expsym_cmds_CXX=
12970 link_all_deplibs_CXX=unknown
12971 old_archive_cmds_CXX=$old_archive_cmds
12972 reload_flag_CXX=$reload_flag
12973 reload_cmds_CXX=$reload_cmds
12974 no_undefined_flag_CXX=
12975 whole_archive_flag_spec_CXX=
12976 enable_shared_with_static_runtimes_CXX=no
12977
12978 # Source file extension for C++ test sources.
12979 ac_ext=cpp
12980
12981 # Object file extension for compiled C++ test sources.
12982 objext=o
12983 objext_CXX=$objext
12984
12985 # No sense in running all these tests if we already determined that
12986 # the CXX compiler isn't working.  Some variables (like enable_shared)
12987 # are currently assumed to apply to all compilers on this platform,
12988 # and will be corrupted by setting them based on a non-working compiler.
12989 if test "$_lt_caught_CXX_error" != yes; then
12990   # Code to be used in simple compile tests
12991   lt_simple_compile_test_code="int some_variable = 0;"
12992
12993   # Code to be used in simple link tests
12994   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12995
12996   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12997
12998
12999
13000
13001
13002
13003 # If no C compiler was specified, use CC.
13004 LTCC=${LTCC-"$CC"}
13005
13006 # If no C compiler flags were specified, use CFLAGS.
13007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13008
13009 # Allow CC to be a program name with arguments.
13010 compiler=$CC
13011
13012
13013   # save warnings/boilerplate of simple test code
13014   ac_outfile=conftest.$ac_objext
13015 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13017 _lt_compiler_boilerplate=`cat conftest.err`
13018 $RM conftest*
13019
13020   ac_outfile=conftest.$ac_objext
13021 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13023 _lt_linker_boilerplate=`cat conftest.err`
13024 $RM -r conftest*
13025
13026
13027   # Allow CC to be a program name with arguments.
13028   lt_save_CC=$CC
13029   lt_save_CFLAGS=$CFLAGS
13030   lt_save_LD=$LD
13031   lt_save_GCC=$GCC
13032   GCC=$GXX
13033   lt_save_with_gnu_ld=$with_gnu_ld
13034   lt_save_path_LD=$lt_cv_path_LD
13035   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13036     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13037   else
13038     $as_unset lt_cv_prog_gnu_ld
13039   fi
13040   if test -n "${lt_cv_path_LDCXX+set}"; then
13041     lt_cv_path_LD=$lt_cv_path_LDCXX
13042   else
13043     $as_unset lt_cv_path_LD
13044   fi
13045   test -z "${LDCXX+set}" || LD=$LDCXX
13046   CC=${CXX-"c++"}
13047   CFLAGS=$CXXFLAGS
13048   compiler=$CC
13049   compiler_CXX=$CC
13050   for cc_temp in $compiler""; do
13051   case $cc_temp in
13052     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13053     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13054     \-*) ;;
13055     *) break;;
13056   esac
13057 done
13058 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13059
13060
13061   if test -n "$compiler"; then
13062     # We don't want -fno-exception when compiling C++ code, so set the
13063     # no_builtin_flag separately
13064     if test "$GXX" = yes; then
13065       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13066     else
13067       lt_prog_compiler_no_builtin_flag_CXX=
13068     fi
13069
13070     if test "$GXX" = yes; then
13071       # Set up default GNU C++ configuration
13072
13073
13074
13075 # Check whether --with-gnu-ld was given.
13076 if test "${with_gnu_ld+set}" = set; then :
13077   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13078 else
13079   with_gnu_ld=no
13080 fi
13081
13082 ac_prog=ld
13083 if test "$GCC" = yes; then
13084   # Check if gcc -print-prog-name=ld gives a path.
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13086 $as_echo_n "checking for ld used by $CC... " >&6; }
13087   case $host in
13088   *-*-mingw*)
13089     # gcc leaves a trailing carriage return which upsets mingw
13090     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13091   *)
13092     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13093   esac
13094   case $ac_prog in
13095     # Accept absolute paths.
13096     [\\/]* | ?:[\\/]*)
13097       re_direlt='/[^/][^/]*/\.\./'
13098       # Canonicalize the pathname of ld
13099       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13100       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13101         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13102       done
13103       test -z "$LD" && LD="$ac_prog"
13104       ;;
13105   "")
13106     # If it fails, then pretend we aren't using GCC.
13107     ac_prog=ld
13108     ;;
13109   *)
13110     # If it is relative, then search for the first ld in PATH.
13111     with_gnu_ld=unknown
13112     ;;
13113   esac
13114 elif test "$with_gnu_ld" = yes; then
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13116 $as_echo_n "checking for GNU ld... " >&6; }
13117 else
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13119 $as_echo_n "checking for non-GNU ld... " >&6; }
13120 fi
13121 if ${lt_cv_path_LD+:} false; then :
13122   $as_echo_n "(cached) " >&6
13123 else
13124   if test -z "$LD"; then
13125   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13126   for ac_dir in $PATH; do
13127     IFS="$lt_save_ifs"
13128     test -z "$ac_dir" && ac_dir=.
13129     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13130       lt_cv_path_LD="$ac_dir/$ac_prog"
13131       # Check to see if the program is GNU ld.  I'd rather use --version,
13132       # but apparently some variants of GNU ld only accept -v.
13133       # Break only if it was the GNU/non-GNU ld that we prefer.
13134       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13135       *GNU* | *'with BFD'*)
13136         test "$with_gnu_ld" != no && break
13137         ;;
13138       *)
13139         test "$with_gnu_ld" != yes && break
13140         ;;
13141       esac
13142     fi
13143   done
13144   IFS="$lt_save_ifs"
13145 else
13146   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13147 fi
13148 fi
13149
13150 LD="$lt_cv_path_LD"
13151 if test -n "$LD"; then
13152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13153 $as_echo "$LD" >&6; }
13154 else
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13158 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13160 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13161 if ${lt_cv_prog_gnu_ld+:} false; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13165 case `$LD -v 2>&1 </dev/null` in
13166 *GNU* | *'with BFD'*)
13167   lt_cv_prog_gnu_ld=yes
13168   ;;
13169 *)
13170   lt_cv_prog_gnu_ld=no
13171   ;;
13172 esac
13173 fi
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13175 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13176 with_gnu_ld=$lt_cv_prog_gnu_ld
13177
13178
13179
13180
13181
13182
13183
13184       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13185       # archiving commands below assume that GNU ld is being used.
13186       if test "$with_gnu_ld" = yes; then
13187         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13189
13190         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13191         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13192
13193         # If archive_cmds runs LD, not CC, wlarc should be empty
13194         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13195         #     investigate it a little bit more. (MM)
13196         wlarc='${wl}'
13197
13198         # ancient GNU ld didn't support --whole-archive et. al.
13199         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13200           $GREP 'no-whole-archive' > /dev/null; then
13201           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13202         else
13203           whole_archive_flag_spec_CXX=
13204         fi
13205       else
13206         with_gnu_ld=no
13207         wlarc=
13208
13209         # A generic and very simple default shared library creation
13210         # command for GNU C++ for the case where it uses the native
13211         # linker, instead of GNU ld.  If possible, this setting should
13212         # overridden to take advantage of the native linker features on
13213         # the platform it is being used on.
13214         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13215       fi
13216
13217       # Commands to make compiler produce verbose output that lists
13218       # what "hidden" libraries, object files and flags are used when
13219       # linking a shared library.
13220       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13221
13222     else
13223       GXX=no
13224       with_gnu_ld=no
13225       wlarc=
13226     fi
13227
13228     # PORTME: fill in a description of your system's C++ link characteristics
13229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13230 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13231     ld_shlibs_CXX=yes
13232     case $host_os in
13233       aix3*)
13234         # FIXME: insert proper C++ library support
13235         ld_shlibs_CXX=no
13236         ;;
13237       aix[4-9]*)
13238         if test "$host_cpu" = ia64; then
13239           # On IA64, the linker does run time linking by default, so we don't
13240           # have to do anything special.
13241           aix_use_runtimelinking=no
13242           exp_sym_flag='-Bexport'
13243           no_entry_flag=""
13244         else
13245           aix_use_runtimelinking=no
13246
13247           # Test if we are trying to use run time linking or normal
13248           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13249           # need to do runtime linking.
13250           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13251             for ld_flag in $LDFLAGS; do
13252               case $ld_flag in
13253               *-brtl*)
13254                 aix_use_runtimelinking=yes
13255                 break
13256                 ;;
13257               esac
13258             done
13259             ;;
13260           esac
13261
13262           exp_sym_flag='-bexport'
13263           no_entry_flag='-bnoentry'
13264         fi
13265
13266         # When large executables or shared objects are built, AIX ld can
13267         # have problems creating the table of contents.  If linking a library
13268         # or program results in "error TOC overflow" add -mminimal-toc to
13269         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13270         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13271
13272         archive_cmds_CXX=''
13273         hardcode_direct_CXX=yes
13274         hardcode_direct_absolute_CXX=yes
13275         hardcode_libdir_separator_CXX=':'
13276         link_all_deplibs_CXX=yes
13277         file_list_spec_CXX='${wl}-f,'
13278
13279         if test "$GXX" = yes; then
13280           case $host_os in aix4.[012]|aix4.[012].*)
13281           # We only want to do this on AIX 4.2 and lower, the check
13282           # below for broken collect2 doesn't work under 4.3+
13283           collect2name=`${CC} -print-prog-name=collect2`
13284           if test -f "$collect2name" &&
13285              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13286           then
13287             # We have reworked collect2
13288             :
13289           else
13290             # We have old collect2
13291             hardcode_direct_CXX=unsupported
13292             # It fails to find uninstalled libraries when the uninstalled
13293             # path is not listed in the libpath.  Setting hardcode_minus_L
13294             # to unsupported forces relinking
13295             hardcode_minus_L_CXX=yes
13296             hardcode_libdir_flag_spec_CXX='-L$libdir'
13297             hardcode_libdir_separator_CXX=
13298           fi
13299           esac
13300           shared_flag='-shared'
13301           if test "$aix_use_runtimelinking" = yes; then
13302             shared_flag="$shared_flag "'${wl}-G'
13303           fi
13304         else
13305           # not using gcc
13306           if test "$host_cpu" = ia64; then
13307           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13308           # chokes on -Wl,-G. The following line is correct:
13309           shared_flag='-G'
13310           else
13311             if test "$aix_use_runtimelinking" = yes; then
13312               shared_flag='${wl}-G'
13313             else
13314               shared_flag='${wl}-bM:SRE'
13315             fi
13316           fi
13317         fi
13318
13319         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13320         # It seems that -bexpall does not export symbols beginning with
13321         # underscore (_), so it is better to generate a list of symbols to
13322         # export.
13323         always_export_symbols_CXX=yes
13324         if test "$aix_use_runtimelinking" = yes; then
13325           # Warning - without using the other runtime loading flags (-brtl),
13326           # -berok will link without error, but may produce a broken library.
13327           allow_undefined_flag_CXX='-berok'
13328           # Determine the default libpath from the value encoded in an empty
13329           # executable.
13330           if test "${lt_cv_aix_libpath+set}" = set; then
13331   aix_libpath=$lt_cv_aix_libpath
13332 else
13333   if ${lt_cv_aix_libpath__CXX+:} false; then :
13334   $as_echo_n "(cached) " >&6
13335 else
13336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h.  */
13338
13339 int
13340 main ()
13341 {
13342
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 if ac_fn_cxx_try_link "$LINENO"; then :
13348
13349   lt_aix_libpath_sed='
13350       /Import File Strings/,/^$/ {
13351           /^0/ {
13352               s/^0  *\([^ ]*\) *$/\1/
13353               p
13354           }
13355       }'
13356   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13357   # Check for a 64-bit object if we didn't find anything.
13358   if test -z "$lt_cv_aix_libpath__CXX"; then
13359     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13360   fi
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext \
13363     conftest$ac_exeext conftest.$ac_ext
13364   if test -z "$lt_cv_aix_libpath__CXX"; then
13365     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13366   fi
13367
13368 fi
13369
13370   aix_libpath=$lt_cv_aix_libpath__CXX
13371 fi
13372
13373           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13374
13375           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13376         else
13377           if test "$host_cpu" = ia64; then
13378             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13379             allow_undefined_flag_CXX="-z nodefs"
13380             archive_expsym_cmds_CXX="\$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"
13381           else
13382             # Determine the default libpath from the value encoded in an
13383             # empty executable.
13384             if test "${lt_cv_aix_libpath+set}" = set; then
13385   aix_libpath=$lt_cv_aix_libpath
13386 else
13387   if ${lt_cv_aix_libpath__CXX+:} false; then :
13388   $as_echo_n "(cached) " >&6
13389 else
13390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h.  */
13392
13393 int
13394 main ()
13395 {
13396
13397   ;
13398   return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_cxx_try_link "$LINENO"; then :
13402
13403   lt_aix_libpath_sed='
13404       /Import File Strings/,/^$/ {
13405           /^0/ {
13406               s/^0  *\([^ ]*\) *$/\1/
13407               p
13408           }
13409       }'
13410   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13411   # Check for a 64-bit object if we didn't find anything.
13412   if test -z "$lt_cv_aix_libpath__CXX"; then
13413     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13414   fi
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext \
13417     conftest$ac_exeext conftest.$ac_ext
13418   if test -z "$lt_cv_aix_libpath__CXX"; then
13419     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13420   fi
13421
13422 fi
13423
13424   aix_libpath=$lt_cv_aix_libpath__CXX
13425 fi
13426
13427             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13428             # Warning - without using the other run time loading flags,
13429             # -berok will link without error, but may produce a broken library.
13430             no_undefined_flag_CXX=' ${wl}-bernotok'
13431             allow_undefined_flag_CXX=' ${wl}-berok'
13432             if test "$with_gnu_ld" = yes; then
13433               # We only use this code for GNU lds that support --whole-archive.
13434               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13435             else
13436               # Exported symbols can be pulled into shared objects from archives
13437               whole_archive_flag_spec_CXX='$convenience'
13438             fi
13439             archive_cmds_need_lc_CXX=yes
13440             # This is similar to how AIX traditionally builds its shared
13441             # libraries.
13442             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13443           fi
13444         fi
13445         ;;
13446
13447       beos*)
13448         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13449           allow_undefined_flag_CXX=unsupported
13450           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13451           # support --undefined.  This deserves some investigation.  FIXME
13452           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453         else
13454           ld_shlibs_CXX=no
13455         fi
13456         ;;
13457
13458       chorus*)
13459         case $cc_basename in
13460           *)
13461           # FIXME: insert proper C++ library support
13462           ld_shlibs_CXX=no
13463           ;;
13464         esac
13465         ;;
13466
13467       cygwin* | mingw* | pw32* | cegcc*)
13468         case $GXX,$cc_basename in
13469         ,cl* | no,cl*)
13470           # Native MSVC
13471           # hardcode_libdir_flag_spec is actually meaningless, as there is
13472           # no search path for DLLs.
13473           hardcode_libdir_flag_spec_CXX=' '
13474           allow_undefined_flag_CXX=unsupported
13475           always_export_symbols_CXX=yes
13476           file_list_spec_CXX='@'
13477           # Tell ltmain to make .lib files, not .a files.
13478           libext=lib
13479           # Tell ltmain to make .dll files, not .so files.
13480           shrext_cmds=".dll"
13481           # FIXME: Setting linknames here is a bad hack.
13482           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13483           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13484               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13485             else
13486               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13487             fi~
13488             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13489             linknames='
13490           # The linker will not automatically build a static lib if we build a DLL.
13491           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13492           enable_shared_with_static_runtimes_CXX=yes
13493           # Don't use ranlib
13494           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13495           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13496             lt_tool_outputfile="@TOOL_OUTPUT@"~
13497             case $lt_outputfile in
13498               *.exe|*.EXE) ;;
13499               *)
13500                 lt_outputfile="$lt_outputfile.exe"
13501                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13502                 ;;
13503             esac~
13504             func_to_tool_file "$lt_outputfile"~
13505             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13506               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13507               $RM "$lt_outputfile.manifest";
13508             fi'
13509           ;;
13510         *)
13511           # g++
13512           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13513           # as there is no search path for DLLs.
13514           hardcode_libdir_flag_spec_CXX='-L$libdir'
13515           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13516           allow_undefined_flag_CXX=unsupported
13517           always_export_symbols_CXX=no
13518           enable_shared_with_static_runtimes_CXX=yes
13519
13520           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13521             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13522             # If the export-symbols file already is a .def file (1st line
13523             # is EXPORTS), use it as is; otherwise, prepend...
13524             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13525               cp $export_symbols $output_objdir/$soname.def;
13526             else
13527               echo EXPORTS > $output_objdir/$soname.def;
13528               cat $export_symbols >> $output_objdir/$soname.def;
13529             fi~
13530             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13531           else
13532             ld_shlibs_CXX=no
13533           fi
13534           ;;
13535         esac
13536         ;;
13537       darwin* | rhapsody*)
13538
13539
13540   archive_cmds_need_lc_CXX=no
13541   hardcode_direct_CXX=no
13542   hardcode_automatic_CXX=yes
13543   hardcode_shlibpath_var_CXX=unsupported
13544   if test "$lt_cv_ld_force_load" = "yes"; then
13545     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13546
13547   else
13548     whole_archive_flag_spec_CXX=''
13549   fi
13550   link_all_deplibs_CXX=yes
13551   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13552   case $cc_basename in
13553      ifort*) _lt_dar_can_shared=yes ;;
13554      *) _lt_dar_can_shared=$GCC ;;
13555   esac
13556   if test "$_lt_dar_can_shared" = "yes"; then
13557     output_verbose_link_cmd=func_echo_all
13558     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13559     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13560     archive_expsym_cmds_CXX="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}"
13561     module_expsym_cmds_CXX="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}"
13562        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13563       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13564       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13565     fi
13566
13567   else
13568   ld_shlibs_CXX=no
13569   fi
13570
13571         ;;
13572
13573       dgux*)
13574         case $cc_basename in
13575           ec++*)
13576             # FIXME: insert proper C++ library support
13577             ld_shlibs_CXX=no
13578             ;;
13579           ghcx*)
13580             # Green Hills C++ Compiler
13581             # FIXME: insert proper C++ library support
13582             ld_shlibs_CXX=no
13583             ;;
13584           *)
13585             # FIXME: insert proper C++ library support
13586             ld_shlibs_CXX=no
13587             ;;
13588         esac
13589         ;;
13590
13591       freebsd2.*)
13592         # C++ shared libraries reported to be fairly broken before
13593         # switch to ELF
13594         ld_shlibs_CXX=no
13595         ;;
13596
13597       freebsd-elf*)
13598         archive_cmds_need_lc_CXX=no
13599         ;;
13600
13601       freebsd* | dragonfly*)
13602         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13603         # conventions
13604         ld_shlibs_CXX=yes
13605         ;;
13606
13607       gnu*)
13608         ;;
13609
13610       haiku*)
13611         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612         link_all_deplibs_CXX=yes
13613         ;;
13614
13615       hpux9*)
13616         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13617         hardcode_libdir_separator_CXX=:
13618         export_dynamic_flag_spec_CXX='${wl}-E'
13619         hardcode_direct_CXX=yes
13620         hardcode_minus_L_CXX=yes # Not in the search PATH,
13621                                              # but as the default
13622                                              # location of the library.
13623
13624         case $cc_basename in
13625           CC*)
13626             # FIXME: insert proper C++ library support
13627             ld_shlibs_CXX=no
13628             ;;
13629           aCC*)
13630             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13631             # Commands to make compiler produce verbose output that lists
13632             # what "hidden" libraries, object files and flags are used when
13633             # linking a shared library.
13634             #
13635             # There doesn't appear to be a way to prevent this compiler from
13636             # explicitly linking system object files so we need to strip them
13637             # from the output so that they don't get included in the library
13638             # dependencies.
13639             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13640             ;;
13641           *)
13642             if test "$GXX" = yes; then
13643               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13644             else
13645               # FIXME: insert proper C++ library support
13646               ld_shlibs_CXX=no
13647             fi
13648             ;;
13649         esac
13650         ;;
13651
13652       hpux10*|hpux11*)
13653         if test $with_gnu_ld = no; then
13654           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13655           hardcode_libdir_separator_CXX=:
13656
13657           case $host_cpu in
13658             hppa*64*|ia64*)
13659               ;;
13660             *)
13661               export_dynamic_flag_spec_CXX='${wl}-E'
13662               ;;
13663           esac
13664         fi
13665         case $host_cpu in
13666           hppa*64*|ia64*)
13667             hardcode_direct_CXX=no
13668             hardcode_shlibpath_var_CXX=no
13669             ;;
13670           *)
13671             hardcode_direct_CXX=yes
13672             hardcode_direct_absolute_CXX=yes
13673             hardcode_minus_L_CXX=yes # Not in the search PATH,
13674                                                  # but as the default
13675                                                  # location of the library.
13676             ;;
13677         esac
13678
13679         case $cc_basename in
13680           CC*)
13681             # FIXME: insert proper C++ library support
13682             ld_shlibs_CXX=no
13683             ;;
13684           aCC*)
13685             case $host_cpu in
13686               hppa*64*)
13687                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13688                 ;;
13689               ia64*)
13690                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13691                 ;;
13692               *)
13693                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13694                 ;;
13695             esac
13696             # Commands to make compiler produce verbose output that lists
13697             # what "hidden" libraries, object files and flags are used when
13698             # linking a shared library.
13699             #
13700             # There doesn't appear to be a way to prevent this compiler from
13701             # explicitly linking system object files so we need to strip them
13702             # from the output so that they don't get included in the library
13703             # dependencies.
13704             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13705             ;;
13706           *)
13707             if test "$GXX" = yes; then
13708               if test $with_gnu_ld = no; then
13709                 case $host_cpu in
13710                   hppa*64*)
13711                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13712                     ;;
13713                   ia64*)
13714                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13715                     ;;
13716                   *)
13717                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718                     ;;
13719                 esac
13720               fi
13721             else
13722               # FIXME: insert proper C++ library support
13723               ld_shlibs_CXX=no
13724             fi
13725             ;;
13726         esac
13727         ;;
13728
13729       interix[3-9]*)
13730         hardcode_direct_CXX=no
13731         hardcode_shlibpath_var_CXX=no
13732         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13733         export_dynamic_flag_spec_CXX='${wl}-E'
13734         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13735         # Instead, shared libraries are loaded at an image base (0x10000000 by
13736         # default) and relocated if they conflict, which is a slow very memory
13737         # consuming and fragmenting process.  To avoid this, we pick a random,
13738         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13739         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13740         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13741         archive_expsym_cmds_CXX='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'
13742         ;;
13743       irix5* | irix6*)
13744         case $cc_basename in
13745           CC*)
13746             # SGI C++
13747             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13748
13749             # Archives containing C++ object files must be created using
13750             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13751             # necessary to make sure instantiated templates are included
13752             # in the archive.
13753             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13754             ;;
13755           *)
13756             if test "$GXX" = yes; then
13757               if test "$with_gnu_ld" = no; then
13758                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13759               else
13760                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13761               fi
13762             fi
13763             link_all_deplibs_CXX=yes
13764             ;;
13765         esac
13766         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13767         hardcode_libdir_separator_CXX=:
13768         inherit_rpath_CXX=yes
13769         ;;
13770
13771       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13772         case $cc_basename in
13773           KCC*)
13774             # Kuck and Associates, Inc. (KAI) C++ Compiler
13775
13776             # KCC will only create a shared library if the output file
13777             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13778             # to its proper name (with version) after linking.
13779             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13780             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13781             # Commands to make compiler produce verbose output that lists
13782             # what "hidden" libraries, object files and flags are used when
13783             # linking a shared library.
13784             #
13785             # There doesn't appear to be a way to prevent this compiler from
13786             # explicitly linking system object files so we need to strip them
13787             # from the output so that they don't get included in the library
13788             # dependencies.
13789             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13790
13791             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13792             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13793
13794             # Archives containing C++ object files must be created using
13795             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13796             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13797             ;;
13798           icpc* | ecpc* )
13799             # Intel C++
13800             with_gnu_ld=yes
13801             # version 8.0 and above of icpc choke on multiply defined symbols
13802             # if we add $predep_objects and $postdep_objects, however 7.1 and
13803             # earlier do not add the objects themselves.
13804             case `$CC -V 2>&1` in
13805               *"Version 7."*)
13806                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13807                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13808                 ;;
13809               *)  # Version 8.0 or newer
13810                 tmp_idyn=
13811                 case $host_cpu in
13812                   ia64*) tmp_idyn=' -i_dynamic';;
13813                 esac
13814                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13816                 ;;
13817             esac
13818             archive_cmds_need_lc_CXX=no
13819             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13820             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13821             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13822             ;;
13823           pgCC* | pgcpp*)
13824             # Portland Group C++ compiler
13825             case `$CC -V` in
13826             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13827               prelink_cmds_CXX='tpldir=Template.dir~
13828                 rm -rf $tpldir~
13829                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13830                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13831               old_archive_cmds_CXX='tpldir=Template.dir~
13832                 rm -rf $tpldir~
13833                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13834                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13835                 $RANLIB $oldlib'
13836               archive_cmds_CXX='tpldir=Template.dir~
13837                 rm -rf $tpldir~
13838                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13839                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13840               archive_expsym_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13843                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13844               ;;
13845             *) # Version 6 and above use weak symbols
13846               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13847               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13848               ;;
13849             esac
13850
13851             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13852             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13853             whole_archive_flag_spec_CXX='${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'
13854             ;;
13855           cxx*)
13856             # Compaq C++
13857             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13858             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13859
13860             runpath_var=LD_RUN_PATH
13861             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13862             hardcode_libdir_separator_CXX=:
13863
13864             # Commands to make compiler produce verbose output that lists
13865             # what "hidden" libraries, object files and flags are used when
13866             # linking a shared library.
13867             #
13868             # There doesn't appear to be a way to prevent this compiler from
13869             # explicitly linking system object files so we need to strip them
13870             # from the output so that they don't get included in the library
13871             # dependencies.
13872             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13873             ;;
13874           xl* | mpixl* | bgxl*)
13875             # IBM XL 8.0 on PPC, with GNU ld
13876             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13877             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13878             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13879             if test "x$supports_anon_versioning" = xyes; then
13880               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13881                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13882                 echo "local: *; };" >> $output_objdir/$libname.ver~
13883                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13884             fi
13885             ;;
13886           *)
13887             case `$CC -V 2>&1 | sed 5q` in
13888             *Sun\ C*)
13889               # Sun C++ 5.9
13890               no_undefined_flag_CXX=' -zdefs'
13891               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13892               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13893               hardcode_libdir_flag_spec_CXX='-R$libdir'
13894               whole_archive_flag_spec_CXX='${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'
13895               compiler_needs_object_CXX=yes
13896
13897               # Not sure whether something based on
13898               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13899               # would be better.
13900               output_verbose_link_cmd='func_echo_all'
13901
13902               # Archives containing C++ object files must be created using
13903               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13904               # necessary to make sure instantiated templates are included
13905               # in the archive.
13906               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13907               ;;
13908             esac
13909             ;;
13910         esac
13911         ;;
13912
13913       lynxos*)
13914         # FIXME: insert proper C++ library support
13915         ld_shlibs_CXX=no
13916         ;;
13917
13918       m88k*)
13919         # FIXME: insert proper C++ library support
13920         ld_shlibs_CXX=no
13921         ;;
13922
13923       mvs*)
13924         case $cc_basename in
13925           cxx*)
13926             # FIXME: insert proper C++ library support
13927             ld_shlibs_CXX=no
13928             ;;
13929           *)
13930             # FIXME: insert proper C++ library support
13931             ld_shlibs_CXX=no
13932             ;;
13933         esac
13934         ;;
13935
13936       netbsd*)
13937         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13938           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13939           wlarc=
13940           hardcode_libdir_flag_spec_CXX='-R$libdir'
13941           hardcode_direct_CXX=yes
13942           hardcode_shlibpath_var_CXX=no
13943         fi
13944         # Workaround some broken pre-1.5 toolchains
13945         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13946         ;;
13947
13948       *nto* | *qnx*)
13949         ld_shlibs_CXX=yes
13950         ;;
13951
13952       openbsd2*)
13953         # C++ shared libraries are fairly broken
13954         ld_shlibs_CXX=no
13955         ;;
13956
13957       openbsd*)
13958         if test -f /usr/libexec/ld.so; then
13959           hardcode_direct_CXX=yes
13960           hardcode_shlibpath_var_CXX=no
13961           hardcode_direct_absolute_CXX=yes
13962           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13963           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13964           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13965             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13966             export_dynamic_flag_spec_CXX='${wl}-E'
13967             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13968           fi
13969           output_verbose_link_cmd=func_echo_all
13970         else
13971           ld_shlibs_CXX=no
13972         fi
13973         ;;
13974
13975       osf3* | osf4* | osf5*)
13976         case $cc_basename in
13977           KCC*)
13978             # Kuck and Associates, Inc. (KAI) C++ Compiler
13979
13980             # KCC will only create a shared library if the output file
13981             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13982             # to its proper name (with version) after linking.
13983             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13984
13985             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13986             hardcode_libdir_separator_CXX=:
13987
13988             # Archives containing C++ object files must be created using
13989             # the KAI C++ compiler.
13990             case $host in
13991               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13992               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13993             esac
13994             ;;
13995           RCC*)
13996             # Rational C++ 2.4.1
13997             # FIXME: insert proper C++ library support
13998             ld_shlibs_CXX=no
13999             ;;
14000           cxx*)
14001             case $host in
14002               osf3*)
14003                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14004                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14005                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14006                 ;;
14007               *)
14008                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14009                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14010                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14011                   echo "-hidden">> $lib.exp~
14012                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14013                   $RM $lib.exp'
14014                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14015                 ;;
14016             esac
14017
14018             hardcode_libdir_separator_CXX=:
14019
14020             # Commands to make compiler produce verbose output that lists
14021             # what "hidden" libraries, object files and flags are used when
14022             # linking a shared library.
14023             #
14024             # There doesn't appear to be a way to prevent this compiler from
14025             # explicitly linking system object files so we need to strip them
14026             # from the output so that they don't get included in the library
14027             # dependencies.
14028             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14029             ;;
14030           *)
14031             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14032               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14033               case $host in
14034                 osf3*)
14035                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14036                   ;;
14037                 *)
14038                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14039                   ;;
14040               esac
14041
14042               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14043               hardcode_libdir_separator_CXX=:
14044
14045               # Commands to make compiler produce verbose output that lists
14046               # what "hidden" libraries, object files and flags are used when
14047               # linking a shared library.
14048               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14049
14050             else
14051               # FIXME: insert proper C++ library support
14052               ld_shlibs_CXX=no
14053             fi
14054             ;;
14055         esac
14056         ;;
14057
14058       psos*)
14059         # FIXME: insert proper C++ library support
14060         ld_shlibs_CXX=no
14061         ;;
14062
14063       sunos4*)
14064         case $cc_basename in
14065           CC*)
14066             # Sun C++ 4.x
14067             # FIXME: insert proper C++ library support
14068             ld_shlibs_CXX=no
14069             ;;
14070           lcc*)
14071             # Lucid
14072             # FIXME: insert proper C++ library support
14073             ld_shlibs_CXX=no
14074             ;;
14075           *)
14076             # FIXME: insert proper C++ library support
14077             ld_shlibs_CXX=no
14078             ;;
14079         esac
14080         ;;
14081
14082       solaris*)
14083         case $cc_basename in
14084           CC* | sunCC*)
14085             # Sun C++ 4.2, 5.x and Centerline C++
14086             archive_cmds_need_lc_CXX=yes
14087             no_undefined_flag_CXX=' -zdefs'
14088             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14089             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14090               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14091
14092             hardcode_libdir_flag_spec_CXX='-R$libdir'
14093             hardcode_shlibpath_var_CXX=no
14094             case $host_os in
14095               solaris2.[0-5] | solaris2.[0-5].*) ;;
14096               *)
14097                 # The compiler driver will combine and reorder linker options,
14098                 # but understands `-z linker_flag'.
14099                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14100                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14101                 ;;
14102             esac
14103             link_all_deplibs_CXX=yes
14104
14105             output_verbose_link_cmd='func_echo_all'
14106
14107             # Archives containing C++ object files must be created using
14108             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14109             # necessary to make sure instantiated templates are included
14110             # in the archive.
14111             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14112             ;;
14113           gcx*)
14114             # Green Hills C++ Compiler
14115             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14116
14117             # The C++ compiler must be used to create the archive.
14118             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14119             ;;
14120           *)
14121             # GNU C++ compiler with Solaris linker
14122             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14123               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14124               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14125                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14126                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14127                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14128
14129                 # Commands to make compiler produce verbose output that lists
14130                 # what "hidden" libraries, object files and flags are used when
14131                 # linking a shared library.
14132                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14133               else
14134                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14135                 # platform.
14136                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14137                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14138                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14139
14140                 # Commands to make compiler produce verbose output that lists
14141                 # what "hidden" libraries, object files and flags are used when
14142                 # linking a shared library.
14143                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14144               fi
14145
14146               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14147               case $host_os in
14148                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14149                 *)
14150                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14151                   ;;
14152               esac
14153             fi
14154             ;;
14155         esac
14156         ;;
14157
14158     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14159       no_undefined_flag_CXX='${wl}-z,text'
14160       archive_cmds_need_lc_CXX=no
14161       hardcode_shlibpath_var_CXX=no
14162       runpath_var='LD_RUN_PATH'
14163
14164       case $cc_basename in
14165         CC*)
14166           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14167           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168           ;;
14169         *)
14170           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14171           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14172           ;;
14173       esac
14174       ;;
14175
14176       sysv5* | sco3.2v5* | sco5v6*)
14177         # Note: We can NOT use -z defs as we might desire, because we do not
14178         # link with -lc, and that would cause any symbols used from libc to
14179         # always be unresolved, which means just about no library would
14180         # ever link correctly.  If we're not using GNU ld we use -z text
14181         # though, which does catch some bad symbols but isn't as heavy-handed
14182         # as -z defs.
14183         no_undefined_flag_CXX='${wl}-z,text'
14184         allow_undefined_flag_CXX='${wl}-z,nodefs'
14185         archive_cmds_need_lc_CXX=no
14186         hardcode_shlibpath_var_CXX=no
14187         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14188         hardcode_libdir_separator_CXX=':'
14189         link_all_deplibs_CXX=yes
14190         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14191         runpath_var='LD_RUN_PATH'
14192
14193         case $cc_basename in
14194           CC*)
14195             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14196             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14197             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14198               '"$old_archive_cmds_CXX"
14199             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14200               '"$reload_cmds_CXX"
14201             ;;
14202           *)
14203             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14204             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205             ;;
14206         esac
14207       ;;
14208
14209       tandem*)
14210         case $cc_basename in
14211           NCC*)
14212             # NonStop-UX NCC 3.20
14213             # FIXME: insert proper C++ library support
14214             ld_shlibs_CXX=no
14215             ;;
14216           *)
14217             # FIXME: insert proper C++ library support
14218             ld_shlibs_CXX=no
14219             ;;
14220         esac
14221         ;;
14222
14223       vxworks*)
14224         # FIXME: insert proper C++ library support
14225         ld_shlibs_CXX=no
14226         ;;
14227
14228       *)
14229         # FIXME: insert proper C++ library support
14230         ld_shlibs_CXX=no
14231         ;;
14232     esac
14233
14234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14235 $as_echo "$ld_shlibs_CXX" >&6; }
14236     test "$ld_shlibs_CXX" = no && can_build_shared=no
14237
14238     GCC_CXX="$GXX"
14239     LD_CXX="$LD"
14240
14241     ## CAVEAT EMPTOR:
14242     ## There is no encapsulation within the following macros, do not change
14243     ## the running order or otherwise move them around unless you know exactly
14244     ## what you are doing...
14245     # Dependencies to place before and after the object being linked:
14246 predep_objects_CXX=
14247 postdep_objects_CXX=
14248 predeps_CXX=
14249 postdeps_CXX=
14250 compiler_lib_search_path_CXX=
14251
14252 cat > conftest.$ac_ext <<_LT_EOF
14253 class Foo
14254 {
14255 public:
14256   Foo (void) { a = 0; }
14257 private:
14258   int a;
14259 };
14260 _LT_EOF
14261
14262
14263 _lt_libdeps_save_CFLAGS=$CFLAGS
14264 case "$CC $CFLAGS " in #(
14265 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14266 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14267 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14268 esac
14269
14270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14271   (eval $ac_compile) 2>&5
14272   ac_status=$?
14273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14274   test $ac_status = 0; }; then
14275   # Parse the compiler output and extract the necessary
14276   # objects, libraries and library flags.
14277
14278   # Sentinel used to keep track of whether or not we are before
14279   # the conftest object file.
14280   pre_test_object_deps_done=no
14281
14282   for p in `eval "$output_verbose_link_cmd"`; do
14283     case ${prev}${p} in
14284
14285     -L* | -R* | -l*)
14286        # Some compilers place space between "-{L,R}" and the path.
14287        # Remove the space.
14288        if test $p = "-L" ||
14289           test $p = "-R"; then
14290          prev=$p
14291          continue
14292        fi
14293
14294        # Expand the sysroot to ease extracting the directories later.
14295        if test -z "$prev"; then
14296          case $p in
14297          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14298          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14299          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14300          esac
14301        fi
14302        case $p in
14303        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14304        esac
14305        if test "$pre_test_object_deps_done" = no; then
14306          case ${prev} in
14307          -L | -R)
14308            # Internal compiler library paths should come after those
14309            # provided the user.  The postdeps already come after the
14310            # user supplied libs so there is no need to process them.
14311            if test -z "$compiler_lib_search_path_CXX"; then
14312              compiler_lib_search_path_CXX="${prev}${p}"
14313            else
14314              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14315            fi
14316            ;;
14317          # The "-l" case would never come before the object being
14318          # linked, so don't bother handling this case.
14319          esac
14320        else
14321          if test -z "$postdeps_CXX"; then
14322            postdeps_CXX="${prev}${p}"
14323          else
14324            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14325          fi
14326        fi
14327        prev=
14328        ;;
14329
14330     *.lto.$objext) ;; # Ignore GCC LTO objects
14331     *.$objext)
14332        # This assumes that the test object file only shows up
14333        # once in the compiler output.
14334        if test "$p" = "conftest.$objext"; then
14335          pre_test_object_deps_done=yes
14336          continue
14337        fi
14338
14339        if test "$pre_test_object_deps_done" = no; then
14340          if test -z "$predep_objects_CXX"; then
14341            predep_objects_CXX="$p"
14342          else
14343            predep_objects_CXX="$predep_objects_CXX $p"
14344          fi
14345        else
14346          if test -z "$postdep_objects_CXX"; then
14347            postdep_objects_CXX="$p"
14348          else
14349            postdep_objects_CXX="$postdep_objects_CXX $p"
14350          fi
14351        fi
14352        ;;
14353
14354     *) ;; # Ignore the rest.
14355
14356     esac
14357   done
14358
14359   # Clean up.
14360   rm -f a.out a.exe
14361 else
14362   echo "libtool.m4: error: problem compiling CXX test program"
14363 fi
14364
14365 $RM -f confest.$objext
14366 CFLAGS=$_lt_libdeps_save_CFLAGS
14367
14368 # PORTME: override above test on systems where it is broken
14369 case $host_os in
14370 interix[3-9]*)
14371   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14372   # hack all around it, let's just trust "g++" to DTRT.
14373   predep_objects_CXX=
14374   postdep_objects_CXX=
14375   postdeps_CXX=
14376   ;;
14377
14378 linux*)
14379   case `$CC -V 2>&1 | sed 5q` in
14380   *Sun\ C*)
14381     # Sun C++ 5.9
14382
14383     # The more standards-conforming stlport4 library is
14384     # incompatible with the Cstd library. Avoid specifying
14385     # it if it's in CXXFLAGS. Ignore libCrun as
14386     # -library=stlport4 depends on it.
14387     case " $CXX $CXXFLAGS " in
14388     *" -library=stlport4 "*)
14389       solaris_use_stlport4=yes
14390       ;;
14391     esac
14392
14393     if test "$solaris_use_stlport4" != yes; then
14394       postdeps_CXX='-library=Cstd -library=Crun'
14395     fi
14396     ;;
14397   esac
14398   ;;
14399
14400 solaris*)
14401   case $cc_basename in
14402   CC* | sunCC*)
14403     # The more standards-conforming stlport4 library is
14404     # incompatible with the Cstd library. Avoid specifying
14405     # it if it's in CXXFLAGS. Ignore libCrun as
14406     # -library=stlport4 depends on it.
14407     case " $CXX $CXXFLAGS " in
14408     *" -library=stlport4 "*)
14409       solaris_use_stlport4=yes
14410       ;;
14411     esac
14412
14413     # Adding this requires a known-good setup of shared libraries for
14414     # Sun compiler versions before 5.6, else PIC objects from an old
14415     # archive will be linked into the output, leading to subtle bugs.
14416     if test "$solaris_use_stlport4" != yes; then
14417       postdeps_CXX='-library=Cstd -library=Crun'
14418     fi
14419     ;;
14420   esac
14421   ;;
14422 esac
14423
14424
14425 case " $postdeps_CXX " in
14426 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14427 esac
14428  compiler_lib_search_dirs_CXX=
14429 if test -n "${compiler_lib_search_path_CXX}"; then
14430  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14431 fi
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463     lt_prog_compiler_wl_CXX=
14464 lt_prog_compiler_pic_CXX=
14465 lt_prog_compiler_static_CXX=
14466
14467
14468   # C++ specific cases for pic, static, wl, etc.
14469   if test "$GXX" = yes; then
14470     lt_prog_compiler_wl_CXX='-Wl,'
14471     lt_prog_compiler_static_CXX='-static'
14472
14473     case $host_os in
14474     aix*)
14475       # All AIX code is PIC.
14476       if test "$host_cpu" = ia64; then
14477         # AIX 5 now supports IA64 processor
14478         lt_prog_compiler_static_CXX='-Bstatic'
14479       fi
14480       ;;
14481
14482     amigaos*)
14483       case $host_cpu in
14484       powerpc)
14485             # see comment about AmigaOS4 .so support
14486             lt_prog_compiler_pic_CXX='-fPIC'
14487         ;;
14488       m68k)
14489             # FIXME: we need at least 68020 code to build shared libraries, but
14490             # adding the `-m68020' flag to GCC prevents building anything better,
14491             # like `-m68040'.
14492             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14493         ;;
14494       esac
14495       ;;
14496
14497     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14498       # PIC is the default for these OSes.
14499       ;;
14500     mingw* | cygwin* | os2* | pw32* | cegcc*)
14501       # This hack is so that the source file can tell whether it is being
14502       # built for inclusion in a dll (and should export symbols for example).
14503       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14504       # (--disable-auto-import) libraries
14505       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14506       ;;
14507     darwin* | rhapsody*)
14508       # PIC is the default on this platform
14509       # Common symbols not allowed in MH_DYLIB files
14510       lt_prog_compiler_pic_CXX='-fno-common'
14511       ;;
14512     *djgpp*)
14513       # DJGPP does not support shared libraries at all
14514       lt_prog_compiler_pic_CXX=
14515       ;;
14516     haiku*)
14517       # PIC is the default for Haiku.
14518       # The "-static" flag exists, but is broken.
14519       lt_prog_compiler_static_CXX=
14520       ;;
14521     interix[3-9]*)
14522       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14523       # Instead, we relocate shared libraries at runtime.
14524       ;;
14525     sysv4*MP*)
14526       if test -d /usr/nec; then
14527         lt_prog_compiler_pic_CXX=-Kconform_pic
14528       fi
14529       ;;
14530     hpux*)
14531       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14532       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14533       # sets the default TLS model and affects inlining.
14534       case $host_cpu in
14535       hppa*64*)
14536         ;;
14537       *)
14538         lt_prog_compiler_pic_CXX='-fPIC'
14539         ;;
14540       esac
14541       ;;
14542     *qnx* | *nto*)
14543       # QNX uses GNU C++, but need to define -shared option too, otherwise
14544       # it will coredump.
14545       lt_prog_compiler_pic_CXX='-fPIC -shared'
14546       ;;
14547     *)
14548       lt_prog_compiler_pic_CXX='-fPIC'
14549       ;;
14550     esac
14551   else
14552     case $host_os in
14553       aix[4-9]*)
14554         # All AIX code is PIC.
14555         if test "$host_cpu" = ia64; then
14556           # AIX 5 now supports IA64 processor
14557           lt_prog_compiler_static_CXX='-Bstatic'
14558         else
14559           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14560         fi
14561         ;;
14562       chorus*)
14563         case $cc_basename in
14564         cxch68*)
14565           # Green Hills C++ Compiler
14566           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14567           ;;
14568         esac
14569         ;;
14570       mingw* | cygwin* | os2* | pw32* | cegcc*)
14571         # This hack is so that the source file can tell whether it is being
14572         # built for inclusion in a dll (and should export symbols for example).
14573         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14574         ;;
14575       dgux*)
14576         case $cc_basename in
14577           ec++*)
14578             lt_prog_compiler_pic_CXX='-KPIC'
14579             ;;
14580           ghcx*)
14581             # Green Hills C++ Compiler
14582             lt_prog_compiler_pic_CXX='-pic'
14583             ;;
14584           *)
14585             ;;
14586         esac
14587         ;;
14588       freebsd* | dragonfly*)
14589         # FreeBSD uses GNU C++
14590         ;;
14591       hpux9* | hpux10* | hpux11*)
14592         case $cc_basename in
14593           CC*)
14594             lt_prog_compiler_wl_CXX='-Wl,'
14595             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14596             if test "$host_cpu" != ia64; then
14597               lt_prog_compiler_pic_CXX='+Z'
14598             fi
14599             ;;
14600           aCC*)
14601             lt_prog_compiler_wl_CXX='-Wl,'
14602             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14603             case $host_cpu in
14604             hppa*64*|ia64*)
14605               # +Z the default
14606               ;;
14607             *)
14608               lt_prog_compiler_pic_CXX='+Z'
14609               ;;
14610             esac
14611             ;;
14612           *)
14613             ;;
14614         esac
14615         ;;
14616       interix*)
14617         # This is c89, which is MS Visual C++ (no shared libs)
14618         # Anyone wants to do a port?
14619         ;;
14620       irix5* | irix6* | nonstopux*)
14621         case $cc_basename in
14622           CC*)
14623             lt_prog_compiler_wl_CXX='-Wl,'
14624             lt_prog_compiler_static_CXX='-non_shared'
14625             # CC pic flag -KPIC is the default.
14626             ;;
14627           *)
14628             ;;
14629         esac
14630         ;;
14631       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14632         case $cc_basename in
14633           KCC*)
14634             # KAI C++ Compiler
14635             lt_prog_compiler_wl_CXX='--backend -Wl,'
14636             lt_prog_compiler_pic_CXX='-fPIC'
14637             ;;
14638           ecpc* )
14639             # old Intel C++ for x86_64 which still supported -KPIC.
14640             lt_prog_compiler_wl_CXX='-Wl,'
14641             lt_prog_compiler_pic_CXX='-KPIC'
14642             lt_prog_compiler_static_CXX='-static'
14643             ;;
14644           icpc* )
14645             # Intel C++, used to be incompatible with GCC.
14646             # ICC 10 doesn't accept -KPIC any more.
14647             lt_prog_compiler_wl_CXX='-Wl,'
14648             lt_prog_compiler_pic_CXX='-fPIC'
14649             lt_prog_compiler_static_CXX='-static'
14650             ;;
14651           pgCC* | pgcpp*)
14652             # Portland Group C++ compiler
14653             lt_prog_compiler_wl_CXX='-Wl,'
14654             lt_prog_compiler_pic_CXX='-fpic'
14655             lt_prog_compiler_static_CXX='-Bstatic'
14656             ;;
14657           cxx*)
14658             # Compaq C++
14659             # Make sure the PIC flag is empty.  It appears that all Alpha
14660             # Linux and Compaq Tru64 Unix objects are PIC.
14661             lt_prog_compiler_pic_CXX=
14662             lt_prog_compiler_static_CXX='-non_shared'
14663             ;;
14664           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14665             # IBM XL 8.0, 9.0 on PPC and BlueGene
14666             lt_prog_compiler_wl_CXX='-Wl,'
14667             lt_prog_compiler_pic_CXX='-qpic'
14668             lt_prog_compiler_static_CXX='-qstaticlink'
14669             ;;
14670           *)
14671             case `$CC -V 2>&1 | sed 5q` in
14672             *Sun\ C*)
14673               # Sun C++ 5.9
14674               lt_prog_compiler_pic_CXX='-KPIC'
14675               lt_prog_compiler_static_CXX='-Bstatic'
14676               lt_prog_compiler_wl_CXX='-Qoption ld '
14677               ;;
14678             esac
14679             ;;
14680         esac
14681         ;;
14682       lynxos*)
14683         ;;
14684       m88k*)
14685         ;;
14686       mvs*)
14687         case $cc_basename in
14688           cxx*)
14689             lt_prog_compiler_pic_CXX='-W c,exportall'
14690             ;;
14691           *)
14692             ;;
14693         esac
14694         ;;
14695       netbsd* | netbsdelf*-gnu)
14696         ;;
14697       *qnx* | *nto*)
14698         # QNX uses GNU C++, but need to define -shared option too, otherwise
14699         # it will coredump.
14700         lt_prog_compiler_pic_CXX='-fPIC -shared'
14701         ;;
14702       osf3* | osf4* | osf5*)
14703         case $cc_basename in
14704           KCC*)
14705             lt_prog_compiler_wl_CXX='--backend -Wl,'
14706             ;;
14707           RCC*)
14708             # Rational C++ 2.4.1
14709             lt_prog_compiler_pic_CXX='-pic'
14710             ;;
14711           cxx*)
14712             # Digital/Compaq C++
14713             lt_prog_compiler_wl_CXX='-Wl,'
14714             # Make sure the PIC flag is empty.  It appears that all Alpha
14715             # Linux and Compaq Tru64 Unix objects are PIC.
14716             lt_prog_compiler_pic_CXX=
14717             lt_prog_compiler_static_CXX='-non_shared'
14718             ;;
14719           *)
14720             ;;
14721         esac
14722         ;;
14723       psos*)
14724         ;;
14725       solaris*)
14726         case $cc_basename in
14727           CC* | sunCC*)
14728             # Sun C++ 4.2, 5.x and Centerline C++
14729             lt_prog_compiler_pic_CXX='-KPIC'
14730             lt_prog_compiler_static_CXX='-Bstatic'
14731             lt_prog_compiler_wl_CXX='-Qoption ld '
14732             ;;
14733           gcx*)
14734             # Green Hills C++ Compiler
14735             lt_prog_compiler_pic_CXX='-PIC'
14736             ;;
14737           *)
14738             ;;
14739         esac
14740         ;;
14741       sunos4*)
14742         case $cc_basename in
14743           CC*)
14744             # Sun C++ 4.x
14745             lt_prog_compiler_pic_CXX='-pic'
14746             lt_prog_compiler_static_CXX='-Bstatic'
14747             ;;
14748           lcc*)
14749             # Lucid
14750             lt_prog_compiler_pic_CXX='-pic'
14751             ;;
14752           *)
14753             ;;
14754         esac
14755         ;;
14756       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14757         case $cc_basename in
14758           CC*)
14759             lt_prog_compiler_wl_CXX='-Wl,'
14760             lt_prog_compiler_pic_CXX='-KPIC'
14761             lt_prog_compiler_static_CXX='-Bstatic'
14762             ;;
14763         esac
14764         ;;
14765       tandem*)
14766         case $cc_basename in
14767           NCC*)
14768             # NonStop-UX NCC 3.20
14769             lt_prog_compiler_pic_CXX='-KPIC'
14770             ;;
14771           *)
14772             ;;
14773         esac
14774         ;;
14775       vxworks*)
14776         ;;
14777       *)
14778         lt_prog_compiler_can_build_shared_CXX=no
14779         ;;
14780     esac
14781   fi
14782
14783 case $host_os in
14784   # For platforms which do not support PIC, -DPIC is meaningless:
14785   *djgpp*)
14786     lt_prog_compiler_pic_CXX=
14787     ;;
14788   *)
14789     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14790     ;;
14791 esac
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14794 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14795 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14796   $as_echo_n "(cached) " >&6
14797 else
14798   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14801 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14802 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14803
14804 #
14805 # Check to make sure the PIC flag actually works.
14806 #
14807 if test -n "$lt_prog_compiler_pic_CXX"; then
14808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14809 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14810 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14811   $as_echo_n "(cached) " >&6
14812 else
14813   lt_cv_prog_compiler_pic_works_CXX=no
14814    ac_outfile=conftest.$ac_objext
14815    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14816    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14817    # Insert the option either (1) after the last *FLAGS variable, or
14818    # (2) before a word containing "conftest.", or (3) at the end.
14819    # Note that $ac_compile itself does not contain backslashes and begins
14820    # with a dollar sign (not a hyphen), so the echo should work correctly.
14821    # The option is referenced via a variable to avoid confusing sed.
14822    lt_compile=`echo "$ac_compile" | $SED \
14823    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14824    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14825    -e 's:$: $lt_compiler_flag:'`
14826    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14827    (eval "$lt_compile" 2>conftest.err)
14828    ac_status=$?
14829    cat conftest.err >&5
14830    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831    if (exit $ac_status) && test -s "$ac_outfile"; then
14832      # The compiler can only warn and ignore the option if not recognized
14833      # So say no if there are warnings other than the usual output.
14834      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14835      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14836      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14837        lt_cv_prog_compiler_pic_works_CXX=yes
14838      fi
14839    fi
14840    $RM conftest*
14841
14842 fi
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14844 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14845
14846 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14847     case $lt_prog_compiler_pic_CXX in
14848      "" | " "*) ;;
14849      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14850      esac
14851 else
14852     lt_prog_compiler_pic_CXX=
14853      lt_prog_compiler_can_build_shared_CXX=no
14854 fi
14855
14856 fi
14857
14858
14859
14860
14861
14862 #
14863 # Check to make sure the static flag actually works.
14864 #
14865 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14867 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14868 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14869   $as_echo_n "(cached) " >&6
14870 else
14871   lt_cv_prog_compiler_static_works_CXX=no
14872    save_LDFLAGS="$LDFLAGS"
14873    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14874    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14875    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14876      # The linker can only warn and ignore the option if not recognized
14877      # So say no if there are warnings
14878      if test -s conftest.err; then
14879        # Append any errors to the config.log.
14880        cat conftest.err 1>&5
14881        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14882        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14883        if diff conftest.exp conftest.er2 >/dev/null; then
14884          lt_cv_prog_compiler_static_works_CXX=yes
14885        fi
14886      else
14887        lt_cv_prog_compiler_static_works_CXX=yes
14888      fi
14889    fi
14890    $RM -r conftest*
14891    LDFLAGS="$save_LDFLAGS"
14892
14893 fi
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14895 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14896
14897 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14898     :
14899 else
14900     lt_prog_compiler_static_CXX=
14901 fi
14902
14903
14904
14905
14906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14907 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14908 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14909   $as_echo_n "(cached) " >&6
14910 else
14911   lt_cv_prog_compiler_c_o_CXX=no
14912    $RM -r conftest 2>/dev/null
14913    mkdir conftest
14914    cd conftest
14915    mkdir out
14916    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14917
14918    lt_compiler_flag="-o out/conftest2.$ac_objext"
14919    # Insert the option either (1) after the last *FLAGS variable, or
14920    # (2) before a word containing "conftest.", or (3) at the end.
14921    # Note that $ac_compile itself does not contain backslashes and begins
14922    # with a dollar sign (not a hyphen), so the echo should work correctly.
14923    lt_compile=`echo "$ac_compile" | $SED \
14924    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14925    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14926    -e 's:$: $lt_compiler_flag:'`
14927    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14928    (eval "$lt_compile" 2>out/conftest.err)
14929    ac_status=$?
14930    cat out/conftest.err >&5
14931    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14933    then
14934      # The compiler can only warn and ignore the option if not recognized
14935      # So say no if there are warnings
14936      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14937      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14938      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14939        lt_cv_prog_compiler_c_o_CXX=yes
14940      fi
14941    fi
14942    chmod u+w . 2>&5
14943    $RM conftest*
14944    # SGI C++ compiler will create directory out/ii_files/ for
14945    # template instantiation
14946    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14947    $RM out/* && rmdir out
14948    cd ..
14949    $RM -r conftest
14950    $RM conftest*
14951
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14954 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14955
14956
14957
14958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14960 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14961   $as_echo_n "(cached) " >&6
14962 else
14963   lt_cv_prog_compiler_c_o_CXX=no
14964    $RM -r conftest 2>/dev/null
14965    mkdir conftest
14966    cd conftest
14967    mkdir out
14968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14969
14970    lt_compiler_flag="-o out/conftest2.$ac_objext"
14971    # Insert the option either (1) after the last *FLAGS variable, or
14972    # (2) before a word containing "conftest.", or (3) at the end.
14973    # Note that $ac_compile itself does not contain backslashes and begins
14974    # with a dollar sign (not a hyphen), so the echo should work correctly.
14975    lt_compile=`echo "$ac_compile" | $SED \
14976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978    -e 's:$: $lt_compiler_flag:'`
14979    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14980    (eval "$lt_compile" 2>out/conftest.err)
14981    ac_status=$?
14982    cat out/conftest.err >&5
14983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14985    then
14986      # The compiler can only warn and ignore the option if not recognized
14987      # So say no if there are warnings
14988      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14989      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14990      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14991        lt_cv_prog_compiler_c_o_CXX=yes
14992      fi
14993    fi
14994    chmod u+w . 2>&5
14995    $RM conftest*
14996    # SGI C++ compiler will create directory out/ii_files/ for
14997    # template instantiation
14998    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14999    $RM out/* && rmdir out
15000    cd ..
15001    $RM -r conftest
15002    $RM conftest*
15003
15004 fi
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15006 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15007
15008
15009
15010
15011 hard_links="nottested"
15012 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15013   # do not overwrite the value of need_locks provided by the user
15014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15015 $as_echo_n "checking if we can lock with hard links... " >&6; }
15016   hard_links=yes
15017   $RM conftest*
15018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15019   touch conftest.a
15020   ln conftest.a conftest.b 2>&5 || hard_links=no
15021   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15023 $as_echo "$hard_links" >&6; }
15024   if test "$hard_links" = no; then
15025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15027     need_locks=warn
15028   fi
15029 else
15030   need_locks=no
15031 fi
15032
15033
15034
15035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15036 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15037
15038   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15039   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15040   case $host_os in
15041   aix[4-9]*)
15042     # If we're using GNU nm, then we don't want the "-C" option.
15043     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15044     # Also, AIX nm treats weak defined symbols like other global defined
15045     # symbols, whereas GNU nm marks them as "W".
15046     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15047       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15048     else
15049       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15050     fi
15051     ;;
15052   pw32*)
15053     export_symbols_cmds_CXX="$ltdll_cmds"
15054     ;;
15055   cygwin* | mingw* | cegcc*)
15056     case $cc_basename in
15057     cl*)
15058       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15059       ;;
15060     *)
15061       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15062       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15063       ;;
15064     esac
15065     ;;
15066   linux* | k*bsd*-gnu | gnu*)
15067     link_all_deplibs_CXX=no
15068     ;;
15069   *)
15070     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15071     ;;
15072   esac
15073
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15075 $as_echo "$ld_shlibs_CXX" >&6; }
15076 test "$ld_shlibs_CXX" = no && can_build_shared=no
15077
15078 with_gnu_ld_CXX=$with_gnu_ld
15079
15080
15081
15082
15083
15084
15085 #
15086 # Do we need to explicitly link libc?
15087 #
15088 case "x$archive_cmds_need_lc_CXX" in
15089 x|xyes)
15090   # Assume -lc should be added
15091   archive_cmds_need_lc_CXX=yes
15092
15093   if test "$enable_shared" = yes && test "$GCC" = yes; then
15094     case $archive_cmds_CXX in
15095     *'~'*)
15096       # FIXME: we may have to deal with multi-command sequences.
15097       ;;
15098     '$CC '*)
15099       # Test whether the compiler implicitly links with -lc since on some
15100       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15101       # to ld, don't add -lc before -lgcc.
15102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15104 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15105   $as_echo_n "(cached) " >&6
15106 else
15107   $RM conftest*
15108         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15109
15110         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15111   (eval $ac_compile) 2>&5
15112   ac_status=$?
15113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15114   test $ac_status = 0; } 2>conftest.err; then
15115           soname=conftest
15116           lib=conftest
15117           libobjs=conftest.$ac_objext
15118           deplibs=
15119           wl=$lt_prog_compiler_wl_CXX
15120           pic_flag=$lt_prog_compiler_pic_CXX
15121           compiler_flags=-v
15122           linker_flags=-v
15123           verstring=
15124           output_objdir=.
15125           libname=conftest
15126           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15127           allow_undefined_flag_CXX=
15128           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15129   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15130   ac_status=$?
15131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15132   test $ac_status = 0; }
15133           then
15134             lt_cv_archive_cmds_need_lc_CXX=no
15135           else
15136             lt_cv_archive_cmds_need_lc_CXX=yes
15137           fi
15138           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15139         else
15140           cat conftest.err 1>&5
15141         fi
15142         $RM conftest*
15143
15144 fi
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15146 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15147       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15148       ;;
15149     esac
15150   fi
15151   ;;
15152 esac
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15216 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15217
15218 library_names_spec=
15219 libname_spec='lib$name'
15220 soname_spec=
15221 shrext_cmds=".so"
15222 postinstall_cmds=
15223 postuninstall_cmds=
15224 finish_cmds=
15225 finish_eval=
15226 shlibpath_var=
15227 shlibpath_overrides_runpath=unknown
15228 version_type=none
15229 dynamic_linker="$host_os ld.so"
15230 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15231 need_lib_prefix=unknown
15232 hardcode_into_libs=no
15233
15234 # when you set need_version to no, make sure it does not cause -set_version
15235 # flags to be left without arguments
15236 need_version=unknown
15237
15238 case $host_os in
15239 aix3*)
15240   version_type=linux # correct to gnu/linux during the next big refactor
15241   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15242   shlibpath_var=LIBPATH
15243
15244   # AIX 3 has no versioning support, so we append a major version to the name.
15245   soname_spec='${libname}${release}${shared_ext}$major'
15246   ;;
15247
15248 aix[4-9]*)
15249   version_type=linux # correct to gnu/linux during the next big refactor
15250   need_lib_prefix=no
15251   need_version=no
15252   hardcode_into_libs=yes
15253   if test "$host_cpu" = ia64; then
15254     # AIX 5 supports IA64
15255     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15256     shlibpath_var=LD_LIBRARY_PATH
15257   else
15258     # With GCC up to 2.95.x, collect2 would create an import file
15259     # for dependence libraries.  The import file would start with
15260     # the line `#! .'.  This would cause the generated library to
15261     # depend on `.', always an invalid library.  This was fixed in
15262     # development snapshots of GCC prior to 3.0.
15263     case $host_os in
15264       aix4 | aix4.[01] | aix4.[01].*)
15265       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15266            echo ' yes '
15267            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15268         :
15269       else
15270         can_build_shared=no
15271       fi
15272       ;;
15273     esac
15274     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15275     # soname into executable. Probably we can add versioning support to
15276     # collect2, so additional links can be useful in future.
15277     if test "$aix_use_runtimelinking" = yes; then
15278       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15279       # instead of lib<name>.a to let people know that these are not
15280       # typical AIX shared libraries.
15281       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282     else
15283       # We preserve .a as extension for shared libraries through AIX4.2
15284       # and later when we are not doing run time linking.
15285       library_names_spec='${libname}${release}.a $libname.a'
15286       soname_spec='${libname}${release}${shared_ext}$major'
15287     fi
15288     shlibpath_var=LIBPATH
15289   fi
15290   ;;
15291
15292 amigaos*)
15293   case $host_cpu in
15294   powerpc)
15295     # Since July 2007 AmigaOS4 officially supports .so libraries.
15296     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298     ;;
15299   m68k)
15300     library_names_spec='$libname.ixlibrary $libname.a'
15301     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15302     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15303     ;;
15304   esac
15305   ;;
15306
15307 beos*)
15308   library_names_spec='${libname}${shared_ext}'
15309   dynamic_linker="$host_os ld.so"
15310   shlibpath_var=LIBRARY_PATH
15311   ;;
15312
15313 bsdi[45]*)
15314   version_type=linux # correct to gnu/linux during the next big refactor
15315   need_version=no
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317   soname_spec='${libname}${release}${shared_ext}$major'
15318   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15319   shlibpath_var=LD_LIBRARY_PATH
15320   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15321   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15322   # the default ld.so.conf also contains /usr/contrib/lib and
15323   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15324   # libtool to hard-code these into programs
15325   ;;
15326
15327 cygwin* | mingw* | pw32* | cegcc*)
15328   version_type=windows
15329   shrext_cmds=".dll"
15330   need_version=no
15331   need_lib_prefix=no
15332
15333   case $GCC,$cc_basename in
15334   yes,*)
15335     # gcc
15336     library_names_spec='$libname.dll.a'
15337     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15338     postinstall_cmds='base_file=`basename \${file}`~
15339       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15340       dldir=$destdir/`dirname \$dlpath`~
15341       test -d \$dldir || mkdir -p \$dldir~
15342       $install_prog $dir/$dlname \$dldir/$dlname~
15343       chmod a+x \$dldir/$dlname~
15344       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15345         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15346       fi'
15347     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15348       dlpath=$dir/\$dldll~
15349        $RM \$dlpath'
15350     shlibpath_overrides_runpath=yes
15351
15352     case $host_os in
15353     cygwin*)
15354       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15355       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15356
15357       ;;
15358     mingw* | cegcc*)
15359       # MinGW DLLs use traditional 'lib' prefix
15360       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15361       ;;
15362     pw32*)
15363       # pw32 DLLs use 'pw' prefix rather than 'lib'
15364       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15365       ;;
15366     esac
15367     dynamic_linker='Win32 ld.exe'
15368     ;;
15369
15370   *,cl*)
15371     # Native MSVC
15372     libname_spec='$name'
15373     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15374     library_names_spec='${libname}.dll.lib'
15375
15376     case $build_os in
15377     mingw*)
15378       sys_lib_search_path_spec=
15379       lt_save_ifs=$IFS
15380       IFS=';'
15381       for lt_path in $LIB
15382       do
15383         IFS=$lt_save_ifs
15384         # Let DOS variable expansion print the short 8.3 style file name.
15385         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15386         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15387       done
15388       IFS=$lt_save_ifs
15389       # Convert to MSYS style.
15390       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15391       ;;
15392     cygwin*)
15393       # Convert to unix form, then to dos form, then back to unix form
15394       # but this time dos style (no spaces!) so that the unix form looks
15395       # like /cygdrive/c/PROGRA~1:/cygdr...
15396       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15397       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15398       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15399       ;;
15400     *)
15401       sys_lib_search_path_spec="$LIB"
15402       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15403         # It is most probably a Windows format PATH.
15404         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15405       else
15406         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15407       fi
15408       # FIXME: find the short name or the path components, as spaces are
15409       # common. (e.g. "Program Files" -> "PROGRA~1")
15410       ;;
15411     esac
15412
15413     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15414     postinstall_cmds='base_file=`basename \${file}`~
15415       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15416       dldir=$destdir/`dirname \$dlpath`~
15417       test -d \$dldir || mkdir -p \$dldir~
15418       $install_prog $dir/$dlname \$dldir/$dlname'
15419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15420       dlpath=$dir/\$dldll~
15421        $RM \$dlpath'
15422     shlibpath_overrides_runpath=yes
15423     dynamic_linker='Win32 link.exe'
15424     ;;
15425
15426   *)
15427     # Assume MSVC wrapper
15428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15429     dynamic_linker='Win32 ld.exe'
15430     ;;
15431   esac
15432   # FIXME: first we should search . and the directory the executable is in
15433   shlibpath_var=PATH
15434   ;;
15435
15436 darwin* | rhapsody*)
15437   dynamic_linker="$host_os dyld"
15438   version_type=darwin
15439   need_lib_prefix=no
15440   need_version=no
15441   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15442   soname_spec='${libname}${release}${major}$shared_ext'
15443   shlibpath_overrides_runpath=yes
15444   shlibpath_var=DYLD_LIBRARY_PATH
15445   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15446
15447   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15448   ;;
15449
15450 dgux*)
15451   version_type=linux # correct to gnu/linux during the next big refactor
15452   need_lib_prefix=no
15453   need_version=no
15454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15455   soname_spec='${libname}${release}${shared_ext}$major'
15456   shlibpath_var=LD_LIBRARY_PATH
15457   ;;
15458
15459 freebsd* | dragonfly*)
15460   # DragonFly does not have aout.  When/if they implement a new
15461   # versioning mechanism, adjust this.
15462   if test -x /usr/bin/objformat; then
15463     objformat=`/usr/bin/objformat`
15464   else
15465     case $host_os in
15466     freebsd[23].*) objformat=aout ;;
15467     *) objformat=elf ;;
15468     esac
15469   fi
15470   version_type=freebsd-$objformat
15471   case $version_type in
15472     freebsd-elf*)
15473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15474       need_version=no
15475       need_lib_prefix=no
15476       ;;
15477     freebsd-*)
15478       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15479       need_version=yes
15480       ;;
15481   esac
15482   shlibpath_var=LD_LIBRARY_PATH
15483   case $host_os in
15484   freebsd2.*)
15485     shlibpath_overrides_runpath=yes
15486     ;;
15487   freebsd3.[01]* | freebsdelf3.[01]*)
15488     shlibpath_overrides_runpath=yes
15489     hardcode_into_libs=yes
15490     ;;
15491   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15492   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15493     shlibpath_overrides_runpath=no
15494     hardcode_into_libs=yes
15495     ;;
15496   *) # from 4.6 on, and DragonFly
15497     shlibpath_overrides_runpath=yes
15498     hardcode_into_libs=yes
15499     ;;
15500   esac
15501   ;;
15502
15503 gnu*)
15504   version_type=linux # correct to gnu/linux during the next big refactor
15505   need_lib_prefix=no
15506   need_version=no
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   shlibpath_var=LD_LIBRARY_PATH
15510   shlibpath_overrides_runpath=no
15511   hardcode_into_libs=yes
15512   ;;
15513
15514 haiku*)
15515   version_type=linux # correct to gnu/linux during the next big refactor
15516   need_lib_prefix=no
15517   need_version=no
15518   dynamic_linker="$host_os runtime_loader"
15519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15520   soname_spec='${libname}${release}${shared_ext}$major'
15521   shlibpath_var=LIBRARY_PATH
15522   shlibpath_overrides_runpath=yes
15523   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15524   hardcode_into_libs=yes
15525   ;;
15526
15527 hpux9* | hpux10* | hpux11*)
15528   # Give a soname corresponding to the major version so that dld.sl refuses to
15529   # link against other versions.
15530   version_type=sunos
15531   need_lib_prefix=no
15532   need_version=no
15533   case $host_cpu in
15534   ia64*)
15535     shrext_cmds='.so'
15536     hardcode_into_libs=yes
15537     dynamic_linker="$host_os dld.so"
15538     shlibpath_var=LD_LIBRARY_PATH
15539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541     soname_spec='${libname}${release}${shared_ext}$major'
15542     if test "X$HPUX_IA64_MODE" = X32; then
15543       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15544     else
15545       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15546     fi
15547     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15548     ;;
15549   hppa*64*)
15550     shrext_cmds='.sl'
15551     hardcode_into_libs=yes
15552     dynamic_linker="$host_os dld.sl"
15553     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556     soname_spec='${libname}${release}${shared_ext}$major'
15557     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15559     ;;
15560   *)
15561     shrext_cmds='.sl'
15562     dynamic_linker="$host_os dld.sl"
15563     shlibpath_var=SHLIB_PATH
15564     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566     soname_spec='${libname}${release}${shared_ext}$major'
15567     ;;
15568   esac
15569   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15570   postinstall_cmds='chmod 555 $lib'
15571   # or fails outright, so override atomically:
15572   install_override_mode=555
15573   ;;
15574
15575 interix[3-9]*)
15576   version_type=linux # correct to gnu/linux during the next big refactor
15577   need_lib_prefix=no
15578   need_version=no
15579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15580   soname_spec='${libname}${release}${shared_ext}$major'
15581   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15582   shlibpath_var=LD_LIBRARY_PATH
15583   shlibpath_overrides_runpath=no
15584   hardcode_into_libs=yes
15585   ;;
15586
15587 irix5* | irix6* | nonstopux*)
15588   case $host_os in
15589     nonstopux*) version_type=nonstopux ;;
15590     *)
15591         if test "$lt_cv_prog_gnu_ld" = yes; then
15592                 version_type=linux # correct to gnu/linux during the next big refactor
15593         else
15594                 version_type=irix
15595         fi ;;
15596   esac
15597   need_lib_prefix=no
15598   need_version=no
15599   soname_spec='${libname}${release}${shared_ext}$major'
15600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15601   case $host_os in
15602   irix5* | nonstopux*)
15603     libsuff= shlibsuff=
15604     ;;
15605   *)
15606     case $LD in # libtool.m4 will add one of these switches to LD
15607     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15608       libsuff= shlibsuff= libmagic=32-bit;;
15609     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15610       libsuff=32 shlibsuff=N32 libmagic=N32;;
15611     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15612       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15613     *) libsuff= shlibsuff= libmagic=never-match;;
15614     esac
15615     ;;
15616   esac
15617   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15618   shlibpath_overrides_runpath=no
15619   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15620   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15621   hardcode_into_libs=yes
15622   ;;
15623
15624 # No shared lib support for Linux oldld, aout, or coff.
15625 linux*oldld* | linux*aout* | linux*coff*)
15626   dynamic_linker=no
15627   ;;
15628
15629 # This must be glibc/ELF.
15630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15631   version_type=linux # correct to gnu/linux during the next big refactor
15632   need_lib_prefix=no
15633   need_version=no
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635   soname_spec='${libname}${release}${shared_ext}$major'
15636   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15637   shlibpath_var=LD_LIBRARY_PATH
15638   shlibpath_overrides_runpath=no
15639
15640   # Some binutils ld are patched to set DT_RUNPATH
15641   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15642   $as_echo_n "(cached) " >&6
15643 else
15644   lt_cv_shlibpath_overrides_runpath=no
15645     save_LDFLAGS=$LDFLAGS
15646     save_libdir=$libdir
15647     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15648          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15649     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h.  */
15651
15652 int
15653 main ()
15654 {
15655
15656   ;
15657   return 0;
15658 }
15659 _ACEOF
15660 if ac_fn_cxx_try_link "$LINENO"; then :
15661   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15662   lt_cv_shlibpath_overrides_runpath=yes
15663 fi
15664 fi
15665 rm -f core conftest.err conftest.$ac_objext \
15666     conftest$ac_exeext conftest.$ac_ext
15667     LDFLAGS=$save_LDFLAGS
15668     libdir=$save_libdir
15669
15670 fi
15671
15672   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15673
15674   # This implies no fast_install, which is unacceptable.
15675   # Some rework will be needed to allow for fast_install
15676   # before this can be enabled.
15677   hardcode_into_libs=yes
15678
15679   # Append ld.so.conf contents to the search path
15680   if test -f /etc/ld.so.conf; then
15681     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' ' '`
15682     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15683   fi
15684
15685   # We used to test for /lib/ld.so.1 and disable shared libraries on
15686   # powerpc, because MkLinux only supported shared libraries with the
15687   # GNU dynamic linker.  Since this was broken with cross compilers,
15688   # most powerpc-linux boxes support dynamic linking these days and
15689   # people can always --disable-shared, the test was removed, and we
15690   # assume the GNU/Linux dynamic linker is in use.
15691   dynamic_linker='GNU/Linux ld.so'
15692   ;;
15693
15694 netbsdelf*-gnu)
15695   version_type=linux
15696   need_lib_prefix=no
15697   need_version=no
15698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15699   soname_spec='${libname}${release}${shared_ext}$major'
15700   shlibpath_var=LD_LIBRARY_PATH
15701   shlibpath_overrides_runpath=no
15702   hardcode_into_libs=yes
15703   dynamic_linker='NetBSD ld.elf_so'
15704   ;;
15705
15706 netbsd*)
15707   version_type=sunos
15708   need_lib_prefix=no
15709   need_version=no
15710   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15713     dynamic_linker='NetBSD (a.out) ld.so'
15714   else
15715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15716     soname_spec='${libname}${release}${shared_ext}$major'
15717     dynamic_linker='NetBSD ld.elf_so'
15718   fi
15719   shlibpath_var=LD_LIBRARY_PATH
15720   shlibpath_overrides_runpath=yes
15721   hardcode_into_libs=yes
15722   ;;
15723
15724 newsos6)
15725   version_type=linux # correct to gnu/linux during the next big refactor
15726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727   shlibpath_var=LD_LIBRARY_PATH
15728   shlibpath_overrides_runpath=yes
15729   ;;
15730
15731 *nto* | *qnx*)
15732   version_type=qnx
15733   need_lib_prefix=no
15734   need_version=no
15735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736   soname_spec='${libname}${release}${shared_ext}$major'
15737   shlibpath_var=LD_LIBRARY_PATH
15738   shlibpath_overrides_runpath=no
15739   hardcode_into_libs=yes
15740   dynamic_linker='ldqnx.so'
15741   ;;
15742
15743 openbsd*)
15744   version_type=sunos
15745   sys_lib_dlsearch_path_spec="/usr/lib"
15746   need_lib_prefix=no
15747   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15748   case $host_os in
15749     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15750     *)                          need_version=no  ;;
15751   esac
15752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15753   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15754   shlibpath_var=LD_LIBRARY_PATH
15755   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15756     case $host_os in
15757       openbsd2.[89] | openbsd2.[89].*)
15758         shlibpath_overrides_runpath=no
15759         ;;
15760       *)
15761         shlibpath_overrides_runpath=yes
15762         ;;
15763       esac
15764   else
15765     shlibpath_overrides_runpath=yes
15766   fi
15767   ;;
15768
15769 os2*)
15770   libname_spec='$name'
15771   shrext_cmds=".dll"
15772   need_lib_prefix=no
15773   library_names_spec='$libname${shared_ext} $libname.a'
15774   dynamic_linker='OS/2 ld.exe'
15775   shlibpath_var=LIBPATH
15776   ;;
15777
15778 osf3* | osf4* | osf5*)
15779   version_type=osf
15780   need_lib_prefix=no
15781   need_version=no
15782   soname_spec='${libname}${release}${shared_ext}$major'
15783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784   shlibpath_var=LD_LIBRARY_PATH
15785   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15786   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15787   ;;
15788
15789 rdos*)
15790   dynamic_linker=no
15791   ;;
15792
15793 solaris*)
15794   version_type=linux # correct to gnu/linux during the next big refactor
15795   need_lib_prefix=no
15796   need_version=no
15797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798   soname_spec='${libname}${release}${shared_ext}$major'
15799   shlibpath_var=LD_LIBRARY_PATH
15800   shlibpath_overrides_runpath=yes
15801   hardcode_into_libs=yes
15802   # ldd complains unless libraries are executable
15803   postinstall_cmds='chmod +x $lib'
15804   ;;
15805
15806 sunos4*)
15807   version_type=sunos
15808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15809   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15810   shlibpath_var=LD_LIBRARY_PATH
15811   shlibpath_overrides_runpath=yes
15812   if test "$with_gnu_ld" = yes; then
15813     need_lib_prefix=no
15814   fi
15815   need_version=yes
15816   ;;
15817
15818 sysv4 | sysv4.3*)
15819   version_type=linux # correct to gnu/linux during the next big refactor
15820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821   soname_spec='${libname}${release}${shared_ext}$major'
15822   shlibpath_var=LD_LIBRARY_PATH
15823   case $host_vendor in
15824     sni)
15825       shlibpath_overrides_runpath=no
15826       need_lib_prefix=no
15827       runpath_var=LD_RUN_PATH
15828       ;;
15829     siemens)
15830       need_lib_prefix=no
15831       ;;
15832     motorola)
15833       need_lib_prefix=no
15834       need_version=no
15835       shlibpath_overrides_runpath=no
15836       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15837       ;;
15838   esac
15839   ;;
15840
15841 sysv4*MP*)
15842   if test -d /usr/nec ;then
15843     version_type=linux # correct to gnu/linux during the next big refactor
15844     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15845     soname_spec='$libname${shared_ext}.$major'
15846     shlibpath_var=LD_LIBRARY_PATH
15847   fi
15848   ;;
15849
15850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15851   version_type=freebsd-elf
15852   need_lib_prefix=no
15853   need_version=no
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15855   soname_spec='${libname}${release}${shared_ext}$major'
15856   shlibpath_var=LD_LIBRARY_PATH
15857   shlibpath_overrides_runpath=yes
15858   hardcode_into_libs=yes
15859   if test "$with_gnu_ld" = yes; then
15860     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15861   else
15862     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15863     case $host_os in
15864       sco3.2v5*)
15865         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15866         ;;
15867     esac
15868   fi
15869   sys_lib_dlsearch_path_spec='/usr/lib'
15870   ;;
15871
15872 tpf*)
15873   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15874   version_type=linux # correct to gnu/linux during the next big refactor
15875   need_lib_prefix=no
15876   need_version=no
15877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878   shlibpath_var=LD_LIBRARY_PATH
15879   shlibpath_overrides_runpath=no
15880   hardcode_into_libs=yes
15881   ;;
15882
15883 uts4*)
15884   version_type=linux # correct to gnu/linux during the next big refactor
15885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886   soname_spec='${libname}${release}${shared_ext}$major'
15887   shlibpath_var=LD_LIBRARY_PATH
15888   ;;
15889
15890 *)
15891   dynamic_linker=no
15892   ;;
15893 esac
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15895 $as_echo "$dynamic_linker" >&6; }
15896 test "$dynamic_linker" = no && can_build_shared=no
15897
15898 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15899 if test "$GCC" = yes; then
15900   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15901 fi
15902
15903 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15904   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15905 fi
15906 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15907   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15908 fi
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15949 hardcode_action_CXX=
15950 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15951    test -n "$runpath_var_CXX" ||
15952    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15953
15954   # We can hardcode non-existent directories.
15955   if test "$hardcode_direct_CXX" != no &&
15956      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15957      # have to relink, otherwise we might link with an installed library
15958      # when we should be linking with a yet-to-be-installed one
15959      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15960      test "$hardcode_minus_L_CXX" != no; then
15961     # Linking always hardcodes the temporary library directory.
15962     hardcode_action_CXX=relink
15963   else
15964     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15965     hardcode_action_CXX=immediate
15966   fi
15967 else
15968   # We cannot hardcode anything, or else we can only hardcode existing
15969   # directories.
15970   hardcode_action_CXX=unsupported
15971 fi
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15973 $as_echo "$hardcode_action_CXX" >&6; }
15974
15975 if test "$hardcode_action_CXX" = relink ||
15976    test "$inherit_rpath_CXX" = yes; then
15977   # Fast installation is not supported
15978   enable_fast_install=no
15979 elif test "$shlibpath_overrides_runpath" = yes ||
15980      test "$enable_shared" = no; then
15981   # Fast installation is not necessary
15982   enable_fast_install=needless
15983 fi
15984
15985
15986
15987
15988
15989
15990
15991   fi # test -n "$compiler"
15992
15993   CC=$lt_save_CC
15994   CFLAGS=$lt_save_CFLAGS
15995   LDCXX=$LD
15996   LD=$lt_save_LD
15997   GCC=$lt_save_GCC
15998   with_gnu_ld=$lt_save_with_gnu_ld
15999   lt_cv_path_LDCXX=$lt_cv_path_LD
16000   lt_cv_path_LD=$lt_save_path_LD
16001   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16002   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16003 fi # test "$_lt_caught_CXX_error" != yes
16004
16005 ac_ext=c
16006 ac_cpp='$CPP $CPPFLAGS'
16007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16010
16011
16012
16013
16014 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16015         if test -n "$ac_tool_prefix"; then
16016   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16017 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16019 $as_echo_n "checking for $ac_word... " >&6; }
16020 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16021   $as_echo_n "(cached) " >&6
16022 else
16023   case $PKG_CONFIG in
16024   [\\/]* | ?:[\\/]*)
16025   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16026   ;;
16027   *)
16028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16029 for as_dir in $PATH
16030 do
16031   IFS=$as_save_IFS
16032   test -z "$as_dir" && as_dir=.
16033     for ac_exec_ext in '' $ac_executable_extensions; do
16034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16035     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16037     break 2
16038   fi
16039 done
16040   done
16041 IFS=$as_save_IFS
16042
16043   ;;
16044 esac
16045 fi
16046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16047 if test -n "$PKG_CONFIG"; then
16048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16049 $as_echo "$PKG_CONFIG" >&6; }
16050 else
16051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16053 fi
16054
16055
16056 fi
16057 if test -z "$ac_cv_path_PKG_CONFIG"; then
16058   ac_pt_PKG_CONFIG=$PKG_CONFIG
16059   # Extract the first word of "pkg-config", so it can be a program name with args.
16060 set dummy pkg-config; ac_word=$2
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16062 $as_echo_n "checking for $ac_word... " >&6; }
16063 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16064   $as_echo_n "(cached) " >&6
16065 else
16066   case $ac_pt_PKG_CONFIG in
16067   [\\/]* | ?:[\\/]*)
16068   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16069   ;;
16070   *)
16071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16072 for as_dir in $PATH
16073 do
16074   IFS=$as_save_IFS
16075   test -z "$as_dir" && as_dir=.
16076     for ac_exec_ext in '' $ac_executable_extensions; do
16077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16078     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16080     break 2
16081   fi
16082 done
16083   done
16084 IFS=$as_save_IFS
16085
16086   ;;
16087 esac
16088 fi
16089 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16090 if test -n "$ac_pt_PKG_CONFIG"; then
16091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16092 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16093 else
16094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16096 fi
16097
16098   if test "x$ac_pt_PKG_CONFIG" = x; then
16099     PKG_CONFIG=""
16100   else
16101     case $cross_compiling:$ac_tool_warned in
16102 yes:)
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16105 ac_tool_warned=yes ;;
16106 esac
16107     PKG_CONFIG=$ac_pt_PKG_CONFIG
16108   fi
16109 else
16110   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16111 fi
16112
16113 fi
16114 if test -n "$PKG_CONFIG"; then
16115         _pkg_min_version=0.20
16116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16117 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16118         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16119                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16120 $as_echo "yes" >&6; }
16121         else
16122                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16123 $as_echo "no" >&6; }
16124                 PKG_CONFIG=""
16125         fi
16126
16127 fi
16128
16129 # Version
16130
16131
16132
16133
16134 HB_VERSION_MAJOR=0
16135 HB_VERSION_MINOR=9
16136 HB_VERSION_MICRO=12
16137 HB_VERSION=0.9.12
16138
16139
16140
16141
16142
16143 # Libtool version
16144
16145
16146
16147
16148 HB_LIBTOOL_VERSION_INFO=912:0:912
16149
16150
16151
16152 # Functions and headers
16153 for ac_func in atexit mprotect sysconf getpagesize mmap _setmode isatty
16154 do :
16155   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16158   cat >>confdefs.h <<_ACEOF
16159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16160 _ACEOF
16161
16162 fi
16163 done
16164
16165 for ac_header in unistd.h sys/mman.h io.h
16166 do :
16167   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16168 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16169 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16170   cat >>confdefs.h <<_ACEOF
16171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16172 _ACEOF
16173
16174 fi
16175
16176 done
16177
16178
16179 # Compiler flags
16180
16181 if test "x$GCC" = "xyes"; then
16182
16183         # Make symbols link locally
16184         LDFLAGS="$LDFLAGS -Bsymbolic-functions"
16185
16186         # Make sure we don't link to libstdc++
16187         CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
16188
16189         # Assorted warnings
16190         CXXFLAGS="$CXXFLAGS -Wcast-align"
16191
16192         case "$host" in
16193                 *-*-mingw*)
16194                 ;;
16195                 *)
16196                         # Hide inline methods
16197                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
16198                 ;;
16199         esac
16200
16201         case "$host" in
16202                 arm-*-*)
16203                         # Request byte alignment on arm
16204                         CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
16205                 ;;
16206         esac
16207 fi
16208
16209  if test "x$GCC" = "xyes"; then
16210   HAVE_GCC_TRUE=
16211   HAVE_GCC_FALSE='#'
16212 else
16213   HAVE_GCC_TRUE='#'
16214   HAVE_GCC_FALSE=
16215 fi
16216
16217
16218 hb_os_win32=no
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
16220 $as_echo_n "checking for native Win32... " >&6; }
16221 case "$host" in
16222   *-*-mingw*)
16223     hb_os_win32=yes
16224     ;;
16225 esac
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
16227 $as_echo "$hb_os_win32" >&6; }
16228  if test "$hb_os_win32" = "yes"; then
16229   OS_WIN32_TRUE=
16230   OS_WIN32_FALSE='#'
16231 else
16232   OS_WIN32_TRUE='#'
16233   OS_WIN32_FALSE=
16234 fi
16235
16236
16237 have_pthread=false
16238 if test "$hb_os_win32" = no; then
16239
16240
16241 ac_ext=c
16242 ac_cpp='$CPP $CPPFLAGS'
16243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16246
16247 ax_pthread_ok=no
16248
16249 # We used to check for pthread.h first, but this fails if pthread.h
16250 # requires special compiler flags (e.g. on True64 or Sequent).
16251 # It gets checked for in the link test anyway.
16252
16253 # First of all, check if the user has set any of the PTHREAD_LIBS,
16254 # etcetera environment variables, and if threads linking works using
16255 # them:
16256 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16257         save_CFLAGS="$CFLAGS"
16258         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16259         save_LIBS="$LIBS"
16260         LIBS="$PTHREAD_LIBS $LIBS"
16261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16262 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16263         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h.  */
16265
16266 /* Override any GCC internal prototype to avoid an error.
16267    Use char because int might match the return type of a GCC
16268    builtin and then its argument prototype would still apply.  */
16269 #ifdef __cplusplus
16270 extern "C"
16271 #endif
16272 char pthread_join ();
16273 int
16274 main ()
16275 {
16276 return pthread_join ();
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 if ac_fn_c_try_link "$LINENO"; then :
16282   ax_pthread_ok=yes
16283 fi
16284 rm -f core conftest.err conftest.$ac_objext \
16285     conftest$ac_exeext conftest.$ac_ext
16286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16287 $as_echo "$ax_pthread_ok" >&6; }
16288         if test x"$ax_pthread_ok" = xno; then
16289                 PTHREAD_LIBS=""
16290                 PTHREAD_CFLAGS=""
16291         fi
16292         LIBS="$save_LIBS"
16293         CFLAGS="$save_CFLAGS"
16294 fi
16295
16296 # We must check for the threads library under a number of different
16297 # names; the ordering is very important because some systems
16298 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16299 # libraries is broken (non-POSIX).
16300
16301 # Create a list of thread flags to try.  Items starting with a "-" are
16302 # C compiler flags, and other items are library names, except for "none"
16303 # which indicates that we try without any flags at all, and "pthread-config"
16304 # which is a program returning the flags for the Pth emulation library.
16305
16306 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16307
16308 # The ordering *is* (sometimes) important.  Some notes on the
16309 # individual items follow:
16310
16311 # pthreads: AIX (must check this before -lpthread)
16312 # none: in case threads are in libc; should be tried before -Kthread and
16313 #       other compiler flags to prevent continual compiler warnings
16314 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16315 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16316 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16317 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16318 # -pthreads: Solaris/gcc
16319 # -mthreads: Mingw32/gcc, Lynx/gcc
16320 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16321 #      doesn't hurt to check since this sometimes defines pthreads too;
16322 #      also defines -D_REENTRANT)
16323 #      ... -mt is also the pthreads flag for HP/aCC
16324 # pthread: Linux, etcetera
16325 # --thread-safe: KAI C++
16326 # pthread-config: use pthread-config program (for GNU Pth library)
16327
16328 case ${host_os} in
16329         solaris*)
16330
16331         # On Solaris (at least, for some versions), libc contains stubbed
16332         # (non-functional) versions of the pthreads routines, so link-based
16333         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16334         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16335         # a function called by this macro, so we could check for that, but
16336         # who knows whether they'll stub that too in a future libc.)  So,
16337         # we'll just look for -pthreads and -lpthread first:
16338
16339         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16340         ;;
16341
16342         darwin*)
16343         ax_pthread_flags="-pthread $ax_pthread_flags"
16344         ;;
16345 esac
16346
16347 if test x"$ax_pthread_ok" = xno; then
16348 for flag in $ax_pthread_flags; do
16349
16350         case $flag in
16351                 none)
16352                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16353 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16354                 ;;
16355
16356                 -*)
16357                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16358 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16359                 PTHREAD_CFLAGS="$flag"
16360                 ;;
16361
16362                 pthread-config)
16363                 # Extract the first word of "pthread-config", so it can be a program name with args.
16364 set dummy pthread-config; ac_word=$2
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16366 $as_echo_n "checking for $ac_word... " >&6; }
16367 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16368   $as_echo_n "(cached) " >&6
16369 else
16370   if test -n "$ax_pthread_config"; then
16371   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16372 else
16373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16374 for as_dir in $PATH
16375 do
16376   IFS=$as_save_IFS
16377   test -z "$as_dir" && as_dir=.
16378     for ac_exec_ext in '' $ac_executable_extensions; do
16379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16380     ac_cv_prog_ax_pthread_config="yes"
16381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16382     break 2
16383   fi
16384 done
16385   done
16386 IFS=$as_save_IFS
16387
16388   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16389 fi
16390 fi
16391 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16392 if test -n "$ax_pthread_config"; then
16393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16394 $as_echo "$ax_pthread_config" >&6; }
16395 else
16396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397 $as_echo "no" >&6; }
16398 fi
16399
16400
16401                 if test x"$ax_pthread_config" = xno; then continue; fi
16402                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16403                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16404                 ;;
16405
16406                 *)
16407                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16408 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16409                 PTHREAD_LIBS="-l$flag"
16410                 ;;
16411         esac
16412
16413         save_LIBS="$LIBS"
16414         save_CFLAGS="$CFLAGS"
16415         LIBS="$PTHREAD_LIBS $LIBS"
16416         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16417
16418         # Check for various functions.  We must include pthread.h,
16419         # since some functions may be macros.  (On the Sequent, we
16420         # need a special flag -Kthread to make this header compile.)
16421         # We check for pthread_join because it is in -lpthread on IRIX
16422         # while pthread_create is in libc.  We check for pthread_attr_init
16423         # due to DEC craziness with -lpthreads.  We check for
16424         # pthread_cleanup_push because it is one of the few pthread
16425         # functions on Solaris that doesn't have a non-functional libc stub.
16426         # We try pthread_create on general principles.
16427         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h.  */
16429 #include <pthread.h>
16430                         static void routine(void *a) { a = 0; }
16431                         static void *start_routine(void *a) { return a; }
16432 int
16433 main ()
16434 {
16435 pthread_t th; pthread_attr_t attr;
16436                         pthread_create(&th, 0, start_routine, 0);
16437                         pthread_join(th, 0);
16438                         pthread_attr_init(&attr);
16439                         pthread_cleanup_push(routine, 0);
16440                         pthread_cleanup_pop(0) /* ; */
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446   ax_pthread_ok=yes
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext \
16449     conftest$ac_exeext conftest.$ac_ext
16450
16451         LIBS="$save_LIBS"
16452         CFLAGS="$save_CFLAGS"
16453
16454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16455 $as_echo "$ax_pthread_ok" >&6; }
16456         if test "x$ax_pthread_ok" = xyes; then
16457                 break;
16458         fi
16459
16460         PTHREAD_LIBS=""
16461         PTHREAD_CFLAGS=""
16462 done
16463 fi
16464
16465 # Various other checks:
16466 if test "x$ax_pthread_ok" = xyes; then
16467         save_LIBS="$LIBS"
16468         LIBS="$PTHREAD_LIBS $LIBS"
16469         save_CFLAGS="$CFLAGS"
16470         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16471
16472         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16474 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16475         attr_name=unknown
16476         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16477             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h.  */
16479 #include <pthread.h>
16480 int
16481 main ()
16482 {
16483 int attr = $attr; return attr /* ; */
16484   ;
16485   return 0;
16486 }
16487 _ACEOF
16488 if ac_fn_c_try_link "$LINENO"; then :
16489   attr_name=$attr; break
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext \
16492     conftest$ac_exeext conftest.$ac_ext
16493         done
16494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16495 $as_echo "$attr_name" >&6; }
16496         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16497
16498 cat >>confdefs.h <<_ACEOF
16499 #define PTHREAD_CREATE_JOINABLE $attr_name
16500 _ACEOF
16501
16502         fi
16503
16504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16505 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16506         flag=no
16507         case ${host_os} in
16508             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16509             osf* | hpux*) flag="-D_REENTRANT";;
16510             solaris*)
16511             if test "$GCC" = "yes"; then
16512                 flag="-D_REENTRANT"
16513             else
16514                 flag="-mt -D_REENTRANT"
16515             fi
16516             ;;
16517         esac
16518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16519 $as_echo "${flag}" >&6; }
16520         if test "x$flag" != xno; then
16521             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16522         fi
16523
16524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16525 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16526 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16527   $as_echo_n "(cached) " >&6
16528 else
16529
16530                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h.  */
16532
16533                     #include <pthread.h>
16534 int
16535 main ()
16536 {
16537 int i = PTHREAD_PRIO_INHERIT;
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 if ac_fn_c_try_link "$LINENO"; then :
16543   ax_cv_PTHREAD_PRIO_INHERIT=yes
16544 else
16545   ax_cv_PTHREAD_PRIO_INHERIT=no
16546 fi
16547 rm -f core conftest.err conftest.$ac_objext \
16548     conftest$ac_exeext conftest.$ac_ext
16549
16550 fi
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16552 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16553         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16554
16555 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16556
16557 fi
16558
16559         LIBS="$save_LIBS"
16560         CFLAGS="$save_CFLAGS"
16561
16562         # More AIX lossage: must compile with xlc_r or cc_r
16563         if test x"$GCC" != xyes; then
16564           for ac_prog in xlc_r cc_r
16565 do
16566   # Extract the first word of "$ac_prog", so it can be a program name with args.
16567 set dummy $ac_prog; ac_word=$2
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16569 $as_echo_n "checking for $ac_word... " >&6; }
16570 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16571   $as_echo_n "(cached) " >&6
16572 else
16573   if test -n "$PTHREAD_CC"; then
16574   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16575 else
16576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16577 for as_dir in $PATH
16578 do
16579   IFS=$as_save_IFS
16580   test -z "$as_dir" && as_dir=.
16581     for ac_exec_ext in '' $ac_executable_extensions; do
16582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16583     ac_cv_prog_PTHREAD_CC="$ac_prog"
16584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16585     break 2
16586   fi
16587 done
16588   done
16589 IFS=$as_save_IFS
16590
16591 fi
16592 fi
16593 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16594 if test -n "$PTHREAD_CC"; then
16595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16596 $as_echo "$PTHREAD_CC" >&6; }
16597 else
16598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599 $as_echo "no" >&6; }
16600 fi
16601
16602
16603   test -n "$PTHREAD_CC" && break
16604 done
16605 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16606
16607         else
16608           PTHREAD_CC=$CC
16609         fi
16610 else
16611         PTHREAD_CC="$CC"
16612 fi
16613
16614
16615
16616
16617
16618 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16619 if test x"$ax_pthread_ok" = xyes; then
16620         have_pthread=true
16621         :
16622 else
16623         ax_pthread_ok=no
16624
16625 fi
16626 ac_ext=c
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16631
16632
16633 fi
16634 if $have_pthread; then
16635
16636 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16637
16638 fi
16639  if $have_pthread; then
16640   HAVE_PTHREAD_TRUE=
16641   HAVE_PTHREAD_FALSE='#'
16642 else
16643   HAVE_PTHREAD_TRUE='#'
16644   HAVE_PTHREAD_FALSE=
16645 fi
16646
16647
16648
16649 have_ot=true
16650 if $have_ot; then
16651
16652 $as_echo "#define HAVE_OT 1" >>confdefs.h
16653
16654 fi
16655  if $have_ot; then
16656   HAVE_OT_TRUE=
16657   HAVE_OT_FALSE='#'
16658 else
16659   HAVE_OT_TRUE='#'
16660   HAVE_OT_FALSE=
16661 fi
16662
16663
16664
16665 have_hb_old=true
16666 if $have_hb_old; then
16667
16668 $as_echo "#define HAVE_HB_OLD 1" >>confdefs.h
16669
16670 fi
16671  if $have_hb_old; then
16672   HAVE_HB_OLD_TRUE=
16673   HAVE_HB_OLD_FALSE='#'
16674 else
16675   HAVE_HB_OLD_TRUE='#'
16676   HAVE_HB_OLD_FALSE=
16677 fi
16678
16679
16680
16681 have_ucdn=true
16682 if $have_ucdn; then
16683
16684 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
16685
16686 fi
16687  if $have_ucdn; then
16688   HAVE_UCDN_TRUE=
16689   HAVE_UCDN_FALSE='#'
16690 else
16691   HAVE_UCDN_TRUE='#'
16692   HAVE_UCDN_FALSE=
16693 fi
16694
16695
16696
16697
16698 pkg_failed=no
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
16700 $as_echo_n "checking for GLIB... " >&6; }
16701
16702 if test -n "$PKG_CONFIG"; then
16703     if test -n "$GLIB_CFLAGS"; then
16704         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16705     else
16706         if test -n "$PKG_CONFIG" && \
16707     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
16708   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
16709   ac_status=$?
16710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16711   test $ac_status = 0; }; then
16712   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
16713 else
16714   pkg_failed=yes
16715 fi
16716     fi
16717 else
16718         pkg_failed=untried
16719 fi
16720 if test -n "$PKG_CONFIG"; then
16721     if test -n "$GLIB_LIBS"; then
16722         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16723     else
16724         if test -n "$PKG_CONFIG" && \
16725     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
16726   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
16727   ac_status=$?
16728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16729   test $ac_status = 0; }; then
16730   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
16731 else
16732   pkg_failed=yes
16733 fi
16734     fi
16735 else
16736         pkg_failed=untried
16737 fi
16738
16739
16740
16741 if test $pkg_failed = yes; then
16742
16743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16744         _pkg_short_errors_supported=yes
16745 else
16746         _pkg_short_errors_supported=no
16747 fi
16748         if test $_pkg_short_errors_supported = yes; then
16749                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
16750         else
16751                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
16752         fi
16753         # Put the nasty error message in config.log where it belongs
16754         echo "$GLIB_PKG_ERRORS" >&5
16755
16756         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16757 $as_echo "no" >&6; }
16758                 have_glib=false
16759 elif test $pkg_failed = untried; then
16760         have_glib=false
16761 else
16762         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16763         GLIB_LIBS=$pkg_cv_GLIB_LIBS
16764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16765 $as_echo "yes" >&6; }
16766         have_glib=true
16767 fi
16768 if $have_glib; then
16769
16770 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16771
16772 fi
16773  if $have_glib; then
16774   HAVE_GLIB_TRUE=
16775   HAVE_GLIB_FALSE='#'
16776 else
16777   HAVE_GLIB_TRUE='#'
16778   HAVE_GLIB_FALSE=
16779 fi
16780
16781
16782
16783 pkg_failed=no
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
16785 $as_echo_n "checking for GTHREAD... " >&6; }
16786
16787 if test -n "$PKG_CONFIG"; then
16788     if test -n "$GTHREAD_CFLAGS"; then
16789         pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
16790     else
16791         if test -n "$PKG_CONFIG" && \
16792     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
16793   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
16794   ac_status=$?
16795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16796   test $ac_status = 0; }; then
16797   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
16798 else
16799   pkg_failed=yes
16800 fi
16801     fi
16802 else
16803         pkg_failed=untried
16804 fi
16805 if test -n "$PKG_CONFIG"; then
16806     if test -n "$GTHREAD_LIBS"; then
16807         pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
16808     else
16809         if test -n "$PKG_CONFIG" && \
16810     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
16811   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
16812   ac_status=$?
16813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16814   test $ac_status = 0; }; then
16815   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
16816 else
16817   pkg_failed=yes
16818 fi
16819     fi
16820 else
16821         pkg_failed=untried
16822 fi
16823
16824
16825
16826 if test $pkg_failed = yes; then
16827
16828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16829         _pkg_short_errors_supported=yes
16830 else
16831         _pkg_short_errors_supported=no
16832 fi
16833         if test $_pkg_short_errors_supported = yes; then
16834                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0"`
16835         else
16836                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0"`
16837         fi
16838         # Put the nasty error message in config.log where it belongs
16839         echo "$GTHREAD_PKG_ERRORS" >&5
16840
16841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843                 have_gthread=false
16844 elif test $pkg_failed = untried; then
16845         have_gthread=false
16846 else
16847         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
16848         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
16849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850 $as_echo "yes" >&6; }
16851         have_gthread=true
16852 fi
16853 if $have_gthread; then
16854
16855 $as_echo "#define HAVE_GTHREAD 1" >>confdefs.h
16856
16857 fi
16858  if $have_gthread; then
16859   HAVE_GTHREAD_TRUE=
16860   HAVE_GTHREAD_FALSE='#'
16861 else
16862   HAVE_GTHREAD_TRUE='#'
16863   HAVE_GTHREAD_FALSE=
16864 fi
16865
16866
16867
16868 pkg_failed=no
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
16870 $as_echo_n "checking for GOBJECT... " >&6; }
16871
16872 if test -n "$PKG_CONFIG"; then
16873     if test -n "$GOBJECT_CFLAGS"; then
16874         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
16875     else
16876         if test -n "$PKG_CONFIG" && \
16877     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 >= 2.16\""; } >&5
16878   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 >= 2.16") 2>&5
16879   ac_status=$?
16880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16881   test $ac_status = 0; }; then
16882   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0 >= 2.16" 2>/dev/null`
16883 else
16884   pkg_failed=yes
16885 fi
16886     fi
16887 else
16888         pkg_failed=untried
16889 fi
16890 if test -n "$PKG_CONFIG"; then
16891     if test -n "$GOBJECT_LIBS"; then
16892         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
16893     else
16894         if test -n "$PKG_CONFIG" && \
16895     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 >= 2.16\""; } >&5
16896   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 >= 2.16") 2>&5
16897   ac_status=$?
16898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16899   test $ac_status = 0; }; then
16900   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0 >= 2.16" 2>/dev/null`
16901 else
16902   pkg_failed=yes
16903 fi
16904     fi
16905 else
16906         pkg_failed=untried
16907 fi
16908
16909
16910
16911 if test $pkg_failed = yes; then
16912
16913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16914         _pkg_short_errors_supported=yes
16915 else
16916         _pkg_short_errors_supported=no
16917 fi
16918         if test $_pkg_short_errors_supported = yes; then
16919                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0 >= 2.16"`
16920         else
16921                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0 >= 2.16"`
16922         fi
16923         # Put the nasty error message in config.log where it belongs
16924         echo "$GOBJECT_PKG_ERRORS" >&5
16925
16926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16928                 have_gobject=false
16929 elif test $pkg_failed = untried; then
16930         have_gobject=false
16931 else
16932         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
16933         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
16934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16935 $as_echo "yes" >&6; }
16936         have_gobject=true
16937 fi
16938 if $have_gobject; then
16939
16940 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
16941
16942         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
16943
16944 fi
16945  if $have_gobject; then
16946   HAVE_GOBJECT_TRUE=
16947   HAVE_GOBJECT_FALSE='#'
16948 else
16949   HAVE_GOBJECT_TRUE='#'
16950   HAVE_GOBJECT_FALSE=
16951 fi
16952
16953
16954
16955
16956 pkg_failed=no
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
16958 $as_echo_n "checking for CAIRO... " >&6; }
16959
16960 if test -n "$PKG_CONFIG"; then
16961     if test -n "$CAIRO_CFLAGS"; then
16962         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
16963     else
16964         if test -n "$PKG_CONFIG" && \
16965     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
16966   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
16967   ac_status=$?
16968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16969   test $ac_status = 0; }; then
16970   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
16971 else
16972   pkg_failed=yes
16973 fi
16974     fi
16975 else
16976         pkg_failed=untried
16977 fi
16978 if test -n "$PKG_CONFIG"; then
16979     if test -n "$CAIRO_LIBS"; then
16980         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
16981     else
16982         if test -n "$PKG_CONFIG" && \
16983     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
16984   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
16985   ac_status=$?
16986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16987   test $ac_status = 0; }; then
16988   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
16989 else
16990   pkg_failed=yes
16991 fi
16992     fi
16993 else
16994         pkg_failed=untried
16995 fi
16996
16997
16998
16999 if test $pkg_failed = yes; then
17000
17001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17002         _pkg_short_errors_supported=yes
17003 else
17004         _pkg_short_errors_supported=no
17005 fi
17006         if test $_pkg_short_errors_supported = yes; then
17007                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
17008         else
17009                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
17010         fi
17011         # Put the nasty error message in config.log where it belongs
17012         echo "$CAIRO_PKG_ERRORS" >&5
17013
17014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015 $as_echo "no" >&6; }
17016                 have_cairo=false
17017 elif test $pkg_failed = untried; then
17018         have_cairo=false
17019 else
17020         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
17021         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
17022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17023 $as_echo "yes" >&6; }
17024         have_cairo=true
17025 fi
17026 if $have_cairo; then
17027
17028 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
17029
17030 fi
17031  if $have_cairo; then
17032   HAVE_CAIRO_TRUE=
17033   HAVE_CAIRO_FALSE='#'
17034 else
17035   HAVE_CAIRO_TRUE='#'
17036   HAVE_CAIRO_FALSE=
17037 fi
17038
17039
17040
17041 pkg_failed=no
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
17043 $as_echo_n "checking for CAIRO_FT... " >&6; }
17044
17045 if test -n "$PKG_CONFIG"; then
17046     if test -n "$CAIRO_FT_CFLAGS"; then
17047         pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
17048     else
17049         if test -n "$PKG_CONFIG" && \
17050     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
17051   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
17052   ac_status=$?
17053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17054   test $ac_status = 0; }; then
17055   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
17056 else
17057   pkg_failed=yes
17058 fi
17059     fi
17060 else
17061         pkg_failed=untried
17062 fi
17063 if test -n "$PKG_CONFIG"; then
17064     if test -n "$CAIRO_FT_LIBS"; then
17065         pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
17066     else
17067         if test -n "$PKG_CONFIG" && \
17068     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
17069   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
17070   ac_status=$?
17071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17072   test $ac_status = 0; }; then
17073   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
17074 else
17075   pkg_failed=yes
17076 fi
17077     fi
17078 else
17079         pkg_failed=untried
17080 fi
17081
17082
17083
17084 if test $pkg_failed = yes; then
17085
17086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17087         _pkg_short_errors_supported=yes
17088 else
17089         _pkg_short_errors_supported=no
17090 fi
17091         if test $_pkg_short_errors_supported = yes; then
17092                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
17093         else
17094                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
17095         fi
17096         # Put the nasty error message in config.log where it belongs
17097         echo "$CAIRO_FT_PKG_ERRORS" >&5
17098
17099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17100 $as_echo "no" >&6; }
17101                 have_cairo_ft=false
17102 elif test $pkg_failed = untried; then
17103         have_cairo_ft=false
17104 else
17105         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
17106         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
17107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17108 $as_echo "yes" >&6; }
17109         have_cairo_ft=true
17110 fi
17111 if $have_cairo_ft; then
17112
17113 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
17114
17115 fi
17116  if $have_cairo_ft; then
17117   HAVE_CAIRO_FT_TRUE=
17118   HAVE_CAIRO_FT_FALSE='#'
17119 else
17120   HAVE_CAIRO_FT_TRUE='#'
17121   HAVE_CAIRO_FT_FALSE=
17122 fi
17123
17124
17125
17126
17127 pkg_failed=no
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
17129 $as_echo_n "checking for ICU... " >&6; }
17130
17131 if test -n "$PKG_CONFIG"; then
17132     if test -n "$ICU_CFLAGS"; then
17133         pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
17134     else
17135         if test -n "$PKG_CONFIG" && \
17136     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
17137   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
17138   ac_status=$?
17139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17140   test $ac_status = 0; }; then
17141   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
17142 else
17143   pkg_failed=yes
17144 fi
17145     fi
17146 else
17147         pkg_failed=untried
17148 fi
17149 if test -n "$PKG_CONFIG"; then
17150     if test -n "$ICU_LIBS"; then
17151         pkg_cv_ICU_LIBS="$ICU_LIBS"
17152     else
17153         if test -n "$PKG_CONFIG" && \
17154     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
17155   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
17156   ac_status=$?
17157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17158   test $ac_status = 0; }; then
17159   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
17160 else
17161   pkg_failed=yes
17162 fi
17163     fi
17164 else
17165         pkg_failed=untried
17166 fi
17167
17168
17169
17170 if test $pkg_failed = yes; then
17171
17172 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17173         _pkg_short_errors_supported=yes
17174 else
17175         _pkg_short_errors_supported=no
17176 fi
17177         if test $_pkg_short_errors_supported = yes; then
17178                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
17179         else
17180                 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
17181         fi
17182         # Put the nasty error message in config.log where it belongs
17183         echo "$ICU_PKG_ERRORS" >&5
17184
17185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17187                 have_icu=false
17188 elif test $pkg_failed = untried; then
17189         have_icu=false
17190 else
17191         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
17192         ICU_LIBS=$pkg_cv_ICU_LIBS
17193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17194 $as_echo "yes" >&6; }
17195         have_icu=true
17196 fi
17197 if $have_icu; then
17198         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
17199
17200 $as_echo "#define HAVE_ICU 1" >>confdefs.h
17201
17202 fi
17203  if $have_icu; then
17204   HAVE_ICU_TRUE=
17205   HAVE_ICU_FALSE='#'
17206 else
17207   HAVE_ICU_TRUE='#'
17208   HAVE_ICU_FALSE=
17209 fi
17210
17211
17212
17213
17214 pkg_failed=no
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU_LE" >&5
17216 $as_echo_n "checking for ICU_LE... " >&6; }
17217
17218 if test -n "$PKG_CONFIG"; then
17219     if test -n "$ICU_LE_CFLAGS"; then
17220         pkg_cv_ICU_LE_CFLAGS="$ICU_LE_CFLAGS"
17221     else
17222         if test -n "$PKG_CONFIG" && \
17223     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le icu-uc\""; } >&5
17224   ($PKG_CONFIG --exists --print-errors "icu-le icu-uc") 2>&5
17225   ac_status=$?
17226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17227   test $ac_status = 0; }; then
17228   pkg_cv_ICU_LE_CFLAGS=`$PKG_CONFIG --cflags "icu-le icu-uc" 2>/dev/null`
17229 else
17230   pkg_failed=yes
17231 fi
17232     fi
17233 else
17234         pkg_failed=untried
17235 fi
17236 if test -n "$PKG_CONFIG"; then
17237     if test -n "$ICU_LE_LIBS"; then
17238         pkg_cv_ICU_LE_LIBS="$ICU_LE_LIBS"
17239     else
17240         if test -n "$PKG_CONFIG" && \
17241     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le icu-uc\""; } >&5
17242   ($PKG_CONFIG --exists --print-errors "icu-le icu-uc") 2>&5
17243   ac_status=$?
17244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17245   test $ac_status = 0; }; then
17246   pkg_cv_ICU_LE_LIBS=`$PKG_CONFIG --libs "icu-le icu-uc" 2>/dev/null`
17247 else
17248   pkg_failed=yes
17249 fi
17250     fi
17251 else
17252         pkg_failed=untried
17253 fi
17254
17255
17256
17257 if test $pkg_failed = yes; then
17258
17259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17260         _pkg_short_errors_supported=yes
17261 else
17262         _pkg_short_errors_supported=no
17263 fi
17264         if test $_pkg_short_errors_supported = yes; then
17265                 ICU_LE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-le icu-uc"`
17266         else
17267                 ICU_LE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-le icu-uc"`
17268         fi
17269         # Put the nasty error message in config.log where it belongs
17270         echo "$ICU_LE_PKG_ERRORS" >&5
17271
17272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17274                 have_icu_le=false
17275 elif test $pkg_failed = untried; then
17276         have_icu_le=false
17277 else
17278         ICU_LE_CFLAGS=$pkg_cv_ICU_LE_CFLAGS
17279         ICU_LE_LIBS=$pkg_cv_ICU_LE_LIBS
17280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17281 $as_echo "yes" >&6; }
17282         have_icu_le=true
17283 fi
17284 if $have_icu_le; then
17285
17286 $as_echo "#define HAVE_ICU_LE 1" >>confdefs.h
17287
17288 fi
17289  if $have_icu_le; then
17290   HAVE_ICU_LE_TRUE=
17291   HAVE_ICU_LE_FALSE='#'
17292 else
17293   HAVE_ICU_LE_TRUE='#'
17294   HAVE_ICU_LE_FALSE=
17295 fi
17296
17297
17298
17299
17300 pkg_failed=no
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
17302 $as_echo_n "checking for GRAPHITE2... " >&6; }
17303
17304 if test -n "$PKG_CONFIG"; then
17305     if test -n "$GRAPHITE2_CFLAGS"; then
17306         pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
17307     else
17308         if test -n "$PKG_CONFIG" && \
17309     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2\""; } >&5
17310   ($PKG_CONFIG --exists --print-errors "graphite2") 2>&5
17311   ac_status=$?
17312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17313   test $ac_status = 0; }; then
17314   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "graphite2" 2>/dev/null`
17315 else
17316   pkg_failed=yes
17317 fi
17318     fi
17319 else
17320         pkg_failed=untried
17321 fi
17322 if test -n "$PKG_CONFIG"; then
17323     if test -n "$GRAPHITE2_LIBS"; then
17324         pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
17325     else
17326         if test -n "$PKG_CONFIG" && \
17327     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2\""; } >&5
17328   ($PKG_CONFIG --exists --print-errors "graphite2") 2>&5
17329   ac_status=$?
17330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17331   test $ac_status = 0; }; then
17332   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "graphite2" 2>/dev/null`
17333 else
17334   pkg_failed=yes
17335 fi
17336     fi
17337 else
17338         pkg_failed=untried
17339 fi
17340
17341
17342
17343 if test $pkg_failed = yes; then
17344
17345 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17346         _pkg_short_errors_supported=yes
17347 else
17348         _pkg_short_errors_supported=no
17349 fi
17350         if test $_pkg_short_errors_supported = yes; then
17351                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "graphite2"`
17352         else
17353                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "graphite2"`
17354         fi
17355         # Put the nasty error message in config.log where it belongs
17356         echo "$GRAPHITE2_PKG_ERRORS" >&5
17357
17358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359 $as_echo "no" >&6; }
17360                 have_graphite=false
17361 elif test $pkg_failed = untried; then
17362         have_graphite=false
17363 else
17364         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
17365         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
17366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17367 $as_echo "yes" >&6; }
17368         have_graphite=true
17369 fi
17370 if $have_graphite; then
17371
17372 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
17373
17374 fi
17375  if $have_graphite; then
17376   HAVE_GRAPHITE2_TRUE=
17377   HAVE_GRAPHITE2_FALSE='#'
17378 else
17379   HAVE_GRAPHITE2_TRUE='#'
17380   HAVE_GRAPHITE2_FALSE=
17381 fi
17382
17383
17384
17385
17386 pkg_failed=no
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17388 $as_echo_n "checking for FREETYPE... " >&6; }
17389
17390 if test -n "$PKG_CONFIG"; then
17391     if test -n "$FREETYPE_CFLAGS"; then
17392         pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17393     else
17394         if test -n "$PKG_CONFIG" && \
17395     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.3.8\""; } >&5
17396   ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.3.8") 2>&5
17397   ac_status=$?
17398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17399   test $ac_status = 0; }; then
17400   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.3.8" 2>/dev/null`
17401 else
17402   pkg_failed=yes
17403 fi
17404     fi
17405 else
17406         pkg_failed=untried
17407 fi
17408 if test -n "$PKG_CONFIG"; then
17409     if test -n "$FREETYPE_LIBS"; then
17410         pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17411     else
17412         if test -n "$PKG_CONFIG" && \
17413     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.3.8\""; } >&5
17414   ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.3.8") 2>&5
17415   ac_status=$?
17416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17417   test $ac_status = 0; }; then
17418   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.3.8" 2>/dev/null`
17419 else
17420   pkg_failed=yes
17421 fi
17422     fi
17423 else
17424         pkg_failed=untried
17425 fi
17426
17427
17428
17429 if test $pkg_failed = yes; then
17430
17431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17432         _pkg_short_errors_supported=yes
17433 else
17434         _pkg_short_errors_supported=no
17435 fi
17436         if test $_pkg_short_errors_supported = yes; then
17437                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 2.3.8"`
17438         else
17439                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.3.8"`
17440         fi
17441         # Put the nasty error message in config.log where it belongs
17442         echo "$FREETYPE_PKG_ERRORS" >&5
17443
17444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445 $as_echo "no" >&6; }
17446                 have_freetype=false
17447 elif test $pkg_failed = untried; then
17448         have_freetype=false
17449 else
17450         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17451         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17453 $as_echo "yes" >&6; }
17454         have_freetype=true
17455 fi
17456 if $have_freetype; then
17457
17458 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
17459
17460         _save_libs="$LIBS"
17461         _save_cflags="$CFLAGS"
17462         LIBS="$LIBS $FREETYPE_LIBS"
17463         CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
17464         for ac_func in FT_Face_GetCharVariantIndex
17465 do :
17466   ac_fn_c_check_func "$LINENO" "FT_Face_GetCharVariantIndex" "ac_cv_func_FT_Face_GetCharVariantIndex"
17467 if test "x$ac_cv_func_FT_Face_GetCharVariantIndex" = xyes; then :
17468   cat >>confdefs.h <<_ACEOF
17469 #define HAVE_FT_FACE_GETCHARVARIANTINDEX 1
17470 _ACEOF
17471
17472 fi
17473 done
17474
17475         LIBS="$_save_libs"
17476         CFLAGS="$_save_cflags"
17477 fi
17478  if $have_freetype; then
17479   HAVE_FREETYPE_TRUE=
17480   HAVE_FREETYPE_FALSE='#'
17481 else
17482   HAVE_FREETYPE_TRUE='#'
17483   HAVE_FREETYPE_FALSE=
17484 fi
17485
17486
17487
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ScriptShapeOpenType in usp10" >&5
17489 $as_echo_n "checking for ScriptShapeOpenType in usp10... " >&6; }
17490 saved_LIBS=$LIBS
17491 LIBS="$LIBS -lusp10 -lgdi32"
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h.  */
17494
17495          #define _WIN32_WINNT 0x0600
17496          #include <windows.h>
17497          #include <usp10.h>
17498
17499 int
17500 main ()
17501 {
17502 ScriptShapeOpenType
17503   ;
17504   return 0;
17505 }
17506 _ACEOF
17507 if ac_fn_c_try_link "$LINENO"; then :
17508   have_uniscribe=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17509 $as_echo "yes" >&6; }
17510 else
17511   have_uniscribe=false;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17512 $as_echo "no" >&6; }
17513 fi
17514 rm -f core conftest.err conftest.$ac_objext \
17515     conftest$ac_exeext conftest.$ac_ext
17516 LIBS=$saved_LIBS
17517 if $have_uniscribe; then
17518         UNISCRIBE_CFLAGS=
17519         UNISCRIBE_LIBS="-lusp10 -lgdi32"
17520
17521
17522
17523 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
17524
17525 fi
17526  if $have_uniscribe; then
17527   HAVE_UNISCRIBE_TRUE=
17528   HAVE_UNISCRIBE_FALSE='#'
17529 else
17530   HAVE_UNISCRIBE_TRUE='#'
17531   HAVE_UNISCRIBE_FALSE=
17532 fi
17533
17534
17535
17536 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
17537 "
17538 if test "x$ac_cv_type_CTFontRef" = xyes; then :
17539   have_coretext=true
17540 else
17541   have_coretext=false
17542 fi
17543
17544 if $have_coretext; then
17545         CORETEXT_CFLAGS=
17546         CORETEXT_LIBS="-framework ApplicationServices"
17547
17548
17549
17550 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
17551
17552 fi
17553  if $have_coretext; then
17554   HAVE_CORETEXT_TRUE=
17555   HAVE_CORETEXT_FALSE='#'
17556 else
17557   HAVE_CORETEXT_TRUE='#'
17558   HAVE_CORETEXT_FALSE=
17559 fi
17560
17561
17562
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
17564 $as_echo_n "checking for Intel atomic primitives... " >&6; }
17565 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
17566   $as_echo_n "(cached) " >&6
17567 else
17568
17569         hb_cv_have_intel_atomic_primitives=false
17570         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h.  */
17572
17573                 void memory_barrier (void) { __sync_synchronize (); }
17574                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
17575                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
17576                 void mutex_unlock (int *m) { __sync_lock_release (m); }
17577
17578 int
17579 main ()
17580 {
17581
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 if ac_fn_c_try_link "$LINENO"; then :
17587   hb_cv_have_intel_atomic_primitives=true
17588
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext \
17591     conftest$ac_exeext conftest.$ac_ext
17592
17593 fi
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
17595 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
17596 if $hb_cv_have_intel_atomic_primitives; then
17597
17598 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
17599
17600 fi
17601
17602
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
17604 $as_echo_n "checking for Solaris atomic operations... " >&6; }
17605 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
17606   $as_echo_n "(cached) " >&6
17607 else
17608
17609         hb_cv_have_solaris_atomic_ops=false
17610         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611 /* end confdefs.h.  */
17612
17613                 #include <atomic.h>
17614                 /* This requires Solaris Studio 12.2 or newer: */
17615                 #include <mbarrier.h>
17616                 void memory_barrier (void) { __machine_rw_barrier (); }
17617                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
17618                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
17619
17620 int
17621 main ()
17622 {
17623
17624   ;
17625   return 0;
17626 }
17627 _ACEOF
17628 if ac_fn_c_try_link "$LINENO"; then :
17629   hb_cv_have_solaris_atomic_ops=true
17630
17631 fi
17632 rm -f core conftest.err conftest.$ac_objext \
17633     conftest$ac_exeext conftest.$ac_ext
17634
17635 fi
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
17637 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
17638 if $hb_cv_have_solaris_atomic_ops; then
17639
17640 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
17641
17642 fi
17643
17644 if test "$os_win32" = no && ! $have_pthread; then
17645         for ac_header in sched.h
17646 do :
17647   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
17648 if test "x$ac_cv_header_sched_h" = xyes; then :
17649   cat >>confdefs.h <<_ACEOF
17650 #define HAVE_SCHED_H 1
17651 _ACEOF
17652
17653 fi
17654
17655 done
17656
17657         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
17658 $as_echo_n "checking for library containing sched_yield... " >&6; }
17659 if ${ac_cv_search_sched_yield+:} false; then :
17660   $as_echo_n "(cached) " >&6
17661 else
17662   ac_func_search_save_LIBS=$LIBS
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h.  */
17665
17666 /* Override any GCC internal prototype to avoid an error.
17667    Use char because int might match the return type of a GCC
17668    builtin and then its argument prototype would still apply.  */
17669 #ifdef __cplusplus
17670 extern "C"
17671 #endif
17672 char sched_yield ();
17673 int
17674 main ()
17675 {
17676 return sched_yield ();
17677   ;
17678   return 0;
17679 }
17680 _ACEOF
17681 for ac_lib in '' rt; do
17682   if test -z "$ac_lib"; then
17683     ac_res="none required"
17684   else
17685     ac_res=-l$ac_lib
17686     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17687   fi
17688   if ac_fn_c_try_link "$LINENO"; then :
17689   ac_cv_search_sched_yield=$ac_res
17690 fi
17691 rm -f core conftest.err conftest.$ac_objext \
17692     conftest$ac_exeext
17693   if ${ac_cv_search_sched_yield+:} false; then :
17694   break
17695 fi
17696 done
17697 if ${ac_cv_search_sched_yield+:} false; then :
17698
17699 else
17700   ac_cv_search_sched_yield=no
17701 fi
17702 rm conftest.$ac_ext
17703 LIBS=$ac_func_search_save_LIBS
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
17706 $as_echo "$ac_cv_search_sched_yield" >&6; }
17707 ac_res=$ac_cv_search_sched_yield
17708 if test "$ac_res" != no; then :
17709   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17710
17711 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
17712
17713 fi
17714
17715 fi
17716
17717
17718 ac_config_files="$ac_config_files Makefile harfbuzz.pc src/Makefile src/hb-version.h src/hb-icu-le/Makefile src/hb-old/Makefile src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/shaping/Makefile"
17719
17720
17721 cat >confcache <<\_ACEOF
17722 # This file is a shell script that caches the results of configure
17723 # tests run on this system so they can be shared between configure
17724 # scripts and configure runs, see configure's option --config-cache.
17725 # It is not useful on other systems.  If it contains results you don't
17726 # want to keep, you may remove or edit it.
17727 #
17728 # config.status only pays attention to the cache file if you give it
17729 # the --recheck option to rerun configure.
17730 #
17731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17733 # following values.
17734
17735 _ACEOF
17736
17737 # The following way of writing the cache mishandles newlines in values,
17738 # but we know of no workaround that is simple, portable, and efficient.
17739 # So, we kill variables containing newlines.
17740 # Ultrix sh set writes to stderr and can't be redirected directly,
17741 # and sets the high bit in the cache file unless we assign to the vars.
17742 (
17743   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17744     eval ac_val=\$$ac_var
17745     case $ac_val in #(
17746     *${as_nl}*)
17747       case $ac_var in #(
17748       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17750       esac
17751       case $ac_var in #(
17752       _ | IFS | as_nl) ;; #(
17753       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17754       *) { eval $ac_var=; unset $ac_var;} ;;
17755       esac ;;
17756     esac
17757   done
17758
17759   (set) 2>&1 |
17760     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17761     *${as_nl}ac_space=\ *)
17762       # `set' does not quote correctly, so add quotes: double-quote
17763       # substitution turns \\\\ into \\, and sed turns \\ into \.
17764       sed -n \
17765         "s/'/'\\\\''/g;
17766           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17767       ;; #(
17768     *)
17769       # `set' quotes correctly as required by POSIX, so do not add quotes.
17770       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17771       ;;
17772     esac |
17773     sort
17774 ) |
17775   sed '
17776      /^ac_cv_env_/b end
17777      t clear
17778      :clear
17779      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17780      t end
17781      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17782      :end' >>confcache
17783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17784   if test -w "$cache_file"; then
17785     if test "x$cache_file" != "x/dev/null"; then
17786       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17787 $as_echo "$as_me: updating cache $cache_file" >&6;}
17788       if test ! -f "$cache_file" || test -h "$cache_file"; then
17789         cat confcache >"$cache_file"
17790       else
17791         case $cache_file in #(
17792         */* | ?:*)
17793           mv -f confcache "$cache_file"$$ &&
17794           mv -f "$cache_file"$$ "$cache_file" ;; #(
17795         *)
17796           mv -f confcache "$cache_file" ;;
17797         esac
17798       fi
17799     fi
17800   else
17801     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17803   fi
17804 fi
17805 rm -f confcache
17806
17807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17808 # Let make expand exec_prefix.
17809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17810
17811 DEFS=-DHAVE_CONFIG_H
17812
17813 ac_libobjs=
17814 ac_ltlibobjs=
17815 U=
17816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17817   # 1. Remove the extension, and $U if already installed.
17818   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17819   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17820   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17821   #    will be set to the directory where LIBOBJS objects are built.
17822   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17823   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17824 done
17825 LIBOBJS=$ac_libobjs
17826
17827 LTLIBOBJS=$ac_ltlibobjs
17828
17829
17830  if test -n "$EXEEXT"; then
17831   am__EXEEXT_TRUE=
17832   am__EXEEXT_FALSE='#'
17833 else
17834   am__EXEEXT_TRUE='#'
17835   am__EXEEXT_FALSE=
17836 fi
17837
17838 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17839   as_fn_error $? "conditional \"AMDEP\" was never defined.
17840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17841 fi
17842 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17843   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17845 fi
17846 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17847   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17849 fi
17850 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17851   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17853 fi
17854 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
17855   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
17856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17857 fi
17858 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
17859   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
17860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17861 fi
17862 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
17863   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
17864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17865 fi
17866 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
17867   as_fn_error $? "conditional \"HAVE_OT\" was never defined.
17868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17869 fi
17870 if test -z "${HAVE_HB_OLD_TRUE}" && test -z "${HAVE_HB_OLD_FALSE}"; then
17871   as_fn_error $? "conditional \"HAVE_HB_OLD\" was never defined.
17872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17873 fi
17874 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
17875   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
17876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17877 fi
17878 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
17879   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
17880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17881 fi
17882 if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
17883   as_fn_error $? "conditional \"HAVE_GTHREAD\" was never defined.
17884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17885 fi
17886 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
17887   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
17888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17889 fi
17890 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
17891   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
17892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17893 fi
17894 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
17895   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
17896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17897 fi
17898 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
17899   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
17900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17901 fi
17902 if test -z "${HAVE_ICU_LE_TRUE}" && test -z "${HAVE_ICU_LE_FALSE}"; then
17903   as_fn_error $? "conditional \"HAVE_ICU_LE\" was never defined.
17904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17905 fi
17906 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
17907   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
17908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17909 fi
17910 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
17911   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
17912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17913 fi
17914 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
17915   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
17916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17917 fi
17918 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
17919   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
17920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17921 fi
17922
17923 : "${CONFIG_STATUS=./config.status}"
17924 ac_write_fail=0
17925 ac_clean_files_save=$ac_clean_files
17926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17929 as_write_fail=0
17930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17931 #! $SHELL
17932 # Generated by $as_me.
17933 # Run this file to recreate the current configuration.
17934 # Compiler output produced by configure, useful for debugging
17935 # configure, is in config.log if it exists.
17936
17937 debug=false
17938 ac_cs_recheck=false
17939 ac_cs_silent=false
17940
17941 SHELL=\${CONFIG_SHELL-$SHELL}
17942 export SHELL
17943 _ASEOF
17944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17945 ## -------------------- ##
17946 ## M4sh Initialization. ##
17947 ## -------------------- ##
17948
17949 # Be more Bourne compatible
17950 DUALCASE=1; export DUALCASE # for MKS sh
17951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17952   emulate sh
17953   NULLCMD=:
17954   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17955   # is contrary to our usage.  Disable this feature.
17956   alias -g '${1+"$@"}'='"$@"'
17957   setopt NO_GLOB_SUBST
17958 else
17959   case `(set -o) 2>/dev/null` in #(
17960   *posix*) :
17961     set -o posix ;; #(
17962   *) :
17963      ;;
17964 esac
17965 fi
17966
17967
17968 as_nl='
17969 '
17970 export as_nl
17971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17975 # Prefer a ksh shell builtin over an external printf program on Solaris,
17976 # but without wasting forks for bash or zsh.
17977 if test -z "$BASH_VERSION$ZSH_VERSION" \
17978     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17979   as_echo='print -r --'
17980   as_echo_n='print -rn --'
17981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17982   as_echo='printf %s\n'
17983   as_echo_n='printf %s'
17984 else
17985   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17986     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17987     as_echo_n='/usr/ucb/echo -n'
17988   else
17989     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17990     as_echo_n_body='eval
17991       arg=$1;
17992       case $arg in #(
17993       *"$as_nl"*)
17994         expr "X$arg" : "X\\(.*\\)$as_nl";
17995         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17996       esac;
17997       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17998     '
17999     export as_echo_n_body
18000     as_echo_n='sh -c $as_echo_n_body as_echo'
18001   fi
18002   export as_echo_body
18003   as_echo='sh -c $as_echo_body as_echo'
18004 fi
18005
18006 # The user is always right.
18007 if test "${PATH_SEPARATOR+set}" != set; then
18008   PATH_SEPARATOR=:
18009   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18010     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18011       PATH_SEPARATOR=';'
18012   }
18013 fi
18014
18015
18016 # IFS
18017 # We need space, tab and new line, in precisely that order.  Quoting is
18018 # there to prevent editors from complaining about space-tab.
18019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18020 # splitting by setting IFS to empty value.)
18021 IFS=" ""        $as_nl"
18022
18023 # Find who we are.  Look in the path if we contain no directory separator.
18024 as_myself=
18025 case $0 in #((
18026   *[\\/]* ) as_myself=$0 ;;
18027   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18028 for as_dir in $PATH
18029 do
18030   IFS=$as_save_IFS
18031   test -z "$as_dir" && as_dir=.
18032     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18033   done
18034 IFS=$as_save_IFS
18035
18036      ;;
18037 esac
18038 # We did not find ourselves, most probably we were run as `sh COMMAND'
18039 # in which case we are not to be found in the path.
18040 if test "x$as_myself" = x; then
18041   as_myself=$0
18042 fi
18043 if test ! -f "$as_myself"; then
18044   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18045   exit 1
18046 fi
18047
18048 # Unset variables that we do not need and which cause bugs (e.g. in
18049 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18050 # suppresses any "Segmentation fault" message there.  '((' could
18051 # trigger a bug in pdksh 5.2.14.
18052 for as_var in BASH_ENV ENV MAIL MAILPATH
18053 do eval test x\${$as_var+set} = xset \
18054   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18055 done
18056 PS1='$ '
18057 PS2='> '
18058 PS4='+ '
18059
18060 # NLS nuisances.
18061 LC_ALL=C
18062 export LC_ALL
18063 LANGUAGE=C
18064 export LANGUAGE
18065
18066 # CDPATH.
18067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18068
18069
18070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18071 # ----------------------------------------
18072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18074 # script with STATUS, using 1 if that was 0.
18075 as_fn_error ()
18076 {
18077   as_status=$1; test $as_status -eq 0 && as_status=1
18078   if test "$4"; then
18079     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18080     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18081   fi
18082   $as_echo "$as_me: error: $2" >&2
18083   as_fn_exit $as_status
18084 } # as_fn_error
18085
18086
18087 # as_fn_set_status STATUS
18088 # -----------------------
18089 # Set $? to STATUS, without forking.
18090 as_fn_set_status ()
18091 {
18092   return $1
18093 } # as_fn_set_status
18094
18095 # as_fn_exit STATUS
18096 # -----------------
18097 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18098 as_fn_exit ()
18099 {
18100   set +e
18101   as_fn_set_status $1
18102   exit $1
18103 } # as_fn_exit
18104
18105 # as_fn_unset VAR
18106 # ---------------
18107 # Portably unset VAR.
18108 as_fn_unset ()
18109 {
18110   { eval $1=; unset $1;}
18111 }
18112 as_unset=as_fn_unset
18113 # as_fn_append VAR VALUE
18114 # ----------------------
18115 # Append the text in VALUE to the end of the definition contained in VAR. Take
18116 # advantage of any shell optimizations that allow amortized linear growth over
18117 # repeated appends, instead of the typical quadratic growth present in naive
18118 # implementations.
18119 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18120   eval 'as_fn_append ()
18121   {
18122     eval $1+=\$2
18123   }'
18124 else
18125   as_fn_append ()
18126   {
18127     eval $1=\$$1\$2
18128   }
18129 fi # as_fn_append
18130
18131 # as_fn_arith ARG...
18132 # ------------------
18133 # Perform arithmetic evaluation on the ARGs, and store the result in the
18134 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18135 # must be portable across $(()) and expr.
18136 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18137   eval 'as_fn_arith ()
18138   {
18139     as_val=$(( $* ))
18140   }'
18141 else
18142   as_fn_arith ()
18143   {
18144     as_val=`expr "$@" || test $? -eq 1`
18145   }
18146 fi # as_fn_arith
18147
18148
18149 if expr a : '\(a\)' >/dev/null 2>&1 &&
18150    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18151   as_expr=expr
18152 else
18153   as_expr=false
18154 fi
18155
18156 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18157   as_basename=basename
18158 else
18159   as_basename=false
18160 fi
18161
18162 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18163   as_dirname=dirname
18164 else
18165   as_dirname=false
18166 fi
18167
18168 as_me=`$as_basename -- "$0" ||
18169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18170          X"$0" : 'X\(//\)$' \| \
18171          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18172 $as_echo X/"$0" |
18173     sed '/^.*\/\([^/][^/]*\)\/*$/{
18174             s//\1/
18175             q
18176           }
18177           /^X\/\(\/\/\)$/{
18178             s//\1/
18179             q
18180           }
18181           /^X\/\(\/\).*/{
18182             s//\1/
18183             q
18184           }
18185           s/.*/./; q'`
18186
18187 # Avoid depending upon Character Ranges.
18188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18191 as_cr_digits='0123456789'
18192 as_cr_alnum=$as_cr_Letters$as_cr_digits
18193
18194 ECHO_C= ECHO_N= ECHO_T=
18195 case `echo -n x` in #(((((
18196 -n*)
18197   case `echo 'xy\c'` in
18198   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18199   xy)  ECHO_C='\c';;
18200   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18201        ECHO_T=' ';;
18202   esac;;
18203 *)
18204   ECHO_N='-n';;
18205 esac
18206
18207 rm -f conf$$ conf$$.exe conf$$.file
18208 if test -d conf$$.dir; then
18209   rm -f conf$$.dir/conf$$.file
18210 else
18211   rm -f conf$$.dir
18212   mkdir conf$$.dir 2>/dev/null
18213 fi
18214 if (echo >conf$$.file) 2>/dev/null; then
18215   if ln -s conf$$.file conf$$ 2>/dev/null; then
18216     as_ln_s='ln -s'
18217     # ... but there are two gotchas:
18218     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18219     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18220     # In both cases, we have to default to `cp -p'.
18221     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18222       as_ln_s='cp -p'
18223   elif ln conf$$.file conf$$ 2>/dev/null; then
18224     as_ln_s=ln
18225   else
18226     as_ln_s='cp -p'
18227   fi
18228 else
18229   as_ln_s='cp -p'
18230 fi
18231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18232 rmdir conf$$.dir 2>/dev/null
18233
18234
18235 # as_fn_mkdir_p
18236 # -------------
18237 # Create "$as_dir" as a directory, including parents if necessary.
18238 as_fn_mkdir_p ()
18239 {
18240
18241   case $as_dir in #(
18242   -*) as_dir=./$as_dir;;
18243   esac
18244   test -d "$as_dir" || eval $as_mkdir_p || {
18245     as_dirs=
18246     while :; do
18247       case $as_dir in #(
18248       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18249       *) as_qdir=$as_dir;;
18250       esac
18251       as_dirs="'$as_qdir' $as_dirs"
18252       as_dir=`$as_dirname -- "$as_dir" ||
18253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18254          X"$as_dir" : 'X\(//\)[^/]' \| \
18255          X"$as_dir" : 'X\(//\)$' \| \
18256          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18257 $as_echo X"$as_dir" |
18258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18259             s//\1/
18260             q
18261           }
18262           /^X\(\/\/\)[^/].*/{
18263             s//\1/
18264             q
18265           }
18266           /^X\(\/\/\)$/{
18267             s//\1/
18268             q
18269           }
18270           /^X\(\/\).*/{
18271             s//\1/
18272             q
18273           }
18274           s/.*/./; q'`
18275       test -d "$as_dir" && break
18276     done
18277     test -z "$as_dirs" || eval "mkdir $as_dirs"
18278   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18279
18280
18281 } # as_fn_mkdir_p
18282 if mkdir -p . 2>/dev/null; then
18283   as_mkdir_p='mkdir -p "$as_dir"'
18284 else
18285   test -d ./-p && rmdir ./-p
18286   as_mkdir_p=false
18287 fi
18288
18289 if test -x / >/dev/null 2>&1; then
18290   as_test_x='test -x'
18291 else
18292   if ls -dL / >/dev/null 2>&1; then
18293     as_ls_L_option=L
18294   else
18295     as_ls_L_option=
18296   fi
18297   as_test_x='
18298     eval sh -c '\''
18299       if test -d "$1"; then
18300         test -d "$1/.";
18301       else
18302         case $1 in #(
18303         -*)set "./$1";;
18304         esac;
18305         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18306         ???[sx]*):;;*)false;;esac;fi
18307     '\'' sh
18308   '
18309 fi
18310 as_executable_p=$as_test_x
18311
18312 # Sed expression to map a string onto a valid CPP name.
18313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18314
18315 # Sed expression to map a string onto a valid variable name.
18316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18317
18318
18319 exec 6>&1
18320 ## ----------------------------------- ##
18321 ## Main body of $CONFIG_STATUS script. ##
18322 ## ----------------------------------- ##
18323 _ASEOF
18324 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18325
18326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18327 # Save the log message, to keep $0 and so on meaningful, and to
18328 # report actual input values of CONFIG_FILES etc. instead of their
18329 # values after options handling.
18330 ac_log="
18331 This file was extended by HarfBuzz $as_me 0.9.12, which was
18332 generated by GNU Autoconf 2.68.  Invocation command line was
18333
18334   CONFIG_FILES    = $CONFIG_FILES
18335   CONFIG_HEADERS  = $CONFIG_HEADERS
18336   CONFIG_LINKS    = $CONFIG_LINKS
18337   CONFIG_COMMANDS = $CONFIG_COMMANDS
18338   $ $0 $@
18339
18340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18341 "
18342
18343 _ACEOF
18344
18345 case $ac_config_files in *"
18346 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18347 esac
18348
18349 case $ac_config_headers in *"
18350 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18351 esac
18352
18353
18354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18355 # Files that config.status was made for.
18356 config_files="$ac_config_files"
18357 config_headers="$ac_config_headers"
18358 config_commands="$ac_config_commands"
18359
18360 _ACEOF
18361
18362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363 ac_cs_usage="\
18364 \`$as_me' instantiates files and other configuration actions
18365 from templates according to the current configuration.  Unless the files
18366 and actions are specified as TAGs, all are instantiated by default.
18367
18368 Usage: $0 [OPTION]... [TAG]...
18369
18370   -h, --help       print this help, then exit
18371   -V, --version    print version number and configuration settings, then exit
18372       --config     print configuration, then exit
18373   -q, --quiet, --silent
18374                    do not print progress messages
18375   -d, --debug      don't remove temporary files
18376       --recheck    update $as_me by reconfiguring in the same conditions
18377       --file=FILE[:TEMPLATE]
18378                    instantiate the configuration file FILE
18379       --header=FILE[:TEMPLATE]
18380                    instantiate the configuration header FILE
18381
18382 Configuration files:
18383 $config_files
18384
18385 Configuration headers:
18386 $config_headers
18387
18388 Configuration commands:
18389 $config_commands
18390
18391 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
18392 HarfBuzz home page: <http://harfbuzz.org/>."
18393
18394 _ACEOF
18395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18396 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18397 ac_cs_version="\\
18398 HarfBuzz config.status 0.9.12
18399 configured by $0, generated by GNU Autoconf 2.68,
18400   with options \\"\$ac_cs_config\\"
18401
18402 Copyright (C) 2010 Free Software Foundation, Inc.
18403 This config.status script is free software; the Free Software Foundation
18404 gives unlimited permission to copy, distribute and modify it."
18405
18406 ac_pwd='$ac_pwd'
18407 srcdir='$srcdir'
18408 INSTALL='$INSTALL'
18409 MKDIR_P='$MKDIR_P'
18410 AWK='$AWK'
18411 test -n "\$AWK" || AWK=awk
18412 _ACEOF
18413
18414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18415 # The default lists apply if the user does not specify any file.
18416 ac_need_defaults=:
18417 while test $# != 0
18418 do
18419   case $1 in
18420   --*=?*)
18421     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18422     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18423     ac_shift=:
18424     ;;
18425   --*=)
18426     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18427     ac_optarg=
18428     ac_shift=:
18429     ;;
18430   *)
18431     ac_option=$1
18432     ac_optarg=$2
18433     ac_shift=shift
18434     ;;
18435   esac
18436
18437   case $ac_option in
18438   # Handling of the options.
18439   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18440     ac_cs_recheck=: ;;
18441   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18442     $as_echo "$ac_cs_version"; exit ;;
18443   --config | --confi | --conf | --con | --co | --c )
18444     $as_echo "$ac_cs_config"; exit ;;
18445   --debug | --debu | --deb | --de | --d | -d )
18446     debug=: ;;
18447   --file | --fil | --fi | --f )
18448     $ac_shift
18449     case $ac_optarg in
18450     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18451     '') as_fn_error $? "missing file argument" ;;
18452     esac
18453     as_fn_append CONFIG_FILES " '$ac_optarg'"
18454     ac_need_defaults=false;;
18455   --header | --heade | --head | --hea )
18456     $ac_shift
18457     case $ac_optarg in
18458     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18459     esac
18460     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18461     ac_need_defaults=false;;
18462   --he | --h)
18463     # Conflict between --help and --header
18464     as_fn_error $? "ambiguous option: \`$1'
18465 Try \`$0 --help' for more information.";;
18466   --help | --hel | -h )
18467     $as_echo "$ac_cs_usage"; exit ;;
18468   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18469   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18470     ac_cs_silent=: ;;
18471
18472   # This is an error.
18473   -*) as_fn_error $? "unrecognized option: \`$1'
18474 Try \`$0 --help' for more information." ;;
18475
18476   *) as_fn_append ac_config_targets " $1"
18477      ac_need_defaults=false ;;
18478
18479   esac
18480   shift
18481 done
18482
18483 ac_configure_extra_args=
18484
18485 if $ac_cs_silent; then
18486   exec 6>/dev/null
18487   ac_configure_extra_args="$ac_configure_extra_args --silent"
18488 fi
18489
18490 _ACEOF
18491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18492 if \$ac_cs_recheck; then
18493   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18494   shift
18495   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18496   CONFIG_SHELL='$SHELL'
18497   export CONFIG_SHELL
18498   exec "\$@"
18499 fi
18500
18501 _ACEOF
18502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18503 exec 5>>config.log
18504 {
18505   echo
18506   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18507 ## Running $as_me. ##
18508 _ASBOX
18509   $as_echo "$ac_log"
18510 } >&5
18511
18512 _ACEOF
18513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18514 #
18515 # INIT-COMMANDS
18516 #
18517 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18518
18519
18520 # The HP-UX ksh and POSIX shell print the target directory to stdout
18521 # if CDPATH is set.
18522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18523
18524 sed_quote_subst='$sed_quote_subst'
18525 double_quote_subst='$double_quote_subst'
18526 delay_variable_subst='$delay_variable_subst'
18527 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18528 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18529 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18530 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18531 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18532 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18533 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18534 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18535 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18536 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18537 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18538 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18539 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18540 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18541 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18542 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18543 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18544 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18545 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18546 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18547 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18548 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18549 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18550 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18551 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18552 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18553 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18554 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18555 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18556 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18557 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18558 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18559 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18560 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18561 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18562 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18563 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18564 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18565 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18566 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18567 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18568 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18569 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18570 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18571 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18572 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18573 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18574 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18575 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18576 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18577 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18578 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18579 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18580 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18581 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18582 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18583 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"`'
18584 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18585 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18586 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18587 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18588 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18589 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18590 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18591 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18592 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18593 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18594 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18595 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18596 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18597 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18598 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18599 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18600 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18601 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18602 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18603 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18604 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18605 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18606 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18607 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18608 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18609 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18610 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18611 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18612 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18613 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18614 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18615 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18616 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18617 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18618 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18619 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18620 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18621 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18622 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18623 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18624 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18625 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18626 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18627 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18628 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18629 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18630 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18631 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18632 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18633 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18634 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18635 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18636 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18637 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18638 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18639 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18640 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18641 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18642 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18643 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18644 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18645 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18646 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18647 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18648 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18649 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18650 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18651 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18652 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18653 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18654 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18655 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18656 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18657 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18658 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18659 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18660 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18661 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18662 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18663 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18664 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18665 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18666 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18667 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18668 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18669 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18670 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18671 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18672 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18673 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18674 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18675 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18676 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18677 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18678 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18679 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18680 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18681 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18682 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18683 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18684 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18685 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18686 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18687 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18688 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18689 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18690 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18691 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18692 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18693 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18694 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18695 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18696 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18697 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18698 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18699 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18700 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18701 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18702 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18703 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18704 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18705 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18706 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18707 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18708 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18709 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18710 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18711
18712 LTCC='$LTCC'
18713 LTCFLAGS='$LTCFLAGS'
18714 compiler='$compiler_DEFAULT'
18715
18716 # A function that is used when there is no print builtin or printf.
18717 func_fallback_echo ()
18718 {
18719   eval 'cat <<_LTECHO_EOF
18720 \$1
18721 _LTECHO_EOF'
18722 }
18723
18724 # Quote evaled strings.
18725 for var in SHELL \
18726 ECHO \
18727 PATH_SEPARATOR \
18728 SED \
18729 GREP \
18730 EGREP \
18731 FGREP \
18732 LD \
18733 NM \
18734 LN_S \
18735 lt_SP2NL \
18736 lt_NL2SP \
18737 reload_flag \
18738 OBJDUMP \
18739 deplibs_check_method \
18740 file_magic_cmd \
18741 file_magic_glob \
18742 want_nocaseglob \
18743 DLLTOOL \
18744 sharedlib_from_linklib_cmd \
18745 AR \
18746 AR_FLAGS \
18747 archiver_list_spec \
18748 STRIP \
18749 RANLIB \
18750 CC \
18751 CFLAGS \
18752 compiler \
18753 lt_cv_sys_global_symbol_pipe \
18754 lt_cv_sys_global_symbol_to_cdecl \
18755 lt_cv_sys_global_symbol_to_c_name_address \
18756 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18757 nm_file_list_spec \
18758 lt_prog_compiler_no_builtin_flag \
18759 lt_prog_compiler_pic \
18760 lt_prog_compiler_wl \
18761 lt_prog_compiler_static \
18762 lt_cv_prog_compiler_c_o \
18763 need_locks \
18764 MANIFEST_TOOL \
18765 DSYMUTIL \
18766 NMEDIT \
18767 LIPO \
18768 OTOOL \
18769 OTOOL64 \
18770 shrext_cmds \
18771 export_dynamic_flag_spec \
18772 whole_archive_flag_spec \
18773 compiler_needs_object \
18774 with_gnu_ld \
18775 allow_undefined_flag \
18776 no_undefined_flag \
18777 hardcode_libdir_flag_spec \
18778 hardcode_libdir_separator \
18779 exclude_expsyms \
18780 include_expsyms \
18781 file_list_spec \
18782 variables_saved_for_relink \
18783 libname_spec \
18784 library_names_spec \
18785 soname_spec \
18786 install_override_mode \
18787 finish_eval \
18788 old_striplib \
18789 striplib \
18790 compiler_lib_search_dirs \
18791 predep_objects \
18792 postdep_objects \
18793 predeps \
18794 postdeps \
18795 compiler_lib_search_path \
18796 LD_CXX \
18797 reload_flag_CXX \
18798 compiler_CXX \
18799 lt_prog_compiler_no_builtin_flag_CXX \
18800 lt_prog_compiler_pic_CXX \
18801 lt_prog_compiler_wl_CXX \
18802 lt_prog_compiler_static_CXX \
18803 lt_cv_prog_compiler_c_o_CXX \
18804 export_dynamic_flag_spec_CXX \
18805 whole_archive_flag_spec_CXX \
18806 compiler_needs_object_CXX \
18807 with_gnu_ld_CXX \
18808 allow_undefined_flag_CXX \
18809 no_undefined_flag_CXX \
18810 hardcode_libdir_flag_spec_CXX \
18811 hardcode_libdir_separator_CXX \
18812 exclude_expsyms_CXX \
18813 include_expsyms_CXX \
18814 file_list_spec_CXX \
18815 compiler_lib_search_dirs_CXX \
18816 predep_objects_CXX \
18817 postdep_objects_CXX \
18818 predeps_CXX \
18819 postdeps_CXX \
18820 compiler_lib_search_path_CXX; do
18821     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18822     *[\\\\\\\`\\"\\\$]*)
18823       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18824       ;;
18825     *)
18826       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18827       ;;
18828     esac
18829 done
18830
18831 # Double-quote double-evaled strings.
18832 for var in reload_cmds \
18833 old_postinstall_cmds \
18834 old_postuninstall_cmds \
18835 old_archive_cmds \
18836 extract_expsyms_cmds \
18837 old_archive_from_new_cmds \
18838 old_archive_from_expsyms_cmds \
18839 archive_cmds \
18840 archive_expsym_cmds \
18841 module_cmds \
18842 module_expsym_cmds \
18843 export_symbols_cmds \
18844 prelink_cmds \
18845 postlink_cmds \
18846 postinstall_cmds \
18847 postuninstall_cmds \
18848 finish_cmds \
18849 sys_lib_search_path_spec \
18850 sys_lib_dlsearch_path_spec \
18851 reload_cmds_CXX \
18852 old_archive_cmds_CXX \
18853 old_archive_from_new_cmds_CXX \
18854 old_archive_from_expsyms_cmds_CXX \
18855 archive_cmds_CXX \
18856 archive_expsym_cmds_CXX \
18857 module_cmds_CXX \
18858 module_expsym_cmds_CXX \
18859 export_symbols_cmds_CXX \
18860 prelink_cmds_CXX \
18861 postlink_cmds_CXX; do
18862     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18863     *[\\\\\\\`\\"\\\$]*)
18864       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18865       ;;
18866     *)
18867       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18868       ;;
18869     esac
18870 done
18871
18872 ac_aux_dir='$ac_aux_dir'
18873 xsi_shell='$xsi_shell'
18874 lt_shell_append='$lt_shell_append'
18875
18876 # See if we are running on zsh, and set the options which allow our
18877 # commands through without removal of \ escapes INIT.
18878 if test -n "\${ZSH_VERSION+set}" ; then
18879    setopt NO_GLOB_SUBST
18880 fi
18881
18882
18883     PACKAGE='$PACKAGE'
18884     VERSION='$VERSION'
18885     TIMESTAMP='$TIMESTAMP'
18886     RM='$RM'
18887     ofile='$ofile'
18888
18889
18890
18891
18892
18893
18894 _ACEOF
18895
18896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18897
18898 # Handling of arguments.
18899 for ac_config_target in $ac_config_targets
18900 do
18901   case $ac_config_target in
18902     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18903     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18904     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18905     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18906     "harfbuzz.pc") CONFIG_FILES="$CONFIG_FILES harfbuzz.pc" ;;
18907     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18908     "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
18909     "src/hb-icu-le/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-icu-le/Makefile" ;;
18910     "src/hb-old/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-old/Makefile" ;;
18911     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
18912     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
18913     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18914     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
18915     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
18916
18917   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18918   esac
18919 done
18920
18921
18922 # If the user did not use the arguments to specify the items to instantiate,
18923 # then the envvar interface is used.  Set only those that are not.
18924 # We use the long form for the default assignment because of an extremely
18925 # bizarre bug on SunOS 4.1.3.
18926 if $ac_need_defaults; then
18927   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18928   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18929   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18930 fi
18931
18932 # Have a temporary directory for convenience.  Make it in the build tree
18933 # simply because there is no reason against having it here, and in addition,
18934 # creating and moving files from /tmp can sometimes cause problems.
18935 # Hook for its removal unless debugging.
18936 # Note that there is a small window in which the directory will not be cleaned:
18937 # after its creation but before its name has been assigned to `$tmp'.
18938 $debug ||
18939 {
18940   tmp= ac_tmp=
18941   trap 'exit_status=$?
18942   : "${ac_tmp:=$tmp}"
18943   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18944 ' 0
18945   trap 'as_fn_exit 1' 1 2 13 15
18946 }
18947 # Create a (secure) tmp directory for tmp files.
18948
18949 {
18950   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18951   test -d "$tmp"
18952 }  ||
18953 {
18954   tmp=./conf$$-$RANDOM
18955   (umask 077 && mkdir "$tmp")
18956 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18957 ac_tmp=$tmp
18958
18959 # Set up the scripts for CONFIG_FILES section.
18960 # No need to generate them if there are no CONFIG_FILES.
18961 # This happens for instance with `./config.status config.h'.
18962 if test -n "$CONFIG_FILES"; then
18963
18964
18965 ac_cr=`echo X | tr X '\015'`
18966 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18967 # But we know of no other shell where ac_cr would be empty at this
18968 # point, so we can use a bashism as a fallback.
18969 if test "x$ac_cr" = x; then
18970   eval ac_cr=\$\'\\r\'
18971 fi
18972 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18973 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18974   ac_cs_awk_cr='\\r'
18975 else
18976   ac_cs_awk_cr=$ac_cr
18977 fi
18978
18979 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18980 _ACEOF
18981
18982
18983 {
18984   echo "cat >conf$$subs.awk <<_ACEOF" &&
18985   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18986   echo "_ACEOF"
18987 } >conf$$subs.sh ||
18988   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18989 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18990 ac_delim='%!_!# '
18991 for ac_last_try in false false false false false :; do
18992   . ./conf$$subs.sh ||
18993     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18994
18995   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18996   if test $ac_delim_n = $ac_delim_num; then
18997     break
18998   elif $ac_last_try; then
18999     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19000   else
19001     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19002   fi
19003 done
19004 rm -f conf$$subs.sh
19005
19006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19007 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19008 _ACEOF
19009 sed -n '
19010 h
19011 s/^/S["/; s/!.*/"]=/
19012 p
19013 g
19014 s/^[^!]*!//
19015 :repl
19016 t repl
19017 s/'"$ac_delim"'$//
19018 t delim
19019 :nl
19020 h
19021 s/\(.\{148\}\)..*/\1/
19022 t more1
19023 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19024 p
19025 n
19026 b repl
19027 :more1
19028 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19029 p
19030 g
19031 s/.\{148\}//
19032 t nl
19033 :delim
19034 h
19035 s/\(.\{148\}\)..*/\1/
19036 t more2
19037 s/["\\]/\\&/g; s/^/"/; s/$/"/
19038 p
19039 b
19040 :more2
19041 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19042 p
19043 g
19044 s/.\{148\}//
19045 t delim
19046 ' <conf$$subs.awk | sed '
19047 /^[^""]/{
19048   N
19049   s/\n//
19050 }
19051 ' >>$CONFIG_STATUS || ac_write_fail=1
19052 rm -f conf$$subs.awk
19053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19054 _ACAWK
19055 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19056   for (key in S) S_is_set[key] = 1
19057   FS = "\a"
19058
19059 }
19060 {
19061   line = $ 0
19062   nfields = split(line, field, "@")
19063   substed = 0
19064   len = length(field[1])
19065   for (i = 2; i < nfields; i++) {
19066     key = field[i]
19067     keylen = length(key)
19068     if (S_is_set[key]) {
19069       value = S[key]
19070       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19071       len += length(value) + length(field[++i])
19072       substed = 1
19073     } else
19074       len += 1 + keylen
19075   }
19076
19077   print line
19078 }
19079
19080 _ACAWK
19081 _ACEOF
19082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19083 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19084   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19085 else
19086   cat
19087 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19088   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19089 _ACEOF
19090
19091 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19092 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19093 # trailing colons and then remove the whole line if VPATH becomes empty
19094 # (actually we leave an empty line to preserve line numbers).
19095 if test "x$srcdir" = x.; then
19096   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19097 h
19098 s///
19099 s/^/:/
19100 s/[      ]*$/:/
19101 s/:\$(srcdir):/:/g
19102 s/:\${srcdir}:/:/g
19103 s/:@srcdir@:/:/g
19104 s/^:*//
19105 s/:*$//
19106 x
19107 s/\(=[   ]*\).*/\1/
19108 G
19109 s/\n//
19110 s/^[^=]*=[       ]*$//
19111 }'
19112 fi
19113
19114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19115 fi # test -n "$CONFIG_FILES"
19116
19117 # Set up the scripts for CONFIG_HEADERS section.
19118 # No need to generate them if there are no CONFIG_HEADERS.
19119 # This happens for instance with `./config.status Makefile'.
19120 if test -n "$CONFIG_HEADERS"; then
19121 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19122 BEGIN {
19123 _ACEOF
19124
19125 # Transform confdefs.h into an awk script `defines.awk', embedded as
19126 # here-document in config.status, that substitutes the proper values into
19127 # config.h.in to produce config.h.
19128
19129 # Create a delimiter string that does not exist in confdefs.h, to ease
19130 # handling of long lines.
19131 ac_delim='%!_!# '
19132 for ac_last_try in false false :; do
19133   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19134   if test -z "$ac_tt"; then
19135     break
19136   elif $ac_last_try; then
19137     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19138   else
19139     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19140   fi
19141 done
19142
19143 # For the awk script, D is an array of macro values keyed by name,
19144 # likewise P contains macro parameters if any.  Preserve backslash
19145 # newline sequences.
19146
19147 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19148 sed -n '
19149 s/.\{148\}/&'"$ac_delim"'/g
19150 t rset
19151 :rset
19152 s/^[     ]*#[    ]*define[       ][      ]*/ /
19153 t def
19154 d
19155 :def
19156 s/\\$//
19157 t bsnl
19158 s/["\\]/\\&/g
19159 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19160 D["\1"]=" \3"/p
19161 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19162 d
19163 :bsnl
19164 s/["\\]/\\&/g
19165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19166 D["\1"]=" \3\\\\\\n"\\/p
19167 t cont
19168 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19169 t cont
19170 d
19171 :cont
19172 n
19173 s/.\{148\}/&'"$ac_delim"'/g
19174 t clear
19175 :clear
19176 s/\\$//
19177 t bsnlc
19178 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19179 d
19180 :bsnlc
19181 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19182 b cont
19183 ' <confdefs.h | sed '
19184 s/'"$ac_delim"'/"\\\
19185 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19186
19187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19188   for (key in D) D_is_set[key] = 1
19189   FS = "\a"
19190 }
19191 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19192   line = \$ 0
19193   split(line, arg, " ")
19194   if (arg[1] == "#") {
19195     defundef = arg[2]
19196     mac1 = arg[3]
19197   } else {
19198     defundef = substr(arg[1], 2)
19199     mac1 = arg[2]
19200   }
19201   split(mac1, mac2, "(") #)
19202   macro = mac2[1]
19203   prefix = substr(line, 1, index(line, defundef) - 1)
19204   if (D_is_set[macro]) {
19205     # Preserve the white space surrounding the "#".
19206     print prefix "define", macro P[macro] D[macro]
19207     next
19208   } else {
19209     # Replace #undef with comments.  This is necessary, for example,
19210     # in the case of _POSIX_SOURCE, which is predefined and required
19211     # on some systems where configure will not decide to define it.
19212     if (defundef == "undef") {
19213       print "/*", prefix defundef, macro, "*/"
19214       next
19215     }
19216   }
19217 }
19218 { print }
19219 _ACAWK
19220 _ACEOF
19221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19222   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19223 fi # test -n "$CONFIG_HEADERS"
19224
19225
19226 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19227 shift
19228 for ac_tag
19229 do
19230   case $ac_tag in
19231   :[FHLC]) ac_mode=$ac_tag; continue;;
19232   esac
19233   case $ac_mode$ac_tag in
19234   :[FHL]*:*);;
19235   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19236   :[FH]-) ac_tag=-:-;;
19237   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19238   esac
19239   ac_save_IFS=$IFS
19240   IFS=:
19241   set x $ac_tag
19242   IFS=$ac_save_IFS
19243   shift
19244   ac_file=$1
19245   shift
19246
19247   case $ac_mode in
19248   :L) ac_source=$1;;
19249   :[FH])
19250     ac_file_inputs=
19251     for ac_f
19252     do
19253       case $ac_f in
19254       -) ac_f="$ac_tmp/stdin";;
19255       *) # Look for the file first in the build tree, then in the source tree
19256          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19257          # because $ac_f cannot contain `:'.
19258          test -f "$ac_f" ||
19259            case $ac_f in
19260            [\\/$]*) false;;
19261            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19262            esac ||
19263            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19264       esac
19265       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19266       as_fn_append ac_file_inputs " '$ac_f'"
19267     done
19268
19269     # Let's still pretend it is `configure' which instantiates (i.e., don't
19270     # use $as_me), people would be surprised to read:
19271     #    /* config.h.  Generated by config.status.  */
19272     configure_input='Generated from '`
19273           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19274         `' by configure.'
19275     if test x"$ac_file" != x-; then
19276       configure_input="$ac_file.  $configure_input"
19277       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19278 $as_echo "$as_me: creating $ac_file" >&6;}
19279     fi
19280     # Neutralize special characters interpreted by sed in replacement strings.
19281     case $configure_input in #(
19282     *\&* | *\|* | *\\* )
19283        ac_sed_conf_input=`$as_echo "$configure_input" |
19284        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19285     *) ac_sed_conf_input=$configure_input;;
19286     esac
19287
19288     case $ac_tag in
19289     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19290       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19291     esac
19292     ;;
19293   esac
19294
19295   ac_dir=`$as_dirname -- "$ac_file" ||
19296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19297          X"$ac_file" : 'X\(//\)[^/]' \| \
19298          X"$ac_file" : 'X\(//\)$' \| \
19299          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19300 $as_echo X"$ac_file" |
19301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19302             s//\1/
19303             q
19304           }
19305           /^X\(\/\/\)[^/].*/{
19306             s//\1/
19307             q
19308           }
19309           /^X\(\/\/\)$/{
19310             s//\1/
19311             q
19312           }
19313           /^X\(\/\).*/{
19314             s//\1/
19315             q
19316           }
19317           s/.*/./; q'`
19318   as_dir="$ac_dir"; as_fn_mkdir_p
19319   ac_builddir=.
19320
19321 case "$ac_dir" in
19322 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19323 *)
19324   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19325   # A ".." for each directory in $ac_dir_suffix.
19326   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19327   case $ac_top_builddir_sub in
19328   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19329   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19330   esac ;;
19331 esac
19332 ac_abs_top_builddir=$ac_pwd
19333 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19334 # for backward compatibility:
19335 ac_top_builddir=$ac_top_build_prefix
19336
19337 case $srcdir in
19338   .)  # We are building in place.
19339     ac_srcdir=.
19340     ac_top_srcdir=$ac_top_builddir_sub
19341     ac_abs_top_srcdir=$ac_pwd ;;
19342   [\\/]* | ?:[\\/]* )  # Absolute name.
19343     ac_srcdir=$srcdir$ac_dir_suffix;
19344     ac_top_srcdir=$srcdir
19345     ac_abs_top_srcdir=$srcdir ;;
19346   *) # Relative name.
19347     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19348     ac_top_srcdir=$ac_top_build_prefix$srcdir
19349     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19350 esac
19351 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19352
19353
19354   case $ac_mode in
19355   :F)
19356   #
19357   # CONFIG_FILE
19358   #
19359
19360   case $INSTALL in
19361   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19362   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19363   esac
19364   ac_MKDIR_P=$MKDIR_P
19365   case $MKDIR_P in
19366   [\\/$]* | ?:[\\/]* ) ;;
19367   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19368   esac
19369 _ACEOF
19370
19371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19372 # If the template does not know about datarootdir, expand it.
19373 # FIXME: This hack should be removed a few years after 2.60.
19374 ac_datarootdir_hack=; ac_datarootdir_seen=
19375 ac_sed_dataroot='
19376 /datarootdir/ {
19377   p
19378   q
19379 }
19380 /@datadir@/p
19381 /@docdir@/p
19382 /@infodir@/p
19383 /@localedir@/p
19384 /@mandir@/p'
19385 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19386 *datarootdir*) ac_datarootdir_seen=yes;;
19387 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19388   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19389 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19390 _ACEOF
19391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19392   ac_datarootdir_hack='
19393   s&@datadir@&$datadir&g
19394   s&@docdir@&$docdir&g
19395   s&@infodir@&$infodir&g
19396   s&@localedir@&$localedir&g
19397   s&@mandir@&$mandir&g
19398   s&\\\${datarootdir}&$datarootdir&g' ;;
19399 esac
19400 _ACEOF
19401
19402 # Neutralize VPATH when `$srcdir' = `.'.
19403 # Shell code in configure.ac might set extrasub.
19404 # FIXME: do we really want to maintain this feature?
19405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19406 ac_sed_extra="$ac_vpsub
19407 $extrasub
19408 _ACEOF
19409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410 :t
19411 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19412 s|@configure_input@|$ac_sed_conf_input|;t t
19413 s&@top_builddir@&$ac_top_builddir_sub&;t t
19414 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19415 s&@srcdir@&$ac_srcdir&;t t
19416 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19417 s&@top_srcdir@&$ac_top_srcdir&;t t
19418 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19419 s&@builddir@&$ac_builddir&;t t
19420 s&@abs_builddir@&$ac_abs_builddir&;t t
19421 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19422 s&@INSTALL@&$ac_INSTALL&;t t
19423 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19424 $ac_datarootdir_hack
19425 "
19426 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19427   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19428
19429 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19430   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19431   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19432       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19433   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19434 which seems to be undefined.  Please make sure it is defined" >&5
19435 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19436 which seems to be undefined.  Please make sure it is defined" >&2;}
19437
19438   rm -f "$ac_tmp/stdin"
19439   case $ac_file in
19440   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19441   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19442   esac \
19443   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19444  ;;
19445   :H)
19446   #
19447   # CONFIG_HEADER
19448   #
19449   if test x"$ac_file" != x-; then
19450     {
19451       $as_echo "/* $configure_input  */" \
19452       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19453     } >"$ac_tmp/config.h" \
19454       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19455     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19456       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19457 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19458     else
19459       rm -f "$ac_file"
19460       mv "$ac_tmp/config.h" "$ac_file" \
19461         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19462     fi
19463   else
19464     $as_echo "/* $configure_input  */" \
19465       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19466       || as_fn_error $? "could not create -" "$LINENO" 5
19467   fi
19468 # Compute "$ac_file"'s index in $config_headers.
19469 _am_arg="$ac_file"
19470 _am_stamp_count=1
19471 for _am_header in $config_headers :; do
19472   case $_am_header in
19473     $_am_arg | $_am_arg:* )
19474       break ;;
19475     * )
19476       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19477   esac
19478 done
19479 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19480 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19481          X"$_am_arg" : 'X\(//\)[^/]' \| \
19482          X"$_am_arg" : 'X\(//\)$' \| \
19483          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19484 $as_echo X"$_am_arg" |
19485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19486             s//\1/
19487             q
19488           }
19489           /^X\(\/\/\)[^/].*/{
19490             s//\1/
19491             q
19492           }
19493           /^X\(\/\/\)$/{
19494             s//\1/
19495             q
19496           }
19497           /^X\(\/\).*/{
19498             s//\1/
19499             q
19500           }
19501           s/.*/./; q'`/stamp-h$_am_stamp_count
19502  ;;
19503
19504   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19505 $as_echo "$as_me: executing $ac_file commands" >&6;}
19506  ;;
19507   esac
19508
19509
19510   case $ac_file$ac_mode in
19511     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19512   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19513   # are listed without --file.  Let's play safe and only enable the eval
19514   # if we detect the quoting.
19515   case $CONFIG_FILES in
19516   *\'*) eval set x "$CONFIG_FILES" ;;
19517   *)   set x $CONFIG_FILES ;;
19518   esac
19519   shift
19520   for mf
19521   do
19522     # Strip MF so we end up with the name of the file.
19523     mf=`echo "$mf" | sed -e 's/:.*$//'`
19524     # Check whether this is an Automake generated Makefile or not.
19525     # We used to match only the files named `Makefile.in', but
19526     # some people rename them; so instead we look at the file content.
19527     # Grep'ing the first line is not enough: some people post-process
19528     # each Makefile.in and add a new line on top of each file to say so.
19529     # Grep'ing the whole file is not good either: AIX grep has a line
19530     # limit of 2048, but all sed's we know have understand at least 4000.
19531     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19532       dirpart=`$as_dirname -- "$mf" ||
19533 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19534          X"$mf" : 'X\(//\)[^/]' \| \
19535          X"$mf" : 'X\(//\)$' \| \
19536          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19537 $as_echo X"$mf" |
19538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19539             s//\1/
19540             q
19541           }
19542           /^X\(\/\/\)[^/].*/{
19543             s//\1/
19544             q
19545           }
19546           /^X\(\/\/\)$/{
19547             s//\1/
19548             q
19549           }
19550           /^X\(\/\).*/{
19551             s//\1/
19552             q
19553           }
19554           s/.*/./; q'`
19555     else
19556       continue
19557     fi
19558     # Extract the definition of DEPDIR, am__include, and am__quote
19559     # from the Makefile without running `make'.
19560     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19561     test -z "$DEPDIR" && continue
19562     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19563     test -z "am__include" && continue
19564     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19565     # When using ansi2knr, U may be empty or an underscore; expand it
19566     U=`sed -n 's/^U = //p' < "$mf"`
19567     # Find all dependency output files, they are included files with
19568     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19569     # simplest approach to changing $(DEPDIR) to its actual value in the
19570     # expansion.
19571     for file in `sed -n "
19572       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19573          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19574       # Make sure the directory exists.
19575       test -f "$dirpart/$file" && continue
19576       fdir=`$as_dirname -- "$file" ||
19577 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19578          X"$file" : 'X\(//\)[^/]' \| \
19579          X"$file" : 'X\(//\)$' \| \
19580          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19581 $as_echo X"$file" |
19582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19583             s//\1/
19584             q
19585           }
19586           /^X\(\/\/\)[^/].*/{
19587             s//\1/
19588             q
19589           }
19590           /^X\(\/\/\)$/{
19591             s//\1/
19592             q
19593           }
19594           /^X\(\/\).*/{
19595             s//\1/
19596             q
19597           }
19598           s/.*/./; q'`
19599       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19600       # echo "creating $dirpart/$file"
19601       echo '# dummy' > "$dirpart/$file"
19602     done
19603   done
19604 }
19605  ;;
19606     "libtool":C)
19607
19608     # See if we are running on zsh, and set the options which allow our
19609     # commands through without removal of \ escapes.
19610     if test -n "${ZSH_VERSION+set}" ; then
19611       setopt NO_GLOB_SUBST
19612     fi
19613
19614     cfgfile="${ofile}T"
19615     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19616     $RM "$cfgfile"
19617
19618     cat <<_LT_EOF >> "$cfgfile"
19619 #! $SHELL
19620
19621 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19622 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19623 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19624 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19625 #
19626 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19627 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19628 #                 Foundation, Inc.
19629 #   Written by Gordon Matzigkeit, 1996
19630 #
19631 #   This file is part of GNU Libtool.
19632 #
19633 # GNU Libtool is free software; you can redistribute it and/or
19634 # modify it under the terms of the GNU General Public License as
19635 # published by the Free Software Foundation; either version 2 of
19636 # the License, or (at your option) any later version.
19637 #
19638 # As a special exception to the GNU General Public License,
19639 # if you distribute this file as part of a program or library that
19640 # is built using GNU Libtool, you may include this file under the
19641 # same distribution terms that you use for the rest of that program.
19642 #
19643 # GNU Libtool is distributed in the hope that it will be useful,
19644 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19645 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19646 # GNU General Public License for more details.
19647 #
19648 # You should have received a copy of the GNU General Public License
19649 # along with GNU Libtool; see the file COPYING.  If not, a copy
19650 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19651 # obtained by writing to the Free Software Foundation, Inc.,
19652 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19653
19654
19655 # The names of the tagged configurations supported by this script.
19656 available_tags="CXX "
19657
19658 # ### BEGIN LIBTOOL CONFIG
19659
19660 # Which release of libtool.m4 was used?
19661 macro_version=$macro_version
19662 macro_revision=$macro_revision
19663
19664 # Whether or not to build static libraries.
19665 build_old_libs=$enable_static
19666
19667 # Whether or not to build shared libraries.
19668 build_libtool_libs=$enable_shared
19669
19670 # What type of objects to build.
19671 pic_mode=$pic_mode
19672
19673 # Whether or not to optimize for fast installation.
19674 fast_install=$enable_fast_install
19675
19676 # Shell to use when invoking shell scripts.
19677 SHELL=$lt_SHELL
19678
19679 # An echo program that protects backslashes.
19680 ECHO=$lt_ECHO
19681
19682 # The PATH separator for the build system.
19683 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19684
19685 # The host system.
19686 host_alias=$host_alias
19687 host=$host
19688 host_os=$host_os
19689
19690 # The build system.
19691 build_alias=$build_alias
19692 build=$build
19693 build_os=$build_os
19694
19695 # A sed program that does not truncate output.
19696 SED=$lt_SED
19697
19698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19699 Xsed="\$SED -e 1s/^X//"
19700
19701 # A grep program that handles long lines.
19702 GREP=$lt_GREP
19703
19704 # An ERE matcher.
19705 EGREP=$lt_EGREP
19706
19707 # A literal string matcher.
19708 FGREP=$lt_FGREP
19709
19710 # A BSD- or MS-compatible name lister.
19711 NM=$lt_NM
19712
19713 # Whether we need soft or hard links.
19714 LN_S=$lt_LN_S
19715
19716 # What is the maximum length of a command?
19717 max_cmd_len=$max_cmd_len
19718
19719 # Object file suffix (normally "o").
19720 objext=$ac_objext
19721
19722 # Executable file suffix (normally "").
19723 exeext=$exeext
19724
19725 # whether the shell understands "unset".
19726 lt_unset=$lt_unset
19727
19728 # turn spaces into newlines.
19729 SP2NL=$lt_lt_SP2NL
19730
19731 # turn newlines into spaces.
19732 NL2SP=$lt_lt_NL2SP
19733
19734 # convert \$build file names to \$host format.
19735 to_host_file_cmd=$lt_cv_to_host_file_cmd
19736
19737 # convert \$build files to toolchain format.
19738 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19739
19740 # An object symbol dumper.
19741 OBJDUMP=$lt_OBJDUMP
19742
19743 # Method to check whether dependent libraries are shared objects.
19744 deplibs_check_method=$lt_deplibs_check_method
19745
19746 # Command to use when deplibs_check_method = "file_magic".
19747 file_magic_cmd=$lt_file_magic_cmd
19748
19749 # How to find potential files when deplibs_check_method = "file_magic".
19750 file_magic_glob=$lt_file_magic_glob
19751
19752 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19753 want_nocaseglob=$lt_want_nocaseglob
19754
19755 # DLL creation program.
19756 DLLTOOL=$lt_DLLTOOL
19757
19758 # Command to associate shared and link libraries.
19759 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19760
19761 # The archiver.
19762 AR=$lt_AR
19763
19764 # Flags to create an archive.
19765 AR_FLAGS=$lt_AR_FLAGS
19766
19767 # How to feed a file listing to the archiver.
19768 archiver_list_spec=$lt_archiver_list_spec
19769
19770 # A symbol stripping program.
19771 STRIP=$lt_STRIP
19772
19773 # Commands used to install an old-style archive.
19774 RANLIB=$lt_RANLIB
19775 old_postinstall_cmds=$lt_old_postinstall_cmds
19776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19777
19778 # Whether to use a lock for old archive extraction.
19779 lock_old_archive_extraction=$lock_old_archive_extraction
19780
19781 # A C compiler.
19782 LTCC=$lt_CC
19783
19784 # LTCC compiler flags.
19785 LTCFLAGS=$lt_CFLAGS
19786
19787 # Take the output of nm and produce a listing of raw symbols and C names.
19788 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19789
19790 # Transform the output of nm in a proper C declaration.
19791 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19792
19793 # Transform the output of nm in a C name address pair.
19794 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19795
19796 # Transform the output of nm in a C name address pair when lib prefix is needed.
19797 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19798
19799 # Specify filename containing input files for \$NM.
19800 nm_file_list_spec=$lt_nm_file_list_spec
19801
19802 # The root where to search for dependent libraries,and in which our libraries should be installed.
19803 lt_sysroot=$lt_sysroot
19804
19805 # The name of the directory that contains temporary libtool files.
19806 objdir=$objdir
19807
19808 # Used to examine libraries when file_magic_cmd begins with "file".
19809 MAGIC_CMD=$MAGIC_CMD
19810
19811 # Must we lock files when doing compilation?
19812 need_locks=$lt_need_locks
19813
19814 # Manifest tool.
19815 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19816
19817 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19818 DSYMUTIL=$lt_DSYMUTIL
19819
19820 # Tool to change global to local symbols on Mac OS X.
19821 NMEDIT=$lt_NMEDIT
19822
19823 # Tool to manipulate fat objects and archives on Mac OS X.
19824 LIPO=$lt_LIPO
19825
19826 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19827 OTOOL=$lt_OTOOL
19828
19829 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19830 OTOOL64=$lt_OTOOL64
19831
19832 # Old archive suffix (normally "a").
19833 libext=$libext
19834
19835 # Shared library suffix (normally ".so").
19836 shrext_cmds=$lt_shrext_cmds
19837
19838 # The commands to extract the exported symbol list from a shared archive.
19839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19840
19841 # Variables whose values should be saved in libtool wrapper scripts and
19842 # restored at link time.
19843 variables_saved_for_relink=$lt_variables_saved_for_relink
19844
19845 # Do we need the "lib" prefix for modules?
19846 need_lib_prefix=$need_lib_prefix
19847
19848 # Do we need a version for libraries?
19849 need_version=$need_version
19850
19851 # Library versioning type.
19852 version_type=$version_type
19853
19854 # Shared library runtime path variable.
19855 runpath_var=$runpath_var
19856
19857 # Shared library path variable.
19858 shlibpath_var=$shlibpath_var
19859
19860 # Is shlibpath searched before the hard-coded library search path?
19861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19862
19863 # Format of library name prefix.
19864 libname_spec=$lt_libname_spec
19865
19866 # List of archive names.  First name is the real one, the rest are links.
19867 # The last name is the one that the linker finds with -lNAME
19868 library_names_spec=$lt_library_names_spec
19869
19870 # The coded name of the library, if different from the real name.
19871 soname_spec=$lt_soname_spec
19872
19873 # Permission mode override for installation of shared libraries.
19874 install_override_mode=$lt_install_override_mode
19875
19876 # Command to use after installation of a shared archive.
19877 postinstall_cmds=$lt_postinstall_cmds
19878
19879 # Command to use after uninstallation of a shared archive.
19880 postuninstall_cmds=$lt_postuninstall_cmds
19881
19882 # Commands used to finish a libtool library installation in a directory.
19883 finish_cmds=$lt_finish_cmds
19884
19885 # As "finish_cmds", except a single script fragment to be evaled but
19886 # not shown.
19887 finish_eval=$lt_finish_eval
19888
19889 # Whether we should hardcode library paths into libraries.
19890 hardcode_into_libs=$hardcode_into_libs
19891
19892 # Compile-time system search path for libraries.
19893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19894
19895 # Run-time system search path for libraries.
19896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19897
19898 # Whether dlopen is supported.
19899 dlopen_support=$enable_dlopen
19900
19901 # Whether dlopen of programs is supported.
19902 dlopen_self=$enable_dlopen_self
19903
19904 # Whether dlopen of statically linked programs is supported.
19905 dlopen_self_static=$enable_dlopen_self_static
19906
19907 # Commands to strip libraries.
19908 old_striplib=$lt_old_striplib
19909 striplib=$lt_striplib
19910
19911
19912 # The linker used to build libraries.
19913 LD=$lt_LD
19914
19915 # How to create reloadable object files.
19916 reload_flag=$lt_reload_flag
19917 reload_cmds=$lt_reload_cmds
19918
19919 # Commands used to build an old-style archive.
19920 old_archive_cmds=$lt_old_archive_cmds
19921
19922 # A language specific compiler.
19923 CC=$lt_compiler
19924
19925 # Is the compiler the GNU compiler?
19926 with_gcc=$GCC
19927
19928 # Compiler flag to turn off builtin functions.
19929 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19930
19931 # Additional compiler flags for building library objects.
19932 pic_flag=$lt_lt_prog_compiler_pic
19933
19934 # How to pass a linker flag through the compiler.
19935 wl=$lt_lt_prog_compiler_wl
19936
19937 # Compiler flag to prevent dynamic linking.
19938 link_static_flag=$lt_lt_prog_compiler_static
19939
19940 # Does compiler simultaneously support -c and -o options?
19941 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19942
19943 # Whether or not to add -lc for building shared libraries.
19944 build_libtool_need_lc=$archive_cmds_need_lc
19945
19946 # Whether or not to disallow shared libs when runtime libs are static.
19947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19948
19949 # Compiler flag to allow reflexive dlopens.
19950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19951
19952 # Compiler flag to generate shared objects directly from archives.
19953 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19954
19955 # Whether the compiler copes with passing no objects directly.
19956 compiler_needs_object=$lt_compiler_needs_object
19957
19958 # Create an old-style archive from a shared archive.
19959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19960
19961 # Create a temporary old-style archive to link instead of a shared archive.
19962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19963
19964 # Commands used to build a shared archive.
19965 archive_cmds=$lt_archive_cmds
19966 archive_expsym_cmds=$lt_archive_expsym_cmds
19967
19968 # Commands used to build a loadable module if different from building
19969 # a shared archive.
19970 module_cmds=$lt_module_cmds
19971 module_expsym_cmds=$lt_module_expsym_cmds
19972
19973 # Whether we are building with GNU ld or not.
19974 with_gnu_ld=$lt_with_gnu_ld
19975
19976 # Flag that allows shared libraries with undefined symbols to be built.
19977 allow_undefined_flag=$lt_allow_undefined_flag
19978
19979 # Flag that enforces no undefined symbols.
19980 no_undefined_flag=$lt_no_undefined_flag
19981
19982 # Flag to hardcode \$libdir into a binary during linking.
19983 # This must work even if \$libdir does not exist
19984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19985
19986 # Whether we need a single "-rpath" flag with a separated argument.
19987 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19988
19989 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19990 # DIR into the resulting binary.
19991 hardcode_direct=$hardcode_direct
19992
19993 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19994 # DIR into the resulting binary and the resulting library dependency is
19995 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19996 # library is relocated.
19997 hardcode_direct_absolute=$hardcode_direct_absolute
19998
19999 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20000 # into the resulting binary.
20001 hardcode_minus_L=$hardcode_minus_L
20002
20003 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20004 # into the resulting binary.
20005 hardcode_shlibpath_var=$hardcode_shlibpath_var
20006
20007 # Set to "yes" if building a shared library automatically hardcodes DIR
20008 # into the library and all subsequent libraries and executables linked
20009 # against it.
20010 hardcode_automatic=$hardcode_automatic
20011
20012 # Set to yes if linker adds runtime paths of dependent libraries
20013 # to runtime path list.
20014 inherit_rpath=$inherit_rpath
20015
20016 # Whether libtool must link a program against all its dependency libraries.
20017 link_all_deplibs=$link_all_deplibs
20018
20019 # Set to "yes" if exported symbols are required.
20020 always_export_symbols=$always_export_symbols
20021
20022 # The commands to list exported symbols.
20023 export_symbols_cmds=$lt_export_symbols_cmds
20024
20025 # Symbols that should not be listed in the preloaded symbols.
20026 exclude_expsyms=$lt_exclude_expsyms
20027
20028 # Symbols that must always be exported.
20029 include_expsyms=$lt_include_expsyms
20030
20031 # Commands necessary for linking programs (against libraries) with templates.
20032 prelink_cmds=$lt_prelink_cmds
20033
20034 # Commands necessary for finishing linking programs.
20035 postlink_cmds=$lt_postlink_cmds
20036
20037 # Specify filename containing input files.
20038 file_list_spec=$lt_file_list_spec
20039
20040 # How to hardcode a shared library path into an executable.
20041 hardcode_action=$hardcode_action
20042
20043 # The directories searched by this compiler when creating a shared library.
20044 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20045
20046 # Dependencies to place before and after the objects being linked to
20047 # create a shared library.
20048 predep_objects=$lt_predep_objects
20049 postdep_objects=$lt_postdep_objects
20050 predeps=$lt_predeps
20051 postdeps=$lt_postdeps
20052
20053 # The library search path used internally by the compiler when linking
20054 # a shared library.
20055 compiler_lib_search_path=$lt_compiler_lib_search_path
20056
20057 # ### END LIBTOOL CONFIG
20058
20059 _LT_EOF
20060
20061   case $host_os in
20062   aix3*)
20063     cat <<\_LT_EOF >> "$cfgfile"
20064 # AIX sometimes has problems with the GCC collect2 program.  For some
20065 # reason, if we set the COLLECT_NAMES environment variable, the problems
20066 # vanish in a puff of smoke.
20067 if test "X${COLLECT_NAMES+set}" != Xset; then
20068   COLLECT_NAMES=
20069   export COLLECT_NAMES
20070 fi
20071 _LT_EOF
20072     ;;
20073   esac
20074
20075
20076 ltmain="$ac_aux_dir/ltmain.sh"
20077
20078
20079   # We use sed instead of cat because bash on DJGPP gets confused if
20080   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20081   # text mode, it properly converts lines to CR/LF.  This bash problem
20082   # is reportedly fixed, but why not run on old versions too?
20083   sed '$q' "$ltmain" >> "$cfgfile" \
20084      || (rm -f "$cfgfile"; exit 1)
20085
20086   if test x"$xsi_shell" = xyes; then
20087   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20088 func_dirname ()\
20089 {\
20090 \    case ${1} in\
20091 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20092 \      *  ) func_dirname_result="${3}" ;;\
20093 \    esac\
20094 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20095   && mv -f "$cfgfile.tmp" "$cfgfile" \
20096     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20097 test 0 -eq $? || _lt_function_replace_fail=:
20098
20099
20100   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20101 func_basename ()\
20102 {\
20103 \    func_basename_result="${1##*/}"\
20104 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20105   && mv -f "$cfgfile.tmp" "$cfgfile" \
20106     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20107 test 0 -eq $? || _lt_function_replace_fail=:
20108
20109
20110   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20111 func_dirname_and_basename ()\
20112 {\
20113 \    case ${1} in\
20114 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20115 \      *  ) func_dirname_result="${3}" ;;\
20116 \    esac\
20117 \    func_basename_result="${1##*/}"\
20118 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20119   && mv -f "$cfgfile.tmp" "$cfgfile" \
20120     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20121 test 0 -eq $? || _lt_function_replace_fail=:
20122
20123
20124   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20125 func_stripname ()\
20126 {\
20127 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20128 \    # positional parameters, so assign one to ordinary parameter first.\
20129 \    func_stripname_result=${3}\
20130 \    func_stripname_result=${func_stripname_result#"${1}"}\
20131 \    func_stripname_result=${func_stripname_result%"${2}"}\
20132 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20133   && mv -f "$cfgfile.tmp" "$cfgfile" \
20134     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20135 test 0 -eq $? || _lt_function_replace_fail=:
20136
20137
20138   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20139 func_split_long_opt ()\
20140 {\
20141 \    func_split_long_opt_name=${1%%=*}\
20142 \    func_split_long_opt_arg=${1#*=}\
20143 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20144   && mv -f "$cfgfile.tmp" "$cfgfile" \
20145     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20146 test 0 -eq $? || _lt_function_replace_fail=:
20147
20148
20149   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20150 func_split_short_opt ()\
20151 {\
20152 \    func_split_short_opt_arg=${1#??}\
20153 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20154 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20155   && mv -f "$cfgfile.tmp" "$cfgfile" \
20156     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20157 test 0 -eq $? || _lt_function_replace_fail=:
20158
20159
20160   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20161 func_lo2o ()\
20162 {\
20163 \    case ${1} in\
20164 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20165 \      *)    func_lo2o_result=${1} ;;\
20166 \    esac\
20167 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20168   && mv -f "$cfgfile.tmp" "$cfgfile" \
20169     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20170 test 0 -eq $? || _lt_function_replace_fail=:
20171
20172
20173   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20174 func_xform ()\
20175 {\
20176     func_xform_result=${1%.*}.lo\
20177 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20178   && mv -f "$cfgfile.tmp" "$cfgfile" \
20179     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20180 test 0 -eq $? || _lt_function_replace_fail=:
20181
20182
20183   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20184 func_arith ()\
20185 {\
20186     func_arith_result=$(( $* ))\
20187 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20188   && mv -f "$cfgfile.tmp" "$cfgfile" \
20189     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20190 test 0 -eq $? || _lt_function_replace_fail=:
20191
20192
20193   sed -e '/^func_len ()$/,/^} # func_len /c\
20194 func_len ()\
20195 {\
20196     func_len_result=${#1}\
20197 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20198   && mv -f "$cfgfile.tmp" "$cfgfile" \
20199     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20200 test 0 -eq $? || _lt_function_replace_fail=:
20201
20202 fi
20203
20204 if test x"$lt_shell_append" = xyes; then
20205   sed -e '/^func_append ()$/,/^} # func_append /c\
20206 func_append ()\
20207 {\
20208     eval "${1}+=\\${2}"\
20209 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20210   && mv -f "$cfgfile.tmp" "$cfgfile" \
20211     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20212 test 0 -eq $? || _lt_function_replace_fail=:
20213
20214
20215   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20216 func_append_quoted ()\
20217 {\
20218 \    func_quote_for_eval "${2}"\
20219 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20220 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20221   && mv -f "$cfgfile.tmp" "$cfgfile" \
20222     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20223 test 0 -eq $? || _lt_function_replace_fail=:
20224
20225
20226   # Save a `func_append' function call where possible by direct use of '+='
20227   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20228     && mv -f "$cfgfile.tmp" "$cfgfile" \
20229       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20230   test 0 -eq $? || _lt_function_replace_fail=:
20231 else
20232   # Save a `func_append' function call even when '+=' is not available
20233   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20234     && mv -f "$cfgfile.tmp" "$cfgfile" \
20235       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20236   test 0 -eq $? || _lt_function_replace_fail=:
20237 fi
20238
20239 if test x"$_lt_function_replace_fail" = x":"; then
20240   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20241 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20242 fi
20243
20244
20245    mv -f "$cfgfile" "$ofile" ||
20246     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20247   chmod +x "$ofile"
20248
20249
20250     cat <<_LT_EOF >> "$ofile"
20251
20252 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20253
20254 # The linker used to build libraries.
20255 LD=$lt_LD_CXX
20256
20257 # How to create reloadable object files.
20258 reload_flag=$lt_reload_flag_CXX
20259 reload_cmds=$lt_reload_cmds_CXX
20260
20261 # Commands used to build an old-style archive.
20262 old_archive_cmds=$lt_old_archive_cmds_CXX
20263
20264 # A language specific compiler.
20265 CC=$lt_compiler_CXX
20266
20267 # Is the compiler the GNU compiler?
20268 with_gcc=$GCC_CXX
20269
20270 # Compiler flag to turn off builtin functions.
20271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20272
20273 # Additional compiler flags for building library objects.
20274 pic_flag=$lt_lt_prog_compiler_pic_CXX
20275
20276 # How to pass a linker flag through the compiler.
20277 wl=$lt_lt_prog_compiler_wl_CXX
20278
20279 # Compiler flag to prevent dynamic linking.
20280 link_static_flag=$lt_lt_prog_compiler_static_CXX
20281
20282 # Does compiler simultaneously support -c and -o options?
20283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20284
20285 # Whether or not to add -lc for building shared libraries.
20286 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20287
20288 # Whether or not to disallow shared libs when runtime libs are static.
20289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20290
20291 # Compiler flag to allow reflexive dlopens.
20292 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20293
20294 # Compiler flag to generate shared objects directly from archives.
20295 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20296
20297 # Whether the compiler copes with passing no objects directly.
20298 compiler_needs_object=$lt_compiler_needs_object_CXX
20299
20300 # Create an old-style archive from a shared archive.
20301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20302
20303 # Create a temporary old-style archive to link instead of a shared archive.
20304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20305
20306 # Commands used to build a shared archive.
20307 archive_cmds=$lt_archive_cmds_CXX
20308 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20309
20310 # Commands used to build a loadable module if different from building
20311 # a shared archive.
20312 module_cmds=$lt_module_cmds_CXX
20313 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20314
20315 # Whether we are building with GNU ld or not.
20316 with_gnu_ld=$lt_with_gnu_ld_CXX
20317
20318 # Flag that allows shared libraries with undefined symbols to be built.
20319 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20320
20321 # Flag that enforces no undefined symbols.
20322 no_undefined_flag=$lt_no_undefined_flag_CXX
20323
20324 # Flag to hardcode \$libdir into a binary during linking.
20325 # This must work even if \$libdir does not exist
20326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20327
20328 # Whether we need a single "-rpath" flag with a separated argument.
20329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20330
20331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20332 # DIR into the resulting binary.
20333 hardcode_direct=$hardcode_direct_CXX
20334
20335 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20336 # DIR into the resulting binary and the resulting library dependency is
20337 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20338 # library is relocated.
20339 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20340
20341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20342 # into the resulting binary.
20343 hardcode_minus_L=$hardcode_minus_L_CXX
20344
20345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20346 # into the resulting binary.
20347 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20348
20349 # Set to "yes" if building a shared library automatically hardcodes DIR
20350 # into the library and all subsequent libraries and executables linked
20351 # against it.
20352 hardcode_automatic=$hardcode_automatic_CXX
20353
20354 # Set to yes if linker adds runtime paths of dependent libraries
20355 # to runtime path list.
20356 inherit_rpath=$inherit_rpath_CXX
20357
20358 # Whether libtool must link a program against all its dependency libraries.
20359 link_all_deplibs=$link_all_deplibs_CXX
20360
20361 # Set to "yes" if exported symbols are required.
20362 always_export_symbols=$always_export_symbols_CXX
20363
20364 # The commands to list exported symbols.
20365 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20366
20367 # Symbols that should not be listed in the preloaded symbols.
20368 exclude_expsyms=$lt_exclude_expsyms_CXX
20369
20370 # Symbols that must always be exported.
20371 include_expsyms=$lt_include_expsyms_CXX
20372
20373 # Commands necessary for linking programs (against libraries) with templates.
20374 prelink_cmds=$lt_prelink_cmds_CXX
20375
20376 # Commands necessary for finishing linking programs.
20377 postlink_cmds=$lt_postlink_cmds_CXX
20378
20379 # Specify filename containing input files.
20380 file_list_spec=$lt_file_list_spec_CXX
20381
20382 # How to hardcode a shared library path into an executable.
20383 hardcode_action=$hardcode_action_CXX
20384
20385 # The directories searched by this compiler when creating a shared library.
20386 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20387
20388 # Dependencies to place before and after the objects being linked to
20389 # create a shared library.
20390 predep_objects=$lt_predep_objects_CXX
20391 postdep_objects=$lt_postdep_objects_CXX
20392 predeps=$lt_predeps_CXX
20393 postdeps=$lt_postdeps_CXX
20394
20395 # The library search path used internally by the compiler when linking
20396 # a shared library.
20397 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20398
20399 # ### END LIBTOOL TAG CONFIG: CXX
20400 _LT_EOF
20401
20402  ;;
20403
20404   esac
20405 done # for ac_tag
20406
20407
20408 as_fn_exit 0
20409 _ACEOF
20410 ac_clean_files=$ac_clean_files_save
20411
20412 test $ac_write_fail = 0 ||
20413   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20414
20415
20416 # configure is writing to config.log, and then calls config.status.
20417 # config.status does its own redirection, appending to config.log.
20418 # Unfortunately, on DOS this fails, as config.log is still kept open
20419 # by configure, so config.status won't be able to write to it; its
20420 # output is simply discarded.  So we exec the FD to /dev/null,
20421 # effectively closing config.log, so it can be properly (re)opened and
20422 # appended to by config.status.  When coming back to configure, we
20423 # need to make the FD available again.
20424 if test "$no_create" != yes; then
20425   ac_cs_success=:
20426   ac_config_status_args=
20427   test "$silent" = yes &&
20428     ac_config_status_args="$ac_config_status_args --quiet"
20429   exec 5>/dev/null
20430   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20431   exec 5>>config.log
20432   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20433   # would make configure fail if this is the last instruction.
20434   $ac_cs_success || as_fn_exit 1
20435 fi
20436 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20437   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20438 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20439 fi
20440
20441
20442 { $as_echo "$as_me:${as_lineno-$LINENO}:
20443
20444 Build configuration:
20445
20446 Unicode callbacks (you want at least one):
20447         Glib:                   ${have_glib}
20448         ICU:                    ${have_icu}
20449         UCDN:                   ${have_ucdn}
20450
20451 Font callbacks (the more the better):
20452         FreeType:               ${have_freetype}
20453
20454 Tools used for command-line utilities:
20455         Cairo:                  ${have_cairo}
20456
20457 Additional shapers (the more the better):
20458         Graphite2:              ${have_graphite}
20459
20460 Test / platform shapers (not normally needed):
20461         CoreText:               ${have_coretext}
20462         ICU Layout Engine:      ${have_icu_le}
20463         Old HarfBuzz:           ${have_hb_old}
20464         Uniscribe:              ${have_uniscribe}
20465 " >&5
20466 $as_echo "$as_me:
20467
20468 Build configuration:
20469
20470 Unicode callbacks (you want at least one):
20471         Glib:                   ${have_glib}
20472         ICU:                    ${have_icu}
20473         UCDN:                   ${have_ucdn}
20474
20475 Font callbacks (the more the better):
20476         FreeType:               ${have_freetype}
20477
20478 Tools used for command-line utilities:
20479         Cairo:                  ${have_cairo}
20480
20481 Additional shapers (the more the better):
20482         Graphite2:              ${have_graphite}
20483
20484 Test / platform shapers (not normally needed):
20485         CoreText:               ${have_coretext}
20486         ICU Layout Engine:      ${have_icu_le}
20487         Old HarfBuzz:           ${have_hb_old}
20488         Uniscribe:              ${have_uniscribe}
20489 " >&6;}