1b45257ad320255753ad11f7f488a5ca746d1b6e
[platform/upstream/harfbuzz.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 1.2.7.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='HarfBuzz'
593 PACKAGE_TARNAME='harfbuzz'
594 PACKAGE_VERSION='1.2.7'
595 PACKAGE_STRING='HarfBuzz 1.2.7'
596 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz'
597 PACKAGE_URL='http://harfbuzz.org/'
598
599 ac_unique_file="src/harfbuzz.pc.in"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 HAVE_CORETEXT_FALSE
641 HAVE_CORETEXT_TRUE
642 CORETEXT_LIBS
643 CORETEXT_CFLAGS
644 HAVE_DIRECTWRITE_FALSE
645 HAVE_DIRECTWRITE_TRUE
646 DIRECTWRITE_LIBS
647 DIRECTWRITE_CXXFLAGS
648 HAVE_UNISCRIBE_FALSE
649 HAVE_UNISCRIBE_TRUE
650 UNISCRIBE_LIBS
651 UNISCRIBE_CFLAGS
652 HAVE_FREETYPE_FALSE
653 HAVE_FREETYPE_TRUE
654 FREETYPE_LIBS
655 FREETYPE_CFLAGS
656 FREETYPE_DEPS
657 HAVE_GRAPHITE2_FALSE
658 HAVE_GRAPHITE2_TRUE
659 GRAPHITE2_LIBS
660 GRAPHITE2_CFLAGS
661 GRAPHITE2_DEPS
662 HAVE_UCDN_FALSE
663 HAVE_UCDN_TRUE
664 HAVE_ICU_BUILTIN_FALSE
665 HAVE_ICU_BUILTIN_TRUE
666 HAVE_ICU_FALSE
667 HAVE_ICU_TRUE
668 ICU_CONFIG
669 ICU_LIBS
670 ICU_CFLAGS
671 HAVE_FONTCONFIG_FALSE
672 HAVE_FONTCONFIG_TRUE
673 FONTCONFIG_LIBS
674 FONTCONFIG_CFLAGS
675 HAVE_CAIRO_FT_FALSE
676 HAVE_CAIRO_FT_TRUE
677 CAIRO_FT_LIBS
678 CAIRO_FT_CFLAGS
679 HAVE_CAIRO_FALSE
680 HAVE_CAIRO_TRUE
681 CAIRO_LIBS
682 CAIRO_CFLAGS
683 HAVE_INTROSPECTION_FALSE
684 HAVE_INTROSPECTION_TRUE
685 INTROSPECTION_MAKEFILE
686 INTROSPECTION_LIBS
687 INTROSPECTION_CFLAGS
688 INTROSPECTION_TYPELIBDIR
689 INTROSPECTION_GIRDIR
690 INTROSPECTION_GENERATE
691 INTROSPECTION_COMPILER
692 INTROSPECTION_SCANNER
693 HAVE_GOBJECT_FALSE
694 HAVE_GOBJECT_TRUE
695 GLIB_MKENUMS
696 GOBJECT_LIBS
697 GOBJECT_CFLAGS
698 HAVE_GLIB_FALSE
699 HAVE_GLIB_TRUE
700 GLIB_LIBS
701 GLIB_CFLAGS
702 GLIB_DEPS
703 HAVE_FALLBACK_FALSE
704 HAVE_FALLBACK_TRUE
705 HAVE_OT_FALSE
706 HAVE_OT_TRUE
707 HAVE_PTHREAD_FALSE
708 HAVE_PTHREAD_TRUE
709 PTHREAD_CFLAGS
710 PTHREAD_LIBS
711 PTHREAD_CC
712 ax_pthread_config
713 OS_WIN32_FALSE
714 OS_WIN32_TRUE
715 HAVE_GCC_FALSE
716 HAVE_GCC_TRUE
717 GTK_DOC_USE_REBASE_FALSE
718 GTK_DOC_USE_REBASE_TRUE
719 GTK_DOC_USE_LIBTOOL_FALSE
720 GTK_DOC_USE_LIBTOOL_TRUE
721 GTK_DOC_BUILD_PDF_FALSE
722 GTK_DOC_BUILD_PDF_TRUE
723 GTK_DOC_BUILD_HTML_FALSE
724 GTK_DOC_BUILD_HTML_TRUE
725 ENABLE_GTK_DOC_FALSE
726 ENABLE_GTK_DOC_TRUE
727 HAVE_GTK_DOC_FALSE
728 HAVE_GTK_DOC_TRUE
729 GTKDOC_DEPS_LIBS
730 GTKDOC_DEPS_CFLAGS
731 HTML_DIR
732 GTKDOC_MKPDF
733 GTKDOC_REBASE
734 GTKDOC_CHECK_PATH
735 GTKDOC_CHECK
736 HB_LIBTOOL_VERSION_INFO
737 HB_VERSION
738 HB_VERSION_MICRO
739 HB_VERSION_MINOR
740 HB_VERSION_MAJOR
741 GIT
742 RAGEL
743 PKG_CONFIG
744 CXXCPP
745 am__fastdepCXX_FALSE
746 am__fastdepCXX_TRUE
747 CXXDEPMODE
748 ac_ct_CXX
749 CXXFLAGS
750 CXX
751 CPP
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 MANIFEST_TOOL
758 RANLIB
759 DLLTOOL
760 OBJDUMP
761 LN_S
762 NM
763 ac_ct_DUMPBIN
764 DUMPBIN
765 LD
766 FGREP
767 EGREP
768 GREP
769 SED
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 LIBTOOL
779 am__fastdepCC_FALSE
780 am__fastdepCC_TRUE
781 CCDEPMODE
782 am__nodep
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__quote
787 am__include
788 DEPDIR
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 ac_ct_AR
797 AR
798 AUTOMAKE_OLDER_THAN_1_13_FALSE
799 AUTOMAKE_OLDER_THAN_1_13_TRUE
800 AM_BACKSLASH
801 AM_DEFAULT_VERBOSITY
802 AM_DEFAULT_V
803 AM_V
804 am__untar
805 am__tar
806 AMTAR
807 am__leading_dot
808 SET_MAKE
809 AWK
810 mkdir_p
811 MKDIR_P
812 INSTALL_STRIP_PROGRAM
813 STRIP
814 install_sh
815 MAKEINFO
816 AUTOHEADER
817 AUTOMAKE
818 AUTOCONF
819 ACLOCAL
820 VERSION
821 PACKAGE
822 CYGPATH_W
823 am__isrc
824 INSTALL_DATA
825 INSTALL_SCRIPT
826 INSTALL_PROGRAM
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_silent_rules
869 enable_dependency_tracking
870 enable_static
871 enable_shared
872 with_pic
873 enable_fast_install
874 with_gnu_ld
875 with_sysroot
876 enable_libtool_lock
877 with_html_dir
878 enable_gtk_doc
879 enable_gtk_doc_html
880 enable_gtk_doc_pdf
881 with_glib
882 with_gobject
883 enable_introspection
884 with_cairo
885 with_fontconfig
886 with_icu
887 with_graphite2
888 with_freetype
889 with_uniscribe
890 with_directwrite
891 with_coretext
892 '
893       ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CPP
902 CXX
903 CXXFLAGS
904 CCC
905 CXXCPP
906 PKG_CONFIG
907 GTKDOC_DEPS_CFLAGS
908 GTKDOC_DEPS_LIBS
909 GLIB_CFLAGS
910 GLIB_LIBS
911 GOBJECT_CFLAGS
912 GOBJECT_LIBS
913 CAIRO_CFLAGS
914 CAIRO_LIBS
915 CAIRO_FT_CFLAGS
916 CAIRO_FT_LIBS
917 FONTCONFIG_CFLAGS
918 FONTCONFIG_LIBS
919 ICU_CFLAGS
920 ICU_LIBS
921 GRAPHITE2_CFLAGS
922 GRAPHITE2_LIBS
923 FREETYPE_CFLAGS
924 FREETYPE_LIBS'
925
926
927 # Initialize some variables set by options.
928 ac_init_help=
929 ac_init_version=false
930 ac_unrecognized_opts=
931 ac_unrecognized_sep=
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
934 cache_file=/dev/null
935 exec_prefix=NONE
936 no_create=
937 no_recursion=
938 prefix=NONE
939 program_prefix=NONE
940 program_suffix=NONE
941 program_transform_name=s,x,x,
942 silent=
943 site=
944 srcdir=
945 verbose=
946 x_includes=NONE
947 x_libraries=NONE
948
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
967 htmldir='${docdir}'
968 dvidir='${docdir}'
969 pdfdir='${docdir}'
970 psdir='${docdir}'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
974
975 ac_prev=
976 ac_dashdash=
977 for ac_option
978 do
979   # If the previous option needs an argument, assign it.
980   if test -n "$ac_prev"; then
981     eval $ac_prev=\$ac_option
982     ac_prev=
983     continue
984   fi
985
986   case $ac_option in
987   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988   *=)   ac_optarg= ;;
989   *)    ac_optarg=yes ;;
990   esac
991
992   # Accept the important Cygnus configure options, so we can diagnose typos.
993
994   case $ac_dashdash$ac_option in
995   --)
996     ac_dashdash=yes ;;
997
998   -bindir | --bindir | --bindi | --bind | --bin | --bi)
999     ac_prev=bindir ;;
1000   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001     bindir=$ac_optarg ;;
1002
1003   -build | --build | --buil | --bui | --bu)
1004     ac_prev=build_alias ;;
1005   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006     build_alias=$ac_optarg ;;
1007
1008   -cache-file | --cache-file | --cache-fil | --cache-fi \
1009   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010     ac_prev=cache_file ;;
1011   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013     cache_file=$ac_optarg ;;
1014
1015   --config-cache | -C)
1016     cache_file=config.cache ;;
1017
1018   -datadir | --datadir | --datadi | --datad)
1019     ac_prev=datadir ;;
1020   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021     datadir=$ac_optarg ;;
1022
1023   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024   | --dataroo | --dataro | --datar)
1025     ac_prev=datarootdir ;;
1026   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028     datarootdir=$ac_optarg ;;
1029
1030   -disable-* | --disable-*)
1031     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034       as_fn_error $? "invalid feature name: $ac_useropt"
1035     ac_useropt_orig=$ac_useropt
1036     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037     case $ac_user_opts in
1038       *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042          ac_unrecognized_sep=', ';;
1043     esac
1044     eval enable_$ac_useropt=no ;;
1045
1046   -docdir | --docdir | --docdi | --doc | --do)
1047     ac_prev=docdir ;;
1048   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049     docdir=$ac_optarg ;;
1050
1051   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052     ac_prev=dvidir ;;
1053   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054     dvidir=$ac_optarg ;;
1055
1056   -enable-* | --enable-*)
1057     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060       as_fn_error $? "invalid feature name: $ac_useropt"
1061     ac_useropt_orig=$ac_useropt
1062     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063     case $ac_user_opts in
1064       *"
1065 "enable_$ac_useropt"
1066 "*) ;;
1067       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1068          ac_unrecognized_sep=', ';;
1069     esac
1070     eval enable_$ac_useropt=\$ac_optarg ;;
1071
1072   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074   | --exec | --exe | --ex)
1075     ac_prev=exec_prefix ;;
1076   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078   | --exec=* | --exe=* | --ex=*)
1079     exec_prefix=$ac_optarg ;;
1080
1081   -gas | --gas | --ga | --g)
1082     # Obsolete; use --with-gas.
1083     with_gas=yes ;;
1084
1085   -help | --help | --hel | --he | -h)
1086     ac_init_help=long ;;
1087   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088     ac_init_help=recursive ;;
1089   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090     ac_init_help=short ;;
1091
1092   -host | --host | --hos | --ho)
1093     ac_prev=host_alias ;;
1094   -host=* | --host=* | --hos=* | --ho=*)
1095     host_alias=$ac_optarg ;;
1096
1097   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098     ac_prev=htmldir ;;
1099   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100   | --ht=*)
1101     htmldir=$ac_optarg ;;
1102
1103   -includedir | --includedir | --includedi | --included | --include \
1104   | --includ | --inclu | --incl | --inc)
1105     ac_prev=includedir ;;
1106   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107   | --includ=* | --inclu=* | --incl=* | --inc=*)
1108     includedir=$ac_optarg ;;
1109
1110   -infodir | --infodir | --infodi | --infod | --info | --inf)
1111     ac_prev=infodir ;;
1112   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113     infodir=$ac_optarg ;;
1114
1115   -libdir | --libdir | --libdi | --libd)
1116     ac_prev=libdir ;;
1117   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118     libdir=$ac_optarg ;;
1119
1120   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121   | --libexe | --libex | --libe)
1122     ac_prev=libexecdir ;;
1123   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124   | --libexe=* | --libex=* | --libe=*)
1125     libexecdir=$ac_optarg ;;
1126
1127   -localedir | --localedir | --localedi | --localed | --locale)
1128     ac_prev=localedir ;;
1129   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130     localedir=$ac_optarg ;;
1131
1132   -localstatedir | --localstatedir | --localstatedi | --localstated \
1133   | --localstate | --localstat | --localsta | --localst | --locals)
1134     ac_prev=localstatedir ;;
1135   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137     localstatedir=$ac_optarg ;;
1138
1139   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140     ac_prev=mandir ;;
1141   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142     mandir=$ac_optarg ;;
1143
1144   -nfp | --nfp | --nf)
1145     # Obsolete; use --without-fp.
1146     with_fp=no ;;
1147
1148   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149   | --no-cr | --no-c | -n)
1150     no_create=yes ;;
1151
1152   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154     no_recursion=yes ;;
1155
1156   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158   | --oldin | --oldi | --old | --ol | --o)
1159     ac_prev=oldincludedir ;;
1160   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163     oldincludedir=$ac_optarg ;;
1164
1165   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166     ac_prev=prefix ;;
1167   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168     prefix=$ac_optarg ;;
1169
1170   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171   | --program-pre | --program-pr | --program-p)
1172     ac_prev=program_prefix ;;
1173   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175     program_prefix=$ac_optarg ;;
1176
1177   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178   | --program-suf | --program-su | --program-s)
1179     ac_prev=program_suffix ;;
1180   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182     program_suffix=$ac_optarg ;;
1183
1184   -program-transform-name | --program-transform-name \
1185   | --program-transform-nam | --program-transform-na \
1186   | --program-transform-n | --program-transform- \
1187   | --program-transform | --program-transfor \
1188   | --program-transfo | --program-transf \
1189   | --program-trans | --program-tran \
1190   | --progr-tra | --program-tr | --program-t)
1191     ac_prev=program_transform_name ;;
1192   -program-transform-name=* | --program-transform-name=* \
1193   | --program-transform-nam=* | --program-transform-na=* \
1194   | --program-transform-n=* | --program-transform-=* \
1195   | --program-transform=* | --program-transfor=* \
1196   | --program-transfo=* | --program-transf=* \
1197   | --program-trans=* | --program-tran=* \
1198   | --progr-tra=* | --program-tr=* | --program-t=*)
1199     program_transform_name=$ac_optarg ;;
1200
1201   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202     ac_prev=pdfdir ;;
1203   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204     pdfdir=$ac_optarg ;;
1205
1206   -psdir | --psdir | --psdi | --psd | --ps)
1207     ac_prev=psdir ;;
1208   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209     psdir=$ac_optarg ;;
1210
1211   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212   | -silent | --silent | --silen | --sile | --sil)
1213     silent=yes ;;
1214
1215   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216     ac_prev=sbindir ;;
1217   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218   | --sbi=* | --sb=*)
1219     sbindir=$ac_optarg ;;
1220
1221   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223   | --sharedst | --shareds | --shared | --share | --shar \
1224   | --sha | --sh)
1225     ac_prev=sharedstatedir ;;
1226   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229   | --sha=* | --sh=*)
1230     sharedstatedir=$ac_optarg ;;
1231
1232   -site | --site | --sit)
1233     ac_prev=site ;;
1234   -site=* | --site=* | --sit=*)
1235     site=$ac_optarg ;;
1236
1237   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238     ac_prev=srcdir ;;
1239   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240     srcdir=$ac_optarg ;;
1241
1242   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243   | --syscon | --sysco | --sysc | --sys | --sy)
1244     ac_prev=sysconfdir ;;
1245   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247     sysconfdir=$ac_optarg ;;
1248
1249   -target | --target | --targe | --targ | --tar | --ta | --t)
1250     ac_prev=target_alias ;;
1251   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252     target_alias=$ac_optarg ;;
1253
1254   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255     verbose=yes ;;
1256
1257   -version | --version | --versio | --versi | --vers | -V)
1258     ac_init_version=: ;;
1259
1260   -with-* | --with-*)
1261     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264       as_fn_error $? "invalid package name: $ac_useropt"
1265     ac_useropt_orig=$ac_useropt
1266     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267     case $ac_user_opts in
1268       *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1272          ac_unrecognized_sep=', ';;
1273     esac
1274     eval with_$ac_useropt=\$ac_optarg ;;
1275
1276   -without-* | --without-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280       as_fn_error $? "invalid package name: $ac_useropt"
1281     ac_useropt_orig=$ac_useropt
1282     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283     case $ac_user_opts in
1284       *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288          ac_unrecognized_sep=', ';;
1289     esac
1290     eval with_$ac_useropt=no ;;
1291
1292   --x)
1293     # Obsolete; use --with-x.
1294     with_x=yes ;;
1295
1296   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297   | --x-incl | --x-inc | --x-in | --x-i)
1298     ac_prev=x_includes ;;
1299   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301     x_includes=$ac_optarg ;;
1302
1303   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305     ac_prev=x_libraries ;;
1306   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308     x_libraries=$ac_optarg ;;
1309
1310   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1311 Try \`$0 --help' for more information"
1312     ;;
1313
1314   *=*)
1315     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316     # Reject names that are not valid shell variable names.
1317     case $ac_envvar in #(
1318       '' | [0-9]* | *[!_$as_cr_alnum]* )
1319       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1320     esac
1321     eval $ac_envvar=\$ac_optarg
1322     export $ac_envvar ;;
1323
1324   *)
1325     # FIXME: should be removed in autoconf 3.0.
1326     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1330     ;;
1331
1332   esac
1333 done
1334
1335 if test -n "$ac_prev"; then
1336   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337   as_fn_error $? "missing argument to $ac_option"
1338 fi
1339
1340 if test -n "$ac_unrecognized_opts"; then
1341   case $enable_option_checking in
1342     no) ;;
1343     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1344     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345   esac
1346 fi
1347
1348 # Check all directory arguments for consistency.
1349 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                 datadir sysconfdir sharedstatedir localstatedir includedir \
1351                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                 libdir localedir mandir
1353 do
1354   eval ac_val=\$$ac_var
1355   # Remove trailing slashes.
1356   case $ac_val in
1357     */ )
1358       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359       eval $ac_var=\$ac_val;;
1360   esac
1361   # Be sure to have absolute directory names.
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1367 done
1368
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1372 build=$build_alias
1373 host=$host_alias
1374 target=$target_alias
1375
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378   if test "x$build_alias" = x; then
1379     cross_compiling=maybe
1380   elif test "x$build_alias" != "x$host_alias"; then
1381     cross_compiling=yes
1382   fi
1383 fi
1384
1385 ac_tool_prefix=
1386 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387
1388 test "$silent" = yes && exec 6>/dev/null
1389
1390
1391 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392 ac_ls_di=`ls -di .` &&
1393 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394   as_fn_error $? "working directory cannot be determined"
1395 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396   as_fn_error $? "pwd does not report name of working directory"
1397
1398
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401   ac_srcdir_defaulted=yes
1402   # Try the directory containing this script, then the parent directory.
1403   ac_confdir=`$as_dirname -- "$as_myself" ||
1404 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405          X"$as_myself" : 'X\(//\)[^/]' \| \
1406          X"$as_myself" : 'X\(//\)$' \| \
1407          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1408 $as_echo X"$as_myself" |
1409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)[^/].*/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\).*/{
1422             s//\1/
1423             q
1424           }
1425           s/.*/./; q'`
1426   srcdir=$ac_confdir
1427   if test ! -r "$srcdir/$ac_unique_file"; then
1428     srcdir=..
1429   fi
1430 else
1431   ac_srcdir_defaulted=no
1432 fi
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1436 fi
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 ac_abs_confdir=`(
1439         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1440         pwd)`
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443   srcdir=.
1444 fi
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1448 case $srcdir in
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 esac
1451 for ac_var in $ac_precious_vars; do
1452   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_env_${ac_var}_value=\$${ac_var}
1454   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 done
1457
1458 #
1459 # Report the --help message.
1460 #
1461 if test "$ac_init_help" = "long"; then
1462   # Omit some internal or obsolete options to make the list less imposing.
1463   # This message is too long to be a string in the A/UX 3.1 sh.
1464   cat <<_ACEOF
1465 \`configure' configures HarfBuzz 1.2.7 to adapt to many kinds of systems.
1466
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472 Defaults for the options are specified in brackets.
1473
1474 Configuration:
1475   -h, --help              display this help and exit
1476       --help=short        display options specific to this package
1477       --help=recursive    display the short help of all the included packages
1478   -V, --version           display version information and exit
1479   -q, --quiet, --silent   do not print \`checking ...' messages
1480       --cache-file=FILE   cache test results in FILE [disabled]
1481   -C, --config-cache      alias for \`--cache-file=config.cache'
1482   -n, --no-create         do not create output files
1483       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485 Installation directories:
1486   --prefix=PREFIX         install architecture-independent files in PREFIX
1487                           [$ac_default_prefix]
1488   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                           [PREFIX]
1490
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1495
1496 For better control, use the options below.
1497
1498 Fine tuning of the installation directories:
1499   --bindir=DIR            user executables [EPREFIX/bin]
1500   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1501   --libexecdir=DIR        program executables [EPREFIX/libexec]
1502   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1503   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1504   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1505   --libdir=DIR            object code libraries [EPREFIX/lib]
1506   --includedir=DIR        C header files [PREFIX/include]
1507   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1508   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1509   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1510   --infodir=DIR           info documentation [DATAROOTDIR/info]
1511   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1512   --mandir=DIR            man documentation [DATAROOTDIR/man]
1513   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1514   --htmldir=DIR           html documentation [DOCDIR]
1515   --dvidir=DIR            dvi documentation [DOCDIR]
1516   --pdfdir=DIR            pdf documentation [DOCDIR]
1517   --psdir=DIR             ps documentation [DOCDIR]
1518 _ACEOF
1519
1520   cat <<\_ACEOF
1521
1522 Program names:
1523   --program-prefix=PREFIX            prepend PREFIX to installed program names
1524   --program-suffix=SUFFIX            append SUFFIX to installed program names
1525   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1526
1527 System types:
1528   --build=BUILD     configure for building on BUILD [guessed]
1529   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1530 _ACEOF
1531 fi
1532
1533 if test -n "$ac_init_help"; then
1534   case $ac_init_help in
1535      short | recursive ) echo "Configuration of HarfBuzz 1.2.7:";;
1536    esac
1537   cat <<\_ACEOF
1538
1539 Optional Features:
1540   --disable-option-checking  ignore unrecognized --enable/--with options
1541   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1542   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1543   --enable-silent-rules   less verbose build output (undo: "make V=1")
1544   --disable-silent-rules  verbose build output (undo: "make V=0")
1545   --enable-dependency-tracking
1546                           do not reject slow dependency extractors
1547   --disable-dependency-tracking
1548                           speeds up one-time build
1549   --enable-static[=PKGS]  build static libraries [default=no]
1550   --enable-shared[=PKGS]  build shared libraries [default=yes]
1551   --enable-fast-install[=PKGS]
1552                           optimize for fast installation [default=yes]
1553   --disable-libtool-lock  avoid locking (might break parallel builds)
1554   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1555   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1556   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1557   --enable-introspection=[no/auto/yes]
1558                           Enable introspection for this build
1559
1560 Optional Packages:
1561   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1564                           both]
1565   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1566   --with-sysroot=DIR Search for dependent libraries within DIR
1567                         (or the compiler's sysroot if not specified).
1568   --with-html-dir=PATH    path to installed docs
1569   --with-glib=[yes/no/auto]
1570                           Use glib [default=auto]
1571   --with-gobject=[yes/no/auto]
1572                           Use gobject [default=auto]
1573   --with-cairo=[yes/no/auto]
1574                           Use cairo [default=auto]
1575   --with-fontconfig=[yes/no/auto]
1576                           Use fontconfig [default=auto]
1577   --with-icu=[yes/no/builtin/auto]
1578                           Use ICU [default=auto]
1579   --with-graphite2=[yes/no/auto]
1580                           Use the graphite2 library [default=no]
1581   --with-freetype=[yes/no/auto]
1582                           Use the FreeType library [default=auto]
1583   --with-uniscribe=[yes/no/auto]
1584                           Use the Uniscribe library [default=no]
1585   --with-directwrite=[yes/no/auto]
1586                           Use the DirectWrite library (experimental)
1587                           [default=no]
1588   --with-coretext=[yes/no/auto]
1589                           Use CoreText [default=no]
1590
1591 Some influential environment variables:
1592   CC          C compiler command
1593   CFLAGS      C compiler flags
1594   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1595               nonstandard directory <lib dir>
1596   LIBS        libraries to pass to the linker, e.g. -l<library>
1597   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598               you have headers in a nonstandard directory <include dir>
1599   CPP         C preprocessor
1600   CXX         C++ compiler command
1601   CXXFLAGS    C++ compiler flags
1602   CXXCPP      C++ preprocessor
1603   PKG_CONFIG  path to pkg-config utility
1604   GTKDOC_DEPS_CFLAGS
1605               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1606   GTKDOC_DEPS_LIBS
1607               linker flags for GTKDOC_DEPS, overriding pkg-config
1608   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1609   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1610   GOBJECT_CFLAGS
1611               C compiler flags for GOBJECT, overriding pkg-config
1612   GOBJECT_LIBS
1613               linker flags for GOBJECT, overriding pkg-config
1614   CAIRO_CFLAGS
1615               C compiler flags for CAIRO, overriding pkg-config
1616   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1617   CAIRO_FT_CFLAGS
1618               C compiler flags for CAIRO_FT, overriding pkg-config
1619   CAIRO_FT_LIBS
1620               linker flags for CAIRO_FT, overriding pkg-config
1621   FONTCONFIG_CFLAGS
1622               C compiler flags for FONTCONFIG, overriding pkg-config
1623   FONTCONFIG_LIBS
1624               linker flags for FONTCONFIG, overriding pkg-config
1625   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1626   ICU_LIBS    linker flags for ICU, overriding pkg-config
1627   GRAPHITE2_CFLAGS
1628               C compiler flags for GRAPHITE2, overriding pkg-config
1629   GRAPHITE2_LIBS
1630               linker flags for GRAPHITE2, overriding pkg-config
1631   FREETYPE_CFLAGS
1632               C compiler flags for FREETYPE, overriding pkg-config
1633   FREETYPE_LIBS
1634               linker flags for FREETYPE, overriding pkg-config
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
1640 HarfBuzz home page: <http://harfbuzz.org/>.
1641 _ACEOF
1642 ac_status=$?
1643 fi
1644
1645 if test "$ac_init_help" = "recursive"; then
1646   # If there are subdirs, report their specific --help.
1647   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648     test -d "$ac_dir" ||
1649       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650       continue
1651     ac_builddir=.
1652
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *)
1656   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657   # A ".." for each directory in $ac_dir_suffix.
1658   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659   case $ac_top_builddir_sub in
1660   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662   esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1668
1669 case $srcdir in
1670   .)  # We are building in place.
1671     ac_srcdir=.
1672     ac_top_srcdir=$ac_top_builddir_sub
1673     ac_abs_top_srcdir=$ac_pwd ;;
1674   [\\/]* | ?:[\\/]* )  # Absolute name.
1675     ac_srcdir=$srcdir$ac_dir_suffix;
1676     ac_top_srcdir=$srcdir
1677     ac_abs_top_srcdir=$srcdir ;;
1678   *) # Relative name.
1679     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680     ac_top_srcdir=$ac_top_build_prefix$srcdir
1681     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685     cd "$ac_dir" || { ac_status=$?; continue; }
1686     # Check for guested configure.
1687     if test -f "$ac_srcdir/configure.gnu"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690     elif test -f "$ac_srcdir/configure"; then
1691       echo &&
1692       $SHELL "$ac_srcdir/configure" --help=recursive
1693     else
1694       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695     fi || ac_status=$?
1696     cd "$ac_pwd" || { ac_status=$?; break; }
1697   done
1698 fi
1699
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702   cat <<\_ACEOF
1703 HarfBuzz configure 1.2.7
1704 generated by GNU Autoconf 2.69
1705
1706 Copyright (C) 2012 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710   exit
1711 fi
1712
1713 ## ------------------------ ##
1714 ## Autoconf initialization. ##
1715 ## ------------------------ ##
1716
1717 # ac_fn_c_try_compile LINENO
1718 # --------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_compile ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   rm -f conftest.$ac_objext
1724   if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_compile") 2>conftest.err
1732   ac_status=$?
1733   if test -s conftest.err; then
1734     grep -v '^ *+' conftest.err >conftest.er1
1735     cat conftest.er1 >&5
1736     mv -f conftest.er1 conftest.err
1737   fi
1738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739   test $ac_status = 0; } && {
1740          test -z "$ac_c_werror_flag" ||
1741          test ! -s conftest.err
1742        } && test -s conftest.$ac_objext; then :
1743   ac_retval=0
1744 else
1745   $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748         ac_retval=1
1749 fi
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_compile
1754
1755 # ac_fn_c_try_link LINENO
1756 # -----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_link ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   rm -f conftest.$ac_objext conftest$ac_exeext
1762   if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769   (eval "$ac_link") 2>conftest.err
1770   ac_status=$?
1771   if test -s conftest.err; then
1772     grep -v '^ *+' conftest.err >conftest.er1
1773     cat conftest.er1 >&5
1774     mv -f conftest.er1 conftest.err
1775   fi
1776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777   test $ac_status = 0; } && {
1778          test -z "$ac_c_werror_flag" ||
1779          test ! -s conftest.err
1780        } && test -s conftest$ac_exeext && {
1781          test "$cross_compiling" = yes ||
1782          test -x conftest$ac_exeext
1783        }; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789         ac_retval=1
1790 fi
1791   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793   # interfere with the next link command; also delete a directory that is
1794   # left behind by Apple's compiler.  We do this before executing the actions.
1795   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_link
1800
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811   $as_echo_n "(cached) " >&6
1812 else
1813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819   eval "$3=yes"
1820 else
1821   eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_header_compile
1831
1832 # ac_fn_c_try_cpp LINENO
1833 # ----------------------
1834 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_cpp ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   if { { ac_try="$ac_cpp conftest.$ac_ext"
1839 case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846   ac_status=$?
1847   if test -s conftest.err; then
1848     grep -v '^ *+' conftest.err >conftest.er1
1849     cat conftest.er1 >&5
1850     mv -f conftest.er1 conftest.err
1851   fi
1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } > conftest.i && {
1854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1855          test ! -s conftest.err
1856        }; then :
1857   ac_retval=0
1858 else
1859   $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862     ac_retval=1
1863 fi
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865   as_fn_set_status $ac_retval
1866
1867 } # ac_fn_c_try_cpp
1868
1869 # ac_fn_c_try_run LINENO
1870 # ----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872 # that executables *can* be run.
1873 ac_fn_c_try_run ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879   *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883   (eval "$ac_link") 2>&5
1884   ac_status=$?
1885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887   { { case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_try") 2>&5
1894   ac_status=$?
1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; }; }; then :
1897   ac_retval=0
1898 else
1899   $as_echo "$as_me: program exited with status $ac_status" >&5
1900        $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903        ac_retval=$ac_status
1904 fi
1905   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907   as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_run
1910
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1926 #define $2 innocuous_$2
1927
1928 /* System header to define __stub macros and hopefully few prototypes,
1929     which can conflict with char $2 (); below.
1930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931     <limits.h> exists even on freestanding compilers.  */
1932
1933 #ifdef __STDC__
1934 # include <limits.h>
1935 #else
1936 # include <assert.h>
1937 #endif
1938
1939 #undef $2
1940
1941 /* Override any GCC internal prototype to avoid an error.
1942    Use char because int might match the return type of a GCC
1943    builtin and then its argument prototype would still apply.  */
1944 #ifdef __cplusplus
1945 extern "C"
1946 #endif
1947 char $2 ();
1948 /* The GNU C library defines this for functions which it implements
1949     to always fail with ENOSYS.  Some functions are actually named
1950     something starting with __ and the normal name is an alias.  */
1951 #if defined __stub_$2 || defined __stub___$2
1952 choke me
1953 #endif
1954
1955 int
1956 main ()
1957 {
1958 return $2 ();
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_link "$LINENO"; then :
1964   eval "$3=yes"
1965 else
1966   eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext \
1969     conftest$ac_exeext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_func
1977
1978 # ac_fn_cxx_try_compile LINENO
1979 # ----------------------------
1980 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_cxx_try_compile ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   rm -f conftest.$ac_objext
1985   if { { ac_try="$ac_compile"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_compile") 2>conftest.err
1993   ac_status=$?
1994   if test -s conftest.err; then
1995     grep -v '^ *+' conftest.err >conftest.er1
1996     cat conftest.er1 >&5
1997     mv -f conftest.er1 conftest.err
1998   fi
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; } && {
2001          test -z "$ac_cxx_werror_flag" ||
2002          test ! -s conftest.err
2003        } && test -s conftest.$ac_objext; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009         ac_retval=1
2010 fi
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_cxx_try_compile
2015
2016 # ac_fn_cxx_try_cpp LINENO
2017 # ------------------------
2018 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_cpp ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   if { { ac_try="$ac_cpp conftest.$ac_ext"
2023 case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2030   ac_status=$?
2031   if test -s conftest.err; then
2032     grep -v '^ *+' conftest.err >conftest.er1
2033     cat conftest.er1 >&5
2034     mv -f conftest.er1 conftest.err
2035   fi
2036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037   test $ac_status = 0; } > conftest.i && {
2038          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2039          test ! -s conftest.err
2040        }; then :
2041   ac_retval=0
2042 else
2043   $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046     ac_retval=1
2047 fi
2048   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049   as_fn_set_status $ac_retval
2050
2051 } # ac_fn_cxx_try_cpp
2052
2053 # ac_fn_cxx_try_link LINENO
2054 # -------------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded.
2056 ac_fn_cxx_try_link ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   rm -f conftest.$ac_objext conftest$ac_exeext
2060   if { { ac_try="$ac_link"
2061 case "(($ac_try" in
2062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063   *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067   (eval "$ac_link") 2>conftest.err
2068   ac_status=$?
2069   if test -s conftest.err; then
2070     grep -v '^ *+' conftest.err >conftest.er1
2071     cat conftest.er1 >&5
2072     mv -f conftest.er1 conftest.err
2073   fi
2074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075   test $ac_status = 0; } && {
2076          test -z "$ac_cxx_werror_flag" ||
2077          test ! -s conftest.err
2078        } && test -s conftest$ac_exeext && {
2079          test "$cross_compiling" = yes ||
2080          test -x conftest$ac_exeext
2081        }; then :
2082   ac_retval=0
2083 else
2084   $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087         ac_retval=1
2088 fi
2089   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2090   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2091   # interfere with the next link command; also delete a directory that is
2092   # left behind by Apple's compiler.  We do this before executing the actions.
2093   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2094   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095   as_fn_set_status $ac_retval
2096
2097 } # ac_fn_cxx_try_link
2098
2099 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2100 # -------------------------------------------------------
2101 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2102 # the include files in INCLUDES and setting the cache variable VAR
2103 # accordingly.
2104 ac_fn_c_check_header_mongrel ()
2105 {
2106   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107   if eval \${$3+:} false; then :
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111   $as_echo_n "(cached) " >&6
2112 fi
2113 eval ac_res=\$$3
2114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 else
2117   # Is the header compilable?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2119 $as_echo_n "checking $2 usability... " >&6; }
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h.  */
2122 $4
2123 #include <$2>
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126   ac_header_compiler=yes
2127 else
2128   ac_header_compiler=no
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2132 $as_echo "$ac_header_compiler" >&6; }
2133
2134 # Is the header present?
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2136 $as_echo_n "checking $2 presence... " >&6; }
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 #include <$2>
2140 _ACEOF
2141 if ac_fn_c_try_cpp "$LINENO"; then :
2142   ac_header_preproc=yes
2143 else
2144   ac_header_preproc=no
2145 fi
2146 rm -f conftest.err conftest.i conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2148 $as_echo "$ac_header_preproc" >&6; }
2149
2150 # So?  What about this header?
2151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2152   yes:no: )
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2154 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157     ;;
2158   no:yes:* )
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2160 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2162 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2163     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2164 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2165     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2166 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2168 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2169 ( $as_echo "## ------------------------------------------------------------------------- ##
2170 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz ##
2171 ## ------------------------------------------------------------------------- ##"
2172      ) | sed "s/^/$as_me: WARNING:     /" >&2
2173     ;;
2174 esac
2175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178   $as_echo_n "(cached) " >&6
2179 else
2180   eval "$3=\$ac_header_compiler"
2181 fi
2182 eval ac_res=\$$3
2183                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 fi
2186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188 } # ac_fn_c_check_header_mongrel
2189
2190 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2191 # --------------------------------------------
2192 # Tries to find the compile-time value of EXPR in a program that includes
2193 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2194 # computed
2195 ac_fn_c_compute_int ()
2196 {
2197   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198   if test "$cross_compiling" = yes; then
2199     # Depending upon the size, compute the lo and hi bounds.
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h.  */
2202 $4
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !(($2) >= 0)];
2207 test_array [0] = 0;
2208 return test_array [0];
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215   ac_lo=0 ac_mid=0
2216   while :; do
2217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main ()
2222 {
2223 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2224 test_array [0] = 0;
2225 return test_array [0];
2226
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232   ac_hi=$ac_mid; break
2233 else
2234   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2235                         if test $ac_lo -le $ac_mid; then
2236                           ac_lo= ac_hi=
2237                           break
2238                         fi
2239                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242   done
2243 else
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 static int test_array [1 - 2 * !(($2) < 0)];
2251 test_array [0] = 0;
2252 return test_array [0];
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259   ac_hi=-1 ac_mid=-1
2260   while :; do
2261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int
2265 main ()
2266 {
2267 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2268 test_array [0] = 0;
2269 return test_array [0];
2270
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276   ac_lo=$ac_mid; break
2277 else
2278   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2279                         if test $ac_mid -le $ac_hi; then
2280                           ac_lo= ac_hi=
2281                           break
2282                         fi
2283                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286   done
2287 else
2288   ac_lo= ac_hi=
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 # Binary search between lo and hi bounds.
2294 while test "x$ac_lo" != "x$ac_hi"; do
2295   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $4
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 test_array [0] = 0;
2304 return test_array [0];
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311   ac_hi=$ac_mid
2312 else
2313   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 done
2317 case $ac_lo in #((
2318 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2319 '') ac_retval=1 ;;
2320 esac
2321   else
2322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h.  */
2324 $4
2325 static long int longval () { return $2; }
2326 static unsigned long int ulongval () { return $2; }
2327 #include <stdio.h>
2328 #include <stdlib.h>
2329 int
2330 main ()
2331 {
2332
2333   FILE *f = fopen ("conftest.val", "w");
2334   if (! f)
2335     return 1;
2336   if (($2) < 0)
2337     {
2338       long int i = longval ();
2339       if (i != ($2))
2340         return 1;
2341       fprintf (f, "%ld", i);
2342     }
2343   else
2344     {
2345       unsigned long int i = ulongval ();
2346       if (i != ($2))
2347         return 1;
2348       fprintf (f, "%lu", i);
2349     }
2350   /* Do not output a trailing newline, as this causes \r\n confusion
2351      on some platforms.  */
2352   return ferror (f) || fclose (f) != 0;
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_run "$LINENO"; then :
2359   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2360 else
2361   ac_retval=1
2362 fi
2363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2364   conftest.$ac_objext conftest.beam conftest.$ac_ext
2365 rm -f conftest.val
2366
2367   fi
2368   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369   as_fn_set_status $ac_retval
2370
2371 } # ac_fn_c_compute_int
2372
2373 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2374 # ---------------------------------------------------------
2375 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2376 # the include files in INCLUDES and setting the cache variable VAR
2377 # accordingly.
2378 ac_fn_cxx_check_header_mongrel ()
2379 {
2380   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381   if eval \${$3+:} false; then :
2382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2383 $as_echo_n "checking for $2... " >&6; }
2384 if eval \${$3+:} false; then :
2385   $as_echo_n "(cached) " >&6
2386 fi
2387 eval ac_res=\$$3
2388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 else
2391   # Is the header compilable?
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2393 $as_echo_n "checking $2 usability... " >&6; }
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h.  */
2396 $4
2397 #include <$2>
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400   ac_header_compiler=yes
2401 else
2402   ac_header_compiler=no
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2406 $as_echo "$ac_header_compiler" >&6; }
2407
2408 # Is the header present?
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2410 $as_echo_n "checking $2 presence... " >&6; }
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 #include <$2>
2414 _ACEOF
2415 if ac_fn_cxx_try_cpp "$LINENO"; then :
2416   ac_header_preproc=yes
2417 else
2418   ac_header_preproc=no
2419 fi
2420 rm -f conftest.err conftest.i conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2422 $as_echo "$ac_header_preproc" >&6; }
2423
2424 # So?  What about this header?
2425 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2426   yes:no: )
2427     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2428 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2429     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2430 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2431     ;;
2432   no:yes:* )
2433     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2434 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2435     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2436 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2437     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2438 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2439     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2440 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2441     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2442 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2443 ( $as_echo "## ------------------------------------------------------------------------- ##
2444 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz ##
2445 ## ------------------------------------------------------------------------- ##"
2446      ) | sed "s/^/$as_me: WARNING:     /" >&2
2447     ;;
2448 esac
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if eval \${$3+:} false; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   eval "$3=\$ac_header_compiler"
2455 fi
2456 eval ac_res=\$$3
2457                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 fi
2460   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461
2462 } # ac_fn_cxx_check_header_mongrel
2463
2464 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2465 # -------------------------------------------
2466 # Tests whether TYPE exists after having included INCLUDES, setting cache
2467 # variable VAR accordingly.
2468 ac_fn_c_check_type ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if eval \${$3+:} false; then :
2474   $as_echo_n "(cached) " >&6
2475 else
2476   eval "$3=no"
2477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h.  */
2479 $4
2480 int
2481 main ()
2482 {
2483 if (sizeof ($2))
2484          return 0;
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 if ac_fn_c_try_compile "$LINENO"; then :
2490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h.  */
2492 $4
2493 int
2494 main ()
2495 {
2496 if (sizeof (($2)))
2497             return 0;
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503
2504 else
2505   eval "$3=yes"
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 fi
2511 eval ac_res=\$$3
2512                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515
2516 } # ac_fn_c_check_type
2517 cat >config.log <<_ACEOF
2518 This file contains any messages produced by compilers while
2519 running configure, to aid debugging if configure makes a mistake.
2520
2521 It was created by HarfBuzz $as_me 1.2.7, which was
2522 generated by GNU Autoconf 2.69.  Invocation command line was
2523
2524   $ $0 $@
2525
2526 _ACEOF
2527 exec 5>>config.log
2528 {
2529 cat <<_ASUNAME
2530 ## --------- ##
2531 ## Platform. ##
2532 ## --------- ##
2533
2534 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2535 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2536 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2537 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2538 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2539
2540 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2541 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2542
2543 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2544 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2545 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2546 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2547 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2548 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2549 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2550
2551 _ASUNAME
2552
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556   IFS=$as_save_IFS
2557   test -z "$as_dir" && as_dir=.
2558     $as_echo "PATH: $as_dir"
2559   done
2560 IFS=$as_save_IFS
2561
2562 } >&5
2563
2564 cat >&5 <<_ACEOF
2565
2566
2567 ## ----------- ##
2568 ## Core tests. ##
2569 ## ----------- ##
2570
2571 _ACEOF
2572
2573
2574 # Keep a trace of the command line.
2575 # Strip out --no-create and --no-recursion so they do not pile up.
2576 # Strip out --silent because we don't want to record it for future runs.
2577 # Also quote any args containing shell meta-characters.
2578 # Make two passes to allow for proper duplicate-argument suppression.
2579 ac_configure_args=
2580 ac_configure_args0=
2581 ac_configure_args1=
2582 ac_must_keep_next=false
2583 for ac_pass in 1 2
2584 do
2585   for ac_arg
2586   do
2587     case $ac_arg in
2588     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2589     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2590     | -silent | --silent | --silen | --sile | --sil)
2591       continue ;;
2592     *\'*)
2593       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2594     esac
2595     case $ac_pass in
2596     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2597     2)
2598       as_fn_append ac_configure_args1 " '$ac_arg'"
2599       if test $ac_must_keep_next = true; then
2600         ac_must_keep_next=false # Got value, back to normal.
2601       else
2602         case $ac_arg in
2603           *=* | --config-cache | -C | -disable-* | --disable-* \
2604           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2605           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2606           | -with-* | --with-* | -without-* | --without-* | --x)
2607             case "$ac_configure_args0 " in
2608               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2609             esac
2610             ;;
2611           -* ) ac_must_keep_next=true ;;
2612         esac
2613       fi
2614       as_fn_append ac_configure_args " '$ac_arg'"
2615       ;;
2616     esac
2617   done
2618 done
2619 { ac_configure_args0=; unset ac_configure_args0;}
2620 { ac_configure_args1=; unset ac_configure_args1;}
2621
2622 # When interrupted or exit'd, cleanup temporary files, and complete
2623 # config.log.  We remove comments because anyway the quotes in there
2624 # would cause problems or look ugly.
2625 # WARNING: Use '\'' to represent an apostrophe within the trap.
2626 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2627 trap 'exit_status=$?
2628   # Save into config.log some information that might help in debugging.
2629   {
2630     echo
2631
2632     $as_echo "## ---------------- ##
2633 ## Cache variables. ##
2634 ## ---------------- ##"
2635     echo
2636     # The following way of writing the cache mishandles newlines in values,
2637 (
2638   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2639     eval ac_val=\$$ac_var
2640     case $ac_val in #(
2641     *${as_nl}*)
2642       case $ac_var in #(
2643       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2645       esac
2646       case $ac_var in #(
2647       _ | IFS | as_nl) ;; #(
2648       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2649       *) { eval $ac_var=; unset $ac_var;} ;;
2650       esac ;;
2651     esac
2652   done
2653   (set) 2>&1 |
2654     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2655     *${as_nl}ac_space=\ *)
2656       sed -n \
2657         "s/'\''/'\''\\\\'\'''\''/g;
2658           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2659       ;; #(
2660     *)
2661       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2662       ;;
2663     esac |
2664     sort
2665 )
2666     echo
2667
2668     $as_echo "## ----------------- ##
2669 ## Output variables. ##
2670 ## ----------------- ##"
2671     echo
2672     for ac_var in $ac_subst_vars
2673     do
2674       eval ac_val=\$$ac_var
2675       case $ac_val in
2676       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2677       esac
2678       $as_echo "$ac_var='\''$ac_val'\''"
2679     done | sort
2680     echo
2681
2682     if test -n "$ac_subst_files"; then
2683       $as_echo "## ------------------- ##
2684 ## File substitutions. ##
2685 ## ------------------- ##"
2686       echo
2687       for ac_var in $ac_subst_files
2688       do
2689         eval ac_val=\$$ac_var
2690         case $ac_val in
2691         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2692         esac
2693         $as_echo "$ac_var='\''$ac_val'\''"
2694       done | sort
2695       echo
2696     fi
2697
2698     if test -s confdefs.h; then
2699       $as_echo "## ----------- ##
2700 ## confdefs.h. ##
2701 ## ----------- ##"
2702       echo
2703       cat confdefs.h
2704       echo
2705     fi
2706     test "$ac_signal" != 0 &&
2707       $as_echo "$as_me: caught signal $ac_signal"
2708     $as_echo "$as_me: exit $exit_status"
2709   } >&5
2710   rm -f core *.core core.conftest.* &&
2711     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2712     exit $exit_status
2713 ' 0
2714 for ac_signal in 1 2 13 15; do
2715   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2716 done
2717 ac_signal=0
2718
2719 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2720 rm -f -r conftest* confdefs.h
2721
2722 $as_echo "/* confdefs.h */" > confdefs.h
2723
2724 # Predefined preprocessor variables.
2725
2726 cat >>confdefs.h <<_ACEOF
2727 #define PACKAGE_NAME "$PACKAGE_NAME"
2728 _ACEOF
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2732 _ACEOF
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2736 _ACEOF
2737
2738 cat >>confdefs.h <<_ACEOF
2739 #define PACKAGE_STRING "$PACKAGE_STRING"
2740 _ACEOF
2741
2742 cat >>confdefs.h <<_ACEOF
2743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2744 _ACEOF
2745
2746 cat >>confdefs.h <<_ACEOF
2747 #define PACKAGE_URL "$PACKAGE_URL"
2748 _ACEOF
2749
2750
2751 # Let the site file select an alternate cache file if it wants to.
2752 # Prefer an explicitly selected file to automatically selected ones.
2753 ac_site_file1=NONE
2754 ac_site_file2=NONE
2755 if test -n "$CONFIG_SITE"; then
2756   # We do not want a PATH search for config.site.
2757   case $CONFIG_SITE in #((
2758     -*)  ac_site_file1=./$CONFIG_SITE;;
2759     */*) ac_site_file1=$CONFIG_SITE;;
2760     *)   ac_site_file1=./$CONFIG_SITE;;
2761   esac
2762 elif test "x$prefix" != xNONE; then
2763   ac_site_file1=$prefix/share/config.site
2764   ac_site_file2=$prefix/etc/config.site
2765 else
2766   ac_site_file1=$ac_default_prefix/share/config.site
2767   ac_site_file2=$ac_default_prefix/etc/config.site
2768 fi
2769 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2770 do
2771   test "x$ac_site_file" = xNONE && continue
2772   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2773     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2774 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2775     sed 's/^/| /' "$ac_site_file" >&5
2776     . "$ac_site_file" \
2777       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 as_fn_error $? "failed to load site script $ac_site_file
2780 See \`config.log' for more details" "$LINENO" 5; }
2781   fi
2782 done
2783
2784 if test -r "$cache_file"; then
2785   # Some versions of bash will fail to source /dev/null (special files
2786   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2787   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2788     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2789 $as_echo "$as_me: loading cache $cache_file" >&6;}
2790     case $cache_file in
2791       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2792       *)                      . "./$cache_file";;
2793     esac
2794   fi
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2797 $as_echo "$as_me: creating cache $cache_file" >&6;}
2798   >$cache_file
2799 fi
2800
2801 # Check that the precious variables saved in the cache have kept the same
2802 # value.
2803 ac_cache_corrupted=false
2804 for ac_var in $ac_precious_vars; do
2805   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2806   eval ac_new_set=\$ac_env_${ac_var}_set
2807   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2808   eval ac_new_val=\$ac_env_${ac_var}_value
2809   case $ac_old_set,$ac_new_set in
2810     set,)
2811       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2812 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2813       ac_cache_corrupted=: ;;
2814     ,set)
2815       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2816 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2817       ac_cache_corrupted=: ;;
2818     ,);;
2819     *)
2820       if test "x$ac_old_val" != "x$ac_new_val"; then
2821         # differences in whitespace do not lead to failure.
2822         ac_old_val_w=`echo x $ac_old_val`
2823         ac_new_val_w=`echo x $ac_new_val`
2824         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2825           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2826 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2827           ac_cache_corrupted=:
2828         else
2829           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2830 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2831           eval $ac_var=\$ac_old_val
2832         fi
2833         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2834 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2835         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2836 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2837       fi;;
2838   esac
2839   # Pass precious variables to config.status.
2840   if test "$ac_new_set" = set; then
2841     case $ac_new_val in
2842     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2843     *) ac_arg=$ac_var=$ac_new_val ;;
2844     esac
2845     case " $ac_configure_args " in
2846       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2847       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2848     esac
2849   fi
2850 done
2851 if $ac_cache_corrupted; then
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2855 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2856   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2857 fi
2858 ## -------------------- ##
2859 ## Main body of script. ##
2860 ## -------------------- ##
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868
2869
2870
2871
2872 ac_config_headers="$ac_config_headers config.h"
2873
2874
2875 am__api_version='1.14'
2876
2877 ac_aux_dir=
2878 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2879   if test -f "$ac_dir/install-sh"; then
2880     ac_aux_dir=$ac_dir
2881     ac_install_sh="$ac_aux_dir/install-sh -c"
2882     break
2883   elif test -f "$ac_dir/install.sh"; then
2884     ac_aux_dir=$ac_dir
2885     ac_install_sh="$ac_aux_dir/install.sh -c"
2886     break
2887   elif test -f "$ac_dir/shtool"; then
2888     ac_aux_dir=$ac_dir
2889     ac_install_sh="$ac_aux_dir/shtool install -c"
2890     break
2891   fi
2892 done
2893 if test -z "$ac_aux_dir"; then
2894   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2895 fi
2896
2897 # These three variables are undocumented and unsupported,
2898 # and are intended to be withdrawn in a future Autoconf release.
2899 # They can cause serious problems if a builder's source tree is in a directory
2900 # whose full name contains unusual characters.
2901 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2902 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2903 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2904
2905
2906 # Find a good install program.  We prefer a C program (faster),
2907 # so one script is as good as another.  But avoid the broken or
2908 # incompatible versions:
2909 # SysV /etc/install, /usr/sbin/install
2910 # SunOS /usr/etc/install
2911 # IRIX /sbin/install
2912 # AIX /bin/install
2913 # AmigaOS /C/install, which installs bootblocks on floppy discs
2914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2917 # OS/2's system install, which has a completely different semantic
2918 # ./install, which can be erroneously created by make from ./install.sh.
2919 # Reject install programs that cannot install multiple files.
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2921 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2922 if test -z "$INSTALL"; then
2923 if ${ac_cv_path_install+:} false; then :
2924   $as_echo_n "(cached) " >&6
2925 else
2926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931     # Account for people who put trailing slashes in PATH elements.
2932 case $as_dir/ in #((
2933   ./ | .// | /[cC]/* | \
2934   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2935   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2936   /usr/ucb/* ) ;;
2937   *)
2938     # OSF1 and SCO ODT 3.0 have their own names for install.
2939     # Don't use installbsd from OSF since it installs stuff as root
2940     # by default.
2941     for ac_prog in ginstall scoinst install; do
2942       for ac_exec_ext in '' $ac_executable_extensions; do
2943         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2944           if test $ac_prog = install &&
2945             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946             # AIX install.  It has an incompatible calling convention.
2947             :
2948           elif test $ac_prog = install &&
2949             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2950             # program-specific install script used by HP pwplus--don't use.
2951             :
2952           else
2953             rm -rf conftest.one conftest.two conftest.dir
2954             echo one > conftest.one
2955             echo two > conftest.two
2956             mkdir conftest.dir
2957             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2958               test -s conftest.one && test -s conftest.two &&
2959               test -s conftest.dir/conftest.one &&
2960               test -s conftest.dir/conftest.two
2961             then
2962               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2963               break 3
2964             fi
2965           fi
2966         fi
2967       done
2968     done
2969     ;;
2970 esac
2971
2972   done
2973 IFS=$as_save_IFS
2974
2975 rm -rf conftest.one conftest.two conftest.dir
2976
2977 fi
2978   if test "${ac_cv_path_install+set}" = set; then
2979     INSTALL=$ac_cv_path_install
2980   else
2981     # As a last resort, use the slow shell script.  Don't cache a
2982     # value for INSTALL within a source directory, because that will
2983     # break other packages using the cache if that directory is
2984     # removed, or if the value is a relative name.
2985     INSTALL=$ac_install_sh
2986   fi
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2989 $as_echo "$INSTALL" >&6; }
2990
2991 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2992 # It thinks the first close brace ends the variable substitution.
2993 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2994
2995 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2996
2997 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3000 $as_echo_n "checking whether build environment is sane... " >&6; }
3001 # Reject unsafe characters in $srcdir or the absolute working directory
3002 # name.  Accept space and tab only in the latter.
3003 am_lf='
3004 '
3005 case `pwd` in
3006   *[\\\"\#\$\&\'\`$am_lf]*)
3007     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3008 esac
3009 case $srcdir in
3010   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3011     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3012 esac
3013
3014 # Do 'set' in a subshell so we don't clobber the current shell's
3015 # arguments.  Must try -L first in case configure is actually a
3016 # symlink; some systems play weird games with the mod time of symlinks
3017 # (eg FreeBSD returns the mod time of the symlink's containing
3018 # directory).
3019 if (
3020    am_has_slept=no
3021    for am_try in 1 2; do
3022      echo "timestamp, slept: $am_has_slept" > conftest.file
3023      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3024      if test "$*" = "X"; then
3025         # -L didn't work.
3026         set X `ls -t "$srcdir/configure" conftest.file`
3027      fi
3028      if test "$*" != "X $srcdir/configure conftest.file" \
3029         && test "$*" != "X conftest.file $srcdir/configure"; then
3030
3031         # If neither matched, then we have a broken ls.  This can happen
3032         # if, for instance, CONFIG_SHELL is bash and it inherits a
3033         # broken ls alias from the environment.  This has actually
3034         # happened.  Such a system could not be considered "sane".
3035         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3036   alias in your environment" "$LINENO" 5
3037      fi
3038      if test "$2" = conftest.file || test $am_try -eq 2; then
3039        break
3040      fi
3041      # Just in case.
3042      sleep 1
3043      am_has_slept=yes
3044    done
3045    test "$2" = conftest.file
3046    )
3047 then
3048    # Ok.
3049    :
3050 else
3051    as_fn_error $? "newly created file is older than distributed files!
3052 Check your system clock" "$LINENO" 5
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055 $as_echo "yes" >&6; }
3056 # If we didn't sleep, we still need to ensure time stamps of config.status and
3057 # generated files are strictly newer.
3058 am_sleep_pid=
3059 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3060   ( sleep 1 ) &
3061   am_sleep_pid=$!
3062 fi
3063
3064 rm -f conftest.file
3065
3066 test "$program_prefix" != NONE &&
3067   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3068 # Use a double $ so make ignores it.
3069 test "$program_suffix" != NONE &&
3070   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3071 # Double any \ or $.
3072 # By default was `s,x,x', remove it if useless.
3073 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3074 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3075
3076 # expand $ac_aux_dir to an absolute path
3077 am_aux_dir=`cd $ac_aux_dir && pwd`
3078
3079 if test x"${MISSING+set}" != xset; then
3080   case $am_aux_dir in
3081   *\ * | *\     *)
3082     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3083   *)
3084     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3085   esac
3086 fi
3087 # Use eval to expand $SHELL
3088 if eval "$MISSING --is-lightweight"; then
3089   am_missing_run="$MISSING "
3090 else
3091   am_missing_run=
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3093 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3094 fi
3095
3096 if test x"${install_sh}" != xset; then
3097   case $am_aux_dir in
3098   *\ * | *\     *)
3099     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3100   *)
3101     install_sh="\${SHELL} $am_aux_dir/install-sh"
3102   esac
3103 fi
3104
3105 # Installed binaries are usually stripped using 'strip' when the user
3106 # run "make install-strip".  However 'strip' might not be the right
3107 # tool to use in cross-compilation environments, therefore Automake
3108 # will honor the 'STRIP' environment variable to overrule this program.
3109 if test "$cross_compiling" != no; then
3110   if test -n "$ac_tool_prefix"; then
3111   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3112 set dummy ${ac_tool_prefix}strip; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_STRIP+:} false; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   if test -n "$STRIP"; then
3119   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     for ac_exec_ext in '' $ac_executable_extensions; do
3127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 STRIP=$ac_cv_prog_STRIP
3139 if test -n "$STRIP"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3141 $as_echo "$STRIP" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 fi
3149 if test -z "$ac_cv_prog_STRIP"; then
3150   ac_ct_STRIP=$STRIP
3151   # Extract the first word of "strip", so it can be a program name with args.
3152 set dummy strip; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   if test -n "$ac_ct_STRIP"; then
3159   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     for ac_exec_ext in '' $ac_executable_extensions; do
3167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     ac_cv_prog_ac_ct_STRIP="strip"
3169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173   done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3179 if test -n "$ac_ct_STRIP"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3181 $as_echo "$ac_ct_STRIP" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187   if test "x$ac_ct_STRIP" = x; then
3188     STRIP=":"
3189   else
3190     case $cross_compiling:$ac_tool_warned in
3191 yes:)
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194 ac_tool_warned=yes ;;
3195 esac
3196     STRIP=$ac_ct_STRIP
3197   fi
3198 else
3199   STRIP="$ac_cv_prog_STRIP"
3200 fi
3201
3202 fi
3203 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3204
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3206 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3207 if test -z "$MKDIR_P"; then
3208   if ${ac_cv_path_mkdir+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_prog in mkdir gmkdir; do
3217          for ac_exec_ext in '' $ac_executable_extensions; do
3218            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3219            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3220              'mkdir (GNU coreutils) '* | \
3221              'mkdir (coreutils) '* | \
3222              'mkdir (fileutils) '4.1*)
3223                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3224                break 3;;
3225            esac
3226          done
3227        done
3228   done
3229 IFS=$as_save_IFS
3230
3231 fi
3232
3233   test -d ./--version && rmdir ./--version
3234   if test "${ac_cv_path_mkdir+set}" = set; then
3235     MKDIR_P="$ac_cv_path_mkdir -p"
3236   else
3237     # As a last resort, use the slow shell script.  Don't cache a
3238     # value for MKDIR_P within a source directory, because that will
3239     # break other packages using the cache if that directory is
3240     # removed, or if the value is a relative name.
3241     MKDIR_P="$ac_install_sh -d"
3242   fi
3243 fi
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3245 $as_echo "$MKDIR_P" >&6; }
3246
3247 for ac_prog in gawk mawk nawk awk
3248 do
3249   # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_AWK+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if test -n "$AWK"; then
3257   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264     for ac_exec_ext in '' $ac_executable_extensions; do
3265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266     ac_cv_prog_AWK="$ac_prog"
3267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271   done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 AWK=$ac_cv_prog_AWK
3277 if test -n "$AWK"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3279 $as_echo "$AWK" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286   test -n "$AWK" && break
3287 done
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3290 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3291 set x ${MAKE-make}
3292 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3293 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3294   $as_echo_n "(cached) " >&6
3295 else
3296   cat >conftest.make <<\_ACEOF
3297 SHELL = /bin/sh
3298 all:
3299         @echo '@@@%%%=$(MAKE)=@@@%%%'
3300 _ACEOF
3301 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3302 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3303   *@@@%%%=?*=@@@%%%*)
3304     eval ac_cv_prog_make_${ac_make}_set=yes;;
3305   *)
3306     eval ac_cv_prog_make_${ac_make}_set=no;;
3307 esac
3308 rm -f conftest.make
3309 fi
3310 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312 $as_echo "yes" >&6; }
3313   SET_MAKE=
3314 else
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317   SET_MAKE="MAKE=${MAKE-make}"
3318 fi
3319
3320 rm -rf .tst 2>/dev/null
3321 mkdir .tst 2>/dev/null
3322 if test -d .tst; then
3323   am__leading_dot=.
3324 else
3325   am__leading_dot=_
3326 fi
3327 rmdir .tst 2>/dev/null
3328
3329 # Check whether --enable-silent-rules was given.
3330 if test "${enable_silent_rules+set}" = set; then :
3331   enableval=$enable_silent_rules;
3332 fi
3333
3334 case $enable_silent_rules in # (((
3335   yes) AM_DEFAULT_VERBOSITY=0;;
3336    no) AM_DEFAULT_VERBOSITY=1;;
3337     *) AM_DEFAULT_VERBOSITY=1;;
3338 esac
3339 am_make=${MAKE-make}
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3341 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3342 if ${am_cv_make_support_nested_variables+:} false; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if $as_echo 'TRUE=$(BAR$(V))
3346 BAR0=false
3347 BAR1=true
3348 V=1
3349 am__doit:
3350         @$(TRUE)
3351 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3352   am_cv_make_support_nested_variables=yes
3353 else
3354   am_cv_make_support_nested_variables=no
3355 fi
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3358 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3359 if test $am_cv_make_support_nested_variables = yes; then
3360     AM_V='$(V)'
3361   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3362 else
3363   AM_V=$AM_DEFAULT_VERBOSITY
3364   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3365 fi
3366 AM_BACKSLASH='\'
3367
3368 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3369   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3370   # is not polluted with repeated "-I."
3371   am__isrc=' -I$(srcdir)'
3372   # test to see if srcdir already configured
3373   if test -f $srcdir/config.status; then
3374     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3375   fi
3376 fi
3377
3378 # test whether we have cygpath
3379 if test -z "$CYGPATH_W"; then
3380   if (cygpath --version) >/dev/null 2>/dev/null; then
3381     CYGPATH_W='cygpath -w'
3382   else
3383     CYGPATH_W=echo
3384   fi
3385 fi
3386
3387
3388 # Define the identity of the package.
3389  PACKAGE='harfbuzz'
3390  VERSION='1.2.7'
3391
3392
3393 # Some tools Automake needs.
3394
3395 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3396
3397
3398 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3399
3400
3401 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3402
3403
3404 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3405
3406
3407 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3408
3409 # For better backward compatibility.  To be removed once Automake 1.9.x
3410 # dies out for good.  For more background, see:
3411 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3412 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3413 mkdir_p='$(MKDIR_P)'
3414
3415 # We need awk for the "check" target.  The system "awk" is bad on
3416 # some platforms.
3417 # Always define AMTAR for backward compatibility.  Yes, it's still used
3418 # in the wild :-(  We should find a proper way to deprecate it ...
3419 AMTAR='$${TAR-tar}'
3420
3421
3422 # We'll loop over all known methods to create a tar archive until one works.
3423 _am_tools='gnutar plaintar pax cpio none'
3424
3425 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3426       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3427       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3428       # and bug#13588).
3429       am_max_uid=2097151 # 2^21 - 1
3430       am_max_gid=$am_max_uid
3431       # The $UID and $GID variables are not portable, so we need to resort
3432       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3433       # below are definitely unexpected, so allow the users to see them
3434       # (that is, avoid stderr redirection).
3435       am_uid=`id -u || echo unknown`
3436       am_gid=`id -g || echo unknown`
3437       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3438 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3439       if test $am_uid -le $am_max_uid; then
3440          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441 $as_echo "yes" >&6; }
3442       else
3443          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445          _am_tools=none
3446       fi
3447       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3448 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3449       if test $am_gid -le $am_max_gid; then
3450          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3451 $as_echo "yes" >&6; }
3452       else
3453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455         _am_tools=none
3456       fi
3457
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3459 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3460
3461   # Go ahead even if we have the value already cached.  We do so because we
3462   # need to set the values for the 'am__tar' and 'am__untar' variables.
3463   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3464
3465   for _am_tool in $_am_tools; do
3466     case $_am_tool in
3467     gnutar)
3468       for _am_tar in tar gnutar gtar; do
3469         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3470    ($_am_tar --version) >&5 2>&5
3471    ac_status=$?
3472    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473    (exit $ac_status); } && break
3474       done
3475       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3476       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3477       am__untar="$_am_tar -xf -"
3478       ;;
3479     plaintar)
3480       # Must skip GNU tar: if it does not support --format= it doesn't create
3481       # ustar tarball either.
3482       (tar --version) >/dev/null 2>&1 && continue
3483       am__tar='tar chf - "$$tardir"'
3484       am__tar_='tar chf - "$tardir"'
3485       am__untar='tar xf -'
3486       ;;
3487     pax)
3488       am__tar='pax -L -x ustar -w "$$tardir"'
3489       am__tar_='pax -L -x ustar -w "$tardir"'
3490       am__untar='pax -r'
3491       ;;
3492     cpio)
3493       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3494       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3495       am__untar='cpio -i -H ustar -d'
3496       ;;
3497     none)
3498       am__tar=false
3499       am__tar_=false
3500       am__untar=false
3501       ;;
3502     esac
3503
3504     # If the value was cached, stop now.  We just wanted to have am__tar
3505     # and am__untar set.
3506     test -n "${am_cv_prog_tar_ustar}" && break
3507
3508     # tar/untar a dummy directory, and stop if the command works.
3509     rm -rf conftest.dir
3510     mkdir conftest.dir
3511     echo GrepMe > conftest.dir/file
3512     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3513    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3514    ac_status=$?
3515    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516    (exit $ac_status); }
3517     rm -rf conftest.dir
3518     if test -s conftest.tar; then
3519       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3520    ($am__untar <conftest.tar) >&5 2>&5
3521    ac_status=$?
3522    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523    (exit $ac_status); }
3524       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3525    (cat conftest.dir/file) >&5 2>&5
3526    ac_status=$?
3527    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528    (exit $ac_status); }
3529       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3530     fi
3531   done
3532   rm -rf conftest.dir
3533
3534   if ${am_cv_prog_tar_ustar+:} false; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   am_cv_prog_tar_ustar=$_am_tool
3538 fi
3539
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3541 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3542
3543
3544
3545
3546
3547
3548 # POSIX will say in a future version that running "rm -f" with no argument
3549 # is OK; and we want to be able to make that assumption in our Makefile
3550 # recipes.  So use an aggressive probe to check that the usage we want is
3551 # actually supported "in the wild" to an acceptable degree.
3552 # See automake bug#10828.
3553 # To make any issue more visible, cause the running configure to be aborted
3554 # by default if the 'rm' program in use doesn't match our expectations; the
3555 # user can still override this though.
3556 if rm -f && rm -fr && rm -rf; then : OK; else
3557   cat >&2 <<'END'
3558 Oops!
3559
3560 Your 'rm' program seems unable to run without file operands specified
3561 on the command line, even when the '-f' option is present.  This is contrary
3562 to the behaviour of most rm programs out there, and not conforming with
3563 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3564
3565 Please tell bug-automake@gnu.org about your system, including the value
3566 of your $PATH and any error possibly output before this message.  This
3567 can help us improve future automake versions.
3568
3569 END
3570   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3571     echo 'Configuration will proceed anyway, since you have set the' >&2
3572     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3573     echo >&2
3574   else
3575     cat >&2 <<'END'
3576 Aborting the configuration process, to ensure you take notice of the issue.
3577
3578 You can download and install GNU coreutils to get an 'rm' implementation
3579 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3580
3581 If you want to complete the configuration process using your problematic
3582 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3583 to "yes", and re-run configure.
3584
3585 END
3586     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3587   fi
3588 fi
3589  if test $am__api_version = 1.11 -o $am__api_version = 1.12; then
3590   AUTOMAKE_OLDER_THAN_1_13_TRUE=
3591   AUTOMAKE_OLDER_THAN_1_13_FALSE='#'
3592 else
3593   AUTOMAKE_OLDER_THAN_1_13_TRUE='#'
3594   AUTOMAKE_OLDER_THAN_1_13_FALSE=
3595 fi
3596
3597 # Check whether --enable-silent-rules was given.
3598 if test "${enable_silent_rules+set}" = set; then :
3599   enableval=$enable_silent_rules;
3600 fi
3601
3602 case $enable_silent_rules in # (((
3603   yes) AM_DEFAULT_VERBOSITY=0;;
3604    no) AM_DEFAULT_VERBOSITY=1;;
3605     *) AM_DEFAULT_VERBOSITY=0;;
3606 esac
3607 am_make=${MAKE-make}
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3609 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3610 if ${am_cv_make_support_nested_variables+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   if $as_echo 'TRUE=$(BAR$(V))
3614 BAR0=false
3615 BAR1=true
3616 V=1
3617 am__doit:
3618         @$(TRUE)
3619 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3620   am_cv_make_support_nested_variables=yes
3621 else
3622   am_cv_make_support_nested_variables=no
3623 fi
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3626 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3627 if test $am_cv_make_support_nested_variables = yes; then
3628     AM_V='$(V)'
3629   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3630 else
3631   AM_V=$AM_DEFAULT_VERBOSITY
3632   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3633 fi
3634 AM_BACKSLASH='\'
3635
3636
3637 # Initialize libtool
3638 DEPDIR="${am__leading_dot}deps"
3639
3640 ac_config_commands="$ac_config_commands depfiles"
3641
3642
3643 am_make=${MAKE-make}
3644 cat > confinc << 'END'
3645 am__doit:
3646         @echo this is the am__doit target
3647 .PHONY: am__doit
3648 END
3649 # If we don't find an include directive, just comment out the code.
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3651 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3652 am__include="#"
3653 am__quote=
3654 _am_result=none
3655 # First try GNU make style include.
3656 echo "include confinc" > confmf
3657 # Ignore all kinds of additional output from 'make'.
3658 case `$am_make -s -f confmf 2> /dev/null` in #(
3659 *the\ am__doit\ target*)
3660   am__include=include
3661   am__quote=
3662   _am_result=GNU
3663   ;;
3664 esac
3665 # Now try BSD make style include.
3666 if test "$am__include" = "#"; then
3667    echo '.include "confinc"' > confmf
3668    case `$am_make -s -f confmf 2> /dev/null` in #(
3669    *the\ am__doit\ target*)
3670      am__include=.include
3671      am__quote="\""
3672      _am_result=BSD
3673      ;;
3674    esac
3675 fi
3676
3677
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3679 $as_echo "$_am_result" >&6; }
3680 rm -f confinc confmf
3681
3682 # Check whether --enable-dependency-tracking was given.
3683 if test "${enable_dependency_tracking+set}" = set; then :
3684   enableval=$enable_dependency_tracking;
3685 fi
3686
3687 if test "x$enable_dependency_tracking" != xno; then
3688   am_depcomp="$ac_aux_dir/depcomp"
3689   AMDEPBACKSLASH='\'
3690   am__nodep='_no'
3691 fi
3692  if test "x$enable_dependency_tracking" != xno; then
3693   AMDEP_TRUE=
3694   AMDEP_FALSE='#'
3695 else
3696   AMDEP_TRUE='#'
3697   AMDEP_FALSE=
3698 fi
3699
3700
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 if test -n "$ac_tool_prefix"; then
3707   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714   if test -n "$CC"; then
3715   ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722     for ac_exec_ext in '' $ac_executable_extensions; do
3723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729   done
3730 IFS=$as_save_IFS
3731
3732 fi
3733 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3741 fi
3742
3743
3744 fi
3745 if test -z "$ac_cv_prog_CC"; then
3746   ac_ct_CC=$CC
3747   # Extract the first word of "gcc", so it can be a program name with args.
3748 set dummy gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3752   $as_echo_n "(cached) " >&6
3753 else
3754   if test -n "$ac_ct_CC"; then
3755   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762     for ac_exec_ext in '' $ac_executable_extensions; do
3763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_prog_ac_ct_CC="gcc"
3765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769   done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 $as_echo "$ac_ct_CC" >&6; }
3778 else
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783   if test "x$ac_ct_CC" = x; then
3784     CC=""
3785   else
3786     case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792     CC=$ac_ct_CC
3793   fi
3794 else
3795   CC="$ac_cv_prog_CC"
3796 fi
3797
3798 if test -z "$CC"; then
3799           if test -n "$ac_tool_prefix"; then
3800     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}cc; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_CC+:} false; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   if test -n "$CC"; then
3808   ac_cv_prog_CC="$CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815     for ac_exec_ext in '' $ac_executable_extensions; do
3816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_CC="${ac_tool_prefix}cc"
3818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822   done
3823 IFS=$as_save_IFS
3824
3825 fi
3826 fi
3827 CC=$ac_cv_prog_CC
3828 if test -n "$CC"; then
3829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3831 else
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3834 fi
3835
3836
3837   fi
3838 fi
3839 if test -z "$CC"; then
3840   # Extract the first word of "cc", so it can be a program name with args.
3841 set dummy cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if ${ac_cv_prog_CC+:} false; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   if test -n "$CC"; then
3848   ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850   ac_prog_rejected=no
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_exec_ext in '' $ac_executable_extensions; do
3857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3859        ac_prog_rejected=yes
3860        continue
3861      fi
3862     ac_cv_prog_CC="cc"
3863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867   done
3868 IFS=$as_save_IFS
3869
3870 if test $ac_prog_rejected = yes; then
3871   # We found a bogon in the path, so make sure we never use it.
3872   set dummy $ac_cv_prog_CC
3873   shift
3874   if test $# != 0; then
3875     # We chose a different compiler from the bogus one.
3876     # However, it has the same basename, so the bogon will be chosen
3877     # first if we set CC to just the basename; use the full file name.
3878     shift
3879     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3880   fi
3881 fi
3882 fi
3883 fi
3884 CC=$ac_cv_prog_CC
3885 if test -n "$CC"; then
3886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887 $as_echo "$CC" >&6; }
3888 else
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3891 fi
3892
3893
3894 fi
3895 if test -z "$CC"; then
3896   if test -n "$ac_tool_prefix"; then
3897   for ac_prog in cl.exe
3898   do
3899     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_CC+:} false; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   if test -n "$CC"; then
3907   ac_cv_prog_CC="$CC" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914     for ac_exec_ext in '' $ac_executable_extensions; do
3915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918     break 2
3919   fi
3920 done
3921   done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 CC=$ac_cv_prog_CC
3927 if test -n "$CC"; then
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 $as_echo "$CC" >&6; }
3930 else
3931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936     test -n "$CC" && break
3937   done
3938 fi
3939 if test -z "$CC"; then
3940   ac_ct_CC=$CC
3941   for ac_prog in cl.exe
3942 do
3943   # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   if test -n "$ac_ct_CC"; then
3951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956   IFS=$as_save_IFS
3957   test -z "$as_dir" && as_dir=.
3958     for ac_exec_ext in '' $ac_executable_extensions; do
3959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960     ac_cv_prog_ac_ct_CC="$ac_prog"
3961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962     break 2
3963   fi
3964 done
3965   done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971 if test -n "$ac_ct_CC"; then
3972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973 $as_echo "$ac_ct_CC" >&6; }
3974 else
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3977 fi
3978
3979
3980   test -n "$ac_ct_CC" && break
3981 done
3982
3983   if test "x$ac_ct_CC" = x; then
3984     CC=""
3985   else
3986     case $cross_compiling:$ac_tool_warned in
3987 yes:)
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990 ac_tool_warned=yes ;;
3991 esac
3992     CC=$ac_ct_CC
3993   fi
3994 fi
3995
3996 fi
3997
3998
3999 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "no acceptable C compiler found in \$PATH
4002 See \`config.log' for more details" "$LINENO" 5; }
4003
4004 # Provide some information about the compiler.
4005 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4006 set X $ac_compile
4007 ac_compiler=$2
4008 for ac_option in --version -v -V -qversion; do
4009   { { ac_try="$ac_compiler $ac_option >&5"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4017   ac_status=$?
4018   if test -s conftest.err; then
4019     sed '10a\
4020 ... rest of stderr output deleted ...
4021          10q' conftest.err >conftest.er1
4022     cat conftest.er1 >&5
4023   fi
4024   rm -f conftest.er1 conftest.err
4025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026   test $ac_status = 0; }
4027 done
4028
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 ac_clean_files_save=$ac_clean_files
4041 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4042 # Try to create an executable without -o first, disregard a.out.
4043 # It will help us diagnose broken compilers, and finding out an intuition
4044 # of exeext.
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4046 $as_echo_n "checking whether the C compiler works... " >&6; }
4047 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4048
4049 # The possible output files:
4050 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4051
4052 ac_rmfiles=
4053 for ac_file in $ac_files
4054 do
4055   case $ac_file in
4056     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4057     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4058   esac
4059 done
4060 rm -f $ac_rmfiles
4061
4062 if { { ac_try="$ac_link_default"
4063 case "(($ac_try" in
4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065   *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069   (eval "$ac_link_default") 2>&5
4070   ac_status=$?
4071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072   test $ac_status = 0; }; then :
4073   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4074 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4075 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4076 # so that the user can short-circuit this test for compilers unknown to
4077 # Autoconf.
4078 for ac_file in $ac_files ''
4079 do
4080   test -f "$ac_file" || continue
4081   case $ac_file in
4082     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4083         ;;
4084     [ab].out )
4085         # We found the default executable, but exeext='' is most
4086         # certainly right.
4087         break;;
4088     *.* )
4089         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4090         then :; else
4091            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4092         fi
4093         # We set ac_cv_exeext here because the later test for it is not
4094         # safe: cross compilers may not add the suffix if given an `-o'
4095         # argument, so we may need to know it at that point already.
4096         # Even if this section looks crufty: it has the advantage of
4097         # actually working.
4098         break;;
4099     * )
4100         break;;
4101   esac
4102 done
4103 test "$ac_cv_exeext" = no && ac_cv_exeext=
4104
4105 else
4106   ac_file=''
4107 fi
4108 if test -z "$ac_file"; then :
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error 77 "C compiler cannot create executables
4117 See \`config.log' for more details" "$LINENO" 5; }
4118 else
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4123 $as_echo_n "checking for C compiler default output file name... " >&6; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4125 $as_echo "$ac_file" >&6; }
4126 ac_exeext=$ac_cv_exeext
4127
4128 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4129 ac_clean_files=$ac_clean_files_save
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4131 $as_echo_n "checking for suffix of executables... " >&6; }
4132 if { { ac_try="$ac_link"
4133 case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 $as_echo "$ac_try_echo"; } >&5
4139   (eval "$ac_link") 2>&5
4140   ac_status=$?
4141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142   test $ac_status = 0; }; then :
4143   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4144 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4145 # work properly (i.e., refer to `conftest.exe'), while it won't with
4146 # `rm'.
4147 for ac_file in conftest.exe conftest conftest.*; do
4148   test -f "$ac_file" || continue
4149   case $ac_file in
4150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4151     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4152           break;;
4153     * ) break;;
4154   esac
4155 done
4156 else
4157   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4160 See \`config.log' for more details" "$LINENO" 5; }
4161 fi
4162 rm -f conftest conftest$ac_cv_exeext
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4164 $as_echo "$ac_cv_exeext" >&6; }
4165
4166 rm -f conftest.$ac_ext
4167 EXEEXT=$ac_cv_exeext
4168 ac_exeext=$EXEEXT
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171 #include <stdio.h>
4172 int
4173 main ()
4174 {
4175 FILE *f = fopen ("conftest.out", "w");
4176  return ferror (f) || fclose (f) != 0;
4177
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 ac_clean_files="$ac_clean_files conftest.out"
4183 # Check that the compiler produces executables we can run.  If not, either
4184 # the compiler is broken, or we cross compile.
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4186 $as_echo_n "checking whether we are cross compiling... " >&6; }
4187 if test "$cross_compiling" != yes; then
4188   { { ac_try="$ac_link"
4189 case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4194 $as_echo "$ac_try_echo"; } >&5
4195   (eval "$ac_link") 2>&5
4196   ac_status=$?
4197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198   test $ac_status = 0; }
4199   if { ac_try='./conftest$ac_cv_exeext'
4200   { { case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206   (eval "$ac_try") 2>&5
4207   ac_status=$?
4208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209   test $ac_status = 0; }; }; then
4210     cross_compiling=no
4211   else
4212     if test "$cross_compiling" = maybe; then
4213         cross_compiling=yes
4214     else
4215         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error $? "cannot run C compiled programs.
4218 If you meant to cross compile, use \`--host'.
4219 See \`config.log' for more details" "$LINENO" 5; }
4220     fi
4221   fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4224 $as_echo "$cross_compiling" >&6; }
4225
4226 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4227 ac_clean_files=$ac_clean_files_save
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4229 $as_echo_n "checking for suffix of object files... " >&6; }
4230 if ${ac_cv_objext+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235
4236 int
4237 main ()
4238 {
4239
4240   ;
4241   return 0;
4242 }
4243 _ACEOF
4244 rm -f conftest.o conftest.obj
4245 if { { ac_try="$ac_compile"
4246 case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251 $as_echo "$ac_try_echo"; } >&5
4252   (eval "$ac_compile") 2>&5
4253   ac_status=$?
4254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255   test $ac_status = 0; }; then :
4256   for ac_file in conftest.o conftest.obj conftest.*; do
4257   test -f "$ac_file" || continue;
4258   case $ac_file in
4259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4260     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4261        break;;
4262   esac
4263 done
4264 else
4265   $as_echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270 as_fn_error $? "cannot compute suffix of object files: cannot compile
4271 See \`config.log' for more details" "$LINENO" 5; }
4272 fi
4273 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4276 $as_echo "$ac_cv_objext" >&6; }
4277 OBJEXT=$ac_cv_objext
4278 ac_objext=$OBJEXT
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4280 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4281 if ${ac_cv_c_compiler_gnu+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h.  */
4286
4287 int
4288 main ()
4289 {
4290 #ifndef __GNUC__
4291        choke me
4292 #endif
4293
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299   ac_compiler_gnu=yes
4300 else
4301   ac_compiler_gnu=no
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4305
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4308 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4309 if test $ac_compiler_gnu = yes; then
4310   GCC=yes
4311 else
4312   GCC=
4313 fi
4314 ac_test_CFLAGS=${CFLAGS+set}
4315 ac_save_CFLAGS=$CFLAGS
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4317 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4318 if ${ac_cv_prog_cc_g+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   ac_save_c_werror_flag=$ac_c_werror_flag
4322    ac_c_werror_flag=yes
4323    ac_cv_prog_cc_g=no
4324    CFLAGS="-g"
4325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337   ac_cv_prog_cc_g=yes
4338 else
4339   CFLAGS=""
4340       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352
4353 else
4354   ac_c_werror_flag=$ac_save_c_werror_flag
4355          CFLAGS="-g"
4356          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h.  */
4358
4359 int
4360 main ()
4361 {
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 if ac_fn_c_try_compile "$LINENO"; then :
4368   ac_cv_prog_cc_g=yes
4369 fi
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 fi
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375    ac_c_werror_flag=$ac_save_c_werror_flag
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4378 $as_echo "$ac_cv_prog_cc_g" >&6; }
4379 if test "$ac_test_CFLAGS" = set; then
4380   CFLAGS=$ac_save_CFLAGS
4381 elif test $ac_cv_prog_cc_g = yes; then
4382   if test "$GCC" = yes; then
4383     CFLAGS="-g -O2"
4384   else
4385     CFLAGS="-g"
4386   fi
4387 else
4388   if test "$GCC" = yes; then
4389     CFLAGS="-O2"
4390   else
4391     CFLAGS=
4392   fi
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4395 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4396 if ${ac_cv_prog_cc_c89+:} false; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   ac_cv_prog_cc_c89=no
4400 ac_save_CC=$CC
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h.  */
4403 #include <stdarg.h>
4404 #include <stdio.h>
4405 struct stat;
4406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4407 struct buf { int x; };
4408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4409 static char *e (p, i)
4410      char **p;
4411      int i;
4412 {
4413   return p[i];
4414 }
4415 static char *f (char * (*g) (char **, int), char **p, ...)
4416 {
4417   char *s;
4418   va_list v;
4419   va_start (v,p);
4420   s = g (p, va_arg (v,int));
4421   va_end (v);
4422   return s;
4423 }
4424
4425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4426    function prototypes and stuff, but not '\xHH' hex character constants.
4427    These don't provoke an error unfortunately, instead are silently treated
4428    as 'x'.  The following induces an error, until -std is added to get
4429    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4430    array size at least.  It's necessary to write '\x00'==0 to get something
4431    that's true only with -std.  */
4432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4433
4434 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4435    inside strings and character constants.  */
4436 #define FOO(x) 'x'
4437 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4438
4439 int test (int i, double x);
4440 struct s1 {int (*f) (int a);};
4441 struct s2 {int (*f) (double a);};
4442 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4443 int argc;
4444 char **argv;
4445 int
4446 main ()
4447 {
4448 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4454         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4455 do
4456   CC="$ac_save_CC $ac_arg"
4457   if ac_fn_c_try_compile "$LINENO"; then :
4458   ac_cv_prog_cc_c89=$ac_arg
4459 fi
4460 rm -f core conftest.err conftest.$ac_objext
4461   test "x$ac_cv_prog_cc_c89" != "xno" && break
4462 done
4463 rm -f conftest.$ac_ext
4464 CC=$ac_save_CC
4465
4466 fi
4467 # AC_CACHE_VAL
4468 case "x$ac_cv_prog_cc_c89" in
4469   x)
4470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4471 $as_echo "none needed" >&6; } ;;
4472   xno)
4473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4474 $as_echo "unsupported" >&6; } ;;
4475   *)
4476     CC="$CC $ac_cv_prog_cc_c89"
4477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4479 esac
4480 if test "x$ac_cv_prog_cc_c89" != xno; then :
4481
4482 fi
4483
4484 ac_ext=c
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
4490 ac_ext=c
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4496 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4497 if ${am_cv_prog_cc_c_o+:} false; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h.  */
4502
4503 int
4504 main ()
4505 {
4506
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511   # Make sure it works both with $CC and with simple cc.
4512   # Following AC_PROG_CC_C_O, we do the test twice because some
4513   # compilers refuse to overwrite an existing .o file with -o,
4514   # though they will create one.
4515   am_cv_prog_cc_c_o=yes
4516   for am_i in 1 2; do
4517     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4518    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4519    ac_status=$?
4520    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521    (exit $ac_status); } \
4522          && test -f conftest2.$ac_objext; then
4523       : OK
4524     else
4525       am_cv_prog_cc_c_o=no
4526       break
4527     fi
4528   done
4529   rm -f core conftest*
4530   unset am_i
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4533 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4534 if test "$am_cv_prog_cc_c_o" != yes; then
4535    # Losing compiler, so override with the script.
4536    # FIXME: It is wrong to rewrite CC.
4537    # But if we don't then we get into trouble of one sort or another.
4538    # A longer-term fix would be to have automake use am__CC in this case,
4539    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4540    CC="$am_aux_dir/compile $CC"
4541 fi
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548
4549 depcc="$CC"   am_compiler_list=
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4552 $as_echo_n "checking dependency style of $depcc... " >&6; }
4553 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4557   # We make a subdir and do the tests there.  Otherwise we can end up
4558   # making bogus files that we don't know about and never remove.  For
4559   # instance it was reported that on HP-UX the gcc test will end up
4560   # making a dummy file named 'D' -- because '-MD' means "put the output
4561   # in D".
4562   rm -rf conftest.dir
4563   mkdir conftest.dir
4564   # Copy depcomp to subdir because otherwise we won't find it if we're
4565   # using a relative directory.
4566   cp "$am_depcomp" conftest.dir
4567   cd conftest.dir
4568   # We will build objects and dependencies in a subdirectory because
4569   # it helps to detect inapplicable dependency modes.  For instance
4570   # both Tru64's cc and ICC support -MD to output dependencies as a
4571   # side effect of compilation, but ICC will put the dependencies in
4572   # the current directory while Tru64 will put them in the object
4573   # directory.
4574   mkdir sub
4575
4576   am_cv_CC_dependencies_compiler_type=none
4577   if test "$am_compiler_list" = ""; then
4578      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4579   fi
4580   am__universal=false
4581   case " $depcc " in #(
4582      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4583      esac
4584
4585   for depmode in $am_compiler_list; do
4586     # Setup a source with many dependencies, because some compilers
4587     # like to wrap large dependency lists on column 80 (with \), and
4588     # we should not choose a depcomp mode which is confused by this.
4589     #
4590     # We need to recreate these files for each test, as the compiler may
4591     # overwrite some of them when testing with obscure command lines.
4592     # This happens at least with the AIX C compiler.
4593     : > sub/conftest.c
4594     for i in 1 2 3 4 5 6; do
4595       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4596       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4597       # Solaris 10 /bin/sh.
4598       echo '/* dummy */' > sub/conftst$i.h
4599     done
4600     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4601
4602     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4603     # mode.  It turns out that the SunPro C++ compiler does not properly
4604     # handle '-M -o', and we need to detect this.  Also, some Intel
4605     # versions had trouble with output in subdirs.
4606     am__obj=sub/conftest.${OBJEXT-o}
4607     am__minus_obj="-o $am__obj"
4608     case $depmode in
4609     gcc)
4610       # This depmode causes a compiler race in universal mode.
4611       test "$am__universal" = false || continue
4612       ;;
4613     nosideeffect)
4614       # After this tag, mechanisms are not by side-effect, so they'll
4615       # only be used when explicitly requested.
4616       if test "x$enable_dependency_tracking" = xyes; then
4617         continue
4618       else
4619         break
4620       fi
4621       ;;
4622     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4623       # This compiler won't grok '-c -o', but also, the minuso test has
4624       # not run yet.  These depmodes are late enough in the game, and
4625       # so weak that their functioning should not be impacted.
4626       am__obj=conftest.${OBJEXT-o}
4627       am__minus_obj=
4628       ;;
4629     none) break ;;
4630     esac
4631     if depmode=$depmode \
4632        source=sub/conftest.c object=$am__obj \
4633        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4634        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4635          >/dev/null 2>conftest.err &&
4636        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4637        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4638        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4639        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4640       # icc doesn't choke on unknown options, it will just issue warnings
4641       # or remarks (even with -Werror).  So we grep stderr for any message
4642       # that says an option was ignored or not supported.
4643       # When given -MP, icc 7.0 and 7.1 complain thusly:
4644       #   icc: Command line warning: ignoring option '-M'; no argument required
4645       # The diagnosis changed in icc 8.0:
4646       #   icc: Command line remark: option '-MP' not supported
4647       if (grep 'ignoring option' conftest.err ||
4648           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4649         am_cv_CC_dependencies_compiler_type=$depmode
4650         break
4651       fi
4652     fi
4653   done
4654
4655   cd ..
4656   rm -rf conftest.dir
4657 else
4658   am_cv_CC_dependencies_compiler_type=none
4659 fi
4660
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4663 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4664 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4665
4666  if
4667   test "x$enable_dependency_tracking" != xno \
4668   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4669   am__fastdepCC_TRUE=
4670   am__fastdepCC_FALSE='#'
4671 else
4672   am__fastdepCC_TRUE='#'
4673   am__fastdepCC_FALSE=
4674 fi
4675
4676
4677
4678 if test -n "$ac_tool_prefix"; then
4679   for ac_prog in ar lib "link -lib"
4680   do
4681     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_prog_AR+:} false; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   if test -n "$AR"; then
4689   ac_cv_prog_AR="$AR" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696     for ac_exec_ext in '' $ac_executable_extensions; do
4697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700     break 2
4701   fi
4702 done
4703   done
4704 IFS=$as_save_IFS
4705
4706 fi
4707 fi
4708 AR=$ac_cv_prog_AR
4709 if test -n "$AR"; then
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4711 $as_echo "$AR" >&6; }
4712 else
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4715 fi
4716
4717
4718     test -n "$AR" && break
4719   done
4720 fi
4721 if test -z "$AR"; then
4722   ac_ct_AR=$AR
4723   for ac_prog in ar lib "link -lib"
4724 do
4725   # Extract the first word of "$ac_prog", so it can be a program name with args.
4726 set dummy $ac_prog; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   if test -n "$ac_ct_AR"; then
4733   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742     ac_cv_prog_ac_ct_AR="$ac_prog"
4743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744     break 2
4745   fi
4746 done
4747   done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4753 if test -n "$ac_ct_AR"; then
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4755 $as_echo "$ac_ct_AR" >&6; }
4756 else
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762   test -n "$ac_ct_AR" && break
4763 done
4764
4765   if test "x$ac_ct_AR" = x; then
4766     AR="false"
4767   else
4768     case $cross_compiling:$ac_tool_warned in
4769 yes:)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772 ac_tool_warned=yes ;;
4773 esac
4774     AR=$ac_ct_AR
4775   fi
4776 fi
4777
4778 : ${AR=ar}
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4781 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4782 if ${am_cv_ar_interface+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   ac_ext=c
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790
4791    am_cv_ar_interface=ar
4792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h.  */
4794 int some_variable = 0;
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4798       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4799   (eval $am_ar_try) 2>&5
4800   ac_status=$?
4801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802   test $ac_status = 0; }
4803       if test "$ac_status" -eq 0; then
4804         am_cv_ar_interface=ar
4805       else
4806         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4807         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4808   (eval $am_ar_try) 2>&5
4809   ac_status=$?
4810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811   test $ac_status = 0; }
4812         if test "$ac_status" -eq 0; then
4813           am_cv_ar_interface=lib
4814         else
4815           am_cv_ar_interface=unknown
4816         fi
4817       fi
4818       rm -f conftest.lib libconftest.a
4819
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822    ac_ext=c
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4830 $as_echo "$am_cv_ar_interface" >&6; }
4831
4832 case $am_cv_ar_interface in
4833 ar)
4834   ;;
4835 lib)
4836   # Microsoft lib, so override with the ar-lib wrapper script.
4837   # FIXME: It is wrong to rewrite AR.
4838   # But if we don't then we get into trouble of one sort or another.
4839   # A longer-term fix would be to have automake use am__AR in this case,
4840   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4841   # similar.
4842   AR="$am_aux_dir/ar-lib $AR"
4843   ;;
4844 unknown)
4845   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4846   ;;
4847 esac
4848
4849
4850 case `pwd` in
4851   *\ * | *\     *)
4852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4853 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4854 esac
4855
4856
4857
4858 macro_version='2.4.2'
4859 macro_revision='1.3337'
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873 ltmain="$ac_aux_dir/ltmain.sh"
4874
4875 # Make sure we can run config.sub.
4876 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4877   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4880 $as_echo_n "checking build system type... " >&6; }
4881 if ${ac_cv_build+:} false; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   ac_build_alias=$build_alias
4885 test "x$ac_build_alias" = x &&
4886   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4887 test "x$ac_build_alias" = x &&
4888   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4889 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4890   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4891
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4894 $as_echo "$ac_cv_build" >&6; }
4895 case $ac_cv_build in
4896 *-*-*) ;;
4897 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4898 esac
4899 build=$ac_cv_build
4900 ac_save_IFS=$IFS; IFS='-'
4901 set x $ac_cv_build
4902 shift
4903 build_cpu=$1
4904 build_vendor=$2
4905 shift; shift
4906 # Remember, the first character of IFS is used to create $*,
4907 # except with old shells:
4908 build_os=$*
4909 IFS=$ac_save_IFS
4910 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4911
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4914 $as_echo_n "checking host system type... " >&6; }
4915 if ${ac_cv_host+:} false; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   if test "x$host_alias" = x; then
4919   ac_cv_host=$ac_cv_build
4920 else
4921   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4922     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4923 fi
4924
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4927 $as_echo "$ac_cv_host" >&6; }
4928 case $ac_cv_host in
4929 *-*-*) ;;
4930 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4931 esac
4932 host=$ac_cv_host
4933 ac_save_IFS=$IFS; IFS='-'
4934 set x $ac_cv_host
4935 shift
4936 host_cpu=$1
4937 host_vendor=$2
4938 shift; shift
4939 # Remember, the first character of IFS is used to create $*,
4940 # except with old shells:
4941 host_os=$*
4942 IFS=$ac_save_IFS
4943 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4944
4945
4946 # Backslashify metacharacters that are still active within
4947 # double-quoted strings.
4948 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4949
4950 # Same as above, but do not quote variable references.
4951 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4952
4953 # Sed substitution to delay expansion of an escaped shell variable in a
4954 # double_quote_subst'ed string.
4955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4956
4957 # Sed substitution to delay expansion of an escaped single quote.
4958 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4959
4960 # Sed substitution to avoid accidental globbing in evaled expressions
4961 no_glob_subst='s/\*/\\\*/g'
4962
4963 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4964 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4965 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4968 $as_echo_n "checking how to print strings... " >&6; }
4969 # Test print first, because it will be a builtin if present.
4970 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4971    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4972   ECHO='print -r --'
4973 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4974   ECHO='printf %s\n'
4975 else
4976   # Use this function as a fallback that always works.
4977   func_fallback_echo ()
4978   {
4979     eval 'cat <<_LTECHO_EOF
4980 $1
4981 _LTECHO_EOF'
4982   }
4983   ECHO='func_fallback_echo'
4984 fi
4985
4986 # func_echo_all arg...
4987 # Invoke $ECHO with all args, space-separated.
4988 func_echo_all ()
4989 {
4990     $ECHO ""
4991 }
4992
4993 case "$ECHO" in
4994   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4995 $as_echo "printf" >&6; } ;;
4996   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4997 $as_echo "print -r" >&6; } ;;
4998   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4999 $as_echo "cat" >&6; } ;;
5000 esac
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5016 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5017 if ${ac_cv_path_SED+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5021      for ac_i in 1 2 3 4 5 6 7; do
5022        ac_script="$ac_script$as_nl$ac_script"
5023      done
5024      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5025      { ac_script=; unset ac_script;}
5026      if test -z "$SED"; then
5027   ac_path_SED_found=false
5028   # Loop through the user's path and test for each of PROGNAME-LIST
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034     for ac_prog in sed gsed; do
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5037       as_fn_executable_p "$ac_path_SED" || continue
5038 # Check for GNU ac_path_SED and select it if it is found.
5039   # Check for GNU $ac_path_SED
5040 case `"$ac_path_SED" --version 2>&1` in
5041 *GNU*)
5042   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5043 *)
5044   ac_count=0
5045   $as_echo_n 0123456789 >"conftest.in"
5046   while :
5047   do
5048     cat "conftest.in" "conftest.in" >"conftest.tmp"
5049     mv "conftest.tmp" "conftest.in"
5050     cp "conftest.in" "conftest.nl"
5051     $as_echo '' >> "conftest.nl"
5052     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5053     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5054     as_fn_arith $ac_count + 1 && ac_count=$as_val
5055     if test $ac_count -gt ${ac_path_SED_max-0}; then
5056       # Best one so far, save it but keep looking for a better one
5057       ac_cv_path_SED="$ac_path_SED"
5058       ac_path_SED_max=$ac_count
5059     fi
5060     # 10*(2^10) chars as input seems more than enough
5061     test $ac_count -gt 10 && break
5062   done
5063   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5064 esac
5065
5066       $ac_path_SED_found && break 3
5067     done
5068   done
5069   done
5070 IFS=$as_save_IFS
5071   if test -z "$ac_cv_path_SED"; then
5072     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5073   fi
5074 else
5075   ac_cv_path_SED=$SED
5076 fi
5077
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5080 $as_echo "$ac_cv_path_SED" >&6; }
5081  SED="$ac_cv_path_SED"
5082   rm -f conftest.sed
5083
5084 test -z "$SED" && SED=sed
5085 Xsed="$SED -e 1s/^X//"
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5098 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5099 if ${ac_cv_path_GREP+:} false; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   if test -z "$GREP"; then
5103   ac_path_GREP_found=false
5104   # Loop through the user's path and test for each of PROGNAME-LIST
5105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5107 do
5108   IFS=$as_save_IFS
5109   test -z "$as_dir" && as_dir=.
5110     for ac_prog in grep ggrep; do
5111     for ac_exec_ext in '' $ac_executable_extensions; do
5112       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5113       as_fn_executable_p "$ac_path_GREP" || continue
5114 # Check for GNU ac_path_GREP and select it if it is found.
5115   # Check for GNU $ac_path_GREP
5116 case `"$ac_path_GREP" --version 2>&1` in
5117 *GNU*)
5118   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5119 *)
5120   ac_count=0
5121   $as_echo_n 0123456789 >"conftest.in"
5122   while :
5123   do
5124     cat "conftest.in" "conftest.in" >"conftest.tmp"
5125     mv "conftest.tmp" "conftest.in"
5126     cp "conftest.in" "conftest.nl"
5127     $as_echo 'GREP' >> "conftest.nl"
5128     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5129     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5130     as_fn_arith $ac_count + 1 && ac_count=$as_val
5131     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5132       # Best one so far, save it but keep looking for a better one
5133       ac_cv_path_GREP="$ac_path_GREP"
5134       ac_path_GREP_max=$ac_count
5135     fi
5136     # 10*(2^10) chars as input seems more than enough
5137     test $ac_count -gt 10 && break
5138   done
5139   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5140 esac
5141
5142       $ac_path_GREP_found && break 3
5143     done
5144   done
5145   done
5146 IFS=$as_save_IFS
5147   if test -z "$ac_cv_path_GREP"; then
5148     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5149   fi
5150 else
5151   ac_cv_path_GREP=$GREP
5152 fi
5153
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5156 $as_echo "$ac_cv_path_GREP" >&6; }
5157  GREP="$ac_cv_path_GREP"
5158
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5161 $as_echo_n "checking for egrep... " >&6; }
5162 if ${ac_cv_path_EGREP+:} false; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5166    then ac_cv_path_EGREP="$GREP -E"
5167    else
5168      if test -z "$EGREP"; then
5169   ac_path_EGREP_found=false
5170   # Loop through the user's path and test for each of PROGNAME-LIST
5171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176     for ac_prog in egrep; do
5177     for ac_exec_ext in '' $ac_executable_extensions; do
5178       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5179       as_fn_executable_p "$ac_path_EGREP" || continue
5180 # Check for GNU ac_path_EGREP and select it if it is found.
5181   # Check for GNU $ac_path_EGREP
5182 case `"$ac_path_EGREP" --version 2>&1` in
5183 *GNU*)
5184   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5185 *)
5186   ac_count=0
5187   $as_echo_n 0123456789 >"conftest.in"
5188   while :
5189   do
5190     cat "conftest.in" "conftest.in" >"conftest.tmp"
5191     mv "conftest.tmp" "conftest.in"
5192     cp "conftest.in" "conftest.nl"
5193     $as_echo 'EGREP' >> "conftest.nl"
5194     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5195     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5196     as_fn_arith $ac_count + 1 && ac_count=$as_val
5197     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5198       # Best one so far, save it but keep looking for a better one
5199       ac_cv_path_EGREP="$ac_path_EGREP"
5200       ac_path_EGREP_max=$ac_count
5201     fi
5202     # 10*(2^10) chars as input seems more than enough
5203     test $ac_count -gt 10 && break
5204   done
5205   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206 esac
5207
5208       $ac_path_EGREP_found && break 3
5209     done
5210   done
5211   done
5212 IFS=$as_save_IFS
5213   if test -z "$ac_cv_path_EGREP"; then
5214     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5215   fi
5216 else
5217   ac_cv_path_EGREP=$EGREP
5218 fi
5219
5220    fi
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5223 $as_echo "$ac_cv_path_EGREP" >&6; }
5224  EGREP="$ac_cv_path_EGREP"
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5228 $as_echo_n "checking for fgrep... " >&6; }
5229 if ${ac_cv_path_FGREP+:} false; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5233    then ac_cv_path_FGREP="$GREP -F"
5234    else
5235      if test -z "$FGREP"; then
5236   ac_path_FGREP_found=false
5237   # Loop through the user's path and test for each of PROGNAME-LIST
5238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243     for ac_prog in fgrep; do
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5246       as_fn_executable_p "$ac_path_FGREP" || continue
5247 # Check for GNU ac_path_FGREP and select it if it is found.
5248   # Check for GNU $ac_path_FGREP
5249 case `"$ac_path_FGREP" --version 2>&1` in
5250 *GNU*)
5251   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5252 *)
5253   ac_count=0
5254   $as_echo_n 0123456789 >"conftest.in"
5255   while :
5256   do
5257     cat "conftest.in" "conftest.in" >"conftest.tmp"
5258     mv "conftest.tmp" "conftest.in"
5259     cp "conftest.in" "conftest.nl"
5260     $as_echo 'FGREP' >> "conftest.nl"
5261     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5262     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5263     as_fn_arith $ac_count + 1 && ac_count=$as_val
5264     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5265       # Best one so far, save it but keep looking for a better one
5266       ac_cv_path_FGREP="$ac_path_FGREP"
5267       ac_path_FGREP_max=$ac_count
5268     fi
5269     # 10*(2^10) chars as input seems more than enough
5270     test $ac_count -gt 10 && break
5271   done
5272   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5273 esac
5274
5275       $ac_path_FGREP_found && break 3
5276     done
5277   done
5278   done
5279 IFS=$as_save_IFS
5280   if test -z "$ac_cv_path_FGREP"; then
5281     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5282   fi
5283 else
5284   ac_cv_path_FGREP=$FGREP
5285 fi
5286
5287    fi
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5290 $as_echo "$ac_cv_path_FGREP" >&6; }
5291  FGREP="$ac_cv_path_FGREP"
5292
5293
5294 test -z "$GREP" && GREP=grep
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 # Check whether --with-gnu-ld was given.
5315 if test "${with_gnu_ld+set}" = set; then :
5316   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5317 else
5318   with_gnu_ld=no
5319 fi
5320
5321 ac_prog=ld
5322 if test "$GCC" = yes; then
5323   # Check if gcc -print-prog-name=ld gives a path.
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5325 $as_echo_n "checking for ld used by $CC... " >&6; }
5326   case $host in
5327   *-*-mingw*)
5328     # gcc leaves a trailing carriage return which upsets mingw
5329     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5330   *)
5331     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5332   esac
5333   case $ac_prog in
5334     # Accept absolute paths.
5335     [\\/]* | ?:[\\/]*)
5336       re_direlt='/[^/][^/]*/\.\./'
5337       # Canonicalize the pathname of ld
5338       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5339       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5340         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5341       done
5342       test -z "$LD" && LD="$ac_prog"
5343       ;;
5344   "")
5345     # If it fails, then pretend we aren't using GCC.
5346     ac_prog=ld
5347     ;;
5348   *)
5349     # If it is relative, then search for the first ld in PATH.
5350     with_gnu_ld=unknown
5351     ;;
5352   esac
5353 elif test "$with_gnu_ld" = yes; then
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5355 $as_echo_n "checking for GNU ld... " >&6; }
5356 else
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5358 $as_echo_n "checking for non-GNU ld... " >&6; }
5359 fi
5360 if ${lt_cv_path_LD+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -z "$LD"; then
5364   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5365   for ac_dir in $PATH; do
5366     IFS="$lt_save_ifs"
5367     test -z "$ac_dir" && ac_dir=.
5368     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5369       lt_cv_path_LD="$ac_dir/$ac_prog"
5370       # Check to see if the program is GNU ld.  I'd rather use --version,
5371       # but apparently some variants of GNU ld only accept -v.
5372       # Break only if it was the GNU/non-GNU ld that we prefer.
5373       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5374       *GNU* | *'with BFD'*)
5375         test "$with_gnu_ld" != no && break
5376         ;;
5377       *)
5378         test "$with_gnu_ld" != yes && break
5379         ;;
5380       esac
5381     fi
5382   done
5383   IFS="$lt_save_ifs"
5384 else
5385   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5386 fi
5387 fi
5388
5389 LD="$lt_cv_path_LD"
5390 if test -n "$LD"; then
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5392 $as_echo "$LD" >&6; }
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5399 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5400 if ${lt_cv_prog_gnu_ld+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5404 case `$LD -v 2>&1 </dev/null` in
5405 *GNU* | *'with BFD'*)
5406   lt_cv_prog_gnu_ld=yes
5407   ;;
5408 *)
5409   lt_cv_prog_gnu_ld=no
5410   ;;
5411 esac
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5414 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5415 with_gnu_ld=$lt_cv_prog_gnu_ld
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5426 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5427 if ${lt_cv_path_NM+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   if test -n "$NM"; then
5431   # Let the user override the test.
5432   lt_cv_path_NM="$NM"
5433 else
5434   lt_nm_to_check="${ac_tool_prefix}nm"
5435   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5436     lt_nm_to_check="$lt_nm_to_check nm"
5437   fi
5438   for lt_tmp_nm in $lt_nm_to_check; do
5439     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5440     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5441       IFS="$lt_save_ifs"
5442       test -z "$ac_dir" && ac_dir=.
5443       tmp_nm="$ac_dir/$lt_tmp_nm"
5444       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5445         # Check to see if the nm accepts a BSD-compat flag.
5446         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5447         #   nm: unknown option "B" ignored
5448         # Tru64's nm complains that /dev/null is an invalid object file
5449         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5450         */dev/null* | *'Invalid file or object type'*)
5451           lt_cv_path_NM="$tmp_nm -B"
5452           break
5453           ;;
5454         *)
5455           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5456           */dev/null*)
5457             lt_cv_path_NM="$tmp_nm -p"
5458             break
5459             ;;
5460           *)
5461             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5462             continue # so that we can try to find one that supports BSD flags
5463             ;;
5464           esac
5465           ;;
5466         esac
5467       fi
5468     done
5469     IFS="$lt_save_ifs"
5470   done
5471   : ${lt_cv_path_NM=no}
5472 fi
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5475 $as_echo "$lt_cv_path_NM" >&6; }
5476 if test "$lt_cv_path_NM" != "no"; then
5477   NM="$lt_cv_path_NM"
5478 else
5479   # Didn't find any BSD compatible name lister, look for dumpbin.
5480   if test -n "$DUMPBIN"; then :
5481     # Let the user override the test.
5482   else
5483     if test -n "$ac_tool_prefix"; then
5484   for ac_prog in dumpbin "link -dump"
5485   do
5486     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_DUMPBIN+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   if test -n "$DUMPBIN"; then
5494   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501     for ac_exec_ext in '' $ac_executable_extensions; do
5502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505     break 2
5506   fi
5507 done
5508   done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 DUMPBIN=$ac_cv_prog_DUMPBIN
5514 if test -n "$DUMPBIN"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5516 $as_echo "$DUMPBIN" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523     test -n "$DUMPBIN" && break
5524   done
5525 fi
5526 if test -z "$DUMPBIN"; then
5527   ac_ct_DUMPBIN=$DUMPBIN
5528   for ac_prog in dumpbin "link -dump"
5529 do
5530   # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   if test -n "$ac_ct_DUMPBIN"; then
5538   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543   IFS=$as_save_IFS
5544   test -z "$as_dir" && as_dir=.
5545     for ac_exec_ext in '' $ac_executable_extensions; do
5546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549     break 2
5550   fi
5551 done
5552   done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5558 if test -n "$ac_ct_DUMPBIN"; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5560 $as_echo "$ac_ct_DUMPBIN" >&6; }
5561 else
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567   test -n "$ac_ct_DUMPBIN" && break
5568 done
5569
5570   if test "x$ac_ct_DUMPBIN" = x; then
5571     DUMPBIN=":"
5572   else
5573     case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579     DUMPBIN=$ac_ct_DUMPBIN
5580   fi
5581 fi
5582
5583     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5584     *COFF*)
5585       DUMPBIN="$DUMPBIN -symbols"
5586       ;;
5587     *)
5588       DUMPBIN=:
5589       ;;
5590     esac
5591   fi
5592
5593   if test "$DUMPBIN" != ":"; then
5594     NM="$DUMPBIN"
5595   fi
5596 fi
5597 test -z "$NM" && NM=nm
5598
5599
5600
5601
5602
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5605 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5606 if ${lt_cv_nm_interface+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   lt_cv_nm_interface="BSD nm"
5610   echo "int some_variable = 0;" > conftest.$ac_ext
5611   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5612   (eval "$ac_compile" 2>conftest.err)
5613   cat conftest.err >&5
5614   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5615   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5616   cat conftest.err >&5
5617   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5618   cat conftest.out >&5
5619   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5620     lt_cv_nm_interface="MS dumpbin"
5621   fi
5622   rm -f conftest*
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5625 $as_echo "$lt_cv_nm_interface" >&6; }
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5628 $as_echo_n "checking whether ln -s works... " >&6; }
5629 LN_S=$as_ln_s
5630 if test "$LN_S" = "ln -s"; then
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632 $as_echo "yes" >&6; }
5633 else
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5635 $as_echo "no, using $LN_S" >&6; }
5636 fi
5637
5638 # find the maximum length of command line arguments
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5640 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5641 if ${lt_cv_sys_max_cmd_len+:} false; then :
5642   $as_echo_n "(cached) " >&6
5643 else
5644     i=0
5645   teststring="ABCD"
5646
5647   case $build_os in
5648   msdosdjgpp*)
5649     # On DJGPP, this test can blow up pretty badly due to problems in libc
5650     # (any single argument exceeding 2000 bytes causes a buffer overrun
5651     # during glob expansion).  Even if it were fixed, the result of this
5652     # check would be larger than it should be.
5653     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5654     ;;
5655
5656   gnu*)
5657     # Under GNU Hurd, this test is not required because there is
5658     # no limit to the length of command line arguments.
5659     # Libtool will interpret -1 as no limit whatsoever
5660     lt_cv_sys_max_cmd_len=-1;
5661     ;;
5662
5663   cygwin* | mingw* | cegcc*)
5664     # On Win9x/ME, this test blows up -- it succeeds, but takes
5665     # about 5 minutes as the teststring grows exponentially.
5666     # Worse, since 9x/ME are not pre-emptively multitasking,
5667     # you end up with a "frozen" computer, even though with patience
5668     # the test eventually succeeds (with a max line length of 256k).
5669     # Instead, let's just punt: use the minimum linelength reported by
5670     # all of the supported platforms: 8192 (on NT/2K/XP).
5671     lt_cv_sys_max_cmd_len=8192;
5672     ;;
5673
5674   mint*)
5675     # On MiNT this can take a long time and run out of memory.
5676     lt_cv_sys_max_cmd_len=8192;
5677     ;;
5678
5679   amigaos*)
5680     # On AmigaOS with pdksh, this test takes hours, literally.
5681     # So we just punt and use a minimum line length of 8192.
5682     lt_cv_sys_max_cmd_len=8192;
5683     ;;
5684
5685   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5686     # This has been around since 386BSD, at least.  Likely further.
5687     if test -x /sbin/sysctl; then
5688       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5689     elif test -x /usr/sbin/sysctl; then
5690       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5691     else
5692       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5693     fi
5694     # And add a safety zone
5695     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5696     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5697     ;;
5698
5699   interix*)
5700     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5701     lt_cv_sys_max_cmd_len=196608
5702     ;;
5703
5704   os2*)
5705     # The test takes a long time on OS/2.
5706     lt_cv_sys_max_cmd_len=8192
5707     ;;
5708
5709   osf*)
5710     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5711     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5712     # nice to cause kernel panics so lets avoid the loop below.
5713     # First set a reasonable default.
5714     lt_cv_sys_max_cmd_len=16384
5715     #
5716     if test -x /sbin/sysconfig; then
5717       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5718         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5719       esac
5720     fi
5721     ;;
5722   sco3.2v5*)
5723     lt_cv_sys_max_cmd_len=102400
5724     ;;
5725   sysv5* | sco5v6* | sysv4.2uw2*)
5726     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5727     if test -n "$kargmax"; then
5728       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5729     else
5730       lt_cv_sys_max_cmd_len=32768
5731     fi
5732     ;;
5733   *)
5734     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5735     if test -n "$lt_cv_sys_max_cmd_len" && \
5736         test undefined != "$lt_cv_sys_max_cmd_len"; then
5737       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5738       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5739     else
5740       # Make teststring a little bigger before we do anything with it.
5741       # a 1K string should be a reasonable start.
5742       for i in 1 2 3 4 5 6 7 8 ; do
5743         teststring=$teststring$teststring
5744       done
5745       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5746       # If test is not a shell built-in, we'll probably end up computing a
5747       # maximum length that is only half of the actual maximum length, but
5748       # we can't tell.
5749       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5750                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5751               test $i != 17 # 1/2 MB should be enough
5752       do
5753         i=`expr $i + 1`
5754         teststring=$teststring$teststring
5755       done
5756       # Only check the string length outside the loop.
5757       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5758       teststring=
5759       # Add a significant safety factor because C++ compilers can tack on
5760       # massive amounts of additional arguments before passing them to the
5761       # linker.  It appears as though 1/2 is a usable value.
5762       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5763     fi
5764     ;;
5765   esac
5766
5767 fi
5768
5769 if test -n $lt_cv_sys_max_cmd_len ; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5771 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5774 $as_echo "none" >&6; }
5775 fi
5776 max_cmd_len=$lt_cv_sys_max_cmd_len
5777
5778
5779
5780
5781
5782
5783 : ${CP="cp -f"}
5784 : ${MV="mv -f"}
5785 : ${RM="rm -f"}
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5788 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5789 # Try some XSI features
5790 xsi_shell=no
5791 ( _lt_dummy="a/b/c"
5792   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5793       = c,a/b,b/c, \
5794     && eval 'test $(( 1 + 1 )) -eq 2 \
5795     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5796   && xsi_shell=yes
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5798 $as_echo "$xsi_shell" >&6; }
5799
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5802 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5803 lt_shell_append=no
5804 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5805     >/dev/null 2>&1 \
5806   && lt_shell_append=yes
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5808 $as_echo "$lt_shell_append" >&6; }
5809
5810
5811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5812   lt_unset=unset
5813 else
5814   lt_unset=false
5815 fi
5816
5817
5818
5819
5820
5821 # test EBCDIC or ASCII
5822 case `echo X|tr X '\101'` in
5823  A) # ASCII based system
5824     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5825   lt_SP2NL='tr \040 \012'
5826   lt_NL2SP='tr \015\012 \040\040'
5827   ;;
5828  *) # EBCDIC based system
5829   lt_SP2NL='tr \100 \n'
5830   lt_NL2SP='tr \r\n \100\100'
5831   ;;
5832 esac
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5843 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5844 if ${lt_cv_to_host_file_cmd+:} false; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   case $host in
5848   *-*-mingw* )
5849     case $build in
5850       *-*-mingw* ) # actually msys
5851         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5852         ;;
5853       *-*-cygwin* )
5854         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5855         ;;
5856       * ) # otherwise, assume *nix
5857         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5858         ;;
5859     esac
5860     ;;
5861   *-*-cygwin* )
5862     case $build in
5863       *-*-mingw* ) # actually msys
5864         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5865         ;;
5866       *-*-cygwin* )
5867         lt_cv_to_host_file_cmd=func_convert_file_noop
5868         ;;
5869       * ) # otherwise, assume *nix
5870         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5871         ;;
5872     esac
5873     ;;
5874   * ) # unhandled hosts (and "normal" native builds)
5875     lt_cv_to_host_file_cmd=func_convert_file_noop
5876     ;;
5877 esac
5878
5879 fi
5880
5881 to_host_file_cmd=$lt_cv_to_host_file_cmd
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5883 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5884
5885
5886
5887
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5890 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5891 if ${lt_cv_to_tool_file_cmd+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   #assume ordinary cross tools, or native build.
5895 lt_cv_to_tool_file_cmd=func_convert_file_noop
5896 case $host in
5897   *-*-mingw* )
5898     case $build in
5899       *-*-mingw* ) # actually msys
5900         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5901         ;;
5902     esac
5903     ;;
5904 esac
5905
5906 fi
5907
5908 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5910 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5911
5912
5913
5914
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5917 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5918 if ${lt_cv_ld_reload_flag+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   lt_cv_ld_reload_flag='-r'
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5924 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5925 reload_flag=$lt_cv_ld_reload_flag
5926 case $reload_flag in
5927 "" | " "*) ;;
5928 *) reload_flag=" $reload_flag" ;;
5929 esac
5930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5931 case $host_os in
5932   cygwin* | mingw* | pw32* | cegcc*)
5933     if test "$GCC" != yes; then
5934       reload_cmds=false
5935     fi
5936     ;;
5937   darwin*)
5938     if test "$GCC" = yes; then
5939       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5940     else
5941       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5942     fi
5943     ;;
5944 esac
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_OBJDUMP+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$OBJDUMP"; then
5963   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 OBJDUMP=$ac_cv_prog_OBJDUMP
5983 if test -n "$OBJDUMP"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5985 $as_echo "$OBJDUMP" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_OBJDUMP"; then
5994   ac_ct_OBJDUMP=$OBJDUMP
5995   # Extract the first word of "objdump", so it can be a program name with args.
5996 set dummy objdump; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if test -n "$ac_ct_OBJDUMP"; then
6003   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6023 if test -n "$ac_ct_OBJDUMP"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6025 $as_echo "$ac_ct_OBJDUMP" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031   if test "x$ac_ct_OBJDUMP" = x; then
6032     OBJDUMP="false"
6033   else
6034     case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040     OBJDUMP=$ac_ct_OBJDUMP
6041   fi
6042 else
6043   OBJDUMP="$ac_cv_prog_OBJDUMP"
6044 fi
6045
6046 test -z "$OBJDUMP" && OBJDUMP=objdump
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6057 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6058 if ${lt_cv_deplibs_check_method+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   lt_cv_file_magic_cmd='$MAGIC_CMD'
6062 lt_cv_file_magic_test_file=
6063 lt_cv_deplibs_check_method='unknown'
6064 # Need to set the preceding variable on all platforms that support
6065 # interlibrary dependencies.
6066 # 'none' -- dependencies not supported.
6067 # `unknown' -- same as none, but documents that we really don't know.
6068 # 'pass_all' -- all dependencies passed with no checks.
6069 # 'test_compile' -- check by making test program.
6070 # 'file_magic [[regex]]' -- check by looking for files in library path
6071 # which responds to the $file_magic_cmd with a given extended regex.
6072 # If you have `file' or equivalent on your system and you're not sure
6073 # whether `pass_all' will *always* work, you probably want this one.
6074
6075 case $host_os in
6076 aix[4-9]*)
6077   lt_cv_deplibs_check_method=pass_all
6078   ;;
6079
6080 beos*)
6081   lt_cv_deplibs_check_method=pass_all
6082   ;;
6083
6084 bsdi[45]*)
6085   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6086   lt_cv_file_magic_cmd='/usr/bin/file -L'
6087   lt_cv_file_magic_test_file=/shlib/libc.so
6088   ;;
6089
6090 cygwin*)
6091   # func_win32_libid is a shell function defined in ltmain.sh
6092   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6093   lt_cv_file_magic_cmd='func_win32_libid'
6094   ;;
6095
6096 mingw* | pw32*)
6097   # Base MSYS/MinGW do not provide the 'file' command needed by
6098   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6099   # unless we find 'file', for example because we are cross-compiling.
6100   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6101   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6102     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103     lt_cv_file_magic_cmd='func_win32_libid'
6104   else
6105     # Keep this pattern in sync with the one in func_win32_libid.
6106     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6107     lt_cv_file_magic_cmd='$OBJDUMP -f'
6108   fi
6109   ;;
6110
6111 cegcc*)
6112   # use the weaker test based on 'objdump'. See mingw*.
6113   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6114   lt_cv_file_magic_cmd='$OBJDUMP -f'
6115   ;;
6116
6117 darwin* | rhapsody*)
6118   lt_cv_deplibs_check_method=pass_all
6119   ;;
6120
6121 freebsd* | dragonfly*)
6122   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6123     case $host_cpu in
6124     i*86 )
6125       # Not sure whether the presence of OpenBSD here was a mistake.
6126       # Let's accept both of them until this is cleared up.
6127       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6128       lt_cv_file_magic_cmd=/usr/bin/file
6129       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6130       ;;
6131     esac
6132   else
6133     lt_cv_deplibs_check_method=pass_all
6134   fi
6135   ;;
6136
6137 haiku*)
6138   lt_cv_deplibs_check_method=pass_all
6139   ;;
6140
6141 hpux10.20* | hpux11*)
6142   lt_cv_file_magic_cmd=/usr/bin/file
6143   case $host_cpu in
6144   ia64*)
6145     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6146     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6147     ;;
6148   hppa*64*)
6149     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]'
6150     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6151     ;;
6152   *)
6153     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6154     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6155     ;;
6156   esac
6157   ;;
6158
6159 interix[3-9]*)
6160   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6161   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6162   ;;
6163
6164 irix5* | irix6* | nonstopux*)
6165   case $LD in
6166   *-32|*"-32 ") libmagic=32-bit;;
6167   *-n32|*"-n32 ") libmagic=N32;;
6168   *-64|*"-64 ") libmagic=64-bit;;
6169   *) libmagic=never-match;;
6170   esac
6171   lt_cv_deplibs_check_method=pass_all
6172   ;;
6173
6174 # This must be glibc/ELF.
6175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6176   lt_cv_deplibs_check_method=pass_all
6177   ;;
6178
6179 netbsd* | netbsdelf*-gnu)
6180   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6181     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6182   else
6183     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6184   fi
6185   ;;
6186
6187 newos6*)
6188   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6189   lt_cv_file_magic_cmd=/usr/bin/file
6190   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6191   ;;
6192
6193 *nto* | *qnx*)
6194   lt_cv_deplibs_check_method=pass_all
6195   ;;
6196
6197 openbsd*)
6198   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6200   else
6201     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6202   fi
6203   ;;
6204
6205 osf3* | osf4* | osf5*)
6206   lt_cv_deplibs_check_method=pass_all
6207   ;;
6208
6209 rdos*)
6210   lt_cv_deplibs_check_method=pass_all
6211   ;;
6212
6213 solaris*)
6214   lt_cv_deplibs_check_method=pass_all
6215   ;;
6216
6217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6218   lt_cv_deplibs_check_method=pass_all
6219   ;;
6220
6221 sysv4 | sysv4.3*)
6222   case $host_vendor in
6223   motorola)
6224     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]'
6225     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6226     ;;
6227   ncr)
6228     lt_cv_deplibs_check_method=pass_all
6229     ;;
6230   sequent)
6231     lt_cv_file_magic_cmd='/bin/file'
6232     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6233     ;;
6234   sni)
6235     lt_cv_file_magic_cmd='/bin/file'
6236     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6237     lt_cv_file_magic_test_file=/lib/libc.so
6238     ;;
6239   siemens)
6240     lt_cv_deplibs_check_method=pass_all
6241     ;;
6242   pc)
6243     lt_cv_deplibs_check_method=pass_all
6244     ;;
6245   esac
6246   ;;
6247
6248 tpf*)
6249   lt_cv_deplibs_check_method=pass_all
6250   ;;
6251 esac
6252
6253 fi
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6255 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6256
6257 file_magic_glob=
6258 want_nocaseglob=no
6259 if test "$build" = "$host"; then
6260   case $host_os in
6261   mingw* | pw32*)
6262     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6263       want_nocaseglob=yes
6264     else
6265       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6266     fi
6267     ;;
6268   esac
6269 fi
6270
6271 file_magic_cmd=$lt_cv_file_magic_cmd
6272 deplibs_check_method=$lt_cv_deplibs_check_method
6273 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 if test -n "$ac_tool_prefix"; then
6297   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_prog_DLLTOOL+:} false; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304   if test -n "$DLLTOOL"; then
6305   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312     for ac_exec_ext in '' $ac_executable_extensions; do
6313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319   done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 DLLTOOL=$ac_cv_prog_DLLTOOL
6325 if test -n "$DLLTOOL"; then
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6327 $as_echo "$DLLTOOL" >&6; }
6328 else
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_DLLTOOL"; then
6336   ac_ct_DLLTOOL=$DLLTOOL
6337   # Extract the first word of "dlltool", so it can be a program name with args.
6338 set dummy dlltool; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   if test -n "$ac_ct_DLLTOOL"; then
6345   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350   IFS=$as_save_IFS
6351   test -z "$as_dir" && as_dir=.
6352     for ac_exec_ext in '' $ac_executable_extensions; do
6353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356     break 2
6357   fi
6358 done
6359   done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6365 if test -n "$ac_ct_DLLTOOL"; then
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6367 $as_echo "$ac_ct_DLLTOOL" >&6; }
6368 else
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373   if test "x$ac_ct_DLLTOOL" = x; then
6374     DLLTOOL="false"
6375   else
6376     case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382     DLLTOOL=$ac_ct_DLLTOOL
6383   fi
6384 else
6385   DLLTOOL="$ac_cv_prog_DLLTOOL"
6386 fi
6387
6388 test -z "$DLLTOOL" && DLLTOOL=dlltool
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6400 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6401 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   lt_cv_sharedlib_from_linklib_cmd='unknown'
6405
6406 case $host_os in
6407 cygwin* | mingw* | pw32* | cegcc*)
6408   # two different shell functions defined in ltmain.sh
6409   # decide which to use based on capabilities of $DLLTOOL
6410   case `$DLLTOOL --help 2>&1` in
6411   *--identify-strict*)
6412     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6413     ;;
6414   *)
6415     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6416     ;;
6417   esac
6418   ;;
6419 *)
6420   # fallback: assume linklib IS sharedlib
6421   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6422   ;;
6423 esac
6424
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6427 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6428 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6429 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6430
6431
6432
6433
6434
6435
6436
6437 if test -n "$ac_tool_prefix"; then
6438   for ac_prog in ar
6439   do
6440     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_AR+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$AR"; then
6448   ac_cv_prog_AR="$AR" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 AR=$ac_cv_prog_AR
6468 if test -n "$AR"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6470 $as_echo "$AR" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477     test -n "$AR" && break
6478   done
6479 fi
6480 if test -z "$AR"; then
6481   ac_ct_AR=$AR
6482   for ac_prog in ar
6483 do
6484   # Extract the first word of "$ac_prog", so it can be a program name with args.
6485 set dummy $ac_prog; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   if test -n "$ac_ct_AR"; then
6492   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_prog_ac_ct_AR="$ac_prog"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6512 if test -n "$ac_ct_AR"; then
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6514 $as_echo "$ac_ct_AR" >&6; }
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520
6521   test -n "$ac_ct_AR" && break
6522 done
6523
6524   if test "x$ac_ct_AR" = x; then
6525     AR="false"
6526   else
6527     case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533     AR=$ac_ct_AR
6534   fi
6535 fi
6536
6537 : ${AR=ar}
6538 : ${AR_FLAGS=cru}
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6551 $as_echo_n "checking for archiver @FILE support... " >&6; }
6552 if ${lt_cv_ar_at_file+:} false; then :
6553   $as_echo_n "(cached) " >&6
6554 else
6555   lt_cv_ar_at_file=no
6556    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h.  */
6558
6559 int
6560 main ()
6561 {
6562
6563   ;
6564   return 0;
6565 }
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568   echo conftest.$ac_objext > conftest.lst
6569       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6570       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6571   (eval $lt_ar_try) 2>&5
6572   ac_status=$?
6573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574   test $ac_status = 0; }
6575       if test "$ac_status" -eq 0; then
6576         # Ensure the archiver fails upon bogus file names.
6577         rm -f conftest.$ac_objext libconftest.a
6578         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6579   (eval $lt_ar_try) 2>&5
6580   ac_status=$?
6581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582   test $ac_status = 0; }
6583         if test "$ac_status" -ne 0; then
6584           lt_cv_ar_at_file=@
6585         fi
6586       fi
6587       rm -f conftest.* libconftest.a
6588
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6594 $as_echo "$lt_cv_ar_at_file" >&6; }
6595
6596 if test "x$lt_cv_ar_at_file" = xno; then
6597   archiver_list_spec=
6598 else
6599   archiver_list_spec=$lt_cv_ar_at_file
6600 fi
6601
6602
6603
6604
6605
6606
6607
6608 if test -n "$ac_tool_prefix"; then
6609   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}strip; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_STRIP+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$STRIP"; then
6617   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 STRIP=$ac_cv_prog_STRIP
6637 if test -n "$STRIP"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6639 $as_echo "$STRIP" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646 fi
6647 if test -z "$ac_cv_prog_STRIP"; then
6648   ac_ct_STRIP=$STRIP
6649   # Extract the first word of "strip", so it can be a program name with args.
6650 set dummy strip; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   if test -n "$ac_ct_STRIP"; then
6657   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664     for ac_exec_ext in '' $ac_executable_extensions; do
6665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666     ac_cv_prog_ac_ct_STRIP="strip"
6667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671   done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6677 if test -n "$ac_ct_STRIP"; then
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6679 $as_echo "$ac_ct_STRIP" >&6; }
6680 else
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685   if test "x$ac_ct_STRIP" = x; then
6686     STRIP=":"
6687   else
6688     case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694     STRIP=$ac_ct_STRIP
6695   fi
6696 else
6697   STRIP="$ac_cv_prog_STRIP"
6698 fi
6699
6700 test -z "$STRIP" && STRIP=:
6701
6702
6703
6704
6705
6706
6707 if test -n "$ac_tool_prefix"; then
6708   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_RANLIB+:} false; then :
6713   $as_echo_n "(cached) " >&6
6714 else
6715   if test -n "$RANLIB"; then
6716   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723     for ac_exec_ext in '' $ac_executable_extensions; do
6724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730   done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 RANLIB=$ac_cv_prog_RANLIB
6736 if test -n "$RANLIB"; then
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6738 $as_echo "$RANLIB" >&6; }
6739 else
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_RANLIB"; then
6747   ac_ct_RANLIB=$RANLIB
6748   # Extract the first word of "ranlib", so it can be a program name with args.
6749 set dummy ranlib; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   if test -n "$ac_ct_RANLIB"; then
6756   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765     ac_cv_prog_ac_ct_RANLIB="ranlib"
6766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6776 if test -n "$ac_ct_RANLIB"; then
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6778 $as_echo "$ac_ct_RANLIB" >&6; }
6779 else
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784   if test "x$ac_ct_RANLIB" = x; then
6785     RANLIB=":"
6786   else
6787     case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793     RANLIB=$ac_ct_RANLIB
6794   fi
6795 else
6796   RANLIB="$ac_cv_prog_RANLIB"
6797 fi
6798
6799 test -z "$RANLIB" && RANLIB=:
6800
6801
6802
6803
6804
6805
6806 # Determine commands to create old-style static archives.
6807 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6808 old_postinstall_cmds='chmod 644 $oldlib'
6809 old_postuninstall_cmds=
6810
6811 if test -n "$RANLIB"; then
6812   case $host_os in
6813   openbsd*)
6814     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6815     ;;
6816   *)
6817     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6818     ;;
6819   esac
6820   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6821 fi
6822
6823 case $host_os in
6824   darwin*)
6825     lock_old_archive_extraction=yes ;;
6826   *)
6827     lock_old_archive_extraction=no ;;
6828 esac
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 # If no C compiler was specified, use CC.
6869 LTCC=${LTCC-"$CC"}
6870
6871 # If no C compiler flags were specified, use CFLAGS.
6872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6873
6874 # Allow CC to be a program name with arguments.
6875 compiler=$CC
6876
6877
6878 # Check for command to grab the raw symbol name followed by C symbol from nm.
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6880 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6881 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884
6885 # These are sane defaults that work on at least a few old systems.
6886 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6887
6888 # Character class describing NM global symbol codes.
6889 symcode='[BCDEGRST]'
6890
6891 # Regexp to match symbols that can be accessed directly from C.
6892 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6893
6894 # Define system-specific variables.
6895 case $host_os in
6896 aix*)
6897   symcode='[BCDT]'
6898   ;;
6899 cygwin* | mingw* | pw32* | cegcc*)
6900   symcode='[ABCDGISTW]'
6901   ;;
6902 hpux*)
6903   if test "$host_cpu" = ia64; then
6904     symcode='[ABCDEGRST]'
6905   fi
6906   ;;
6907 irix* | nonstopux*)
6908   symcode='[BCDEGRST]'
6909   ;;
6910 osf*)
6911   symcode='[BCDEGQRST]'
6912   ;;
6913 solaris*)
6914   symcode='[BDRT]'
6915   ;;
6916 sco3.2v5*)
6917   symcode='[DT]'
6918   ;;
6919 sysv4.2uw2*)
6920   symcode='[DT]'
6921   ;;
6922 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6923   symcode='[ABDT]'
6924   ;;
6925 sysv4)
6926   symcode='[DFNSTU]'
6927   ;;
6928 esac
6929
6930 # If we're using GNU nm, then use its standard symbol codes.
6931 case `$NM -V 2>&1` in
6932 *GNU* | *'with BFD'*)
6933   symcode='[ABCDGIRSTW]' ;;
6934 esac
6935
6936 # Transform an extracted symbol line into a proper C declaration.
6937 # Some systems (esp. on ia64) link data and code symbols differently,
6938 # so use this general approach.
6939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6940
6941 # Transform an extracted symbol line into symbol name and symbol address
6942 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6943 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'"
6944
6945 # Handle CRLF in mingw tool chain
6946 opt_cr=
6947 case $build_os in
6948 mingw*)
6949   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6950   ;;
6951 esac
6952
6953 # Try without a prefix underscore, then with it.
6954 for ac_symprfx in "" "_"; do
6955
6956   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957   symxfrm="\\1 $ac_symprfx\\2 \\2"
6958
6959   # Write the raw and C identifiers.
6960   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6961     # Fake it for dumpbin and say T for any non-static function
6962     # and D for any global variable.
6963     # Also find C++ and __fastcall symbols from MSVC++,
6964     # which start with @ or ?.
6965     lt_cv_sys_global_symbol_pipe="$AWK '"\
6966 "     {last_section=section; section=\$ 3};"\
6967 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6968 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6969 "     \$ 0!~/External *\|/{next};"\
6970 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6971 "     {if(hide[section]) next};"\
6972 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6973 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6974 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6975 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6976 "     ' prfx=^$ac_symprfx"
6977   else
6978     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6979   fi
6980   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6981
6982   # Check to see that the pipe works correctly.
6983   pipe_works=no
6984
6985   rm -f conftest*
6986   cat > conftest.$ac_ext <<_LT_EOF
6987 #ifdef __cplusplus
6988 extern "C" {
6989 #endif
6990 char nm_test_var;
6991 void nm_test_func(void);
6992 void nm_test_func(void){}
6993 #ifdef __cplusplus
6994 }
6995 #endif
6996 int main(){nm_test_var='a';nm_test_func();return(0);}
6997 _LT_EOF
6998
6999   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000   (eval $ac_compile) 2>&5
7001   ac_status=$?
7002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003   test $ac_status = 0; }; then
7004     # Now try to grab the symbols.
7005     nlist=conftest.nm
7006     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7007   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7008   ac_status=$?
7009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010   test $ac_status = 0; } && test -s "$nlist"; then
7011       # Try sorting and uniquifying the output.
7012       if sort "$nlist" | uniq > "$nlist"T; then
7013         mv -f "$nlist"T "$nlist"
7014       else
7015         rm -f "$nlist"T
7016       fi
7017
7018       # Make sure that we snagged all the symbols we need.
7019       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7020         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7021           cat <<_LT_EOF > conftest.$ac_ext
7022 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7023 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7024 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7025    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7026 # define LT_DLSYM_CONST
7027 #elif defined(__osf__)
7028 /* This system does not cope well with relocations in const data.  */
7029 # define LT_DLSYM_CONST
7030 #else
7031 # define LT_DLSYM_CONST const
7032 #endif
7033
7034 #ifdef __cplusplus
7035 extern "C" {
7036 #endif
7037
7038 _LT_EOF
7039           # Now generate the symbol file.
7040           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7041
7042           cat <<_LT_EOF >> conftest.$ac_ext
7043
7044 /* The mapping between symbol names and symbols.  */
7045 LT_DLSYM_CONST struct {
7046   const char *name;
7047   void       *address;
7048 }
7049 lt__PROGRAM__LTX_preloaded_symbols[] =
7050 {
7051   { "@PROGRAM@", (void *) 0 },
7052 _LT_EOF
7053           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7054           cat <<\_LT_EOF >> conftest.$ac_ext
7055   {0, (void *) 0}
7056 };
7057
7058 /* This works around a problem in FreeBSD linker */
7059 #ifdef FREEBSD_WORKAROUND
7060 static const void *lt_preloaded_setup() {
7061   return lt__PROGRAM__LTX_preloaded_symbols;
7062 }
7063 #endif
7064
7065 #ifdef __cplusplus
7066 }
7067 #endif
7068 _LT_EOF
7069           # Now try linking the two files.
7070           mv conftest.$ac_objext conftstm.$ac_objext
7071           lt_globsym_save_LIBS=$LIBS
7072           lt_globsym_save_CFLAGS=$CFLAGS
7073           LIBS="conftstm.$ac_objext"
7074           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7075           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7076   (eval $ac_link) 2>&5
7077   ac_status=$?
7078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7080             pipe_works=yes
7081           fi
7082           LIBS=$lt_globsym_save_LIBS
7083           CFLAGS=$lt_globsym_save_CFLAGS
7084         else
7085           echo "cannot find nm_test_func in $nlist" >&5
7086         fi
7087       else
7088         echo "cannot find nm_test_var in $nlist" >&5
7089       fi
7090     else
7091       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7092     fi
7093   else
7094     echo "$progname: failed program was:" >&5
7095     cat conftest.$ac_ext >&5
7096   fi
7097   rm -rf conftest* conftst*
7098
7099   # Do not use the global_symbol_pipe unless it works.
7100   if test "$pipe_works" = yes; then
7101     break
7102   else
7103     lt_cv_sys_global_symbol_pipe=
7104   fi
7105 done
7106
7107 fi
7108
7109 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7110   lt_cv_sys_global_symbol_to_cdecl=
7111 fi
7112 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7114 $as_echo "failed" >&6; }
7115 else
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7117 $as_echo "ok" >&6; }
7118 fi
7119
7120 # Response file support.
7121 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7122   nm_file_list_spec='@'
7123 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7124   nm_file_list_spec='@'
7125 fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7154 $as_echo_n "checking for sysroot... " >&6; }
7155
7156 # Check whether --with-sysroot was given.
7157 if test "${with_sysroot+set}" = set; then :
7158   withval=$with_sysroot;
7159 else
7160   with_sysroot=no
7161 fi
7162
7163
7164 lt_sysroot=
7165 case ${with_sysroot} in #(
7166  yes)
7167    if test "$GCC" = yes; then
7168      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7169    fi
7170    ;; #(
7171  /*)
7172    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7173    ;; #(
7174  no|'')
7175    ;; #(
7176  *)
7177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7178 $as_echo "${with_sysroot}" >&6; }
7179    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7180    ;;
7181 esac
7182
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7184 $as_echo "${lt_sysroot:-no}" >&6; }
7185
7186
7187
7188
7189
7190 # Check whether --enable-libtool-lock was given.
7191 if test "${enable_libtool_lock+set}" = set; then :
7192   enableval=$enable_libtool_lock;
7193 fi
7194
7195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7196
7197 # Some flags need to be propagated to the compiler or linker for good
7198 # libtool support.
7199 case $host in
7200 ia64-*-hpux*)
7201   # Find out which ABI we are using.
7202   echo 'int i;' > conftest.$ac_ext
7203   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204   (eval $ac_compile) 2>&5
7205   ac_status=$?
7206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207   test $ac_status = 0; }; then
7208     case `/usr/bin/file conftest.$ac_objext` in
7209       *ELF-32*)
7210         HPUX_IA64_MODE="32"
7211         ;;
7212       *ELF-64*)
7213         HPUX_IA64_MODE="64"
7214         ;;
7215     esac
7216   fi
7217   rm -rf conftest*
7218   ;;
7219 *-*-irix6*)
7220   # Find out which ABI we are using.
7221   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223   (eval $ac_compile) 2>&5
7224   ac_status=$?
7225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226   test $ac_status = 0; }; then
7227     if test "$lt_cv_prog_gnu_ld" = yes; then
7228       case `/usr/bin/file conftest.$ac_objext` in
7229         *32-bit*)
7230           LD="${LD-ld} -melf32bsmip"
7231           ;;
7232         *N32*)
7233           LD="${LD-ld} -melf32bmipn32"
7234           ;;
7235         *64-bit*)
7236           LD="${LD-ld} -melf64bmip"
7237         ;;
7238       esac
7239     else
7240       case `/usr/bin/file conftest.$ac_objext` in
7241         *32-bit*)
7242           LD="${LD-ld} -32"
7243           ;;
7244         *N32*)
7245           LD="${LD-ld} -n32"
7246           ;;
7247         *64-bit*)
7248           LD="${LD-ld} -64"
7249           ;;
7250       esac
7251     fi
7252   fi
7253   rm -rf conftest*
7254   ;;
7255
7256 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7257 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7258   # Find out which ABI we are using.
7259   echo 'int i;' > conftest.$ac_ext
7260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7261   (eval $ac_compile) 2>&5
7262   ac_status=$?
7263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7264   test $ac_status = 0; }; then
7265     case `/usr/bin/file conftest.o` in
7266       *32-bit*)
7267         case $host in
7268           x86_64-*kfreebsd*-gnu)
7269             LD="${LD-ld} -m elf_i386_fbsd"
7270             ;;
7271           x86_64-*linux*)
7272             case `/usr/bin/file conftest.o` in
7273               *x86-64*)
7274                 LD="${LD-ld} -m elf32_x86_64"
7275                 ;;
7276               *)
7277                 LD="${LD-ld} -m elf_i386"
7278                 ;;
7279             esac
7280             ;;
7281           powerpc64le-*)
7282             LD="${LD-ld} -m elf32lppclinux"
7283             ;;
7284           powerpc64-*)
7285             LD="${LD-ld} -m elf32ppclinux"
7286             ;;
7287           s390x-*linux*)
7288             LD="${LD-ld} -m elf_s390"
7289             ;;
7290           sparc64-*linux*)
7291             LD="${LD-ld} -m elf32_sparc"
7292             ;;
7293         esac
7294         ;;
7295       *64-bit*)
7296         case $host in
7297           x86_64-*kfreebsd*-gnu)
7298             LD="${LD-ld} -m elf_x86_64_fbsd"
7299             ;;
7300           x86_64-*linux*)
7301             LD="${LD-ld} -m elf_x86_64"
7302             ;;
7303           powerpcle-*)
7304             LD="${LD-ld} -m elf64lppc"
7305             ;;
7306           powerpc-*)
7307             LD="${LD-ld} -m elf64ppc"
7308             ;;
7309           s390*-*linux*|s390*-*tpf*)
7310             LD="${LD-ld} -m elf64_s390"
7311             ;;
7312           sparc*-*linux*)
7313             LD="${LD-ld} -m elf64_sparc"
7314             ;;
7315         esac
7316         ;;
7317     esac
7318   fi
7319   rm -rf conftest*
7320   ;;
7321
7322 *-*-sco3.2v5*)
7323   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7324   SAVE_CFLAGS="$CFLAGS"
7325   CFLAGS="$CFLAGS -belf"
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7327 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7328 if ${lt_cv_cc_needs_belf+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   ac_ext=c
7332 ac_cpp='$CPP $CPPFLAGS'
7333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336
7337      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h.  */
7339
7340 int
7341 main ()
7342 {
7343
7344   ;
7345   return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_c_try_link "$LINENO"; then :
7349   lt_cv_cc_needs_belf=yes
7350 else
7351   lt_cv_cc_needs_belf=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext \
7354     conftest$ac_exeext conftest.$ac_ext
7355      ac_ext=c
7356 ac_cpp='$CPP $CPPFLAGS'
7357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7363 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7364   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7365     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7366     CFLAGS="$SAVE_CFLAGS"
7367   fi
7368   ;;
7369 *-*solaris*)
7370   # Find out which ABI we are using.
7371   echo 'int i;' > conftest.$ac_ext
7372   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7373   (eval $ac_compile) 2>&5
7374   ac_status=$?
7375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7376   test $ac_status = 0; }; then
7377     case `/usr/bin/file conftest.o` in
7378     *64-bit*)
7379       case $lt_cv_prog_gnu_ld in
7380       yes*)
7381         case $host in
7382         i?86-*-solaris*)
7383           LD="${LD-ld} -m elf_x86_64"
7384           ;;
7385         sparc*-*-solaris*)
7386           LD="${LD-ld} -m elf64_sparc"
7387           ;;
7388         esac
7389         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7390         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7391           LD="${LD-ld}_sol2"
7392         fi
7393         ;;
7394       *)
7395         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7396           LD="${LD-ld} -64"
7397         fi
7398         ;;
7399       esac
7400       ;;
7401     esac
7402   fi
7403   rm -rf conftest*
7404   ;;
7405 esac
7406
7407 need_locks="$enable_libtool_lock"
7408
7409 if test -n "$ac_tool_prefix"; then
7410   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}mt; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   if test -n "$MANIFEST_TOOL"; then
7418   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7438 if test -n "$MANIFEST_TOOL"; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7440 $as_echo "$MANIFEST_TOOL" >&6; }
7441 else
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446
7447 fi
7448 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7449   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7450   # Extract the first word of "mt", so it can be a program name with args.
7451 set dummy mt; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   if test -n "$ac_ct_MANIFEST_TOOL"; then
7458   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465     for ac_exec_ext in '' $ac_executable_extensions; do
7466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472   done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7478 if test -n "$ac_ct_MANIFEST_TOOL"; then
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7480 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7481 else
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7487     MANIFEST_TOOL=":"
7488   else
7489     case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7494 esac
7495     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7496   fi
7497 else
7498   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7499 fi
7500
7501 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7503 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7504 if ${lt_cv_path_mainfest_tool+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   lt_cv_path_mainfest_tool=no
7508   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7509   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7510   cat conftest.err >&5
7511   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7512     lt_cv_path_mainfest_tool=yes
7513   fi
7514   rm -f conftest*
7515 fi
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7517 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7518 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7519   MANIFEST_TOOL=:
7520 fi
7521
7522
7523
7524
7525
7526
7527   case $host_os in
7528     rhapsody* | darwin*)
7529     if test -n "$ac_tool_prefix"; then
7530   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7531 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   if test -n "$DSYMUTIL"; then
7538   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545     for ac_exec_ext in '' $ac_executable_extensions; do
7546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552   done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7558 if test -n "$DSYMUTIL"; then
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7560 $as_echo "$DSYMUTIL" >&6; }
7561 else
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565
7566
7567 fi
7568 if test -z "$ac_cv_prog_DSYMUTIL"; then
7569   ac_ct_DSYMUTIL=$DSYMUTIL
7570   # Extract the first word of "dsymutil", so it can be a program name with args.
7571 set dummy dsymutil; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   if test -n "$ac_ct_DSYMUTIL"; then
7578   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585     for ac_exec_ext in '' $ac_executable_extensions; do
7586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592   done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7598 if test -n "$ac_ct_DSYMUTIL"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7600 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606   if test "x$ac_ct_DSYMUTIL" = x; then
7607     DSYMUTIL=":"
7608   else
7609     case $cross_compiling:$ac_tool_warned in
7610 yes:)
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613 ac_tool_warned=yes ;;
7614 esac
7615     DSYMUTIL=$ac_ct_DSYMUTIL
7616   fi
7617 else
7618   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7619 fi
7620
7621     if test -n "$ac_tool_prefix"; then
7622   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7623 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_prog_NMEDIT+:} false; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629   if test -n "$NMEDIT"; then
7630   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637     for ac_exec_ext in '' $ac_executable_extensions; do
7638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644   done
7645 IFS=$as_save_IFS
7646
7647 fi
7648 fi
7649 NMEDIT=$ac_cv_prog_NMEDIT
7650 if test -n "$NMEDIT"; then
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7652 $as_echo "$NMEDIT" >&6; }
7653 else
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7656 fi
7657
7658
7659 fi
7660 if test -z "$ac_cv_prog_NMEDIT"; then
7661   ac_ct_NMEDIT=$NMEDIT
7662   # Extract the first word of "nmedit", so it can be a program name with args.
7663 set dummy nmedit; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   if test -n "$ac_ct_NMEDIT"; then
7670   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677     for ac_exec_ext in '' $ac_executable_extensions; do
7678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684   done
7685 IFS=$as_save_IFS
7686
7687 fi
7688 fi
7689 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7690 if test -n "$ac_ct_NMEDIT"; then
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7692 $as_echo "$ac_ct_NMEDIT" >&6; }
7693 else
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697
7698   if test "x$ac_ct_NMEDIT" = x; then
7699     NMEDIT=":"
7700   else
7701     case $cross_compiling:$ac_tool_warned in
7702 yes:)
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7705 ac_tool_warned=yes ;;
7706 esac
7707     NMEDIT=$ac_ct_NMEDIT
7708   fi
7709 else
7710   NMEDIT="$ac_cv_prog_NMEDIT"
7711 fi
7712
7713     if test -n "$ac_tool_prefix"; then
7714   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7715 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if ${ac_cv_prog_LIPO+:} false; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721   if test -n "$LIPO"; then
7722   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729     for ac_exec_ext in '' $ac_executable_extensions; do
7730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736   done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 LIPO=$ac_cv_prog_LIPO
7742 if test -n "$LIPO"; then
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7744 $as_echo "$LIPO" >&6; }
7745 else
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750
7751 fi
7752 if test -z "$ac_cv_prog_LIPO"; then
7753   ac_ct_LIPO=$LIPO
7754   # Extract the first word of "lipo", so it can be a program name with args.
7755 set dummy lipo; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   if test -n "$ac_ct_LIPO"; then
7762   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767   IFS=$as_save_IFS
7768   test -z "$as_dir" && as_dir=.
7769     for ac_exec_ext in '' $ac_executable_extensions; do
7770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771     ac_cv_prog_ac_ct_LIPO="lipo"
7772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773     break 2
7774   fi
7775 done
7776   done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7782 if test -n "$ac_ct_LIPO"; then
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7784 $as_echo "$ac_ct_LIPO" >&6; }
7785 else
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789
7790   if test "x$ac_ct_LIPO" = x; then
7791     LIPO=":"
7792   else
7793     case $cross_compiling:$ac_tool_warned in
7794 yes:)
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797 ac_tool_warned=yes ;;
7798 esac
7799     LIPO=$ac_ct_LIPO
7800   fi
7801 else
7802   LIPO="$ac_cv_prog_LIPO"
7803 fi
7804
7805     if test -n "$ac_tool_prefix"; then
7806   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7807 set dummy ${ac_tool_prefix}otool; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if ${ac_cv_prog_OTOOL+:} false; then :
7811   $as_echo_n "(cached) " >&6
7812 else
7813   if test -n "$OTOOL"; then
7814   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819   IFS=$as_save_IFS
7820   test -z "$as_dir" && as_dir=.
7821     for ac_exec_ext in '' $ac_executable_extensions; do
7822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825     break 2
7826   fi
7827 done
7828   done
7829 IFS=$as_save_IFS
7830
7831 fi
7832 fi
7833 OTOOL=$ac_cv_prog_OTOOL
7834 if test -n "$OTOOL"; then
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7836 $as_echo "$OTOOL" >&6; }
7837 else
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841
7842
7843 fi
7844 if test -z "$ac_cv_prog_OTOOL"; then
7845   ac_ct_OTOOL=$OTOOL
7846   # Extract the first word of "otool", so it can be a program name with args.
7847 set dummy otool; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   if test -n "$ac_ct_OTOOL"; then
7854   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7858 do
7859   IFS=$as_save_IFS
7860   test -z "$as_dir" && as_dir=.
7861     for ac_exec_ext in '' $ac_executable_extensions; do
7862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863     ac_cv_prog_ac_ct_OTOOL="otool"
7864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865     break 2
7866   fi
7867 done
7868   done
7869 IFS=$as_save_IFS
7870
7871 fi
7872 fi
7873 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7874 if test -n "$ac_ct_OTOOL"; then
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7876 $as_echo "$ac_ct_OTOOL" >&6; }
7877 else
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7880 fi
7881
7882   if test "x$ac_ct_OTOOL" = x; then
7883     OTOOL=":"
7884   else
7885     case $cross_compiling:$ac_tool_warned in
7886 yes:)
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889 ac_tool_warned=yes ;;
7890 esac
7891     OTOOL=$ac_ct_OTOOL
7892   fi
7893 else
7894   OTOOL="$ac_cv_prog_OTOOL"
7895 fi
7896
7897     if test -n "$ac_tool_prefix"; then
7898   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7899 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_prog_OTOOL64+:} false; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   if test -n "$OTOOL64"; then
7906   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913     for ac_exec_ext in '' $ac_executable_extensions; do
7914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917     break 2
7918   fi
7919 done
7920   done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 OTOOL64=$ac_cv_prog_OTOOL64
7926 if test -n "$OTOOL64"; then
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7928 $as_echo "$OTOOL64" >&6; }
7929 else
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933
7934
7935 fi
7936 if test -z "$ac_cv_prog_OTOOL64"; then
7937   ac_ct_OTOOL64=$OTOOL64
7938   # Extract the first word of "otool64", so it can be a program name with args.
7939 set dummy otool64; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7943   $as_echo_n "(cached) " >&6
7944 else
7945   if test -n "$ac_ct_OTOOL64"; then
7946   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953     for ac_exec_ext in '' $ac_executable_extensions; do
7954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955     ac_cv_prog_ac_ct_OTOOL64="otool64"
7956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960   done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7966 if test -n "$ac_ct_OTOOL64"; then
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7968 $as_echo "$ac_ct_OTOOL64" >&6; }
7969 else
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974   if test "x$ac_ct_OTOOL64" = x; then
7975     OTOOL64=":"
7976   else
7977     case $cross_compiling:$ac_tool_warned in
7978 yes:)
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7982 esac
7983     OTOOL64=$ac_ct_OTOOL64
7984   fi
7985 else
7986   OTOOL64="$ac_cv_prog_OTOOL64"
7987 fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8016 $as_echo_n "checking for -single_module linker flag... " >&6; }
8017 if ${lt_cv_apple_cc_single_mod+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   lt_cv_apple_cc_single_mod=no
8021       if test -z "${LT_MULTI_MODULE}"; then
8022         # By default we will add the -single_module flag. You can override
8023         # by either setting the environment variable LT_MULTI_MODULE
8024         # non-empty at configure time, or by adding -multi_module to the
8025         # link flags.
8026         rm -rf libconftest.dylib*
8027         echo "int foo(void){return 1;}" > conftest.c
8028         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8029 -dynamiclib -Wl,-single_module conftest.c" >&5
8030         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8031           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8032         _lt_result=$?
8033         # If there is a non-empty error log, and "single_module"
8034         # appears in it, assume the flag caused a linker warning
8035         if test -s conftest.err && $GREP single_module conftest.err; then
8036           cat conftest.err >&5
8037         # Otherwise, if the output was created with a 0 exit code from
8038         # the compiler, it worked.
8039         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8040           lt_cv_apple_cc_single_mod=yes
8041         else
8042           cat conftest.err >&5
8043         fi
8044         rm -rf libconftest.dylib*
8045         rm -f conftest.*
8046       fi
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8049 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8050
8051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8052 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8053 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   lt_cv_ld_exported_symbols_list=no
8057       save_LDFLAGS=$LDFLAGS
8058       echo "_main" > conftest.sym
8059       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h.  */
8062
8063 int
8064 main ()
8065 {
8066
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072   lt_cv_ld_exported_symbols_list=yes
8073 else
8074   lt_cv_ld_exported_symbols_list=no
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext \
8077     conftest$ac_exeext conftest.$ac_ext
8078         LDFLAGS="$save_LDFLAGS"
8079
8080 fi
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8082 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8083
8084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8085 $as_echo_n "checking for -force_load linker flag... " >&6; }
8086 if ${lt_cv_ld_force_load+:} false; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089   lt_cv_ld_force_load=no
8090       cat > conftest.c << _LT_EOF
8091 int forced_loaded() { return 2;}
8092 _LT_EOF
8093       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8094       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8095       echo "$AR cru libconftest.a conftest.o" >&5
8096       $AR cru libconftest.a conftest.o 2>&5
8097       echo "$RANLIB libconftest.a" >&5
8098       $RANLIB libconftest.a 2>&5
8099       cat > conftest.c << _LT_EOF
8100 int main() { return 0;}
8101 _LT_EOF
8102       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8103       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8104       _lt_result=$?
8105       if test -s conftest.err && $GREP force_load conftest.err; then
8106         cat conftest.err >&5
8107       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8108         lt_cv_ld_force_load=yes
8109       else
8110         cat conftest.err >&5
8111       fi
8112         rm -f conftest.err libconftest.a conftest conftest.c
8113         rm -rf conftest.dSYM
8114
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8117 $as_echo "$lt_cv_ld_force_load" >&6; }
8118     case $host_os in
8119     rhapsody* | darwin1.[012])
8120       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8121     darwin1.*)
8122       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8123     darwin*) # darwin 5.x on
8124       # if running on 10.5 or later, the deployment target defaults
8125       # to the OS version, if on x86, and 10.4, the deployment
8126       # target defaults to 10.4. Don't you love it?
8127       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8128         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8129           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130         10.[012]*)
8131           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8132         10.*)
8133           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8134       esac
8135     ;;
8136   esac
8137     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8138       _lt_dar_single_mod='$single_module'
8139     fi
8140     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8141       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8142     else
8143       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8144     fi
8145     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8146       _lt_dsymutil='~$DSYMUTIL $lib || :'
8147     else
8148       _lt_dsymutil=
8149     fi
8150     ;;
8151   esac
8152
8153 ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8159 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8160 # On Suns, sometimes $CPP names a directory.
8161 if test -n "$CPP" && test -d "$CPP"; then
8162   CPP=
8163 fi
8164 if test -z "$CPP"; then
8165   if ${ac_cv_prog_CPP+:} false; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168       # Double quotes because CPP needs to be expanded
8169     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8170     do
8171       ac_preproc_ok=false
8172 for ac_c_preproc_warn_flag in '' yes
8173 do
8174   # Use a header file that comes with gcc, so configuring glibc
8175   # with a fresh cross-compiler works.
8176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177   # <limits.h> exists even on freestanding compilers.
8178   # On the NeXT, cc -E runs the code through the compiler's parser,
8179   # not just through cpp. "Syntax error" is here to catch this case.
8180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h.  */
8182 #ifdef __STDC__
8183 # include <limits.h>
8184 #else
8185 # include <assert.h>
8186 #endif
8187                      Syntax error
8188 _ACEOF
8189 if ac_fn_c_try_cpp "$LINENO"; then :
8190
8191 else
8192   # Broken: fails on valid input.
8193 continue
8194 fi
8195 rm -f conftest.err conftest.i conftest.$ac_ext
8196
8197   # OK, works on sane cases.  Now check whether nonexistent headers
8198   # can be detected and how.
8199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h.  */
8201 #include <ac_nonexistent.h>
8202 _ACEOF
8203 if ac_fn_c_try_cpp "$LINENO"; then :
8204   # Broken: success on invalid input.
8205 continue
8206 else
8207   # Passes both tests.
8208 ac_preproc_ok=:
8209 break
8210 fi
8211 rm -f conftest.err conftest.i conftest.$ac_ext
8212
8213 done
8214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8215 rm -f conftest.i conftest.err conftest.$ac_ext
8216 if $ac_preproc_ok; then :
8217   break
8218 fi
8219
8220     done
8221     ac_cv_prog_CPP=$CPP
8222
8223 fi
8224   CPP=$ac_cv_prog_CPP
8225 else
8226   ac_cv_prog_CPP=$CPP
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8229 $as_echo "$CPP" >&6; }
8230 ac_preproc_ok=false
8231 for ac_c_preproc_warn_flag in '' yes
8232 do
8233   # Use a header file that comes with gcc, so configuring glibc
8234   # with a fresh cross-compiler works.
8235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236   # <limits.h> exists even on freestanding compilers.
8237   # On the NeXT, cc -E runs the code through the compiler's parser,
8238   # not just through cpp. "Syntax error" is here to catch this case.
8239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h.  */
8241 #ifdef __STDC__
8242 # include <limits.h>
8243 #else
8244 # include <assert.h>
8245 #endif
8246                      Syntax error
8247 _ACEOF
8248 if ac_fn_c_try_cpp "$LINENO"; then :
8249
8250 else
8251   # Broken: fails on valid input.
8252 continue
8253 fi
8254 rm -f conftest.err conftest.i conftest.$ac_ext
8255
8256   # OK, works on sane cases.  Now check whether nonexistent headers
8257   # can be detected and how.
8258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260 #include <ac_nonexistent.h>
8261 _ACEOF
8262 if ac_fn_c_try_cpp "$LINENO"; then :
8263   # Broken: success on invalid input.
8264 continue
8265 else
8266   # Passes both tests.
8267 ac_preproc_ok=:
8268 break
8269 fi
8270 rm -f conftest.err conftest.i conftest.$ac_ext
8271
8272 done
8273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8274 rm -f conftest.i conftest.err conftest.$ac_ext
8275 if $ac_preproc_ok; then :
8276
8277 else
8278   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8280 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8281 See \`config.log' for more details" "$LINENO" 5; }
8282 fi
8283
8284 ac_ext=c
8285 ac_cpp='$CPP $CPPFLAGS'
8286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8289
8290
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8292 $as_echo_n "checking for ANSI C header files... " >&6; }
8293 if ${ac_cv_header_stdc+:} false; then :
8294   $as_echo_n "(cached) " >&6
8295 else
8296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h.  */
8298 #include <stdlib.h>
8299 #include <stdarg.h>
8300 #include <string.h>
8301 #include <float.h>
8302
8303 int
8304 main ()
8305 {
8306
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312   ac_cv_header_stdc=yes
8313 else
8314   ac_cv_header_stdc=no
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317
8318 if test $ac_cv_header_stdc = yes; then
8319   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h.  */
8322 #include <string.h>
8323
8324 _ACEOF
8325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8326   $EGREP "memchr" >/dev/null 2>&1; then :
8327
8328 else
8329   ac_cv_header_stdc=no
8330 fi
8331 rm -f conftest*
8332
8333 fi
8334
8335 if test $ac_cv_header_stdc = yes; then
8336   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h.  */
8339 #include <stdlib.h>
8340
8341 _ACEOF
8342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8343   $EGREP "free" >/dev/null 2>&1; then :
8344
8345 else
8346   ac_cv_header_stdc=no
8347 fi
8348 rm -f conftest*
8349
8350 fi
8351
8352 if test $ac_cv_header_stdc = yes; then
8353   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8354   if test "$cross_compiling" = yes; then :
8355   :
8356 else
8357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h.  */
8359 #include <ctype.h>
8360 #include <stdlib.h>
8361 #if ((' ' & 0x0FF) == 0x020)
8362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8364 #else
8365 # define ISLOWER(c) \
8366                    (('a' <= (c) && (c) <= 'i') \
8367                      || ('j' <= (c) && (c) <= 'r') \
8368                      || ('s' <= (c) && (c) <= 'z'))
8369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8370 #endif
8371
8372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8373 int
8374 main ()
8375 {
8376   int i;
8377   for (i = 0; i < 256; i++)
8378     if (XOR (islower (i), ISLOWER (i))
8379         || toupper (i) != TOUPPER (i))
8380       return 2;
8381   return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_run "$LINENO"; then :
8385
8386 else
8387   ac_cv_header_stdc=no
8388 fi
8389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8390   conftest.$ac_objext conftest.beam conftest.$ac_ext
8391 fi
8392
8393 fi
8394 fi
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8396 $as_echo "$ac_cv_header_stdc" >&6; }
8397 if test $ac_cv_header_stdc = yes; then
8398
8399 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8400
8401 fi
8402
8403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8405                   inttypes.h stdint.h unistd.h
8406 do :
8407   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8409 "
8410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8411   cat >>confdefs.h <<_ACEOF
8412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8413 _ACEOF
8414
8415 fi
8416
8417 done
8418
8419
8420 for ac_header in dlfcn.h
8421 do :
8422   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8423 "
8424 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8425   cat >>confdefs.h <<_ACEOF
8426 #define HAVE_DLFCN_H 1
8427 _ACEOF
8428
8429 fi
8430
8431 done
8432
8433
8434
8435
8436
8437 # Set options
8438 # Check whether --enable-static was given.
8439 if test "${enable_static+set}" = set; then :
8440   enableval=$enable_static; p=${PACKAGE-default}
8441     case $enableval in
8442     yes) enable_static=yes ;;
8443     no) enable_static=no ;;
8444     *)
8445      enable_static=no
8446       # Look at the argument we got.  We use all the common list separators.
8447       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8448       for pkg in $enableval; do
8449         IFS="$lt_save_ifs"
8450         if test "X$pkg" = "X$p"; then
8451           enable_static=yes
8452         fi
8453       done
8454       IFS="$lt_save_ifs"
8455       ;;
8456     esac
8457 else
8458   enable_static=no
8459 fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470         enable_dlopen=no
8471
8472
8473   enable_win32_dll=no
8474
8475
8476             # Check whether --enable-shared was given.
8477 if test "${enable_shared+set}" = set; then :
8478   enableval=$enable_shared; p=${PACKAGE-default}
8479     case $enableval in
8480     yes) enable_shared=yes ;;
8481     no) enable_shared=no ;;
8482     *)
8483       enable_shared=no
8484       # Look at the argument we got.  We use all the common list separators.
8485       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8486       for pkg in $enableval; do
8487         IFS="$lt_save_ifs"
8488         if test "X$pkg" = "X$p"; then
8489           enable_shared=yes
8490         fi
8491       done
8492       IFS="$lt_save_ifs"
8493       ;;
8494     esac
8495 else
8496   enable_shared=yes
8497 fi
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509 # Check whether --with-pic was given.
8510 if test "${with_pic+set}" = set; then :
8511   withval=$with_pic; lt_p=${PACKAGE-default}
8512     case $withval in
8513     yes|no) pic_mode=$withval ;;
8514     *)
8515       pic_mode=default
8516       # Look at the argument we got.  We use all the common list separators.
8517       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8518       for lt_pkg in $withval; do
8519         IFS="$lt_save_ifs"
8520         if test "X$lt_pkg" = "X$lt_p"; then
8521           pic_mode=yes
8522         fi
8523       done
8524       IFS="$lt_save_ifs"
8525       ;;
8526     esac
8527 else
8528   pic_mode=default
8529 fi
8530
8531
8532 test -z "$pic_mode" && pic_mode=default
8533
8534
8535
8536
8537
8538
8539
8540   # Check whether --enable-fast-install was given.
8541 if test "${enable_fast_install+set}" = set; then :
8542   enableval=$enable_fast_install; p=${PACKAGE-default}
8543     case $enableval in
8544     yes) enable_fast_install=yes ;;
8545     no) enable_fast_install=no ;;
8546     *)
8547       enable_fast_install=no
8548       # Look at the argument we got.  We use all the common list separators.
8549       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8550       for pkg in $enableval; do
8551         IFS="$lt_save_ifs"
8552         if test "X$pkg" = "X$p"; then
8553           enable_fast_install=yes
8554         fi
8555       done
8556       IFS="$lt_save_ifs"
8557       ;;
8558     esac
8559 else
8560   enable_fast_install=yes
8561 fi
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573 # This can be used to rebuild libtool when needed
8574 LIBTOOL_DEPS="$ltmain"
8575
8576 # Always use our own libtool.
8577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608 test -z "$LN_S" && LN_S="ln -s"
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623 if test -n "${ZSH_VERSION+set}" ; then
8624    setopt NO_GLOB_SUBST
8625 fi
8626
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8628 $as_echo_n "checking for objdir... " >&6; }
8629 if ${lt_cv_objdir+:} false; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   rm -f .libs 2>/dev/null
8633 mkdir .libs 2>/dev/null
8634 if test -d .libs; then
8635   lt_cv_objdir=.libs
8636 else
8637   # MS-DOS does not allow filenames that begin with a dot.
8638   lt_cv_objdir=_libs
8639 fi
8640 rmdir .libs 2>/dev/null
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8643 $as_echo "$lt_cv_objdir" >&6; }
8644 objdir=$lt_cv_objdir
8645
8646
8647
8648
8649
8650 cat >>confdefs.h <<_ACEOF
8651 #define LT_OBJDIR "$lt_cv_objdir/"
8652 _ACEOF
8653
8654
8655
8656
8657 case $host_os in
8658 aix3*)
8659   # AIX sometimes has problems with the GCC collect2 program.  For some
8660   # reason, if we set the COLLECT_NAMES environment variable, the problems
8661   # vanish in a puff of smoke.
8662   if test "X${COLLECT_NAMES+set}" != Xset; then
8663     COLLECT_NAMES=
8664     export COLLECT_NAMES
8665   fi
8666   ;;
8667 esac
8668
8669 # Global variables:
8670 ofile=libtool
8671 can_build_shared=yes
8672
8673 # All known linkers require a `.a' archive for static linking (except MSVC,
8674 # which needs '.lib').
8675 libext=a
8676
8677 with_gnu_ld="$lt_cv_prog_gnu_ld"
8678
8679 old_CC="$CC"
8680 old_CFLAGS="$CFLAGS"
8681
8682 # Set sane defaults for various variables
8683 test -z "$CC" && CC=cc
8684 test -z "$LTCC" && LTCC=$CC
8685 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8686 test -z "$LD" && LD=ld
8687 test -z "$ac_objext" && ac_objext=o
8688
8689 for cc_temp in $compiler""; do
8690   case $cc_temp in
8691     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8692     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8693     \-*) ;;
8694     *) break;;
8695   esac
8696 done
8697 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8698
8699
8700 # Only perform the check for file, if the check method requires it
8701 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8702 case $deplibs_check_method in
8703 file_magic*)
8704   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8706 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8707 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   case $MAGIC_CMD in
8711 [\\/*] |  ?:[\\/]*)
8712   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8713   ;;
8714 *)
8715   lt_save_MAGIC_CMD="$MAGIC_CMD"
8716   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8717   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8718   for ac_dir in $ac_dummy; do
8719     IFS="$lt_save_ifs"
8720     test -z "$ac_dir" && ac_dir=.
8721     if test -f $ac_dir/${ac_tool_prefix}file; then
8722       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8723       if test -n "$file_magic_test_file"; then
8724         case $deplibs_check_method in
8725         "file_magic "*)
8726           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8727           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8728           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8729             $EGREP "$file_magic_regex" > /dev/null; then
8730             :
8731           else
8732             cat <<_LT_EOF 1>&2
8733
8734 *** Warning: the command libtool uses to detect shared libraries,
8735 *** $file_magic_cmd, produces output that libtool cannot recognize.
8736 *** The result is that libtool may fail to recognize shared libraries
8737 *** as such.  This will affect the creation of libtool libraries that
8738 *** depend on shared libraries, but programs linked with such libtool
8739 *** libraries will work regardless of this problem.  Nevertheless, you
8740 *** may want to report the problem to your system manager and/or to
8741 *** bug-libtool@gnu.org
8742
8743 _LT_EOF
8744           fi ;;
8745         esac
8746       fi
8747       break
8748     fi
8749   done
8750   IFS="$lt_save_ifs"
8751   MAGIC_CMD="$lt_save_MAGIC_CMD"
8752   ;;
8753 esac
8754 fi
8755
8756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8757 if test -n "$MAGIC_CMD"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8759 $as_echo "$MAGIC_CMD" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764
8765
8766
8767
8768
8769 if test -z "$lt_cv_path_MAGIC_CMD"; then
8770   if test -n "$ac_tool_prefix"; then
8771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8772 $as_echo_n "checking for file... " >&6; }
8773 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8774   $as_echo_n "(cached) " >&6
8775 else
8776   case $MAGIC_CMD in
8777 [\\/*] |  ?:[\\/]*)
8778   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8779   ;;
8780 *)
8781   lt_save_MAGIC_CMD="$MAGIC_CMD"
8782   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8783   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8784   for ac_dir in $ac_dummy; do
8785     IFS="$lt_save_ifs"
8786     test -z "$ac_dir" && ac_dir=.
8787     if test -f $ac_dir/file; then
8788       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8789       if test -n "$file_magic_test_file"; then
8790         case $deplibs_check_method in
8791         "file_magic "*)
8792           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8793           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8794           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8795             $EGREP "$file_magic_regex" > /dev/null; then
8796             :
8797           else
8798             cat <<_LT_EOF 1>&2
8799
8800 *** Warning: the command libtool uses to detect shared libraries,
8801 *** $file_magic_cmd, produces output that libtool cannot recognize.
8802 *** The result is that libtool may fail to recognize shared libraries
8803 *** as such.  This will affect the creation of libtool libraries that
8804 *** depend on shared libraries, but programs linked with such libtool
8805 *** libraries will work regardless of this problem.  Nevertheless, you
8806 *** may want to report the problem to your system manager and/or to
8807 *** bug-libtool@gnu.org
8808
8809 _LT_EOF
8810           fi ;;
8811         esac
8812       fi
8813       break
8814     fi
8815   done
8816   IFS="$lt_save_ifs"
8817   MAGIC_CMD="$lt_save_MAGIC_CMD"
8818   ;;
8819 esac
8820 fi
8821
8822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8823 if test -n "$MAGIC_CMD"; then
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8825 $as_echo "$MAGIC_CMD" >&6; }
8826 else
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 fi
8830
8831
8832   else
8833     MAGIC_CMD=:
8834   fi
8835 fi
8836
8837   fi
8838   ;;
8839 esac
8840
8841 # Use C for the default configuration in the libtool script
8842
8843 lt_save_CC="$CC"
8844 ac_ext=c
8845 ac_cpp='$CPP $CPPFLAGS'
8846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8849
8850
8851 # Source file extension for C test sources.
8852 ac_ext=c
8853
8854 # Object file extension for compiled C test sources.
8855 objext=o
8856 objext=$objext
8857
8858 # Code to be used in simple compile tests
8859 lt_simple_compile_test_code="int some_variable = 0;"
8860
8861 # Code to be used in simple link tests
8862 lt_simple_link_test_code='int main(){return(0);}'
8863
8864
8865
8866
8867
8868
8869
8870 # If no C compiler was specified, use CC.
8871 LTCC=${LTCC-"$CC"}
8872
8873 # If no C compiler flags were specified, use CFLAGS.
8874 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8875
8876 # Allow CC to be a program name with arguments.
8877 compiler=$CC
8878
8879 # Save the default compiler, since it gets overwritten when the other
8880 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8881 compiler_DEFAULT=$CC
8882
8883 # save warnings/boilerplate of simple test code
8884 ac_outfile=conftest.$ac_objext
8885 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8886 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8887 _lt_compiler_boilerplate=`cat conftest.err`
8888 $RM conftest*
8889
8890 ac_outfile=conftest.$ac_objext
8891 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8892 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8893 _lt_linker_boilerplate=`cat conftest.err`
8894 $RM -r conftest*
8895
8896
8897 ## CAVEAT EMPTOR:
8898 ## There is no encapsulation within the following macros, do not change
8899 ## the running order or otherwise move them around unless you know exactly
8900 ## what you are doing...
8901 if test -n "$compiler"; then
8902
8903 lt_prog_compiler_no_builtin_flag=
8904
8905 if test "$GCC" = yes; then
8906   case $cc_basename in
8907   nvcc*)
8908     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8909   *)
8910     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8911   esac
8912
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8914 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8915 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8916   $as_echo_n "(cached) " >&6
8917 else
8918   lt_cv_prog_compiler_rtti_exceptions=no
8919    ac_outfile=conftest.$ac_objext
8920    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921    lt_compiler_flag="-fno-rtti -fno-exceptions"
8922    # Insert the option either (1) after the last *FLAGS variable, or
8923    # (2) before a word containing "conftest.", or (3) at the end.
8924    # Note that $ac_compile itself does not contain backslashes and begins
8925    # with a dollar sign (not a hyphen), so the echo should work correctly.
8926    # The option is referenced via a variable to avoid confusing sed.
8927    lt_compile=`echo "$ac_compile" | $SED \
8928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930    -e 's:$: $lt_compiler_flag:'`
8931    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932    (eval "$lt_compile" 2>conftest.err)
8933    ac_status=$?
8934    cat conftest.err >&5
8935    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936    if (exit $ac_status) && test -s "$ac_outfile"; then
8937      # The compiler can only warn and ignore the option if not recognized
8938      # So say no if there are warnings other than the usual output.
8939      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8940      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8941      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8942        lt_cv_prog_compiler_rtti_exceptions=yes
8943      fi
8944    fi
8945    $RM conftest*
8946
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8949 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8950
8951 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8952     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8953 else
8954     :
8955 fi
8956
8957 fi
8958
8959
8960
8961
8962
8963
8964   lt_prog_compiler_wl=
8965 lt_prog_compiler_pic=
8966 lt_prog_compiler_static=
8967
8968
8969   if test "$GCC" = yes; then
8970     lt_prog_compiler_wl='-Wl,'
8971     lt_prog_compiler_static='-static'
8972
8973     case $host_os in
8974       aix*)
8975       # All AIX code is PIC.
8976       if test "$host_cpu" = ia64; then
8977         # AIX 5 now supports IA64 processor
8978         lt_prog_compiler_static='-Bstatic'
8979       fi
8980       ;;
8981
8982     amigaos*)
8983       case $host_cpu in
8984       powerpc)
8985             # see comment about AmigaOS4 .so support
8986             lt_prog_compiler_pic='-fPIC'
8987         ;;
8988       m68k)
8989             # FIXME: we need at least 68020 code to build shared libraries, but
8990             # adding the `-m68020' flag to GCC prevents building anything better,
8991             # like `-m68040'.
8992             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8993         ;;
8994       esac
8995       ;;
8996
8997     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8998       # PIC is the default for these OSes.
8999       ;;
9000
9001     mingw* | cygwin* | pw32* | os2* | cegcc*)
9002       # This hack is so that the source file can tell whether it is being
9003       # built for inclusion in a dll (and should export symbols for example).
9004       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9005       # (--disable-auto-import) libraries
9006       lt_prog_compiler_pic='-DDLL_EXPORT'
9007       ;;
9008
9009     darwin* | rhapsody*)
9010       # PIC is the default on this platform
9011       # Common symbols not allowed in MH_DYLIB files
9012       lt_prog_compiler_pic='-fno-common'
9013       ;;
9014
9015     haiku*)
9016       # PIC is the default for Haiku.
9017       # The "-static" flag exists, but is broken.
9018       lt_prog_compiler_static=
9019       ;;
9020
9021     hpux*)
9022       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9023       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9024       # sets the default TLS model and affects inlining.
9025       case $host_cpu in
9026       hppa*64*)
9027         # +Z the default
9028         ;;
9029       *)
9030         lt_prog_compiler_pic='-fPIC'
9031         ;;
9032       esac
9033       ;;
9034
9035     interix[3-9]*)
9036       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9037       # Instead, we relocate shared libraries at runtime.
9038       ;;
9039
9040     msdosdjgpp*)
9041       # Just because we use GCC doesn't mean we suddenly get shared libraries
9042       # on systems that don't support them.
9043       lt_prog_compiler_can_build_shared=no
9044       enable_shared=no
9045       ;;
9046
9047     *nto* | *qnx*)
9048       # QNX uses GNU C++, but need to define -shared option too, otherwise
9049       # it will coredump.
9050       lt_prog_compiler_pic='-fPIC -shared'
9051       ;;
9052
9053     sysv4*MP*)
9054       if test -d /usr/nec; then
9055         lt_prog_compiler_pic=-Kconform_pic
9056       fi
9057       ;;
9058
9059     *)
9060       lt_prog_compiler_pic='-fPIC'
9061       ;;
9062     esac
9063
9064     case $cc_basename in
9065     nvcc*) # Cuda Compiler Driver 2.2
9066       lt_prog_compiler_wl='-Xlinker '
9067       if test -n "$lt_prog_compiler_pic"; then
9068         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9069       fi
9070       ;;
9071     esac
9072   else
9073     # PORTME Check for flag to pass linker flags through the system compiler.
9074     case $host_os in
9075     aix*)
9076       lt_prog_compiler_wl='-Wl,'
9077       if test "$host_cpu" = ia64; then
9078         # AIX 5 now supports IA64 processor
9079         lt_prog_compiler_static='-Bstatic'
9080       else
9081         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9082       fi
9083       ;;
9084
9085     mingw* | cygwin* | pw32* | os2* | cegcc*)
9086       # This hack is so that the source file can tell whether it is being
9087       # built for inclusion in a dll (and should export symbols for example).
9088       lt_prog_compiler_pic='-DDLL_EXPORT'
9089       ;;
9090
9091     hpux9* | hpux10* | hpux11*)
9092       lt_prog_compiler_wl='-Wl,'
9093       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9094       # not for PA HP-UX.
9095       case $host_cpu in
9096       hppa*64*|ia64*)
9097         # +Z the default
9098         ;;
9099       *)
9100         lt_prog_compiler_pic='+Z'
9101         ;;
9102       esac
9103       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9104       lt_prog_compiler_static='${wl}-a ${wl}archive'
9105       ;;
9106
9107     irix5* | irix6* | nonstopux*)
9108       lt_prog_compiler_wl='-Wl,'
9109       # PIC (with -KPIC) is the default.
9110       lt_prog_compiler_static='-non_shared'
9111       ;;
9112
9113     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9114       case $cc_basename in
9115       # old Intel for x86_64 which still supported -KPIC.
9116       ecc*)
9117         lt_prog_compiler_wl='-Wl,'
9118         lt_prog_compiler_pic='-KPIC'
9119         lt_prog_compiler_static='-static'
9120         ;;
9121       # icc used to be incompatible with GCC.
9122       # ICC 10 doesn't accept -KPIC any more.
9123       icc* | ifort*)
9124         lt_prog_compiler_wl='-Wl,'
9125         lt_prog_compiler_pic='-fPIC'
9126         lt_prog_compiler_static='-static'
9127         ;;
9128       # Lahey Fortran 8.1.
9129       lf95*)
9130         lt_prog_compiler_wl='-Wl,'
9131         lt_prog_compiler_pic='--shared'
9132         lt_prog_compiler_static='--static'
9133         ;;
9134       nagfor*)
9135         # NAG Fortran compiler
9136         lt_prog_compiler_wl='-Wl,-Wl,,'
9137         lt_prog_compiler_pic='-PIC'
9138         lt_prog_compiler_static='-Bstatic'
9139         ;;
9140       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9141         # Portland Group compilers (*not* the Pentium gcc compiler,
9142         # which looks to be a dead project)
9143         lt_prog_compiler_wl='-Wl,'
9144         lt_prog_compiler_pic='-fpic'
9145         lt_prog_compiler_static='-Bstatic'
9146         ;;
9147       ccc*)
9148         lt_prog_compiler_wl='-Wl,'
9149         # All Alpha code is PIC.
9150         lt_prog_compiler_static='-non_shared'
9151         ;;
9152       xl* | bgxl* | bgf* | mpixl*)
9153         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9154         lt_prog_compiler_wl='-Wl,'
9155         lt_prog_compiler_pic='-qpic'
9156         lt_prog_compiler_static='-qstaticlink'
9157         ;;
9158       *)
9159         case `$CC -V 2>&1 | sed 5q` in
9160         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9161           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9162           lt_prog_compiler_pic='-KPIC'
9163           lt_prog_compiler_static='-Bstatic'
9164           lt_prog_compiler_wl=''
9165           ;;
9166         *Sun\ F* | *Sun*Fortran*)
9167           lt_prog_compiler_pic='-KPIC'
9168           lt_prog_compiler_static='-Bstatic'
9169           lt_prog_compiler_wl='-Qoption ld '
9170           ;;
9171         *Sun\ C*)
9172           # Sun C 5.9
9173           lt_prog_compiler_pic='-KPIC'
9174           lt_prog_compiler_static='-Bstatic'
9175           lt_prog_compiler_wl='-Wl,'
9176           ;;
9177         *Intel*\ [CF]*Compiler*)
9178           lt_prog_compiler_wl='-Wl,'
9179           lt_prog_compiler_pic='-fPIC'
9180           lt_prog_compiler_static='-static'
9181           ;;
9182         *Portland\ Group*)
9183           lt_prog_compiler_wl='-Wl,'
9184           lt_prog_compiler_pic='-fpic'
9185           lt_prog_compiler_static='-Bstatic'
9186           ;;
9187         esac
9188         ;;
9189       esac
9190       ;;
9191
9192     newsos6)
9193       lt_prog_compiler_pic='-KPIC'
9194       lt_prog_compiler_static='-Bstatic'
9195       ;;
9196
9197     *nto* | *qnx*)
9198       # QNX uses GNU C++, but need to define -shared option too, otherwise
9199       # it will coredump.
9200       lt_prog_compiler_pic='-fPIC -shared'
9201       ;;
9202
9203     osf3* | osf4* | osf5*)
9204       lt_prog_compiler_wl='-Wl,'
9205       # All OSF/1 code is PIC.
9206       lt_prog_compiler_static='-non_shared'
9207       ;;
9208
9209     rdos*)
9210       lt_prog_compiler_static='-non_shared'
9211       ;;
9212
9213     solaris*)
9214       lt_prog_compiler_pic='-KPIC'
9215       lt_prog_compiler_static='-Bstatic'
9216       case $cc_basename in
9217       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9218         lt_prog_compiler_wl='-Qoption ld ';;
9219       *)
9220         lt_prog_compiler_wl='-Wl,';;
9221       esac
9222       ;;
9223
9224     sunos4*)
9225       lt_prog_compiler_wl='-Qoption ld '
9226       lt_prog_compiler_pic='-PIC'
9227       lt_prog_compiler_static='-Bstatic'
9228       ;;
9229
9230     sysv4 | sysv4.2uw2* | sysv4.3*)
9231       lt_prog_compiler_wl='-Wl,'
9232       lt_prog_compiler_pic='-KPIC'
9233       lt_prog_compiler_static='-Bstatic'
9234       ;;
9235
9236     sysv4*MP*)
9237       if test -d /usr/nec ;then
9238         lt_prog_compiler_pic='-Kconform_pic'
9239         lt_prog_compiler_static='-Bstatic'
9240       fi
9241       ;;
9242
9243     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9244       lt_prog_compiler_wl='-Wl,'
9245       lt_prog_compiler_pic='-KPIC'
9246       lt_prog_compiler_static='-Bstatic'
9247       ;;
9248
9249     unicos*)
9250       lt_prog_compiler_wl='-Wl,'
9251       lt_prog_compiler_can_build_shared=no
9252       ;;
9253
9254     uts4*)
9255       lt_prog_compiler_pic='-pic'
9256       lt_prog_compiler_static='-Bstatic'
9257       ;;
9258
9259     *)
9260       lt_prog_compiler_can_build_shared=no
9261       ;;
9262     esac
9263   fi
9264
9265 case $host_os in
9266   # For platforms which do not support PIC, -DPIC is meaningless:
9267   *djgpp*)
9268     lt_prog_compiler_pic=
9269     ;;
9270   *)
9271     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9272     ;;
9273 esac
9274
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9276 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9277 if ${lt_cv_prog_compiler_pic+:} false; then :
9278   $as_echo_n "(cached) " >&6
9279 else
9280   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9283 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9284 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9285
9286 #
9287 # Check to make sure the PIC flag actually works.
9288 #
9289 if test -n "$lt_prog_compiler_pic"; then
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9291 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9292 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   lt_cv_prog_compiler_pic_works=no
9296    ac_outfile=conftest.$ac_objext
9297    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9298    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9299    # Insert the option either (1) after the last *FLAGS variable, or
9300    # (2) before a word containing "conftest.", or (3) at the end.
9301    # Note that $ac_compile itself does not contain backslashes and begins
9302    # with a dollar sign (not a hyphen), so the echo should work correctly.
9303    # The option is referenced via a variable to avoid confusing sed.
9304    lt_compile=`echo "$ac_compile" | $SED \
9305    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9307    -e 's:$: $lt_compiler_flag:'`
9308    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9309    (eval "$lt_compile" 2>conftest.err)
9310    ac_status=$?
9311    cat conftest.err >&5
9312    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313    if (exit $ac_status) && test -s "$ac_outfile"; then
9314      # The compiler can only warn and ignore the option if not recognized
9315      # So say no if there are warnings other than the usual output.
9316      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9317      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9318      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9319        lt_cv_prog_compiler_pic_works=yes
9320      fi
9321    fi
9322    $RM conftest*
9323
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9326 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9327
9328 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9329     case $lt_prog_compiler_pic in
9330      "" | " "*) ;;
9331      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9332      esac
9333 else
9334     lt_prog_compiler_pic=
9335      lt_prog_compiler_can_build_shared=no
9336 fi
9337
9338 fi
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350 #
9351 # Check to make sure the static flag actually works.
9352 #
9353 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9355 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9356 if ${lt_cv_prog_compiler_static_works+:} false; then :
9357   $as_echo_n "(cached) " >&6
9358 else
9359   lt_cv_prog_compiler_static_works=no
9360    save_LDFLAGS="$LDFLAGS"
9361    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9362    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9363    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9364      # The linker can only warn and ignore the option if not recognized
9365      # So say no if there are warnings
9366      if test -s conftest.err; then
9367        # Append any errors to the config.log.
9368        cat conftest.err 1>&5
9369        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9370        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371        if diff conftest.exp conftest.er2 >/dev/null; then
9372          lt_cv_prog_compiler_static_works=yes
9373        fi
9374      else
9375        lt_cv_prog_compiler_static_works=yes
9376      fi
9377    fi
9378    $RM -r conftest*
9379    LDFLAGS="$save_LDFLAGS"
9380
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9383 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9384
9385 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9386     :
9387 else
9388     lt_prog_compiler_static=
9389 fi
9390
9391
9392
9393
9394
9395
9396
9397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9398 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9399 if ${lt_cv_prog_compiler_c_o+:} false; then :
9400   $as_echo_n "(cached) " >&6
9401 else
9402   lt_cv_prog_compiler_c_o=no
9403    $RM -r conftest 2>/dev/null
9404    mkdir conftest
9405    cd conftest
9406    mkdir out
9407    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408
9409    lt_compiler_flag="-o out/conftest2.$ac_objext"
9410    # Insert the option either (1) after the last *FLAGS variable, or
9411    # (2) before a word containing "conftest.", or (3) at the end.
9412    # Note that $ac_compile itself does not contain backslashes and begins
9413    # with a dollar sign (not a hyphen), so the echo should work correctly.
9414    lt_compile=`echo "$ac_compile" | $SED \
9415    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9417    -e 's:$: $lt_compiler_flag:'`
9418    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9419    (eval "$lt_compile" 2>out/conftest.err)
9420    ac_status=$?
9421    cat out/conftest.err >&5
9422    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9424    then
9425      # The compiler can only warn and ignore the option if not recognized
9426      # So say no if there are warnings
9427      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9428      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9429      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9430        lt_cv_prog_compiler_c_o=yes
9431      fi
9432    fi
9433    chmod u+w . 2>&5
9434    $RM conftest*
9435    # SGI C++ compiler will create directory out/ii_files/ for
9436    # template instantiation
9437    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9438    $RM out/* && rmdir out
9439    cd ..
9440    $RM -r conftest
9441    $RM conftest*
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9445 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9446
9447
9448
9449
9450
9451
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9454 if ${lt_cv_prog_compiler_c_o+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   lt_cv_prog_compiler_c_o=no
9458    $RM -r conftest 2>/dev/null
9459    mkdir conftest
9460    cd conftest
9461    mkdir out
9462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463
9464    lt_compiler_flag="-o out/conftest2.$ac_objext"
9465    # Insert the option either (1) after the last *FLAGS variable, or
9466    # (2) before a word containing "conftest.", or (3) at the end.
9467    # Note that $ac_compile itself does not contain backslashes and begins
9468    # with a dollar sign (not a hyphen), so the echo should work correctly.
9469    lt_compile=`echo "$ac_compile" | $SED \
9470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9472    -e 's:$: $lt_compiler_flag:'`
9473    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9474    (eval "$lt_compile" 2>out/conftest.err)
9475    ac_status=$?
9476    cat out/conftest.err >&5
9477    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9479    then
9480      # The compiler can only warn and ignore the option if not recognized
9481      # So say no if there are warnings
9482      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9483      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9484      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9485        lt_cv_prog_compiler_c_o=yes
9486      fi
9487    fi
9488    chmod u+w . 2>&5
9489    $RM conftest*
9490    # SGI C++ compiler will create directory out/ii_files/ for
9491    # template instantiation
9492    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9493    $RM out/* && rmdir out
9494    cd ..
9495    $RM -r conftest
9496    $RM conftest*
9497
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9501
9502
9503
9504
9505 hard_links="nottested"
9506 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9507   # do not overwrite the value of need_locks provided by the user
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9509 $as_echo_n "checking if we can lock with hard links... " >&6; }
9510   hard_links=yes
9511   $RM conftest*
9512   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9513   touch conftest.a
9514   ln conftest.a conftest.b 2>&5 || hard_links=no
9515   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9517 $as_echo "$hard_links" >&6; }
9518   if test "$hard_links" = no; then
9519     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9520 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9521     need_locks=warn
9522   fi
9523 else
9524   need_locks=no
9525 fi
9526
9527
9528
9529
9530
9531
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9533 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9534
9535   runpath_var=
9536   allow_undefined_flag=
9537   always_export_symbols=no
9538   archive_cmds=
9539   archive_expsym_cmds=
9540   compiler_needs_object=no
9541   enable_shared_with_static_runtimes=no
9542   export_dynamic_flag_spec=
9543   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9544   hardcode_automatic=no
9545   hardcode_direct=no
9546   hardcode_direct_absolute=no
9547   hardcode_libdir_flag_spec=
9548   hardcode_libdir_separator=
9549   hardcode_minus_L=no
9550   hardcode_shlibpath_var=unsupported
9551   inherit_rpath=no
9552   link_all_deplibs=unknown
9553   module_cmds=
9554   module_expsym_cmds=
9555   old_archive_from_new_cmds=
9556   old_archive_from_expsyms_cmds=
9557   thread_safe_flag_spec=
9558   whole_archive_flag_spec=
9559   # include_expsyms should be a list of space-separated symbols to be *always*
9560   # included in the symbol list
9561   include_expsyms=
9562   # exclude_expsyms can be an extended regexp of symbols to exclude
9563   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9564   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9565   # as well as any symbol that contains `d'.
9566   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9567   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9568   # platforms (ab)use it in PIC code, but their linkers get confused if
9569   # the symbol is explicitly referenced.  Since portable code cannot
9570   # rely on this symbol name, it's probably fine to never include it in
9571   # preloaded symbol tables.
9572   # Exclude shared library initialization/finalization symbols.
9573   extract_expsyms_cmds=
9574
9575   case $host_os in
9576   cygwin* | mingw* | pw32* | cegcc*)
9577     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9578     # When not using gcc, we currently assume that we are using
9579     # Microsoft Visual C++.
9580     if test "$GCC" != yes; then
9581       with_gnu_ld=no
9582     fi
9583     ;;
9584   interix*)
9585     # we just hope/assume this is gcc and not c89 (= MSVC++)
9586     with_gnu_ld=yes
9587     ;;
9588   openbsd*)
9589     with_gnu_ld=no
9590     ;;
9591   linux* | k*bsd*-gnu | gnu*)
9592     link_all_deplibs=no
9593     ;;
9594   esac
9595
9596   ld_shlibs=yes
9597
9598   # On some targets, GNU ld is compatible enough with the native linker
9599   # that we're better off using the native interface for both.
9600   lt_use_gnu_ld_interface=no
9601   if test "$with_gnu_ld" = yes; then
9602     case $host_os in
9603       aix*)
9604         # The AIX port of GNU ld has always aspired to compatibility
9605         # with the native linker.  However, as the warning in the GNU ld
9606         # block says, versions before 2.19.5* couldn't really create working
9607         # shared libraries, regardless of the interface used.
9608         case `$LD -v 2>&1` in
9609           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9610           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9611           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9612           *)
9613             lt_use_gnu_ld_interface=yes
9614             ;;
9615         esac
9616         ;;
9617       *)
9618         lt_use_gnu_ld_interface=yes
9619         ;;
9620     esac
9621   fi
9622
9623   if test "$lt_use_gnu_ld_interface" = yes; then
9624     # If archive_cmds runs LD, not CC, wlarc should be empty
9625     wlarc='${wl}'
9626
9627     # Set some defaults for GNU ld with shared library support. These
9628     # are reset later if shared libraries are not supported. Putting them
9629     # here allows them to be overridden if necessary.
9630     runpath_var=LD_RUN_PATH
9631     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632     export_dynamic_flag_spec='${wl}--export-dynamic'
9633     # ancient GNU ld didn't support --whole-archive et. al.
9634     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9635       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9636     else
9637       whole_archive_flag_spec=
9638     fi
9639     supports_anon_versioning=no
9640     case `$LD -v 2>&1` in
9641       *GNU\ gold*) supports_anon_versioning=yes ;;
9642       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9643       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9644       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9645       *\ 2.11.*) ;; # other 2.11 versions
9646       *) supports_anon_versioning=yes ;;
9647     esac
9648
9649     # See if GNU ld supports shared libraries.
9650     case $host_os in
9651     aix[3-9]*)
9652       # On AIX/PPC, the GNU linker is very broken
9653       if test "$host_cpu" != ia64; then
9654         ld_shlibs=no
9655         cat <<_LT_EOF 1>&2
9656
9657 *** Warning: the GNU linker, at least up to release 2.19, is reported
9658 *** to be unable to reliably create shared libraries on AIX.
9659 *** Therefore, libtool is disabling shared libraries support.  If you
9660 *** really care for shared libraries, you may want to install binutils
9661 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9662 *** You will then need to restart the configuration process.
9663
9664 _LT_EOF
9665       fi
9666       ;;
9667
9668     amigaos*)
9669       case $host_cpu in
9670       powerpc)
9671             # see comment about AmigaOS4 .so support
9672             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673             archive_expsym_cmds=''
9674         ;;
9675       m68k)
9676             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)'
9677             hardcode_libdir_flag_spec='-L$libdir'
9678             hardcode_minus_L=yes
9679         ;;
9680       esac
9681       ;;
9682
9683     beos*)
9684       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9685         allow_undefined_flag=unsupported
9686         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9687         # support --undefined.  This deserves some investigation.  FIXME
9688         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689       else
9690         ld_shlibs=no
9691       fi
9692       ;;
9693
9694     cygwin* | mingw* | pw32* | cegcc*)
9695       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9696       # as there is no search path for DLLs.
9697       hardcode_libdir_flag_spec='-L$libdir'
9698       export_dynamic_flag_spec='${wl}--export-all-symbols'
9699       allow_undefined_flag=unsupported
9700       always_export_symbols=no
9701       enable_shared_with_static_runtimes=yes
9702       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'
9703       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9704
9705       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9706         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9707         # If the export-symbols file already is a .def file (1st line
9708         # is EXPORTS), use it as is; otherwise, prepend...
9709         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9710           cp $export_symbols $output_objdir/$soname.def;
9711         else
9712           echo EXPORTS > $output_objdir/$soname.def;
9713           cat $export_symbols >> $output_objdir/$soname.def;
9714         fi~
9715         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9716       else
9717         ld_shlibs=no
9718       fi
9719       ;;
9720
9721     haiku*)
9722       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723       link_all_deplibs=yes
9724       ;;
9725
9726     interix[3-9]*)
9727       hardcode_direct=no
9728       hardcode_shlibpath_var=no
9729       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9730       export_dynamic_flag_spec='${wl}-E'
9731       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9732       # Instead, shared libraries are loaded at an image base (0x10000000 by
9733       # default) and relocated if they conflict, which is a slow very memory
9734       # consuming and fragmenting process.  To avoid this, we pick a random,
9735       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9736       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9737       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9738       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'
9739       ;;
9740
9741     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9742       tmp_diet=no
9743       if test "$host_os" = linux-dietlibc; then
9744         case $cc_basename in
9745           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9746         esac
9747       fi
9748       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9749          && test "$tmp_diet" = no
9750       then
9751         tmp_addflag=' $pic_flag'
9752         tmp_sharedflag='-shared'
9753         case $cc_basename,$host_cpu in
9754         pgcc*)                          # Portland Group C compiler
9755           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'
9756           tmp_addflag=' $pic_flag'
9757           ;;
9758         pgf77* | pgf90* | pgf95* | pgfortran*)
9759                                         # Portland Group f77 and f90 compilers
9760           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'
9761           tmp_addflag=' $pic_flag -Mnomain' ;;
9762         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9763           tmp_addflag=' -i_dynamic' ;;
9764         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9765           tmp_addflag=' -i_dynamic -nofor_main' ;;
9766         ifc* | ifort*)                  # Intel Fortran compiler
9767           tmp_addflag=' -nofor_main' ;;
9768         lf95*)                          # Lahey Fortran 8.1
9769           whole_archive_flag_spec=
9770           tmp_sharedflag='--shared' ;;
9771         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9772           tmp_sharedflag='-qmkshrobj'
9773           tmp_addflag= ;;
9774         nvcc*)  # Cuda Compiler Driver 2.2
9775           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'
9776           compiler_needs_object=yes
9777           ;;
9778         esac
9779         case `$CC -V 2>&1 | sed 5q` in
9780         *Sun\ C*)                       # Sun C 5.9
9781           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'
9782           compiler_needs_object=yes
9783           tmp_sharedflag='-G' ;;
9784         *Sun\ F*)                       # Sun Fortran 8.3
9785           tmp_sharedflag='-G' ;;
9786         esac
9787         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788
9789         if test "x$supports_anon_versioning" = xyes; then
9790           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9791             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9792             echo "local: *; };" >> $output_objdir/$libname.ver~
9793             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9794         fi
9795
9796         case $cc_basename in
9797         xlf* | bgf* | bgxlf* | mpixlf*)
9798           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9799           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9800           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9802           if test "x$supports_anon_versioning" = xyes; then
9803             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9804               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9805               echo "local: *; };" >> $output_objdir/$libname.ver~
9806               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9807           fi
9808           ;;
9809         esac
9810       else
9811         ld_shlibs=no
9812       fi
9813       ;;
9814
9815     netbsd* | netbsdelf*-gnu)
9816       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9817         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9818         wlarc=
9819       else
9820         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9822       fi
9823       ;;
9824
9825     solaris*)
9826       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9827         ld_shlibs=no
9828         cat <<_LT_EOF 1>&2
9829
9830 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9831 *** create shared libraries on Solaris systems.  Therefore, libtool
9832 *** is disabling shared libraries support.  We urge you to upgrade GNU
9833 *** binutils to release 2.9.1 or newer.  Another option is to modify
9834 *** your PATH or compiler configuration so that the native linker is
9835 *** used, and then restart.
9836
9837 _LT_EOF
9838       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9839         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9840         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9841       else
9842         ld_shlibs=no
9843       fi
9844       ;;
9845
9846     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9847       case `$LD -v 2>&1` in
9848         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9849         ld_shlibs=no
9850         cat <<_LT_EOF 1>&2
9851
9852 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9853 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9854 *** is disabling shared libraries support.  We urge you to upgrade GNU
9855 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9856 *** your PATH or compiler configuration so that the native linker is
9857 *** used, and then restart.
9858
9859 _LT_EOF
9860         ;;
9861         *)
9862           # For security reasons, it is highly recommended that you always
9863           # use absolute paths for naming shared libraries, and exclude the
9864           # DT_RUNPATH tag from executables and libraries.  But doing so
9865           # requires that you compile everything twice, which is a pain.
9866           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9867             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9868             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870           else
9871             ld_shlibs=no
9872           fi
9873         ;;
9874       esac
9875       ;;
9876
9877     sunos4*)
9878       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9879       wlarc=
9880       hardcode_direct=yes
9881       hardcode_shlibpath_var=no
9882       ;;
9883
9884     *)
9885       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9886         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9887         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9888       else
9889         ld_shlibs=no
9890       fi
9891       ;;
9892     esac
9893
9894     if test "$ld_shlibs" = no; then
9895       runpath_var=
9896       hardcode_libdir_flag_spec=
9897       export_dynamic_flag_spec=
9898       whole_archive_flag_spec=
9899     fi
9900   else
9901     # PORTME fill in a description of your system's linker (not GNU ld)
9902     case $host_os in
9903     aix3*)
9904       allow_undefined_flag=unsupported
9905       always_export_symbols=yes
9906       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'
9907       # Note: this linker hardcodes the directories in LIBPATH if there
9908       # are no directories specified by -L.
9909       hardcode_minus_L=yes
9910       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9911         # Neither direct hardcoding nor static linking is supported with a
9912         # broken collect2.
9913         hardcode_direct=unsupported
9914       fi
9915       ;;
9916
9917     aix[4-9]*)
9918       if test "$host_cpu" = ia64; then
9919         # On IA64, the linker does run time linking by default, so we don't
9920         # have to do anything special.
9921         aix_use_runtimelinking=no
9922         exp_sym_flag='-Bexport'
9923         no_entry_flag=""
9924       else
9925         # If we're using GNU nm, then we don't want the "-C" option.
9926         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9927         # Also, AIX nm treats weak defined symbols like other global
9928         # defined symbols, whereas GNU nm marks them as "W".
9929         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9930           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'
9931         else
9932           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'
9933         fi
9934         aix_use_runtimelinking=no
9935
9936         # Test if we are trying to use run time linking or normal
9937         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9938         # need to do runtime linking.
9939         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9940           for ld_flag in $LDFLAGS; do
9941           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9942             aix_use_runtimelinking=yes
9943             break
9944           fi
9945           done
9946           ;;
9947         esac
9948
9949         exp_sym_flag='-bexport'
9950         no_entry_flag='-bnoentry'
9951       fi
9952
9953       # When large executables or shared objects are built, AIX ld can
9954       # have problems creating the table of contents.  If linking a library
9955       # or program results in "error TOC overflow" add -mminimal-toc to
9956       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9957       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9958
9959       archive_cmds=''
9960       hardcode_direct=yes
9961       hardcode_direct_absolute=yes
9962       hardcode_libdir_separator=':'
9963       link_all_deplibs=yes
9964       file_list_spec='${wl}-f,'
9965
9966       if test "$GCC" = yes; then
9967         case $host_os in aix4.[012]|aix4.[012].*)
9968         # We only want to do this on AIX 4.2 and lower, the check
9969         # below for broken collect2 doesn't work under 4.3+
9970           collect2name=`${CC} -print-prog-name=collect2`
9971           if test -f "$collect2name" &&
9972            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9973           then
9974           # We have reworked collect2
9975           :
9976           else
9977           # We have old collect2
9978           hardcode_direct=unsupported
9979           # It fails to find uninstalled libraries when the uninstalled
9980           # path is not listed in the libpath.  Setting hardcode_minus_L
9981           # to unsupported forces relinking
9982           hardcode_minus_L=yes
9983           hardcode_libdir_flag_spec='-L$libdir'
9984           hardcode_libdir_separator=
9985           fi
9986           ;;
9987         esac
9988         shared_flag='-shared'
9989         if test "$aix_use_runtimelinking" = yes; then
9990           shared_flag="$shared_flag "'${wl}-G'
9991         fi
9992         link_all_deplibs=no
9993       else
9994         # not using gcc
9995         if test "$host_cpu" = ia64; then
9996         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9997         # chokes on -Wl,-G. The following line is correct:
9998           shared_flag='-G'
9999         else
10000           if test "$aix_use_runtimelinking" = yes; then
10001             shared_flag='${wl}-G'
10002           else
10003             shared_flag='${wl}-bM:SRE'
10004           fi
10005         fi
10006       fi
10007
10008       export_dynamic_flag_spec='${wl}-bexpall'
10009       # It seems that -bexpall does not export symbols beginning with
10010       # underscore (_), so it is better to generate a list of symbols to export.
10011       always_export_symbols=yes
10012       if test "$aix_use_runtimelinking" = yes; then
10013         # Warning - without using the other runtime loading flags (-brtl),
10014         # -berok will link without error, but may produce a broken library.
10015         allow_undefined_flag='-berok'
10016         # Determine the default libpath from the value encoded in an
10017         # empty executable.
10018         if test "${lt_cv_aix_libpath+set}" = set; then
10019   aix_libpath=$lt_cv_aix_libpath
10020 else
10021   if ${lt_cv_aix_libpath_+:} false; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h.  */
10026
10027 int
10028 main ()
10029 {
10030
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036
10037   lt_aix_libpath_sed='
10038       /Import File Strings/,/^$/ {
10039           /^0/ {
10040               s/^0  *\([^ ]*\) *$/\1/
10041               p
10042           }
10043       }'
10044   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10045   # Check for a 64-bit object if we didn't find anything.
10046   if test -z "$lt_cv_aix_libpath_"; then
10047     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10048   fi
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext \
10051     conftest$ac_exeext conftest.$ac_ext
10052   if test -z "$lt_cv_aix_libpath_"; then
10053     lt_cv_aix_libpath_="/usr/lib:/lib"
10054   fi
10055
10056 fi
10057
10058   aix_libpath=$lt_cv_aix_libpath_
10059 fi
10060
10061         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10062         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"
10063       else
10064         if test "$host_cpu" = ia64; then
10065           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10066           allow_undefined_flag="-z nodefs"
10067           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"
10068         else
10069          # Determine the default libpath from the value encoded in an
10070          # empty executable.
10071          if test "${lt_cv_aix_libpath+set}" = set; then
10072   aix_libpath=$lt_cv_aix_libpath
10073 else
10074   if ${lt_cv_aix_libpath_+:} false; then :
10075   $as_echo_n "(cached) " >&6
10076 else
10077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h.  */
10079
10080 int
10081 main ()
10082 {
10083
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"; then :
10089
10090   lt_aix_libpath_sed='
10091       /Import File Strings/,/^$/ {
10092           /^0/ {
10093               s/^0  *\([^ ]*\) *$/\1/
10094               p
10095           }
10096       }'
10097   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10098   # Check for a 64-bit object if we didn't find anything.
10099   if test -z "$lt_cv_aix_libpath_"; then
10100     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101   fi
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext \
10104     conftest$ac_exeext conftest.$ac_ext
10105   if test -z "$lt_cv_aix_libpath_"; then
10106     lt_cv_aix_libpath_="/usr/lib:/lib"
10107   fi
10108
10109 fi
10110
10111   aix_libpath=$lt_cv_aix_libpath_
10112 fi
10113
10114          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10115           # Warning - without using the other run time loading flags,
10116           # -berok will link without error, but may produce a broken library.
10117           no_undefined_flag=' ${wl}-bernotok'
10118           allow_undefined_flag=' ${wl}-berok'
10119           if test "$with_gnu_ld" = yes; then
10120             # We only use this code for GNU lds that support --whole-archive.
10121             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10122           else
10123             # Exported symbols can be pulled into shared objects from archives
10124             whole_archive_flag_spec='$convenience'
10125           fi
10126           archive_cmds_need_lc=yes
10127           # This is similar to how AIX traditionally builds its shared libraries.
10128           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'
10129         fi
10130       fi
10131       ;;
10132
10133     amigaos*)
10134       case $host_cpu in
10135       powerpc)
10136             # see comment about AmigaOS4 .so support
10137             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138             archive_expsym_cmds=''
10139         ;;
10140       m68k)
10141             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)'
10142             hardcode_libdir_flag_spec='-L$libdir'
10143             hardcode_minus_L=yes
10144         ;;
10145       esac
10146       ;;
10147
10148     bsdi[45]*)
10149       export_dynamic_flag_spec=-rdynamic
10150       ;;
10151
10152     cygwin* | mingw* | pw32* | cegcc*)
10153       # When not using gcc, we currently assume that we are using
10154       # Microsoft Visual C++.
10155       # hardcode_libdir_flag_spec is actually meaningless, as there is
10156       # no search path for DLLs.
10157       case $cc_basename in
10158       cl*)
10159         # Native MSVC
10160         hardcode_libdir_flag_spec=' '
10161         allow_undefined_flag=unsupported
10162         always_export_symbols=yes
10163         file_list_spec='@'
10164         # Tell ltmain to make .lib files, not .a files.
10165         libext=lib
10166         # Tell ltmain to make .dll files, not .so files.
10167         shrext_cmds=".dll"
10168         # FIXME: Setting linknames here is a bad hack.
10169         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10170         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10171             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10172           else
10173             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10174           fi~
10175           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10176           linknames='
10177         # The linker will not automatically build a static lib if we build a DLL.
10178         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10179         enable_shared_with_static_runtimes=yes
10180         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10181         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10182         # Don't use ranlib
10183         old_postinstall_cmds='chmod 644 $oldlib'
10184         postlink_cmds='lt_outputfile="@OUTPUT@"~
10185           lt_tool_outputfile="@TOOL_OUTPUT@"~
10186           case $lt_outputfile in
10187             *.exe|*.EXE) ;;
10188             *)
10189               lt_outputfile="$lt_outputfile.exe"
10190               lt_tool_outputfile="$lt_tool_outputfile.exe"
10191               ;;
10192           esac~
10193           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10194             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10195             $RM "$lt_outputfile.manifest";
10196           fi'
10197         ;;
10198       *)
10199         # Assume MSVC wrapper
10200         hardcode_libdir_flag_spec=' '
10201         allow_undefined_flag=unsupported
10202         # Tell ltmain to make .lib files, not .a files.
10203         libext=lib
10204         # Tell ltmain to make .dll files, not .so files.
10205         shrext_cmds=".dll"
10206         # FIXME: Setting linknames here is a bad hack.
10207         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10208         # The linker will automatically build a .lib file if we build a DLL.
10209         old_archive_from_new_cmds='true'
10210         # FIXME: Should let the user specify the lib program.
10211         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10212         enable_shared_with_static_runtimes=yes
10213         ;;
10214       esac
10215       ;;
10216
10217     darwin* | rhapsody*)
10218
10219
10220   archive_cmds_need_lc=no
10221   hardcode_direct=no
10222   hardcode_automatic=yes
10223   hardcode_shlibpath_var=unsupported
10224   if test "$lt_cv_ld_force_load" = "yes"; then
10225     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\"`'
10226
10227   else
10228     whole_archive_flag_spec=''
10229   fi
10230   link_all_deplibs=yes
10231   allow_undefined_flag="$_lt_dar_allow_undefined"
10232   case $cc_basename in
10233      ifort*) _lt_dar_can_shared=yes ;;
10234      *) _lt_dar_can_shared=$GCC ;;
10235   esac
10236   if test "$_lt_dar_can_shared" = "yes"; then
10237     output_verbose_link_cmd=func_echo_all
10238     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10239     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10240     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}"
10241     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}"
10242
10243   else
10244   ld_shlibs=no
10245   fi
10246
10247       ;;
10248
10249     dgux*)
10250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10251       hardcode_libdir_flag_spec='-L$libdir'
10252       hardcode_shlibpath_var=no
10253       ;;
10254
10255     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10256     # support.  Future versions do this automatically, but an explicit c++rt0.o
10257     # does not break anything, and helps significantly (at the cost of a little
10258     # extra space).
10259     freebsd2.2*)
10260       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10261       hardcode_libdir_flag_spec='-R$libdir'
10262       hardcode_direct=yes
10263       hardcode_shlibpath_var=no
10264       ;;
10265
10266     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10267     freebsd2.*)
10268       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10269       hardcode_direct=yes
10270       hardcode_minus_L=yes
10271       hardcode_shlibpath_var=no
10272       ;;
10273
10274     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10275     freebsd* | dragonfly*)
10276       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10277       hardcode_libdir_flag_spec='-R$libdir'
10278       hardcode_direct=yes
10279       hardcode_shlibpath_var=no
10280       ;;
10281
10282     hpux9*)
10283       if test "$GCC" = yes; then
10284         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'
10285       else
10286         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'
10287       fi
10288       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10289       hardcode_libdir_separator=:
10290       hardcode_direct=yes
10291
10292       # hardcode_minus_L: Not really in the search PATH,
10293       # but as the default location of the library.
10294       hardcode_minus_L=yes
10295       export_dynamic_flag_spec='${wl}-E'
10296       ;;
10297
10298     hpux10*)
10299       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10300         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10301       else
10302         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10303       fi
10304       if test "$with_gnu_ld" = no; then
10305         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10306         hardcode_libdir_separator=:
10307         hardcode_direct=yes
10308         hardcode_direct_absolute=yes
10309         export_dynamic_flag_spec='${wl}-E'
10310         # hardcode_minus_L: Not really in the search PATH,
10311         # but as the default location of the library.
10312         hardcode_minus_L=yes
10313       fi
10314       ;;
10315
10316     hpux11*)
10317       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10318         case $host_cpu in
10319         hppa*64*)
10320           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321           ;;
10322         ia64*)
10323           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10324           ;;
10325         *)
10326           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10327           ;;
10328         esac
10329       else
10330         case $host_cpu in
10331         hppa*64*)
10332           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10333           ;;
10334         ia64*)
10335           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10336           ;;
10337         *)
10338
10339           # Older versions of the 11.00 compiler do not understand -b yet
10340           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10341           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10342 $as_echo_n "checking if $CC understands -b... " >&6; }
10343 if ${lt_cv_prog_compiler__b+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   lt_cv_prog_compiler__b=no
10347    save_LDFLAGS="$LDFLAGS"
10348    LDFLAGS="$LDFLAGS -b"
10349    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10350    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10351      # The linker can only warn and ignore the option if not recognized
10352      # So say no if there are warnings
10353      if test -s conftest.err; then
10354        # Append any errors to the config.log.
10355        cat conftest.err 1>&5
10356        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10357        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10358        if diff conftest.exp conftest.er2 >/dev/null; then
10359          lt_cv_prog_compiler__b=yes
10360        fi
10361      else
10362        lt_cv_prog_compiler__b=yes
10363      fi
10364    fi
10365    $RM -r conftest*
10366    LDFLAGS="$save_LDFLAGS"
10367
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10370 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10371
10372 if test x"$lt_cv_prog_compiler__b" = xyes; then
10373     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374 else
10375     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10376 fi
10377
10378           ;;
10379         esac
10380       fi
10381       if test "$with_gnu_ld" = no; then
10382         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10383         hardcode_libdir_separator=:
10384
10385         case $host_cpu in
10386         hppa*64*|ia64*)
10387           hardcode_direct=no
10388           hardcode_shlibpath_var=no
10389           ;;
10390         *)
10391           hardcode_direct=yes
10392           hardcode_direct_absolute=yes
10393           export_dynamic_flag_spec='${wl}-E'
10394
10395           # hardcode_minus_L: Not really in the search PATH,
10396           # but as the default location of the library.
10397           hardcode_minus_L=yes
10398           ;;
10399         esac
10400       fi
10401       ;;
10402
10403     irix5* | irix6* | nonstopux*)
10404       if test "$GCC" = yes; then
10405         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'
10406         # Try to use the -exported_symbol ld option, if it does not
10407         # work, assume that -exports_file does not work either and
10408         # implicitly export all symbols.
10409         # This should be the same for all languages, so no per-tag cache variable.
10410         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10411 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10412 if ${lt_cv_irix_exported_symbol+:} false; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   save_LDFLAGS="$LDFLAGS"
10416            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10417            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h.  */
10419 int foo (void) { return 0; }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   lt_cv_irix_exported_symbol=yes
10423 else
10424   lt_cv_irix_exported_symbol=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428            LDFLAGS="$save_LDFLAGS"
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10431 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10432         if test "$lt_cv_irix_exported_symbol" = yes; then
10433           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'
10434         fi
10435       else
10436         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'
10437         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'
10438       fi
10439       archive_cmds_need_lc='no'
10440       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10441       hardcode_libdir_separator=:
10442       inherit_rpath=yes
10443       link_all_deplibs=yes
10444       ;;
10445
10446     netbsd* | netbsdelf*-gnu)
10447       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10448         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10449       else
10450         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10451       fi
10452       hardcode_libdir_flag_spec='-R$libdir'
10453       hardcode_direct=yes
10454       hardcode_shlibpath_var=no
10455       ;;
10456
10457     newsos6)
10458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459       hardcode_direct=yes
10460       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10461       hardcode_libdir_separator=:
10462       hardcode_shlibpath_var=no
10463       ;;
10464
10465     *nto* | *qnx*)
10466       ;;
10467
10468     openbsd*)
10469       if test -f /usr/libexec/ld.so; then
10470         hardcode_direct=yes
10471         hardcode_shlibpath_var=no
10472         hardcode_direct_absolute=yes
10473         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10474           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10475           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10476           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10477           export_dynamic_flag_spec='${wl}-E'
10478         else
10479           case $host_os in
10480            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10481              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10482              hardcode_libdir_flag_spec='-R$libdir'
10483              ;;
10484            *)
10485              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10486              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10487              ;;
10488           esac
10489         fi
10490       else
10491         ld_shlibs=no
10492       fi
10493       ;;
10494
10495     os2*)
10496       hardcode_libdir_flag_spec='-L$libdir'
10497       hardcode_minus_L=yes
10498       allow_undefined_flag=unsupported
10499       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'
10500       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10501       ;;
10502
10503     osf3*)
10504       if test "$GCC" = yes; then
10505         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506         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'
10507       else
10508         allow_undefined_flag=' -expect_unresolved \*'
10509         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'
10510       fi
10511       archive_cmds_need_lc='no'
10512       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10513       hardcode_libdir_separator=:
10514       ;;
10515
10516     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10517       if test "$GCC" = yes; then
10518         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10519         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'
10520         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521       else
10522         allow_undefined_flag=' -expect_unresolved \*'
10523         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'
10524         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~
10525         $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'
10526
10527         # Both c and cxx compiler support -rpath directly
10528         hardcode_libdir_flag_spec='-rpath $libdir'
10529       fi
10530       archive_cmds_need_lc='no'
10531       hardcode_libdir_separator=:
10532       ;;
10533
10534     solaris*)
10535       no_undefined_flag=' -z defs'
10536       if test "$GCC" = yes; then
10537         wlarc='${wl}'
10538         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10539         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540           $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'
10541       else
10542         case `$CC -V 2>&1` in
10543         *"Compilers 5.0"*)
10544           wlarc=''
10545           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10548           ;;
10549         *)
10550           wlarc='${wl}'
10551           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10552           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10553           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10554           ;;
10555         esac
10556       fi
10557       hardcode_libdir_flag_spec='-R$libdir'
10558       hardcode_shlibpath_var=no
10559       case $host_os in
10560       solaris2.[0-5] | solaris2.[0-5].*) ;;
10561       *)
10562         # The compiler driver will combine and reorder linker options,
10563         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10564         # but is careful enough not to reorder.
10565         # Supported since Solaris 2.6 (maybe 2.5.1?)
10566         if test "$GCC" = yes; then
10567           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10568         else
10569           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10570         fi
10571         ;;
10572       esac
10573       link_all_deplibs=yes
10574       ;;
10575
10576     sunos4*)
10577       if test "x$host_vendor" = xsequent; then
10578         # Use $CC to link under sequent, because it throws in some extra .o
10579         # files that make .init and .fini sections work.
10580         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10581       else
10582         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10583       fi
10584       hardcode_libdir_flag_spec='-L$libdir'
10585       hardcode_direct=yes
10586       hardcode_minus_L=yes
10587       hardcode_shlibpath_var=no
10588       ;;
10589
10590     sysv4)
10591       case $host_vendor in
10592         sni)
10593           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10594           hardcode_direct=yes # is this really true???
10595         ;;
10596         siemens)
10597           ## LD is ld it makes a PLAMLIB
10598           ## CC just makes a GrossModule.
10599           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10600           reload_cmds='$CC -r -o $output$reload_objs'
10601           hardcode_direct=no
10602         ;;
10603         motorola)
10604           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10606         ;;
10607       esac
10608       runpath_var='LD_RUN_PATH'
10609       hardcode_shlibpath_var=no
10610       ;;
10611
10612     sysv4.3*)
10613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614       hardcode_shlibpath_var=no
10615       export_dynamic_flag_spec='-Bexport'
10616       ;;
10617
10618     sysv4*MP*)
10619       if test -d /usr/nec; then
10620         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10621         hardcode_shlibpath_var=no
10622         runpath_var=LD_RUN_PATH
10623         hardcode_runpath_var=yes
10624         ld_shlibs=yes
10625       fi
10626       ;;
10627
10628     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10629       no_undefined_flag='${wl}-z,text'
10630       archive_cmds_need_lc=no
10631       hardcode_shlibpath_var=no
10632       runpath_var='LD_RUN_PATH'
10633
10634       if test "$GCC" = yes; then
10635         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637       else
10638         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640       fi
10641       ;;
10642
10643     sysv5* | sco3.2v5* | sco5v6*)
10644       # Note: We can NOT use -z defs as we might desire, because we do not
10645       # link with -lc, and that would cause any symbols used from libc to
10646       # always be unresolved, which means just about no library would
10647       # ever link correctly.  If we're not using GNU ld we use -z text
10648       # though, which does catch some bad symbols but isn't as heavy-handed
10649       # as -z defs.
10650       no_undefined_flag='${wl}-z,text'
10651       allow_undefined_flag='${wl}-z,nodefs'
10652       archive_cmds_need_lc=no
10653       hardcode_shlibpath_var=no
10654       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10655       hardcode_libdir_separator=':'
10656       link_all_deplibs=yes
10657       export_dynamic_flag_spec='${wl}-Bexport'
10658       runpath_var='LD_RUN_PATH'
10659
10660       if test "$GCC" = yes; then
10661         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663       else
10664         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666       fi
10667       ;;
10668
10669     uts4*)
10670       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10671       hardcode_libdir_flag_spec='-L$libdir'
10672       hardcode_shlibpath_var=no
10673       ;;
10674
10675     *)
10676       ld_shlibs=no
10677       ;;
10678     esac
10679
10680     if test x$host_vendor = xsni; then
10681       case $host in
10682       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10683         export_dynamic_flag_spec='${wl}-Blargedynsym'
10684         ;;
10685       esac
10686     fi
10687   fi
10688
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10690 $as_echo "$ld_shlibs" >&6; }
10691 test "$ld_shlibs" = no && can_build_shared=no
10692
10693 with_gnu_ld=$with_gnu_ld
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709 #
10710 # Do we need to explicitly link libc?
10711 #
10712 case "x$archive_cmds_need_lc" in
10713 x|xyes)
10714   # Assume -lc should be added
10715   archive_cmds_need_lc=yes
10716
10717   if test "$enable_shared" = yes && test "$GCC" = yes; then
10718     case $archive_cmds in
10719     *'~'*)
10720       # FIXME: we may have to deal with multi-command sequences.
10721       ;;
10722     '$CC '*)
10723       # Test whether the compiler implicitly links with -lc since on some
10724       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10725       # to ld, don't add -lc before -lgcc.
10726       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10727 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10728 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10729   $as_echo_n "(cached) " >&6
10730 else
10731   $RM conftest*
10732         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10733
10734         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10735   (eval $ac_compile) 2>&5
10736   ac_status=$?
10737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738   test $ac_status = 0; } 2>conftest.err; then
10739           soname=conftest
10740           lib=conftest
10741           libobjs=conftest.$ac_objext
10742           deplibs=
10743           wl=$lt_prog_compiler_wl
10744           pic_flag=$lt_prog_compiler_pic
10745           compiler_flags=-v
10746           linker_flags=-v
10747           verstring=
10748           output_objdir=.
10749           libname=conftest
10750           lt_save_allow_undefined_flag=$allow_undefined_flag
10751           allow_undefined_flag=
10752           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10753   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10754   ac_status=$?
10755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756   test $ac_status = 0; }
10757           then
10758             lt_cv_archive_cmds_need_lc=no
10759           else
10760             lt_cv_archive_cmds_need_lc=yes
10761           fi
10762           allow_undefined_flag=$lt_save_allow_undefined_flag
10763         else
10764           cat conftest.err 1>&5
10765         fi
10766         $RM conftest*
10767
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10770 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10771       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10772       ;;
10773     esac
10774   fi
10775   ;;
10776 esac
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10930 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10931
10932 if test "$GCC" = yes; then
10933   case $host_os in
10934     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10935     *) lt_awk_arg="/^libraries:/" ;;
10936   esac
10937   case $host_os in
10938     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10939     *) lt_sed_strip_eq="s,=/,/,g" ;;
10940   esac
10941   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10942   case $lt_search_path_spec in
10943   *\;*)
10944     # if the path contains ";" then we assume it to be the separator
10945     # otherwise default to the standard path separator (i.e. ":") - it is
10946     # assumed that no part of a normal pathname contains ";" but that should
10947     # okay in the real world where ";" in dirpaths is itself problematic.
10948     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10949     ;;
10950   *)
10951     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10952     ;;
10953   esac
10954   # Ok, now we have the path, separated by spaces, we can step through it
10955   # and add multilib dir if necessary.
10956   lt_tmp_lt_search_path_spec=
10957   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10958   for lt_sys_path in $lt_search_path_spec; do
10959     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10960       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10961     else
10962       test -d "$lt_sys_path" && \
10963         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10964     fi
10965   done
10966   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10967 BEGIN {RS=" "; FS="/|\n";} {
10968   lt_foo="";
10969   lt_count=0;
10970   for (lt_i = NF; lt_i > 0; lt_i--) {
10971     if ($lt_i != "" && $lt_i != ".") {
10972       if ($lt_i == "..") {
10973         lt_count++;
10974       } else {
10975         if (lt_count == 0) {
10976           lt_foo="/" $lt_i lt_foo;
10977         } else {
10978           lt_count--;
10979         }
10980       }
10981     }
10982   }
10983   if (lt_foo != "") { lt_freq[lt_foo]++; }
10984   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10985 }'`
10986   # AWK program above erroneously prepends '/' to C:/dos/paths
10987   # for these hosts.
10988   case $host_os in
10989     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10990       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10991   esac
10992   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10993 else
10994   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10995 fi
10996 library_names_spec=
10997 libname_spec='lib$name'
10998 soname_spec=
10999 shrext_cmds=".so"
11000 postinstall_cmds=
11001 postuninstall_cmds=
11002 finish_cmds=
11003 finish_eval=
11004 shlibpath_var=
11005 shlibpath_overrides_runpath=unknown
11006 version_type=none
11007 dynamic_linker="$host_os ld.so"
11008 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11009 need_lib_prefix=unknown
11010 hardcode_into_libs=no
11011
11012 # when you set need_version to no, make sure it does not cause -set_version
11013 # flags to be left without arguments
11014 need_version=unknown
11015
11016 case $host_os in
11017 aix3*)
11018   version_type=linux # correct to gnu/linux during the next big refactor
11019   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11020   shlibpath_var=LIBPATH
11021
11022   # AIX 3 has no versioning support, so we append a major version to the name.
11023   soname_spec='${libname}${release}${shared_ext}$major'
11024   ;;
11025
11026 aix[4-9]*)
11027   version_type=linux # correct to gnu/linux during the next big refactor
11028   need_lib_prefix=no
11029   need_version=no
11030   hardcode_into_libs=yes
11031   if test "$host_cpu" = ia64; then
11032     # AIX 5 supports IA64
11033     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11034     shlibpath_var=LD_LIBRARY_PATH
11035   else
11036     # With GCC up to 2.95.x, collect2 would create an import file
11037     # for dependence libraries.  The import file would start with
11038     # the line `#! .'.  This would cause the generated library to
11039     # depend on `.', always an invalid library.  This was fixed in
11040     # development snapshots of GCC prior to 3.0.
11041     case $host_os in
11042       aix4 | aix4.[01] | aix4.[01].*)
11043       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11044            echo ' yes '
11045            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11046         :
11047       else
11048         can_build_shared=no
11049       fi
11050       ;;
11051     esac
11052     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11053     # soname into executable. Probably we can add versioning support to
11054     # collect2, so additional links can be useful in future.
11055     if test "$aix_use_runtimelinking" = yes; then
11056       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11057       # instead of lib<name>.a to let people know that these are not
11058       # typical AIX shared libraries.
11059       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060     else
11061       # We preserve .a as extension for shared libraries through AIX4.2
11062       # and later when we are not doing run time linking.
11063       library_names_spec='${libname}${release}.a $libname.a'
11064       soname_spec='${libname}${release}${shared_ext}$major'
11065     fi
11066     shlibpath_var=LIBPATH
11067   fi
11068   ;;
11069
11070 amigaos*)
11071   case $host_cpu in
11072   powerpc)
11073     # Since July 2007 AmigaOS4 officially supports .so libraries.
11074     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076     ;;
11077   m68k)
11078     library_names_spec='$libname.ixlibrary $libname.a'
11079     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11080     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'
11081     ;;
11082   esac
11083   ;;
11084
11085 beos*)
11086   library_names_spec='${libname}${shared_ext}'
11087   dynamic_linker="$host_os ld.so"
11088   shlibpath_var=LIBRARY_PATH
11089   ;;
11090
11091 bsdi[45]*)
11092   version_type=linux # correct to gnu/linux during the next big refactor
11093   need_version=no
11094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095   soname_spec='${libname}${release}${shared_ext}$major'
11096   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11097   shlibpath_var=LD_LIBRARY_PATH
11098   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11099   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11100   # the default ld.so.conf also contains /usr/contrib/lib and
11101   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11102   # libtool to hard-code these into programs
11103   ;;
11104
11105 cygwin* | mingw* | pw32* | cegcc*)
11106   version_type=windows
11107   shrext_cmds=".dll"
11108   need_version=no
11109   need_lib_prefix=no
11110
11111   case $GCC,$cc_basename in
11112   yes,*)
11113     # gcc
11114     library_names_spec='$libname.dll.a'
11115     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11116     postinstall_cmds='base_file=`basename \${file}`~
11117       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11118       dldir=$destdir/`dirname \$dlpath`~
11119       test -d \$dldir || mkdir -p \$dldir~
11120       $install_prog $dir/$dlname \$dldir/$dlname~
11121       chmod a+x \$dldir/$dlname~
11122       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11123         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11124       fi'
11125     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11126       dlpath=$dir/\$dldll~
11127        $RM \$dlpath'
11128     shlibpath_overrides_runpath=yes
11129
11130     case $host_os in
11131     cygwin*)
11132       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11133       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11134
11135       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11136       ;;
11137     mingw* | cegcc*)
11138       # MinGW DLLs use traditional 'lib' prefix
11139       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11140       ;;
11141     pw32*)
11142       # pw32 DLLs use 'pw' prefix rather than 'lib'
11143       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11144       ;;
11145     esac
11146     dynamic_linker='Win32 ld.exe'
11147     ;;
11148
11149   *,cl*)
11150     # Native MSVC
11151     libname_spec='$name'
11152     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11153     library_names_spec='${libname}.dll.lib'
11154
11155     case $build_os in
11156     mingw*)
11157       sys_lib_search_path_spec=
11158       lt_save_ifs=$IFS
11159       IFS=';'
11160       for lt_path in $LIB
11161       do
11162         IFS=$lt_save_ifs
11163         # Let DOS variable expansion print the short 8.3 style file name.
11164         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11165         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11166       done
11167       IFS=$lt_save_ifs
11168       # Convert to MSYS style.
11169       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11170       ;;
11171     cygwin*)
11172       # Convert to unix form, then to dos form, then back to unix form
11173       # but this time dos style (no spaces!) so that the unix form looks
11174       # like /cygdrive/c/PROGRA~1:/cygdr...
11175       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11176       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11177       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11178       ;;
11179     *)
11180       sys_lib_search_path_spec="$LIB"
11181       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11182         # It is most probably a Windows format PATH.
11183         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11184       else
11185         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11186       fi
11187       # FIXME: find the short name or the path components, as spaces are
11188       # common. (e.g. "Program Files" -> "PROGRA~1")
11189       ;;
11190     esac
11191
11192     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11193     postinstall_cmds='base_file=`basename \${file}`~
11194       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11195       dldir=$destdir/`dirname \$dlpath`~
11196       test -d \$dldir || mkdir -p \$dldir~
11197       $install_prog $dir/$dlname \$dldir/$dlname'
11198     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11199       dlpath=$dir/\$dldll~
11200        $RM \$dlpath'
11201     shlibpath_overrides_runpath=yes
11202     dynamic_linker='Win32 link.exe'
11203     ;;
11204
11205   *)
11206     # Assume MSVC wrapper
11207     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11208     dynamic_linker='Win32 ld.exe'
11209     ;;
11210   esac
11211   # FIXME: first we should search . and the directory the executable is in
11212   shlibpath_var=PATH
11213   ;;
11214
11215 darwin* | rhapsody*)
11216   dynamic_linker="$host_os dyld"
11217   version_type=darwin
11218   need_lib_prefix=no
11219   need_version=no
11220   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11221   soname_spec='${libname}${release}${major}$shared_ext'
11222   shlibpath_overrides_runpath=yes
11223   shlibpath_var=DYLD_LIBRARY_PATH
11224   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11225
11226   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11227   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11228   ;;
11229
11230 dgux*)
11231   version_type=linux # correct to gnu/linux during the next big refactor
11232   need_lib_prefix=no
11233   need_version=no
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   ;;
11238
11239 freebsd* | dragonfly*)
11240   # DragonFly does not have aout.  When/if they implement a new
11241   # versioning mechanism, adjust this.
11242   if test -x /usr/bin/objformat; then
11243     objformat=`/usr/bin/objformat`
11244   else
11245     case $host_os in
11246     freebsd[23].*) objformat=aout ;;
11247     *) objformat=elf ;;
11248     esac
11249   fi
11250   version_type=freebsd-$objformat
11251   case $version_type in
11252     freebsd-elf*)
11253       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11254       need_version=no
11255       need_lib_prefix=no
11256       ;;
11257     freebsd-*)
11258       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11259       need_version=yes
11260       ;;
11261   esac
11262   shlibpath_var=LD_LIBRARY_PATH
11263   case $host_os in
11264   freebsd2.*)
11265     shlibpath_overrides_runpath=yes
11266     ;;
11267   freebsd3.[01]* | freebsdelf3.[01]*)
11268     shlibpath_overrides_runpath=yes
11269     hardcode_into_libs=yes
11270     ;;
11271   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11272   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11273     shlibpath_overrides_runpath=no
11274     hardcode_into_libs=yes
11275     ;;
11276   *) # from 4.6 on, and DragonFly
11277     shlibpath_overrides_runpath=yes
11278     hardcode_into_libs=yes
11279     ;;
11280   esac
11281   ;;
11282
11283 haiku*)
11284   version_type=linux # correct to gnu/linux during the next big refactor
11285   need_lib_prefix=no
11286   need_version=no
11287   dynamic_linker="$host_os runtime_loader"
11288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11289   soname_spec='${libname}${release}${shared_ext}$major'
11290   shlibpath_var=LIBRARY_PATH
11291   shlibpath_overrides_runpath=yes
11292   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11293   hardcode_into_libs=yes
11294   ;;
11295
11296 hpux9* | hpux10* | hpux11*)
11297   # Give a soname corresponding to the major version so that dld.sl refuses to
11298   # link against other versions.
11299   version_type=sunos
11300   need_lib_prefix=no
11301   need_version=no
11302   case $host_cpu in
11303   ia64*)
11304     shrext_cmds='.so'
11305     hardcode_into_libs=yes
11306     dynamic_linker="$host_os dld.so"
11307     shlibpath_var=LD_LIBRARY_PATH
11308     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310     soname_spec='${libname}${release}${shared_ext}$major'
11311     if test "X$HPUX_IA64_MODE" = X32; then
11312       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11313     else
11314       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11315     fi
11316     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11317     ;;
11318   hppa*64*)
11319     shrext_cmds='.sl'
11320     hardcode_into_libs=yes
11321     dynamic_linker="$host_os dld.sl"
11322     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11323     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325     soname_spec='${libname}${release}${shared_ext}$major'
11326     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11327     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11328     ;;
11329   *)
11330     shrext_cmds='.sl'
11331     dynamic_linker="$host_os dld.sl"
11332     shlibpath_var=SHLIB_PATH
11333     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335     soname_spec='${libname}${release}${shared_ext}$major'
11336     ;;
11337   esac
11338   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11339   postinstall_cmds='chmod 555 $lib'
11340   # or fails outright, so override atomically:
11341   install_override_mode=555
11342   ;;
11343
11344 interix[3-9]*)
11345   version_type=linux # correct to gnu/linux during the next big refactor
11346   need_lib_prefix=no
11347   need_version=no
11348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11349   soname_spec='${libname}${release}${shared_ext}$major'
11350   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11351   shlibpath_var=LD_LIBRARY_PATH
11352   shlibpath_overrides_runpath=no
11353   hardcode_into_libs=yes
11354   ;;
11355
11356 irix5* | irix6* | nonstopux*)
11357   case $host_os in
11358     nonstopux*) version_type=nonstopux ;;
11359     *)
11360         if test "$lt_cv_prog_gnu_ld" = yes; then
11361                 version_type=linux # correct to gnu/linux during the next big refactor
11362         else
11363                 version_type=irix
11364         fi ;;
11365   esac
11366   need_lib_prefix=no
11367   need_version=no
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11370   case $host_os in
11371   irix5* | nonstopux*)
11372     libsuff= shlibsuff=
11373     ;;
11374   *)
11375     case $LD in # libtool.m4 will add one of these switches to LD
11376     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11377       libsuff= shlibsuff= libmagic=32-bit;;
11378     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11379       libsuff=32 shlibsuff=N32 libmagic=N32;;
11380     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11381       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11382     *) libsuff= shlibsuff= libmagic=never-match;;
11383     esac
11384     ;;
11385   esac
11386   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11387   shlibpath_overrides_runpath=no
11388   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11389   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11390   hardcode_into_libs=yes
11391   ;;
11392
11393 # No shared lib support for Linux oldld, aout, or coff.
11394 linux*oldld* | linux*aout* | linux*coff*)
11395   dynamic_linker=no
11396   ;;
11397
11398 # This must be glibc/ELF.
11399 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11400   version_type=linux # correct to gnu/linux during the next big refactor
11401   need_lib_prefix=no
11402   need_version=no
11403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404   soname_spec='${libname}${release}${shared_ext}$major'
11405   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   shlibpath_overrides_runpath=no
11408
11409   # Some binutils ld are patched to set DT_RUNPATH
11410   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11411   $as_echo_n "(cached) " >&6
11412 else
11413   lt_cv_shlibpath_overrides_runpath=no
11414     save_LDFLAGS=$LDFLAGS
11415     save_libdir=$libdir
11416     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11417          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h.  */
11420
11421 int
11422 main ()
11423 {
11424
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 if ac_fn_c_try_link "$LINENO"; then :
11430   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11431   lt_cv_shlibpath_overrides_runpath=yes
11432 fi
11433 fi
11434 rm -f core conftest.err conftest.$ac_objext \
11435     conftest$ac_exeext conftest.$ac_ext
11436     LDFLAGS=$save_LDFLAGS
11437     libdir=$save_libdir
11438
11439 fi
11440
11441   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11442
11443   # This implies no fast_install, which is unacceptable.
11444   # Some rework will be needed to allow for fast_install
11445   # before this can be enabled.
11446   hardcode_into_libs=yes
11447
11448   # Append ld.so.conf contents to the search path
11449   if test -f /etc/ld.so.conf; then
11450     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' ' '`
11451     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11452   fi
11453
11454   # We used to test for /lib/ld.so.1 and disable shared libraries on
11455   # powerpc, because MkLinux only supported shared libraries with the
11456   # GNU dynamic linker.  Since this was broken with cross compilers,
11457   # most powerpc-linux boxes support dynamic linking these days and
11458   # people can always --disable-shared, the test was removed, and we
11459   # assume the GNU/Linux dynamic linker is in use.
11460   dynamic_linker='GNU/Linux ld.so'
11461   ;;
11462
11463 netbsdelf*-gnu)
11464   version_type=linux
11465   need_lib_prefix=no
11466   need_version=no
11467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11468   soname_spec='${libname}${release}${shared_ext}$major'
11469   shlibpath_var=LD_LIBRARY_PATH
11470   shlibpath_overrides_runpath=no
11471   hardcode_into_libs=yes
11472   dynamic_linker='NetBSD ld.elf_so'
11473   ;;
11474
11475 netbsd*)
11476   version_type=sunos
11477   need_lib_prefix=no
11478   need_version=no
11479   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482     dynamic_linker='NetBSD (a.out) ld.so'
11483   else
11484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11485     soname_spec='${libname}${release}${shared_ext}$major'
11486     dynamic_linker='NetBSD ld.elf_so'
11487   fi
11488   shlibpath_var=LD_LIBRARY_PATH
11489   shlibpath_overrides_runpath=yes
11490   hardcode_into_libs=yes
11491   ;;
11492
11493 newsos6)
11494   version_type=linux # correct to gnu/linux during the next big refactor
11495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   shlibpath_overrides_runpath=yes
11498   ;;
11499
11500 *nto* | *qnx*)
11501   version_type=qnx
11502   need_lib_prefix=no
11503   need_version=no
11504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505   soname_spec='${libname}${release}${shared_ext}$major'
11506   shlibpath_var=LD_LIBRARY_PATH
11507   shlibpath_overrides_runpath=no
11508   hardcode_into_libs=yes
11509   dynamic_linker='ldqnx.so'
11510   ;;
11511
11512 openbsd*)
11513   version_type=sunos
11514   sys_lib_dlsearch_path_spec="/usr/lib"
11515   need_lib_prefix=no
11516   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11517   case $host_os in
11518     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11519     *)                          need_version=no  ;;
11520   esac
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11522   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11523   shlibpath_var=LD_LIBRARY_PATH
11524   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11525     case $host_os in
11526       openbsd2.[89] | openbsd2.[89].*)
11527         shlibpath_overrides_runpath=no
11528         ;;
11529       *)
11530         shlibpath_overrides_runpath=yes
11531         ;;
11532       esac
11533   else
11534     shlibpath_overrides_runpath=yes
11535   fi
11536   ;;
11537
11538 os2*)
11539   libname_spec='$name'
11540   shrext_cmds=".dll"
11541   need_lib_prefix=no
11542   library_names_spec='$libname${shared_ext} $libname.a'
11543   dynamic_linker='OS/2 ld.exe'
11544   shlibpath_var=LIBPATH
11545   ;;
11546
11547 osf3* | osf4* | osf5*)
11548   version_type=osf
11549   need_lib_prefix=no
11550   need_version=no
11551   soname_spec='${libname}${release}${shared_ext}$major'
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11555   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11556   ;;
11557
11558 rdos*)
11559   dynamic_linker=no
11560   ;;
11561
11562 solaris*)
11563   version_type=linux # correct to gnu/linux during the next big refactor
11564   need_lib_prefix=no
11565   need_version=no
11566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567   soname_spec='${libname}${release}${shared_ext}$major'
11568   shlibpath_var=LD_LIBRARY_PATH
11569   shlibpath_overrides_runpath=yes
11570   hardcode_into_libs=yes
11571   # ldd complains unless libraries are executable
11572   postinstall_cmds='chmod +x $lib'
11573   ;;
11574
11575 sunos4*)
11576   version_type=sunos
11577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11578   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11579   shlibpath_var=LD_LIBRARY_PATH
11580   shlibpath_overrides_runpath=yes
11581   if test "$with_gnu_ld" = yes; then
11582     need_lib_prefix=no
11583   fi
11584   need_version=yes
11585   ;;
11586
11587 sysv4 | sysv4.3*)
11588   version_type=linux # correct to gnu/linux during the next big refactor
11589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590   soname_spec='${libname}${release}${shared_ext}$major'
11591   shlibpath_var=LD_LIBRARY_PATH
11592   case $host_vendor in
11593     sni)
11594       shlibpath_overrides_runpath=no
11595       need_lib_prefix=no
11596       runpath_var=LD_RUN_PATH
11597       ;;
11598     siemens)
11599       need_lib_prefix=no
11600       ;;
11601     motorola)
11602       need_lib_prefix=no
11603       need_version=no
11604       shlibpath_overrides_runpath=no
11605       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11606       ;;
11607   esac
11608   ;;
11609
11610 sysv4*MP*)
11611   if test -d /usr/nec ;then
11612     version_type=linux # correct to gnu/linux during the next big refactor
11613     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11614     soname_spec='$libname${shared_ext}.$major'
11615     shlibpath_var=LD_LIBRARY_PATH
11616   fi
11617   ;;
11618
11619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11620   version_type=freebsd-elf
11621   need_lib_prefix=no
11622   need_version=no
11623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11624   soname_spec='${libname}${release}${shared_ext}$major'
11625   shlibpath_var=LD_LIBRARY_PATH
11626   shlibpath_overrides_runpath=yes
11627   hardcode_into_libs=yes
11628   if test "$with_gnu_ld" = yes; then
11629     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11630   else
11631     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11632     case $host_os in
11633       sco3.2v5*)
11634         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11635         ;;
11636     esac
11637   fi
11638   sys_lib_dlsearch_path_spec='/usr/lib'
11639   ;;
11640
11641 tpf*)
11642   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11643   version_type=linux # correct to gnu/linux during the next big refactor
11644   need_lib_prefix=no
11645   need_version=no
11646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   shlibpath_overrides_runpath=no
11649   hardcode_into_libs=yes
11650   ;;
11651
11652 uts4*)
11653   version_type=linux # correct to gnu/linux during the next big refactor
11654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655   soname_spec='${libname}${release}${shared_ext}$major'
11656   shlibpath_var=LD_LIBRARY_PATH
11657   ;;
11658
11659 *)
11660   dynamic_linker=no
11661   ;;
11662 esac
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11664 $as_echo "$dynamic_linker" >&6; }
11665 test "$dynamic_linker" = no && can_build_shared=no
11666
11667 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11668 if test "$GCC" = yes; then
11669   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11670 fi
11671
11672 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11673   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11674 fi
11675 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11676   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11677 fi
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11772 hardcode_action=
11773 if test -n "$hardcode_libdir_flag_spec" ||
11774    test -n "$runpath_var" ||
11775    test "X$hardcode_automatic" = "Xyes" ; then
11776
11777   # We can hardcode non-existent directories.
11778   if test "$hardcode_direct" != no &&
11779      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11780      # have to relink, otherwise we might link with an installed library
11781      # when we should be linking with a yet-to-be-installed one
11782      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11783      test "$hardcode_minus_L" != no; then
11784     # Linking always hardcodes the temporary library directory.
11785     hardcode_action=relink
11786   else
11787     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11788     hardcode_action=immediate
11789   fi
11790 else
11791   # We cannot hardcode anything, or else we can only hardcode existing
11792   # directories.
11793   hardcode_action=unsupported
11794 fi
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11796 $as_echo "$hardcode_action" >&6; }
11797
11798 if test "$hardcode_action" = relink ||
11799    test "$inherit_rpath" = yes; then
11800   # Fast installation is not supported
11801   enable_fast_install=no
11802 elif test "$shlibpath_overrides_runpath" = yes ||
11803      test "$enable_shared" = no; then
11804   # Fast installation is not necessary
11805   enable_fast_install=needless
11806 fi
11807
11808
11809
11810
11811
11812
11813   if test "x$enable_dlopen" != xyes; then
11814   enable_dlopen=unknown
11815   enable_dlopen_self=unknown
11816   enable_dlopen_self_static=unknown
11817 else
11818   lt_cv_dlopen=no
11819   lt_cv_dlopen_libs=
11820
11821   case $host_os in
11822   beos*)
11823     lt_cv_dlopen="load_add_on"
11824     lt_cv_dlopen_libs=
11825     lt_cv_dlopen_self=yes
11826     ;;
11827
11828   mingw* | pw32* | cegcc*)
11829     lt_cv_dlopen="LoadLibrary"
11830     lt_cv_dlopen_libs=
11831     ;;
11832
11833   cygwin*)
11834     lt_cv_dlopen="dlopen"
11835     lt_cv_dlopen_libs=
11836     ;;
11837
11838   darwin*)
11839   # if libdl is installed we need to link against it
11840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11842 if ${ac_cv_lib_dl_dlopen+:} false; then :
11843   $as_echo_n "(cached) " >&6
11844 else
11845   ac_check_lib_save_LIBS=$LIBS
11846 LIBS="-ldl  $LIBS"
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h.  */
11849
11850 /* Override any GCC internal prototype to avoid an error.
11851    Use char because int might match the return type of a GCC
11852    builtin and then its argument prototype would still apply.  */
11853 #ifdef __cplusplus
11854 extern "C"
11855 #endif
11856 char dlopen ();
11857 int
11858 main ()
11859 {
11860 return dlopen ();
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 if ac_fn_c_try_link "$LINENO"; then :
11866   ac_cv_lib_dl_dlopen=yes
11867 else
11868   ac_cv_lib_dl_dlopen=no
11869 fi
11870 rm -f core conftest.err conftest.$ac_objext \
11871     conftest$ac_exeext conftest.$ac_ext
11872 LIBS=$ac_check_lib_save_LIBS
11873 fi
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11875 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11876 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11877   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11878 else
11879
11880     lt_cv_dlopen="dyld"
11881     lt_cv_dlopen_libs=
11882     lt_cv_dlopen_self=yes
11883
11884 fi
11885
11886     ;;
11887
11888   *)
11889     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11890 if test "x$ac_cv_func_shl_load" = xyes; then :
11891   lt_cv_dlopen="shl_load"
11892 else
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11894 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11895 if ${ac_cv_lib_dld_shl_load+:} false; then :
11896   $as_echo_n "(cached) " >&6
11897 else
11898   ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldld  $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h.  */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904    Use char because int might match the return type of a GCC
11905    builtin and then its argument prototype would still apply.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char shl_load ();
11910 int
11911 main ()
11912 {
11913 return shl_load ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919   ac_cv_lib_dld_shl_load=yes
11920 else
11921   ac_cv_lib_dld_shl_load=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924     conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11928 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11929 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11930   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11931 else
11932   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11933 if test "x$ac_cv_func_dlopen" = xyes; then :
11934   lt_cv_dlopen="dlopen"
11935 else
11936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11937 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11938 if ${ac_cv_lib_dl_dlopen+:} false; then :
11939   $as_echo_n "(cached) " >&6
11940 else
11941   ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-ldl  $LIBS"
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h.  */
11945
11946 /* Override any GCC internal prototype to avoid an error.
11947    Use char because int might match the return type of a GCC
11948    builtin and then its argument prototype would still apply.  */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char dlopen ();
11953 int
11954 main ()
11955 {
11956 return dlopen ();
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 if ac_fn_c_try_link "$LINENO"; then :
11962   ac_cv_lib_dl_dlopen=yes
11963 else
11964   ac_cv_lib_dl_dlopen=no
11965 fi
11966 rm -f core conftest.err conftest.$ac_objext \
11967     conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11971 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11972 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11973   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11974 else
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11976 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11977 if ${ac_cv_lib_svld_dlopen+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-lsvld  $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h.  */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986    Use char because int might match the return type of a GCC
11987    builtin and then its argument prototype would still apply.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001   ac_cv_lib_svld_dlopen=yes
12002 else
12003   ac_cv_lib_svld_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006     conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12010 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12011 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12013 else
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12015 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12016 if ${ac_cv_lib_dld_dld_link+:} false; then :
12017   $as_echo_n "(cached) " >&6
12018 else
12019   ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-ldld  $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h.  */
12023
12024 /* Override any GCC internal prototype to avoid an error.
12025    Use char because int might match the return type of a GCC
12026    builtin and then its argument prototype would still apply.  */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char dld_link ();
12031 int
12032 main ()
12033 {
12034 return dld_link ();
12035   ;
12036   return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040   ac_cv_lib_dld_dld_link=yes
12041 else
12042   ac_cv_lib_dld_dld_link=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext \
12045     conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12049 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12050 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12051   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12052 fi
12053
12054
12055 fi
12056
12057
12058 fi
12059
12060
12061 fi
12062
12063
12064 fi
12065
12066
12067 fi
12068
12069     ;;
12070   esac
12071
12072   if test "x$lt_cv_dlopen" != xno; then
12073     enable_dlopen=yes
12074   else
12075     enable_dlopen=no
12076   fi
12077
12078   case $lt_cv_dlopen in
12079   dlopen)
12080     save_CPPFLAGS="$CPPFLAGS"
12081     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12082
12083     save_LDFLAGS="$LDFLAGS"
12084     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12085
12086     save_LIBS="$LIBS"
12087     LIBS="$lt_cv_dlopen_libs $LIBS"
12088
12089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12090 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12091 if ${lt_cv_dlopen_self+:} false; then :
12092   $as_echo_n "(cached) " >&6
12093 else
12094           if test "$cross_compiling" = yes; then :
12095   lt_cv_dlopen_self=cross
12096 else
12097   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12098   lt_status=$lt_dlunknown
12099   cat > conftest.$ac_ext <<_LT_EOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102
12103 #if HAVE_DLFCN_H
12104 #include <dlfcn.h>
12105 #endif
12106
12107 #include <stdio.h>
12108
12109 #ifdef RTLD_GLOBAL
12110 #  define LT_DLGLOBAL           RTLD_GLOBAL
12111 #else
12112 #  ifdef DL_GLOBAL
12113 #    define LT_DLGLOBAL         DL_GLOBAL
12114 #  else
12115 #    define LT_DLGLOBAL         0
12116 #  endif
12117 #endif
12118
12119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12120    find out it does not work in some platform. */
12121 #ifndef LT_DLLAZY_OR_NOW
12122 #  ifdef RTLD_LAZY
12123 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12124 #  else
12125 #    ifdef DL_LAZY
12126 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12127 #    else
12128 #      ifdef RTLD_NOW
12129 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12130 #      else
12131 #        ifdef DL_NOW
12132 #          define LT_DLLAZY_OR_NOW      DL_NOW
12133 #        else
12134 #          define LT_DLLAZY_OR_NOW      0
12135 #        endif
12136 #      endif
12137 #    endif
12138 #  endif
12139 #endif
12140
12141 /* When -fvisbility=hidden is used, assume the code has been annotated
12142    correspondingly for the symbols needed.  */
12143 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12144 int fnord () __attribute__((visibility("default")));
12145 #endif
12146
12147 int fnord () { return 42; }
12148 int main ()
12149 {
12150   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12151   int status = $lt_dlunknown;
12152
12153   if (self)
12154     {
12155       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12156       else
12157         {
12158           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12159           else puts (dlerror ());
12160         }
12161       /* dlclose (self); */
12162     }
12163   else
12164     puts (dlerror ());
12165
12166   return status;
12167 }
12168 _LT_EOF
12169   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12170   (eval $ac_link) 2>&5
12171   ac_status=$?
12172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12174     (./conftest; exit; ) >&5 2>/dev/null
12175     lt_status=$?
12176     case x$lt_status in
12177       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12178       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12179       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12180     esac
12181   else :
12182     # compilation failed
12183     lt_cv_dlopen_self=no
12184   fi
12185 fi
12186 rm -fr conftest*
12187
12188
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12191 $as_echo "$lt_cv_dlopen_self" >&6; }
12192
12193     if test "x$lt_cv_dlopen_self" = xyes; then
12194       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12195       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12196 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12197 if ${lt_cv_dlopen_self_static+:} false; then :
12198   $as_echo_n "(cached) " >&6
12199 else
12200           if test "$cross_compiling" = yes; then :
12201   lt_cv_dlopen_self_static=cross
12202 else
12203   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12204   lt_status=$lt_dlunknown
12205   cat > conftest.$ac_ext <<_LT_EOF
12206 #line $LINENO "configure"
12207 #include "confdefs.h"
12208
12209 #if HAVE_DLFCN_H
12210 #include <dlfcn.h>
12211 #endif
12212
12213 #include <stdio.h>
12214
12215 #ifdef RTLD_GLOBAL
12216 #  define LT_DLGLOBAL           RTLD_GLOBAL
12217 #else
12218 #  ifdef DL_GLOBAL
12219 #    define LT_DLGLOBAL         DL_GLOBAL
12220 #  else
12221 #    define LT_DLGLOBAL         0
12222 #  endif
12223 #endif
12224
12225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12226    find out it does not work in some platform. */
12227 #ifndef LT_DLLAZY_OR_NOW
12228 #  ifdef RTLD_LAZY
12229 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12230 #  else
12231 #    ifdef DL_LAZY
12232 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12233 #    else
12234 #      ifdef RTLD_NOW
12235 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12236 #      else
12237 #        ifdef DL_NOW
12238 #          define LT_DLLAZY_OR_NOW      DL_NOW
12239 #        else
12240 #          define LT_DLLAZY_OR_NOW      0
12241 #        endif
12242 #      endif
12243 #    endif
12244 #  endif
12245 #endif
12246
12247 /* When -fvisbility=hidden is used, assume the code has been annotated
12248    correspondingly for the symbols needed.  */
12249 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12250 int fnord () __attribute__((visibility("default")));
12251 #endif
12252
12253 int fnord () { return 42; }
12254 int main ()
12255 {
12256   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12257   int status = $lt_dlunknown;
12258
12259   if (self)
12260     {
12261       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12262       else
12263         {
12264           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12265           else puts (dlerror ());
12266         }
12267       /* dlclose (self); */
12268     }
12269   else
12270     puts (dlerror ());
12271
12272   return status;
12273 }
12274 _LT_EOF
12275   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12276   (eval $ac_link) 2>&5
12277   ac_status=$?
12278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12280     (./conftest; exit; ) >&5 2>/dev/null
12281     lt_status=$?
12282     case x$lt_status in
12283       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12284       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12285       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12286     esac
12287   else :
12288     # compilation failed
12289     lt_cv_dlopen_self_static=no
12290   fi
12291 fi
12292 rm -fr conftest*
12293
12294
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12297 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12298     fi
12299
12300     CPPFLAGS="$save_CPPFLAGS"
12301     LDFLAGS="$save_LDFLAGS"
12302     LIBS="$save_LIBS"
12303     ;;
12304   esac
12305
12306   case $lt_cv_dlopen_self in
12307   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12308   *) enable_dlopen_self=unknown ;;
12309   esac
12310
12311   case $lt_cv_dlopen_self_static in
12312   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12313   *) enable_dlopen_self_static=unknown ;;
12314   esac
12315 fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333 striplib=
12334 old_striplib=
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12336 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12337 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12338   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12339   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341 $as_echo "yes" >&6; }
12342 else
12343 # FIXME - insert some real tests, host_os isn't really good enough
12344   case $host_os in
12345   darwin*)
12346     if test -n "$STRIP" ; then
12347       striplib="$STRIP -x"
12348       old_striplib="$STRIP -S"
12349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350 $as_echo "yes" >&6; }
12351     else
12352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12354     fi
12355     ;;
12356   *)
12357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12359     ;;
12360   esac
12361 fi
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374   # Report which library types will actually be built
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12376 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12378 $as_echo "$can_build_shared" >&6; }
12379
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12381 $as_echo_n "checking whether to build shared libraries... " >&6; }
12382   test "$can_build_shared" = "no" && enable_shared=no
12383
12384   # On AIX, shared libraries and static libraries use the same namespace, and
12385   # are all built from PIC.
12386   case $host_os in
12387   aix3*)
12388     test "$enable_shared" = yes && enable_static=no
12389     if test -n "$RANLIB"; then
12390       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12391       postinstall_cmds='$RANLIB $lib'
12392     fi
12393     ;;
12394
12395   aix[4-9]*)
12396     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12397       test "$enable_shared" = yes && enable_static=no
12398     fi
12399     ;;
12400   esac
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12402 $as_echo "$enable_shared" >&6; }
12403
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12405 $as_echo_n "checking whether to build static libraries... " >&6; }
12406   # Make sure either enable_shared or enable_static is yes.
12407   test "$enable_shared" = yes || enable_static=yes
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12409 $as_echo "$enable_static" >&6; }
12410
12411
12412
12413
12414 fi
12415 ac_ext=c
12416 ac_cpp='$CPP $CPPFLAGS'
12417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420
12421 CC="$lt_save_CC"
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437         ac_config_commands="$ac_config_commands libtool"
12438
12439
12440
12441
12442 # Only expand once:
12443
12444
12445
12446 # Check for programs
12447 ac_ext=c
12448 ac_cpp='$CPP $CPPFLAGS'
12449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12452 if test -n "$ac_tool_prefix"; then
12453   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12454 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_prog_CC+:} false; then :
12458   $as_echo_n "(cached) " >&6
12459 else
12460   if test -n "$CC"; then
12461   ac_cv_prog_CC="$CC" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466   IFS=$as_save_IFS
12467   test -z "$as_dir" && as_dir=.
12468     for ac_exec_ext in '' $ac_executable_extensions; do
12469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12470     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472     break 2
12473   fi
12474 done
12475   done
12476 IFS=$as_save_IFS
12477
12478 fi
12479 fi
12480 CC=$ac_cv_prog_CC
12481 if test -n "$CC"; then
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12483 $as_echo "$CC" >&6; }
12484 else
12485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 fi
12488
12489
12490 fi
12491 if test -z "$ac_cv_prog_CC"; then
12492   ac_ct_CC=$CC
12493   # Extract the first word of "gcc", so it can be a program name with args.
12494 set dummy gcc; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   if test -n "$ac_ct_CC"; then
12501   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12502 else
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12505 do
12506   IFS=$as_save_IFS
12507   test -z "$as_dir" && as_dir=.
12508     for ac_exec_ext in '' $ac_executable_extensions; do
12509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510     ac_cv_prog_ac_ct_CC="gcc"
12511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512     break 2
12513   fi
12514 done
12515   done
12516 IFS=$as_save_IFS
12517
12518 fi
12519 fi
12520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12521 if test -n "$ac_ct_CC"; then
12522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12523 $as_echo "$ac_ct_CC" >&6; }
12524 else
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529   if test "x$ac_ct_CC" = x; then
12530     CC=""
12531   else
12532     case $cross_compiling:$ac_tool_warned in
12533 yes:)
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12536 ac_tool_warned=yes ;;
12537 esac
12538     CC=$ac_ct_CC
12539   fi
12540 else
12541   CC="$ac_cv_prog_CC"
12542 fi
12543
12544 if test -z "$CC"; then
12545           if test -n "$ac_tool_prefix"; then
12546     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12547 set dummy ${ac_tool_prefix}cc; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_CC+:} false; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553   if test -n "$CC"; then
12554   ac_cv_prog_CC="$CC" # Let the user override the test.
12555 else
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12558 do
12559   IFS=$as_save_IFS
12560   test -z "$as_dir" && as_dir=.
12561     for ac_exec_ext in '' $ac_executable_extensions; do
12562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12563     ac_cv_prog_CC="${ac_tool_prefix}cc"
12564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565     break 2
12566   fi
12567 done
12568   done
12569 IFS=$as_save_IFS
12570
12571 fi
12572 fi
12573 CC=$ac_cv_prog_CC
12574 if test -n "$CC"; then
12575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12576 $as_echo "$CC" >&6; }
12577 else
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583   fi
12584 fi
12585 if test -z "$CC"; then
12586   # Extract the first word of "cc", so it can be a program name with args.
12587 set dummy cc; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_prog_CC+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   if test -n "$CC"; then
12594   ac_cv_prog_CC="$CC" # Let the user override the test.
12595 else
12596   ac_prog_rejected=no
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12605        ac_prog_rejected=yes
12606        continue
12607      fi
12608     ac_cv_prog_CC="cc"
12609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610     break 2
12611   fi
12612 done
12613   done
12614 IFS=$as_save_IFS
12615
12616 if test $ac_prog_rejected = yes; then
12617   # We found a bogon in the path, so make sure we never use it.
12618   set dummy $ac_cv_prog_CC
12619   shift
12620   if test $# != 0; then
12621     # We chose a different compiler from the bogus one.
12622     # However, it has the same basename, so the bogon will be chosen
12623     # first if we set CC to just the basename; use the full file name.
12624     shift
12625     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12626   fi
12627 fi
12628 fi
12629 fi
12630 CC=$ac_cv_prog_CC
12631 if test -n "$CC"; then
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12633 $as_echo "$CC" >&6; }
12634 else
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638
12639
12640 fi
12641 if test -z "$CC"; then
12642   if test -n "$ac_tool_prefix"; then
12643   for ac_prog in cl.exe
12644   do
12645     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_CC+:} false; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652   if test -n "$CC"; then
12653   ac_cv_prog_CC="$CC" # Let the user override the test.
12654 else
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658   IFS=$as_save_IFS
12659   test -z "$as_dir" && as_dir=.
12660     for ac_exec_ext in '' $ac_executable_extensions; do
12661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664     break 2
12665   fi
12666 done
12667   done
12668 IFS=$as_save_IFS
12669
12670 fi
12671 fi
12672 CC=$ac_cv_prog_CC
12673 if test -n "$CC"; then
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12675 $as_echo "$CC" >&6; }
12676 else
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679 fi
12680
12681
12682     test -n "$CC" && break
12683   done
12684 fi
12685 if test -z "$CC"; then
12686   ac_ct_CC=$CC
12687   for ac_prog in cl.exe
12688 do
12689   # Extract the first word of "$ac_prog", so it can be a program name with args.
12690 set dummy $ac_prog; ac_word=$2
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692 $as_echo_n "checking for $ac_word... " >&6; }
12693 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   if test -n "$ac_ct_CC"; then
12697   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12698 else
12699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700 for as_dir in $PATH
12701 do
12702   IFS=$as_save_IFS
12703   test -z "$as_dir" && as_dir=.
12704     for ac_exec_ext in '' $ac_executable_extensions; do
12705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12706     ac_cv_prog_ac_ct_CC="$ac_prog"
12707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12708     break 2
12709   fi
12710 done
12711   done
12712 IFS=$as_save_IFS
12713
12714 fi
12715 fi
12716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12717 if test -n "$ac_ct_CC"; then
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12719 $as_echo "$ac_ct_CC" >&6; }
12720 else
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 fi
12724
12725
12726   test -n "$ac_ct_CC" && break
12727 done
12728
12729   if test "x$ac_ct_CC" = x; then
12730     CC=""
12731   else
12732     case $cross_compiling:$ac_tool_warned in
12733 yes:)
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12736 ac_tool_warned=yes ;;
12737 esac
12738     CC=$ac_ct_CC
12739   fi
12740 fi
12741
12742 fi
12743
12744
12745 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12747 as_fn_error $? "no acceptable C compiler found in \$PATH
12748 See \`config.log' for more details" "$LINENO" 5; }
12749
12750 # Provide some information about the compiler.
12751 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12752 set X $ac_compile
12753 ac_compiler=$2
12754 for ac_option in --version -v -V -qversion; do
12755   { { ac_try="$ac_compiler $ac_option >&5"
12756 case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12761 $as_echo "$ac_try_echo"; } >&5
12762   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12763   ac_status=$?
12764   if test -s conftest.err; then
12765     sed '10a\
12766 ... rest of stderr output deleted ...
12767          10q' conftest.err >conftest.er1
12768     cat conftest.er1 >&5
12769   fi
12770   rm -f conftest.er1 conftest.err
12771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12772   test $ac_status = 0; }
12773 done
12774
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12776 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12777 if ${ac_cv_c_compiler_gnu+:} false; then :
12778   $as_echo_n "(cached) " >&6
12779 else
12780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h.  */
12782
12783 int
12784 main ()
12785 {
12786 #ifndef __GNUC__
12787        choke me
12788 #endif
12789
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_compile "$LINENO"; then :
12795   ac_compiler_gnu=yes
12796 else
12797   ac_compiler_gnu=no
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12801
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12804 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12805 if test $ac_compiler_gnu = yes; then
12806   GCC=yes
12807 else
12808   GCC=
12809 fi
12810 ac_test_CFLAGS=${CFLAGS+set}
12811 ac_save_CFLAGS=$CFLAGS
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12813 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12814 if ${ac_cv_prog_cc_g+:} false; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   ac_save_c_werror_flag=$ac_c_werror_flag
12818    ac_c_werror_flag=yes
12819    ac_cv_prog_cc_g=no
12820    CFLAGS="-g"
12821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12823
12824 int
12825 main ()
12826 {
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833   ac_cv_prog_cc_g=yes
12834 else
12835   CFLAGS=""
12836       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h.  */
12838
12839 int
12840 main ()
12841 {
12842
12843   ;
12844   return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_compile "$LINENO"; then :
12848
12849 else
12850   ac_c_werror_flag=$ac_save_c_werror_flag
12851          CFLAGS="-g"
12852          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h.  */
12854
12855 int
12856 main ()
12857 {
12858
12859   ;
12860   return 0;
12861 }
12862 _ACEOF
12863 if ac_fn_c_try_compile "$LINENO"; then :
12864   ac_cv_prog_cc_g=yes
12865 fi
12866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871    ac_c_werror_flag=$ac_save_c_werror_flag
12872 fi
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12874 $as_echo "$ac_cv_prog_cc_g" >&6; }
12875 if test "$ac_test_CFLAGS" = set; then
12876   CFLAGS=$ac_save_CFLAGS
12877 elif test $ac_cv_prog_cc_g = yes; then
12878   if test "$GCC" = yes; then
12879     CFLAGS="-g -O2"
12880   else
12881     CFLAGS="-g"
12882   fi
12883 else
12884   if test "$GCC" = yes; then
12885     CFLAGS="-O2"
12886   else
12887     CFLAGS=
12888   fi
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12892 if ${ac_cv_prog_cc_c89+:} false; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   ac_cv_prog_cc_c89=no
12896 ac_save_CC=$CC
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h.  */
12899 #include <stdarg.h>
12900 #include <stdio.h>
12901 struct stat;
12902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12903 struct buf { int x; };
12904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12905 static char *e (p, i)
12906      char **p;
12907      int i;
12908 {
12909   return p[i];
12910 }
12911 static char *f (char * (*g) (char **, int), char **p, ...)
12912 {
12913   char *s;
12914   va_list v;
12915   va_start (v,p);
12916   s = g (p, va_arg (v,int));
12917   va_end (v);
12918   return s;
12919 }
12920
12921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12922    function prototypes and stuff, but not '\xHH' hex character constants.
12923    These don't provoke an error unfortunately, instead are silently treated
12924    as 'x'.  The following induces an error, until -std is added to get
12925    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12926    array size at least.  It's necessary to write '\x00'==0 to get something
12927    that's true only with -std.  */
12928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12929
12930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12931    inside strings and character constants.  */
12932 #define FOO(x) 'x'
12933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12934
12935 int test (int i, double x);
12936 struct s1 {int (*f) (int a);};
12937 struct s2 {int (*f) (double a);};
12938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12939 int argc;
12940 char **argv;
12941 int
12942 main ()
12943 {
12944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12950         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12951 do
12952   CC="$ac_save_CC $ac_arg"
12953   if ac_fn_c_try_compile "$LINENO"; then :
12954   ac_cv_prog_cc_c89=$ac_arg
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext
12957   test "x$ac_cv_prog_cc_c89" != "xno" && break
12958 done
12959 rm -f conftest.$ac_ext
12960 CC=$ac_save_CC
12961
12962 fi
12963 # AC_CACHE_VAL
12964 case "x$ac_cv_prog_cc_c89" in
12965   x)
12966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12967 $as_echo "none needed" >&6; } ;;
12968   xno)
12969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12970 $as_echo "unsupported" >&6; } ;;
12971   *)
12972     CC="$CC $ac_cv_prog_cc_c89"
12973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12975 esac
12976 if test "x$ac_cv_prog_cc_c89" != xno; then :
12977
12978 fi
12979
12980 ac_ext=c
12981 ac_cpp='$CPP $CPPFLAGS'
12982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12985
12986 ac_ext=c
12987 ac_cpp='$CPP $CPPFLAGS'
12988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12992 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12993 if ${am_cv_prog_cc_c_o+:} false; then :
12994   $as_echo_n "(cached) " >&6
12995 else
12996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h.  */
12998
12999 int
13000 main ()
13001 {
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007   # Make sure it works both with $CC and with simple cc.
13008   # Following AC_PROG_CC_C_O, we do the test twice because some
13009   # compilers refuse to overwrite an existing .o file with -o,
13010   # though they will create one.
13011   am_cv_prog_cc_c_o=yes
13012   for am_i in 1 2; do
13013     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13014    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13015    ac_status=$?
13016    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017    (exit $ac_status); } \
13018          && test -f conftest2.$ac_objext; then
13019       : OK
13020     else
13021       am_cv_prog_cc_c_o=no
13022       break
13023     fi
13024   done
13025   rm -f core conftest*
13026   unset am_i
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13029 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13030 if test "$am_cv_prog_cc_c_o" != yes; then
13031    # Losing compiler, so override with the script.
13032    # FIXME: It is wrong to rewrite CC.
13033    # But if we don't then we get into trouble of one sort or another.
13034    # A longer-term fix would be to have automake use am__CC in this case,
13035    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13036    CC="$am_aux_dir/compile $CC"
13037 fi
13038 ac_ext=c
13039 ac_cpp='$CPP $CPPFLAGS'
13040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13043
13044
13045 depcc="$CC"   am_compiler_list=
13046
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13048 $as_echo_n "checking dependency style of $depcc... " >&6; }
13049 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13050   $as_echo_n "(cached) " >&6
13051 else
13052   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13053   # We make a subdir and do the tests there.  Otherwise we can end up
13054   # making bogus files that we don't know about and never remove.  For
13055   # instance it was reported that on HP-UX the gcc test will end up
13056   # making a dummy file named 'D' -- because '-MD' means "put the output
13057   # in D".
13058   rm -rf conftest.dir
13059   mkdir conftest.dir
13060   # Copy depcomp to subdir because otherwise we won't find it if we're
13061   # using a relative directory.
13062   cp "$am_depcomp" conftest.dir
13063   cd conftest.dir
13064   # We will build objects and dependencies in a subdirectory because
13065   # it helps to detect inapplicable dependency modes.  For instance
13066   # both Tru64's cc and ICC support -MD to output dependencies as a
13067   # side effect of compilation, but ICC will put the dependencies in
13068   # the current directory while Tru64 will put them in the object
13069   # directory.
13070   mkdir sub
13071
13072   am_cv_CC_dependencies_compiler_type=none
13073   if test "$am_compiler_list" = ""; then
13074      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13075   fi
13076   am__universal=false
13077   case " $depcc " in #(
13078      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13079      esac
13080
13081   for depmode in $am_compiler_list; do
13082     # Setup a source with many dependencies, because some compilers
13083     # like to wrap large dependency lists on column 80 (with \), and
13084     # we should not choose a depcomp mode which is confused by this.
13085     #
13086     # We need to recreate these files for each test, as the compiler may
13087     # overwrite some of them when testing with obscure command lines.
13088     # This happens at least with the AIX C compiler.
13089     : > sub/conftest.c
13090     for i in 1 2 3 4 5 6; do
13091       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13092       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13093       # Solaris 10 /bin/sh.
13094       echo '/* dummy */' > sub/conftst$i.h
13095     done
13096     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13097
13098     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13099     # mode.  It turns out that the SunPro C++ compiler does not properly
13100     # handle '-M -o', and we need to detect this.  Also, some Intel
13101     # versions had trouble with output in subdirs.
13102     am__obj=sub/conftest.${OBJEXT-o}
13103     am__minus_obj="-o $am__obj"
13104     case $depmode in
13105     gcc)
13106       # This depmode causes a compiler race in universal mode.
13107       test "$am__universal" = false || continue
13108       ;;
13109     nosideeffect)
13110       # After this tag, mechanisms are not by side-effect, so they'll
13111       # only be used when explicitly requested.
13112       if test "x$enable_dependency_tracking" = xyes; then
13113         continue
13114       else
13115         break
13116       fi
13117       ;;
13118     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13119       # This compiler won't grok '-c -o', but also, the minuso test has
13120       # not run yet.  These depmodes are late enough in the game, and
13121       # so weak that their functioning should not be impacted.
13122       am__obj=conftest.${OBJEXT-o}
13123       am__minus_obj=
13124       ;;
13125     none) break ;;
13126     esac
13127     if depmode=$depmode \
13128        source=sub/conftest.c object=$am__obj \
13129        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13130        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13131          >/dev/null 2>conftest.err &&
13132        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13133        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13134        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13135        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13136       # icc doesn't choke on unknown options, it will just issue warnings
13137       # or remarks (even with -Werror).  So we grep stderr for any message
13138       # that says an option was ignored or not supported.
13139       # When given -MP, icc 7.0 and 7.1 complain thusly:
13140       #   icc: Command line warning: ignoring option '-M'; no argument required
13141       # The diagnosis changed in icc 8.0:
13142       #   icc: Command line remark: option '-MP' not supported
13143       if (grep 'ignoring option' conftest.err ||
13144           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13145         am_cv_CC_dependencies_compiler_type=$depmode
13146         break
13147       fi
13148     fi
13149   done
13150
13151   cd ..
13152   rm -rf conftest.dir
13153 else
13154   am_cv_CC_dependencies_compiler_type=none
13155 fi
13156
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13159 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13160 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13161
13162  if
13163   test "x$enable_dependency_tracking" != xno \
13164   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13165   am__fastdepCC_TRUE=
13166   am__fastdepCC_FALSE='#'
13167 else
13168   am__fastdepCC_TRUE='#'
13169   am__fastdepCC_FALSE=
13170 fi
13171
13172
13173
13174 ac_ext=cpp
13175 ac_cpp='$CXXCPP $CPPFLAGS'
13176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13179 if test -z "$CXX"; then
13180   if test -n "$CCC"; then
13181     CXX=$CCC
13182   else
13183     if test -n "$ac_tool_prefix"; then
13184   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13185   do
13186     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if ${ac_cv_prog_CXX+:} false; then :
13191   $as_echo_n "(cached) " >&6
13192 else
13193   if test -n "$CXX"; then
13194   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13198 do
13199   IFS=$as_save_IFS
13200   test -z "$as_dir" && as_dir=.
13201     for ac_exec_ext in '' $ac_executable_extensions; do
13202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13203     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205     break 2
13206   fi
13207 done
13208   done
13209 IFS=$as_save_IFS
13210
13211 fi
13212 fi
13213 CXX=$ac_cv_prog_CXX
13214 if test -n "$CXX"; then
13215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13216 $as_echo "$CXX" >&6; }
13217 else
13218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220 fi
13221
13222
13223     test -n "$CXX" && break
13224   done
13225 fi
13226 if test -z "$CXX"; then
13227   ac_ct_CXX=$CXX
13228   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13229 do
13230   # Extract the first word of "$ac_prog", so it can be a program name with args.
13231 set dummy $ac_prog; ac_word=$2
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13233 $as_echo_n "checking for $ac_word... " >&6; }
13234 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13235   $as_echo_n "(cached) " >&6
13236 else
13237   if test -n "$ac_ct_CXX"; then
13238   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13239 else
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   test -z "$as_dir" && as_dir=.
13245     for ac_exec_ext in '' $ac_executable_extensions; do
13246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13247     ac_cv_prog_ac_ct_CXX="$ac_prog"
13248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13249     break 2
13250   fi
13251 done
13252   done
13253 IFS=$as_save_IFS
13254
13255 fi
13256 fi
13257 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13258 if test -n "$ac_ct_CXX"; then
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13260 $as_echo "$ac_ct_CXX" >&6; }
13261 else
13262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264 fi
13265
13266
13267   test -n "$ac_ct_CXX" && break
13268 done
13269
13270   if test "x$ac_ct_CXX" = x; then
13271     CXX="g++"
13272   else
13273     case $cross_compiling:$ac_tool_warned in
13274 yes:)
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13277 ac_tool_warned=yes ;;
13278 esac
13279     CXX=$ac_ct_CXX
13280   fi
13281 fi
13282
13283   fi
13284 fi
13285 # Provide some information about the compiler.
13286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13287 set X $ac_compile
13288 ac_compiler=$2
13289 for ac_option in --version -v -V -qversion; do
13290   { { ac_try="$ac_compiler $ac_option >&5"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13296 $as_echo "$ac_try_echo"; } >&5
13297   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13298   ac_status=$?
13299   if test -s conftest.err; then
13300     sed '10a\
13301 ... rest of stderr output deleted ...
13302          10q' conftest.err >conftest.er1
13303     cat conftest.er1 >&5
13304   fi
13305   rm -f conftest.er1 conftest.err
13306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13307   test $ac_status = 0; }
13308 done
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13311 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13312 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13313   $as_echo_n "(cached) " >&6
13314 else
13315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h.  */
13317
13318 int
13319 main ()
13320 {
13321 #ifndef __GNUC__
13322        choke me
13323 #endif
13324
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_cxx_try_compile "$LINENO"; then :
13330   ac_compiler_gnu=yes
13331 else
13332   ac_compiler_gnu=no
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13339 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13340 if test $ac_compiler_gnu = yes; then
13341   GXX=yes
13342 else
13343   GXX=
13344 fi
13345 ac_test_CXXFLAGS=${CXXFLAGS+set}
13346 ac_save_CXXFLAGS=$CXXFLAGS
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13348 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13349 if ${ac_cv_prog_cxx_g+:} false; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13353    ac_cxx_werror_flag=yes
13354    ac_cv_prog_cxx_g=no
13355    CXXFLAGS="-g"
13356    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h.  */
13358
13359 int
13360 main ()
13361 {
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_cxx_try_compile "$LINENO"; then :
13368   ac_cv_prog_cxx_g=yes
13369 else
13370   CXXFLAGS=""
13371       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h.  */
13373
13374 int
13375 main ()
13376 {
13377
13378   ;
13379   return 0;
13380 }
13381 _ACEOF
13382 if ac_fn_cxx_try_compile "$LINENO"; then :
13383
13384 else
13385   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13386          CXXFLAGS="-g"
13387          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h.  */
13389
13390 int
13391 main ()
13392 {
13393
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 if ac_fn_cxx_try_compile "$LINENO"; then :
13399   ac_cv_prog_cxx_g=yes
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13407 fi
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13409 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13410 if test "$ac_test_CXXFLAGS" = set; then
13411   CXXFLAGS=$ac_save_CXXFLAGS
13412 elif test $ac_cv_prog_cxx_g = yes; then
13413   if test "$GXX" = yes; then
13414     CXXFLAGS="-g -O2"
13415   else
13416     CXXFLAGS="-g"
13417   fi
13418 else
13419   if test "$GXX" = yes; then
13420     CXXFLAGS="-O2"
13421   else
13422     CXXFLAGS=
13423   fi
13424 fi
13425 ac_ext=c
13426 ac_cpp='$CPP $CPPFLAGS'
13427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13430
13431 depcc="$CXX"  am_compiler_list=
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13434 $as_echo_n "checking dependency style of $depcc... " >&6; }
13435 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13436   $as_echo_n "(cached) " >&6
13437 else
13438   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13439   # We make a subdir and do the tests there.  Otherwise we can end up
13440   # making bogus files that we don't know about and never remove.  For
13441   # instance it was reported that on HP-UX the gcc test will end up
13442   # making a dummy file named 'D' -- because '-MD' means "put the output
13443   # in D".
13444   rm -rf conftest.dir
13445   mkdir conftest.dir
13446   # Copy depcomp to subdir because otherwise we won't find it if we're
13447   # using a relative directory.
13448   cp "$am_depcomp" conftest.dir
13449   cd conftest.dir
13450   # We will build objects and dependencies in a subdirectory because
13451   # it helps to detect inapplicable dependency modes.  For instance
13452   # both Tru64's cc and ICC support -MD to output dependencies as a
13453   # side effect of compilation, but ICC will put the dependencies in
13454   # the current directory while Tru64 will put them in the object
13455   # directory.
13456   mkdir sub
13457
13458   am_cv_CXX_dependencies_compiler_type=none
13459   if test "$am_compiler_list" = ""; then
13460      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13461   fi
13462   am__universal=false
13463   case " $depcc " in #(
13464      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13465      esac
13466
13467   for depmode in $am_compiler_list; do
13468     # Setup a source with many dependencies, because some compilers
13469     # like to wrap large dependency lists on column 80 (with \), and
13470     # we should not choose a depcomp mode which is confused by this.
13471     #
13472     # We need to recreate these files for each test, as the compiler may
13473     # overwrite some of them when testing with obscure command lines.
13474     # This happens at least with the AIX C compiler.
13475     : > sub/conftest.c
13476     for i in 1 2 3 4 5 6; do
13477       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13478       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13479       # Solaris 10 /bin/sh.
13480       echo '/* dummy */' > sub/conftst$i.h
13481     done
13482     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13483
13484     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13485     # mode.  It turns out that the SunPro C++ compiler does not properly
13486     # handle '-M -o', and we need to detect this.  Also, some Intel
13487     # versions had trouble with output in subdirs.
13488     am__obj=sub/conftest.${OBJEXT-o}
13489     am__minus_obj="-o $am__obj"
13490     case $depmode in
13491     gcc)
13492       # This depmode causes a compiler race in universal mode.
13493       test "$am__universal" = false || continue
13494       ;;
13495     nosideeffect)
13496       # After this tag, mechanisms are not by side-effect, so they'll
13497       # only be used when explicitly requested.
13498       if test "x$enable_dependency_tracking" = xyes; then
13499         continue
13500       else
13501         break
13502       fi
13503       ;;
13504     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13505       # This compiler won't grok '-c -o', but also, the minuso test has
13506       # not run yet.  These depmodes are late enough in the game, and
13507       # so weak that their functioning should not be impacted.
13508       am__obj=conftest.${OBJEXT-o}
13509       am__minus_obj=
13510       ;;
13511     none) break ;;
13512     esac
13513     if depmode=$depmode \
13514        source=sub/conftest.c object=$am__obj \
13515        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13516        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13517          >/dev/null 2>conftest.err &&
13518        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13519        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13520        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13521        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13522       # icc doesn't choke on unknown options, it will just issue warnings
13523       # or remarks (even with -Werror).  So we grep stderr for any message
13524       # that says an option was ignored or not supported.
13525       # When given -MP, icc 7.0 and 7.1 complain thusly:
13526       #   icc: Command line warning: ignoring option '-M'; no argument required
13527       # The diagnosis changed in icc 8.0:
13528       #   icc: Command line remark: option '-MP' not supported
13529       if (grep 'ignoring option' conftest.err ||
13530           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13531         am_cv_CXX_dependencies_compiler_type=$depmode
13532         break
13533       fi
13534     fi
13535   done
13536
13537   cd ..
13538   rm -rf conftest.dir
13539 else
13540   am_cv_CXX_dependencies_compiler_type=none
13541 fi
13542
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13545 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13546 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13547
13548  if
13549   test "x$enable_dependency_tracking" != xno \
13550   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13551   am__fastdepCXX_TRUE=
13552   am__fastdepCXX_FALSE='#'
13553 else
13554   am__fastdepCXX_TRUE='#'
13555   am__fastdepCXX_FALSE=
13556 fi
13557
13558
13559
13560
13561 func_stripname_cnf ()
13562 {
13563   case ${2} in
13564   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13565   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13566   esac
13567 } # func_stripname_cnf
13568
13569       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13570     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13571     (test "X$CXX" != "Xg++"))) ; then
13572   ac_ext=cpp
13573 ac_cpp='$CXXCPP $CPPFLAGS'
13574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13578 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13579 if test -z "$CXXCPP"; then
13580   if ${ac_cv_prog_CXXCPP+:} false; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583       # Double quotes because CXXCPP needs to be expanded
13584     for CXXCPP in "$CXX -E" "/lib/cpp"
13585     do
13586       ac_preproc_ok=false
13587 for ac_cxx_preproc_warn_flag in '' yes
13588 do
13589   # Use a header file that comes with gcc, so configuring glibc
13590   # with a fresh cross-compiler works.
13591   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13592   # <limits.h> exists even on freestanding compilers.
13593   # On the NeXT, cc -E runs the code through the compiler's parser,
13594   # not just through cpp. "Syntax error" is here to catch this case.
13595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h.  */
13597 #ifdef __STDC__
13598 # include <limits.h>
13599 #else
13600 # include <assert.h>
13601 #endif
13602                      Syntax error
13603 _ACEOF
13604 if ac_fn_cxx_try_cpp "$LINENO"; then :
13605
13606 else
13607   # Broken: fails on valid input.
13608 continue
13609 fi
13610 rm -f conftest.err conftest.i conftest.$ac_ext
13611
13612   # OK, works on sane cases.  Now check whether nonexistent headers
13613   # can be detected and how.
13614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h.  */
13616 #include <ac_nonexistent.h>
13617 _ACEOF
13618 if ac_fn_cxx_try_cpp "$LINENO"; then :
13619   # Broken: success on invalid input.
13620 continue
13621 else
13622   # Passes both tests.
13623 ac_preproc_ok=:
13624 break
13625 fi
13626 rm -f conftest.err conftest.i conftest.$ac_ext
13627
13628 done
13629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13630 rm -f conftest.i conftest.err conftest.$ac_ext
13631 if $ac_preproc_ok; then :
13632   break
13633 fi
13634
13635     done
13636     ac_cv_prog_CXXCPP=$CXXCPP
13637
13638 fi
13639   CXXCPP=$ac_cv_prog_CXXCPP
13640 else
13641   ac_cv_prog_CXXCPP=$CXXCPP
13642 fi
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13644 $as_echo "$CXXCPP" >&6; }
13645 ac_preproc_ok=false
13646 for ac_cxx_preproc_warn_flag in '' yes
13647 do
13648   # Use a header file that comes with gcc, so configuring glibc
13649   # with a fresh cross-compiler works.
13650   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651   # <limits.h> exists even on freestanding compilers.
13652   # On the NeXT, cc -E runs the code through the compiler's parser,
13653   # not just through cpp. "Syntax error" is here to catch this case.
13654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h.  */
13656 #ifdef __STDC__
13657 # include <limits.h>
13658 #else
13659 # include <assert.h>
13660 #endif
13661                      Syntax error
13662 _ACEOF
13663 if ac_fn_cxx_try_cpp "$LINENO"; then :
13664
13665 else
13666   # Broken: fails on valid input.
13667 continue
13668 fi
13669 rm -f conftest.err conftest.i conftest.$ac_ext
13670
13671   # OK, works on sane cases.  Now check whether nonexistent headers
13672   # can be detected and how.
13673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h.  */
13675 #include <ac_nonexistent.h>
13676 _ACEOF
13677 if ac_fn_cxx_try_cpp "$LINENO"; then :
13678   # Broken: success on invalid input.
13679 continue
13680 else
13681   # Passes both tests.
13682 ac_preproc_ok=:
13683 break
13684 fi
13685 rm -f conftest.err conftest.i conftest.$ac_ext
13686
13687 done
13688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13689 rm -f conftest.i conftest.err conftest.$ac_ext
13690 if $ac_preproc_ok; then :
13691
13692 else
13693   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13695 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13696 See \`config.log' for more details" "$LINENO" 5; }
13697 fi
13698
13699 ac_ext=c
13700 ac_cpp='$CPP $CPPFLAGS'
13701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13704
13705 else
13706   _lt_caught_CXX_error=yes
13707 fi
13708
13709 ac_ext=cpp
13710 ac_cpp='$CXXCPP $CPPFLAGS'
13711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13714
13715 archive_cmds_need_lc_CXX=no
13716 allow_undefined_flag_CXX=
13717 always_export_symbols_CXX=no
13718 archive_expsym_cmds_CXX=
13719 compiler_needs_object_CXX=no
13720 export_dynamic_flag_spec_CXX=
13721 hardcode_direct_CXX=no
13722 hardcode_direct_absolute_CXX=no
13723 hardcode_libdir_flag_spec_CXX=
13724 hardcode_libdir_separator_CXX=
13725 hardcode_minus_L_CXX=no
13726 hardcode_shlibpath_var_CXX=unsupported
13727 hardcode_automatic_CXX=no
13728 inherit_rpath_CXX=no
13729 module_cmds_CXX=
13730 module_expsym_cmds_CXX=
13731 link_all_deplibs_CXX=unknown
13732 old_archive_cmds_CXX=$old_archive_cmds
13733 reload_flag_CXX=$reload_flag
13734 reload_cmds_CXX=$reload_cmds
13735 no_undefined_flag_CXX=
13736 whole_archive_flag_spec_CXX=
13737 enable_shared_with_static_runtimes_CXX=no
13738
13739 # Source file extension for C++ test sources.
13740 ac_ext=cpp
13741
13742 # Object file extension for compiled C++ test sources.
13743 objext=o
13744 objext_CXX=$objext
13745
13746 # No sense in running all these tests if we already determined that
13747 # the CXX compiler isn't working.  Some variables (like enable_shared)
13748 # are currently assumed to apply to all compilers on this platform,
13749 # and will be corrupted by setting them based on a non-working compiler.
13750 if test "$_lt_caught_CXX_error" != yes; then
13751   # Code to be used in simple compile tests
13752   lt_simple_compile_test_code="int some_variable = 0;"
13753
13754   # Code to be used in simple link tests
13755   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13756
13757   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13758
13759
13760
13761
13762
13763
13764 # If no C compiler was specified, use CC.
13765 LTCC=${LTCC-"$CC"}
13766
13767 # If no C compiler flags were specified, use CFLAGS.
13768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13769
13770 # Allow CC to be a program name with arguments.
13771 compiler=$CC
13772
13773
13774   # save warnings/boilerplate of simple test code
13775   ac_outfile=conftest.$ac_objext
13776 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13778 _lt_compiler_boilerplate=`cat conftest.err`
13779 $RM conftest*
13780
13781   ac_outfile=conftest.$ac_objext
13782 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13784 _lt_linker_boilerplate=`cat conftest.err`
13785 $RM -r conftest*
13786
13787
13788   # Allow CC to be a program name with arguments.
13789   lt_save_CC=$CC
13790   lt_save_CFLAGS=$CFLAGS
13791   lt_save_LD=$LD
13792   lt_save_GCC=$GCC
13793   GCC=$GXX
13794   lt_save_with_gnu_ld=$with_gnu_ld
13795   lt_save_path_LD=$lt_cv_path_LD
13796   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13797     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13798   else
13799     $as_unset lt_cv_prog_gnu_ld
13800   fi
13801   if test -n "${lt_cv_path_LDCXX+set}"; then
13802     lt_cv_path_LD=$lt_cv_path_LDCXX
13803   else
13804     $as_unset lt_cv_path_LD
13805   fi
13806   test -z "${LDCXX+set}" || LD=$LDCXX
13807   CC=${CXX-"c++"}
13808   CFLAGS=$CXXFLAGS
13809   compiler=$CC
13810   compiler_CXX=$CC
13811   for cc_temp in $compiler""; do
13812   case $cc_temp in
13813     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13814     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13815     \-*) ;;
13816     *) break;;
13817   esac
13818 done
13819 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13820
13821
13822   if test -n "$compiler"; then
13823     # We don't want -fno-exception when compiling C++ code, so set the
13824     # no_builtin_flag separately
13825     if test "$GXX" = yes; then
13826       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13827     else
13828       lt_prog_compiler_no_builtin_flag_CXX=
13829     fi
13830
13831     if test "$GXX" = yes; then
13832       # Set up default GNU C++ configuration
13833
13834
13835
13836 # Check whether --with-gnu-ld was given.
13837 if test "${with_gnu_ld+set}" = set; then :
13838   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13839 else
13840   with_gnu_ld=no
13841 fi
13842
13843 ac_prog=ld
13844 if test "$GCC" = yes; then
13845   # Check if gcc -print-prog-name=ld gives a path.
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13847 $as_echo_n "checking for ld used by $CC... " >&6; }
13848   case $host in
13849   *-*-mingw*)
13850     # gcc leaves a trailing carriage return which upsets mingw
13851     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13852   *)
13853     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13854   esac
13855   case $ac_prog in
13856     # Accept absolute paths.
13857     [\\/]* | ?:[\\/]*)
13858       re_direlt='/[^/][^/]*/\.\./'
13859       # Canonicalize the pathname of ld
13860       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13861       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13862         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13863       done
13864       test -z "$LD" && LD="$ac_prog"
13865       ;;
13866   "")
13867     # If it fails, then pretend we aren't using GCC.
13868     ac_prog=ld
13869     ;;
13870   *)
13871     # If it is relative, then search for the first ld in PATH.
13872     with_gnu_ld=unknown
13873     ;;
13874   esac
13875 elif test "$with_gnu_ld" = yes; then
13876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13877 $as_echo_n "checking for GNU ld... " >&6; }
13878 else
13879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13880 $as_echo_n "checking for non-GNU ld... " >&6; }
13881 fi
13882 if ${lt_cv_path_LD+:} false; then :
13883   $as_echo_n "(cached) " >&6
13884 else
13885   if test -z "$LD"; then
13886   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13887   for ac_dir in $PATH; do
13888     IFS="$lt_save_ifs"
13889     test -z "$ac_dir" && ac_dir=.
13890     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13891       lt_cv_path_LD="$ac_dir/$ac_prog"
13892       # Check to see if the program is GNU ld.  I'd rather use --version,
13893       # but apparently some variants of GNU ld only accept -v.
13894       # Break only if it was the GNU/non-GNU ld that we prefer.
13895       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13896       *GNU* | *'with BFD'*)
13897         test "$with_gnu_ld" != no && break
13898         ;;
13899       *)
13900         test "$with_gnu_ld" != yes && break
13901         ;;
13902       esac
13903     fi
13904   done
13905   IFS="$lt_save_ifs"
13906 else
13907   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13908 fi
13909 fi
13910
13911 LD="$lt_cv_path_LD"
13912 if test -n "$LD"; then
13913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13914 $as_echo "$LD" >&6; }
13915 else
13916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13918 fi
13919 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13921 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13922 if ${lt_cv_prog_gnu_ld+:} false; then :
13923   $as_echo_n "(cached) " >&6
13924 else
13925   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13926 case `$LD -v 2>&1 </dev/null` in
13927 *GNU* | *'with BFD'*)
13928   lt_cv_prog_gnu_ld=yes
13929   ;;
13930 *)
13931   lt_cv_prog_gnu_ld=no
13932   ;;
13933 esac
13934 fi
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13936 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13937 with_gnu_ld=$lt_cv_prog_gnu_ld
13938
13939
13940
13941
13942
13943
13944
13945       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13946       # archiving commands below assume that GNU ld is being used.
13947       if test "$with_gnu_ld" = yes; then
13948         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13949         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'
13950
13951         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13952         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13953
13954         # If archive_cmds runs LD, not CC, wlarc should be empty
13955         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13956         #     investigate it a little bit more. (MM)
13957         wlarc='${wl}'
13958
13959         # ancient GNU ld didn't support --whole-archive et. al.
13960         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13961           $GREP 'no-whole-archive' > /dev/null; then
13962           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13963         else
13964           whole_archive_flag_spec_CXX=
13965         fi
13966       else
13967         with_gnu_ld=no
13968         wlarc=
13969
13970         # A generic and very simple default shared library creation
13971         # command for GNU C++ for the case where it uses the native
13972         # linker, instead of GNU ld.  If possible, this setting should
13973         # overridden to take advantage of the native linker features on
13974         # the platform it is being used on.
13975         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13976       fi
13977
13978       # Commands to make compiler produce verbose output that lists
13979       # what "hidden" libraries, object files and flags are used when
13980       # linking a shared library.
13981       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13982
13983     else
13984       GXX=no
13985       with_gnu_ld=no
13986       wlarc=
13987     fi
13988
13989     # PORTME: fill in a description of your system's C++ link characteristics
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13992     ld_shlibs_CXX=yes
13993     case $host_os in
13994       aix3*)
13995         # FIXME: insert proper C++ library support
13996         ld_shlibs_CXX=no
13997         ;;
13998       aix[4-9]*)
13999         if test "$host_cpu" = ia64; then
14000           # On IA64, the linker does run time linking by default, so we don't
14001           # have to do anything special.
14002           aix_use_runtimelinking=no
14003           exp_sym_flag='-Bexport'
14004           no_entry_flag=""
14005         else
14006           aix_use_runtimelinking=no
14007
14008           # Test if we are trying to use run time linking or normal
14009           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14010           # need to do runtime linking.
14011           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14012             for ld_flag in $LDFLAGS; do
14013               case $ld_flag in
14014               *-brtl*)
14015                 aix_use_runtimelinking=yes
14016                 break
14017                 ;;
14018               esac
14019             done
14020             ;;
14021           esac
14022
14023           exp_sym_flag='-bexport'
14024           no_entry_flag='-bnoentry'
14025         fi
14026
14027         # When large executables or shared objects are built, AIX ld can
14028         # have problems creating the table of contents.  If linking a library
14029         # or program results in "error TOC overflow" add -mminimal-toc to
14030         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14031         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14032
14033         archive_cmds_CXX=''
14034         hardcode_direct_CXX=yes
14035         hardcode_direct_absolute_CXX=yes
14036         hardcode_libdir_separator_CXX=':'
14037         link_all_deplibs_CXX=yes
14038         file_list_spec_CXX='${wl}-f,'
14039
14040         if test "$GXX" = yes; then
14041           case $host_os in aix4.[012]|aix4.[012].*)
14042           # We only want to do this on AIX 4.2 and lower, the check
14043           # below for broken collect2 doesn't work under 4.3+
14044           collect2name=`${CC} -print-prog-name=collect2`
14045           if test -f "$collect2name" &&
14046              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14047           then
14048             # We have reworked collect2
14049             :
14050           else
14051             # We have old collect2
14052             hardcode_direct_CXX=unsupported
14053             # It fails to find uninstalled libraries when the uninstalled
14054             # path is not listed in the libpath.  Setting hardcode_minus_L
14055             # to unsupported forces relinking
14056             hardcode_minus_L_CXX=yes
14057             hardcode_libdir_flag_spec_CXX='-L$libdir'
14058             hardcode_libdir_separator_CXX=
14059           fi
14060           esac
14061           shared_flag='-shared'
14062           if test "$aix_use_runtimelinking" = yes; then
14063             shared_flag="$shared_flag "'${wl}-G'
14064           fi
14065         else
14066           # not using gcc
14067           if test "$host_cpu" = ia64; then
14068           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14069           # chokes on -Wl,-G. The following line is correct:
14070           shared_flag='-G'
14071           else
14072             if test "$aix_use_runtimelinking" = yes; then
14073               shared_flag='${wl}-G'
14074             else
14075               shared_flag='${wl}-bM:SRE'
14076             fi
14077           fi
14078         fi
14079
14080         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14081         # It seems that -bexpall does not export symbols beginning with
14082         # underscore (_), so it is better to generate a list of symbols to
14083         # export.
14084         always_export_symbols_CXX=yes
14085         if test "$aix_use_runtimelinking" = yes; then
14086           # Warning - without using the other runtime loading flags (-brtl),
14087           # -berok will link without error, but may produce a broken library.
14088           allow_undefined_flag_CXX='-berok'
14089           # Determine the default libpath from the value encoded in an empty
14090           # executable.
14091           if test "${lt_cv_aix_libpath+set}" = set; then
14092   aix_libpath=$lt_cv_aix_libpath
14093 else
14094   if ${lt_cv_aix_libpath__CXX+:} false; then :
14095   $as_echo_n "(cached) " >&6
14096 else
14097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h.  */
14099
14100 int
14101 main ()
14102 {
14103
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 if ac_fn_cxx_try_link "$LINENO"; then :
14109
14110   lt_aix_libpath_sed='
14111       /Import File Strings/,/^$/ {
14112           /^0/ {
14113               s/^0  *\([^ ]*\) *$/\1/
14114               p
14115           }
14116       }'
14117   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14118   # Check for a 64-bit object if we didn't find anything.
14119   if test -z "$lt_cv_aix_libpath__CXX"; then
14120     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14121   fi
14122 fi
14123 rm -f core conftest.err conftest.$ac_objext \
14124     conftest$ac_exeext conftest.$ac_ext
14125   if test -z "$lt_cv_aix_libpath__CXX"; then
14126     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14127   fi
14128
14129 fi
14130
14131   aix_libpath=$lt_cv_aix_libpath__CXX
14132 fi
14133
14134           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14135
14136           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"
14137         else
14138           if test "$host_cpu" = ia64; then
14139             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14140             allow_undefined_flag_CXX="-z nodefs"
14141             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"
14142           else
14143             # Determine the default libpath from the value encoded in an
14144             # empty executable.
14145             if test "${lt_cv_aix_libpath+set}" = set; then
14146   aix_libpath=$lt_cv_aix_libpath
14147 else
14148   if ${lt_cv_aix_libpath__CXX+:} false; then :
14149   $as_echo_n "(cached) " >&6
14150 else
14151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h.  */
14153
14154 int
14155 main ()
14156 {
14157
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_cxx_try_link "$LINENO"; then :
14163
14164   lt_aix_libpath_sed='
14165       /Import File Strings/,/^$/ {
14166           /^0/ {
14167               s/^0  *\([^ ]*\) *$/\1/
14168               p
14169           }
14170       }'
14171   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14172   # Check for a 64-bit object if we didn't find anything.
14173   if test -z "$lt_cv_aix_libpath__CXX"; then
14174     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14175   fi
14176 fi
14177 rm -f core conftest.err conftest.$ac_objext \
14178     conftest$ac_exeext conftest.$ac_ext
14179   if test -z "$lt_cv_aix_libpath__CXX"; then
14180     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14181   fi
14182
14183 fi
14184
14185   aix_libpath=$lt_cv_aix_libpath__CXX
14186 fi
14187
14188             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14189             # Warning - without using the other run time loading flags,
14190             # -berok will link without error, but may produce a broken library.
14191             no_undefined_flag_CXX=' ${wl}-bernotok'
14192             allow_undefined_flag_CXX=' ${wl}-berok'
14193             if test "$with_gnu_ld" = yes; then
14194               # We only use this code for GNU lds that support --whole-archive.
14195               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14196             else
14197               # Exported symbols can be pulled into shared objects from archives
14198               whole_archive_flag_spec_CXX='$convenience'
14199             fi
14200             archive_cmds_need_lc_CXX=yes
14201             # This is similar to how AIX traditionally builds its shared
14202             # libraries.
14203             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'
14204           fi
14205         fi
14206         ;;
14207
14208       beos*)
14209         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14210           allow_undefined_flag_CXX=unsupported
14211           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14212           # support --undefined.  This deserves some investigation.  FIXME
14213           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214         else
14215           ld_shlibs_CXX=no
14216         fi
14217         ;;
14218
14219       chorus*)
14220         case $cc_basename in
14221           *)
14222           # FIXME: insert proper C++ library support
14223           ld_shlibs_CXX=no
14224           ;;
14225         esac
14226         ;;
14227
14228       cygwin* | mingw* | pw32* | cegcc*)
14229         case $GXX,$cc_basename in
14230         ,cl* | no,cl*)
14231           # Native MSVC
14232           # hardcode_libdir_flag_spec is actually meaningless, as there is
14233           # no search path for DLLs.
14234           hardcode_libdir_flag_spec_CXX=' '
14235           allow_undefined_flag_CXX=unsupported
14236           always_export_symbols_CXX=yes
14237           file_list_spec_CXX='@'
14238           # Tell ltmain to make .lib files, not .a files.
14239           libext=lib
14240           # Tell ltmain to make .dll files, not .so files.
14241           shrext_cmds=".dll"
14242           # FIXME: Setting linknames here is a bad hack.
14243           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14244           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14245               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14246             else
14247               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14248             fi~
14249             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14250             linknames='
14251           # The linker will not automatically build a static lib if we build a DLL.
14252           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14253           enable_shared_with_static_runtimes_CXX=yes
14254           # Don't use ranlib
14255           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14256           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14257             lt_tool_outputfile="@TOOL_OUTPUT@"~
14258             case $lt_outputfile in
14259               *.exe|*.EXE) ;;
14260               *)
14261                 lt_outputfile="$lt_outputfile.exe"
14262                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14263                 ;;
14264             esac~
14265             func_to_tool_file "$lt_outputfile"~
14266             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14267               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14268               $RM "$lt_outputfile.manifest";
14269             fi'
14270           ;;
14271         *)
14272           # g++
14273           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14274           # as there is no search path for DLLs.
14275           hardcode_libdir_flag_spec_CXX='-L$libdir'
14276           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14277           allow_undefined_flag_CXX=unsupported
14278           always_export_symbols_CXX=no
14279           enable_shared_with_static_runtimes_CXX=yes
14280
14281           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14282             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'
14283             # If the export-symbols file already is a .def file (1st line
14284             # is EXPORTS), use it as is; otherwise, prepend...
14285             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14286               cp $export_symbols $output_objdir/$soname.def;
14287             else
14288               echo EXPORTS > $output_objdir/$soname.def;
14289               cat $export_symbols >> $output_objdir/$soname.def;
14290             fi~
14291             $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'
14292           else
14293             ld_shlibs_CXX=no
14294           fi
14295           ;;
14296         esac
14297         ;;
14298       darwin* | rhapsody*)
14299
14300
14301   archive_cmds_need_lc_CXX=no
14302   hardcode_direct_CXX=no
14303   hardcode_automatic_CXX=yes
14304   hardcode_shlibpath_var_CXX=unsupported
14305   if test "$lt_cv_ld_force_load" = "yes"; then
14306     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\"`'
14307
14308   else
14309     whole_archive_flag_spec_CXX=''
14310   fi
14311   link_all_deplibs_CXX=yes
14312   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14313   case $cc_basename in
14314      ifort*) _lt_dar_can_shared=yes ;;
14315      *) _lt_dar_can_shared=$GCC ;;
14316   esac
14317   if test "$_lt_dar_can_shared" = "yes"; then
14318     output_verbose_link_cmd=func_echo_all
14319     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}"
14320     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14321     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}"
14322     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}"
14323        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14324       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}"
14325       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}"
14326     fi
14327
14328   else
14329   ld_shlibs_CXX=no
14330   fi
14331
14332         ;;
14333
14334       dgux*)
14335         case $cc_basename in
14336           ec++*)
14337             # FIXME: insert proper C++ library support
14338             ld_shlibs_CXX=no
14339             ;;
14340           ghcx*)
14341             # Green Hills C++ Compiler
14342             # FIXME: insert proper C++ library support
14343             ld_shlibs_CXX=no
14344             ;;
14345           *)
14346             # FIXME: insert proper C++ library support
14347             ld_shlibs_CXX=no
14348             ;;
14349         esac
14350         ;;
14351
14352       freebsd2.*)
14353         # C++ shared libraries reported to be fairly broken before
14354         # switch to ELF
14355         ld_shlibs_CXX=no
14356         ;;
14357
14358       freebsd-elf*)
14359         archive_cmds_need_lc_CXX=no
14360         ;;
14361
14362       freebsd* | dragonfly*)
14363         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14364         # conventions
14365         ld_shlibs_CXX=yes
14366         ;;
14367
14368       haiku*)
14369         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14370         link_all_deplibs_CXX=yes
14371         ;;
14372
14373       hpux9*)
14374         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14375         hardcode_libdir_separator_CXX=:
14376         export_dynamic_flag_spec_CXX='${wl}-E'
14377         hardcode_direct_CXX=yes
14378         hardcode_minus_L_CXX=yes # Not in the search PATH,
14379                                              # but as the default
14380                                              # location of the library.
14381
14382         case $cc_basename in
14383           CC*)
14384             # FIXME: insert proper C++ library support
14385             ld_shlibs_CXX=no
14386             ;;
14387           aCC*)
14388             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'
14389             # Commands to make compiler produce verbose output that lists
14390             # what "hidden" libraries, object files and flags are used when
14391             # linking a shared library.
14392             #
14393             # There doesn't appear to be a way to prevent this compiler from
14394             # explicitly linking system object files so we need to strip them
14395             # from the output so that they don't get included in the library
14396             # dependencies.
14397             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"'
14398             ;;
14399           *)
14400             if test "$GXX" = yes; then
14401               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'
14402             else
14403               # FIXME: insert proper C++ library support
14404               ld_shlibs_CXX=no
14405             fi
14406             ;;
14407         esac
14408         ;;
14409
14410       hpux10*|hpux11*)
14411         if test $with_gnu_ld = no; then
14412           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14413           hardcode_libdir_separator_CXX=:
14414
14415           case $host_cpu in
14416             hppa*64*|ia64*)
14417               ;;
14418             *)
14419               export_dynamic_flag_spec_CXX='${wl}-E'
14420               ;;
14421           esac
14422         fi
14423         case $host_cpu in
14424           hppa*64*|ia64*)
14425             hardcode_direct_CXX=no
14426             hardcode_shlibpath_var_CXX=no
14427             ;;
14428           *)
14429             hardcode_direct_CXX=yes
14430             hardcode_direct_absolute_CXX=yes
14431             hardcode_minus_L_CXX=yes # Not in the search PATH,
14432                                                  # but as the default
14433                                                  # location of the library.
14434             ;;
14435         esac
14436
14437         case $cc_basename in
14438           CC*)
14439             # FIXME: insert proper C++ library support
14440             ld_shlibs_CXX=no
14441             ;;
14442           aCC*)
14443             case $host_cpu in
14444               hppa*64*)
14445                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14446                 ;;
14447               ia64*)
14448                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14449                 ;;
14450               *)
14451                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14452                 ;;
14453             esac
14454             # Commands to make compiler produce verbose output that lists
14455             # what "hidden" libraries, object files and flags are used when
14456             # linking a shared library.
14457             #
14458             # There doesn't appear to be a way to prevent this compiler from
14459             # explicitly linking system object files so we need to strip them
14460             # from the output so that they don't get included in the library
14461             # dependencies.
14462             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"'
14463             ;;
14464           *)
14465             if test "$GXX" = yes; then
14466               if test $with_gnu_ld = no; then
14467                 case $host_cpu in
14468                   hppa*64*)
14469                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14470                     ;;
14471                   ia64*)
14472                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14473                     ;;
14474                   *)
14475                     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'
14476                     ;;
14477                 esac
14478               fi
14479             else
14480               # FIXME: insert proper C++ library support
14481               ld_shlibs_CXX=no
14482             fi
14483             ;;
14484         esac
14485         ;;
14486
14487       interix[3-9]*)
14488         hardcode_direct_CXX=no
14489         hardcode_shlibpath_var_CXX=no
14490         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14491         export_dynamic_flag_spec_CXX='${wl}-E'
14492         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14493         # Instead, shared libraries are loaded at an image base (0x10000000 by
14494         # default) and relocated if they conflict, which is a slow very memory
14495         # consuming and fragmenting process.  To avoid this, we pick a random,
14496         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14497         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14498         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'
14499         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'
14500         ;;
14501       irix5* | irix6*)
14502         case $cc_basename in
14503           CC*)
14504             # SGI C++
14505             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'
14506
14507             # Archives containing C++ object files must be created using
14508             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14509             # necessary to make sure instantiated templates are included
14510             # in the archive.
14511             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14512             ;;
14513           *)
14514             if test "$GXX" = yes; then
14515               if test "$with_gnu_ld" = no; then
14516                 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'
14517               else
14518                 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'
14519               fi
14520             fi
14521             link_all_deplibs_CXX=yes
14522             ;;
14523         esac
14524         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14525         hardcode_libdir_separator_CXX=:
14526         inherit_rpath_CXX=yes
14527         ;;
14528
14529       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14530         case $cc_basename in
14531           KCC*)
14532             # Kuck and Associates, Inc. (KAI) C++ Compiler
14533
14534             # KCC will only create a shared library if the output file
14535             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14536             # to its proper name (with version) after linking.
14537             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'
14538             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'
14539             # Commands to make compiler produce verbose output that lists
14540             # what "hidden" libraries, object files and flags are used when
14541             # linking a shared library.
14542             #
14543             # There doesn't appear to be a way to prevent this compiler from
14544             # explicitly linking system object files so we need to strip them
14545             # from the output so that they don't get included in the library
14546             # dependencies.
14547             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"'
14548
14549             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14550             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14551
14552             # Archives containing C++ object files must be created using
14553             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14554             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14555             ;;
14556           icpc* | ecpc* )
14557             # Intel C++
14558             with_gnu_ld=yes
14559             # version 8.0 and above of icpc choke on multiply defined symbols
14560             # if we add $predep_objects and $postdep_objects, however 7.1 and
14561             # earlier do not add the objects themselves.
14562             case `$CC -V 2>&1` in
14563               *"Version 7."*)
14564                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14565                 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'
14566                 ;;
14567               *)  # Version 8.0 or newer
14568                 tmp_idyn=
14569                 case $host_cpu in
14570                   ia64*) tmp_idyn=' -i_dynamic';;
14571                 esac
14572                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14573                 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'
14574                 ;;
14575             esac
14576             archive_cmds_need_lc_CXX=no
14577             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14578             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14579             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14580             ;;
14581           pgCC* | pgcpp*)
14582             # Portland Group C++ compiler
14583             case `$CC -V` in
14584             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14585               prelink_cmds_CXX='tpldir=Template.dir~
14586                 rm -rf $tpldir~
14587                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14588                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14589               old_archive_cmds_CXX='tpldir=Template.dir~
14590                 rm -rf $tpldir~
14591                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14592                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14593                 $RANLIB $oldlib'
14594               archive_cmds_CXX='tpldir=Template.dir~
14595                 rm -rf $tpldir~
14596                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14597                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14598               archive_expsym_cmds_CXX='tpldir=Template.dir~
14599                 rm -rf $tpldir~
14600                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14601                 $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'
14602               ;;
14603             *) # Version 6 and above use weak symbols
14604               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14605               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'
14606               ;;
14607             esac
14608
14609             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14610             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14611             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'
14612             ;;
14613           cxx*)
14614             # Compaq C++
14615             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14616             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'
14617
14618             runpath_var=LD_RUN_PATH
14619             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14620             hardcode_libdir_separator_CXX=:
14621
14622             # Commands to make compiler produce verbose output that lists
14623             # what "hidden" libraries, object files and flags are used when
14624             # linking a shared library.
14625             #
14626             # There doesn't appear to be a way to prevent this compiler from
14627             # explicitly linking system object files so we need to strip them
14628             # from the output so that they don't get included in the library
14629             # dependencies.
14630             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'
14631             ;;
14632           xl* | mpixl* | bgxl*)
14633             # IBM XL 8.0 on PPC, with GNU ld
14634             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14635             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14636             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14637             if test "x$supports_anon_versioning" = xyes; then
14638               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14639                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14640                 echo "local: *; };" >> $output_objdir/$libname.ver~
14641                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14642             fi
14643             ;;
14644           *)
14645             case `$CC -V 2>&1 | sed 5q` in
14646             *Sun\ C*)
14647               # Sun C++ 5.9
14648               no_undefined_flag_CXX=' -zdefs'
14649               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14650               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'
14651               hardcode_libdir_flag_spec_CXX='-R$libdir'
14652               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'
14653               compiler_needs_object_CXX=yes
14654
14655               # Not sure whether something based on
14656               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14657               # would be better.
14658               output_verbose_link_cmd='func_echo_all'
14659
14660               # Archives containing C++ object files must be created using
14661               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14662               # necessary to make sure instantiated templates are included
14663               # in the archive.
14664               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14665               ;;
14666             esac
14667             ;;
14668         esac
14669         ;;
14670
14671       lynxos*)
14672         # FIXME: insert proper C++ library support
14673         ld_shlibs_CXX=no
14674         ;;
14675
14676       m88k*)
14677         # FIXME: insert proper C++ library support
14678         ld_shlibs_CXX=no
14679         ;;
14680
14681       mvs*)
14682         case $cc_basename in
14683           cxx*)
14684             # FIXME: insert proper C++ library support
14685             ld_shlibs_CXX=no
14686             ;;
14687           *)
14688             # FIXME: insert proper C++ library support
14689             ld_shlibs_CXX=no
14690             ;;
14691         esac
14692         ;;
14693
14694       netbsd*)
14695         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14696           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14697           wlarc=
14698           hardcode_libdir_flag_spec_CXX='-R$libdir'
14699           hardcode_direct_CXX=yes
14700           hardcode_shlibpath_var_CXX=no
14701         fi
14702         # Workaround some broken pre-1.5 toolchains
14703         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14704         ;;
14705
14706       *nto* | *qnx*)
14707         ld_shlibs_CXX=yes
14708         ;;
14709
14710       openbsd2*)
14711         # C++ shared libraries are fairly broken
14712         ld_shlibs_CXX=no
14713         ;;
14714
14715       openbsd*)
14716         if test -f /usr/libexec/ld.so; then
14717           hardcode_direct_CXX=yes
14718           hardcode_shlibpath_var_CXX=no
14719           hardcode_direct_absolute_CXX=yes
14720           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14721           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14722           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14723             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14724             export_dynamic_flag_spec_CXX='${wl}-E'
14725             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14726           fi
14727           output_verbose_link_cmd=func_echo_all
14728         else
14729           ld_shlibs_CXX=no
14730         fi
14731         ;;
14732
14733       osf3* | osf4* | osf5*)
14734         case $cc_basename in
14735           KCC*)
14736             # Kuck and Associates, Inc. (KAI) C++ Compiler
14737
14738             # KCC will only create a shared library if the output file
14739             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14740             # to its proper name (with version) after linking.
14741             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'
14742
14743             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14744             hardcode_libdir_separator_CXX=:
14745
14746             # Archives containing C++ object files must be created using
14747             # the KAI C++ compiler.
14748             case $host in
14749               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14750               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14751             esac
14752             ;;
14753           RCC*)
14754             # Rational C++ 2.4.1
14755             # FIXME: insert proper C++ library support
14756             ld_shlibs_CXX=no
14757             ;;
14758           cxx*)
14759             case $host in
14760               osf3*)
14761                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14762                 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'
14763                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14764                 ;;
14765               *)
14766                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14767                 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'
14768                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14769                   echo "-hidden">> $lib.exp~
14770                   $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~
14771                   $RM $lib.exp'
14772                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14773                 ;;
14774             esac
14775
14776             hardcode_libdir_separator_CXX=:
14777
14778             # Commands to make compiler produce verbose output that lists
14779             # what "hidden" libraries, object files and flags are used when
14780             # linking a shared library.
14781             #
14782             # There doesn't appear to be a way to prevent this compiler from
14783             # explicitly linking system object files so we need to strip them
14784             # from the output so that they don't get included in the library
14785             # dependencies.
14786             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"'
14787             ;;
14788           *)
14789             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14790               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14791               case $host in
14792                 osf3*)
14793                   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'
14794                   ;;
14795                 *)
14796                   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'
14797                   ;;
14798               esac
14799
14800               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14801               hardcode_libdir_separator_CXX=:
14802
14803               # Commands to make compiler produce verbose output that lists
14804               # what "hidden" libraries, object files and flags are used when
14805               # linking a shared library.
14806               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14807
14808             else
14809               # FIXME: insert proper C++ library support
14810               ld_shlibs_CXX=no
14811             fi
14812             ;;
14813         esac
14814         ;;
14815
14816       psos*)
14817         # FIXME: insert proper C++ library support
14818         ld_shlibs_CXX=no
14819         ;;
14820
14821       sunos4*)
14822         case $cc_basename in
14823           CC*)
14824             # Sun C++ 4.x
14825             # FIXME: insert proper C++ library support
14826             ld_shlibs_CXX=no
14827             ;;
14828           lcc*)
14829             # Lucid
14830             # FIXME: insert proper C++ library support
14831             ld_shlibs_CXX=no
14832             ;;
14833           *)
14834             # FIXME: insert proper C++ library support
14835             ld_shlibs_CXX=no
14836             ;;
14837         esac
14838         ;;
14839
14840       solaris*)
14841         case $cc_basename in
14842           CC* | sunCC*)
14843             # Sun C++ 4.2, 5.x and Centerline C++
14844             archive_cmds_need_lc_CXX=yes
14845             no_undefined_flag_CXX=' -zdefs'
14846             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14847             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14848               $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'
14849
14850             hardcode_libdir_flag_spec_CXX='-R$libdir'
14851             hardcode_shlibpath_var_CXX=no
14852             case $host_os in
14853               solaris2.[0-5] | solaris2.[0-5].*) ;;
14854               *)
14855                 # The compiler driver will combine and reorder linker options,
14856                 # but understands `-z linker_flag'.
14857                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14858                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14859                 ;;
14860             esac
14861             link_all_deplibs_CXX=yes
14862
14863             output_verbose_link_cmd='func_echo_all'
14864
14865             # Archives containing C++ object files must be created using
14866             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14867             # necessary to make sure instantiated templates are included
14868             # in the archive.
14869             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14870             ;;
14871           gcx*)
14872             # Green Hills C++ Compiler
14873             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14874
14875             # The C++ compiler must be used to create the archive.
14876             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14877             ;;
14878           *)
14879             # GNU C++ compiler with Solaris linker
14880             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14881               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14882               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14883                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14884                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14885                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14886
14887                 # Commands to make compiler produce verbose output that lists
14888                 # what "hidden" libraries, object files and flags are used when
14889                 # linking a shared library.
14890                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14891               else
14892                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14893                 # platform.
14894                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14895                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14896                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14897
14898                 # Commands to make compiler produce verbose output that lists
14899                 # what "hidden" libraries, object files and flags are used when
14900                 # linking a shared library.
14901                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14902               fi
14903
14904               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14905               case $host_os in
14906                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14907                 *)
14908                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14909                   ;;
14910               esac
14911             fi
14912             ;;
14913         esac
14914         ;;
14915
14916     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14917       no_undefined_flag_CXX='${wl}-z,text'
14918       archive_cmds_need_lc_CXX=no
14919       hardcode_shlibpath_var_CXX=no
14920       runpath_var='LD_RUN_PATH'
14921
14922       case $cc_basename in
14923         CC*)
14924           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14926           ;;
14927         *)
14928           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14930           ;;
14931       esac
14932       ;;
14933
14934       sysv5* | sco3.2v5* | sco5v6*)
14935         # Note: We can NOT use -z defs as we might desire, because we do not
14936         # link with -lc, and that would cause any symbols used from libc to
14937         # always be unresolved, which means just about no library would
14938         # ever link correctly.  If we're not using GNU ld we use -z text
14939         # though, which does catch some bad symbols but isn't as heavy-handed
14940         # as -z defs.
14941         no_undefined_flag_CXX='${wl}-z,text'
14942         allow_undefined_flag_CXX='${wl}-z,nodefs'
14943         archive_cmds_need_lc_CXX=no
14944         hardcode_shlibpath_var_CXX=no
14945         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14946         hardcode_libdir_separator_CXX=':'
14947         link_all_deplibs_CXX=yes
14948         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14949         runpath_var='LD_RUN_PATH'
14950
14951         case $cc_basename in
14952           CC*)
14953             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14956               '"$old_archive_cmds_CXX"
14957             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14958               '"$reload_cmds_CXX"
14959             ;;
14960           *)
14961             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963             ;;
14964         esac
14965       ;;
14966
14967       tandem*)
14968         case $cc_basename in
14969           NCC*)
14970             # NonStop-UX NCC 3.20
14971             # FIXME: insert proper C++ library support
14972             ld_shlibs_CXX=no
14973             ;;
14974           *)
14975             # FIXME: insert proper C++ library support
14976             ld_shlibs_CXX=no
14977             ;;
14978         esac
14979         ;;
14980
14981       vxworks*)
14982         # FIXME: insert proper C++ library support
14983         ld_shlibs_CXX=no
14984         ;;
14985
14986       *)
14987         # FIXME: insert proper C++ library support
14988         ld_shlibs_CXX=no
14989         ;;
14990     esac
14991
14992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14993 $as_echo "$ld_shlibs_CXX" >&6; }
14994     test "$ld_shlibs_CXX" = no && can_build_shared=no
14995
14996     GCC_CXX="$GXX"
14997     LD_CXX="$LD"
14998
14999     ## CAVEAT EMPTOR:
15000     ## There is no encapsulation within the following macros, do not change
15001     ## the running order or otherwise move them around unless you know exactly
15002     ## what you are doing...
15003     # Dependencies to place before and after the object being linked:
15004 predep_objects_CXX=
15005 postdep_objects_CXX=
15006 predeps_CXX=
15007 postdeps_CXX=
15008 compiler_lib_search_path_CXX=
15009
15010 cat > conftest.$ac_ext <<_LT_EOF
15011 class Foo
15012 {
15013 public:
15014   Foo (void) { a = 0; }
15015 private:
15016   int a;
15017 };
15018 _LT_EOF
15019
15020
15021 _lt_libdeps_save_CFLAGS=$CFLAGS
15022 case "$CC $CFLAGS " in #(
15023 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15024 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15025 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15026 esac
15027
15028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15029   (eval $ac_compile) 2>&5
15030   ac_status=$?
15031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15032   test $ac_status = 0; }; then
15033   # Parse the compiler output and extract the necessary
15034   # objects, libraries and library flags.
15035
15036   # Sentinel used to keep track of whether or not we are before
15037   # the conftest object file.
15038   pre_test_object_deps_done=no
15039
15040   for p in `eval "$output_verbose_link_cmd"`; do
15041     case ${prev}${p} in
15042
15043     -L* | -R* | -l*)
15044        # Some compilers place space between "-{L,R}" and the path.
15045        # Remove the space.
15046        if test $p = "-L" ||
15047           test $p = "-R"; then
15048          prev=$p
15049          continue
15050        fi
15051
15052        # Expand the sysroot to ease extracting the directories later.
15053        if test -z "$prev"; then
15054          case $p in
15055          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15056          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15057          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15058          esac
15059        fi
15060        case $p in
15061        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15062        esac
15063        if test "$pre_test_object_deps_done" = no; then
15064          case ${prev} in
15065          -L | -R)
15066            # Internal compiler library paths should come after those
15067            # provided the user.  The postdeps already come after the
15068            # user supplied libs so there is no need to process them.
15069            if test -z "$compiler_lib_search_path_CXX"; then
15070              compiler_lib_search_path_CXX="${prev}${p}"
15071            else
15072              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15073            fi
15074            ;;
15075          # The "-l" case would never come before the object being
15076          # linked, so don't bother handling this case.
15077          esac
15078        else
15079          if test -z "$postdeps_CXX"; then
15080            postdeps_CXX="${prev}${p}"
15081          else
15082            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15083          fi
15084        fi
15085        prev=
15086        ;;
15087
15088     *.lto.$objext) ;; # Ignore GCC LTO objects
15089     *.$objext)
15090        # This assumes that the test object file only shows up
15091        # once in the compiler output.
15092        if test "$p" = "conftest.$objext"; then
15093          pre_test_object_deps_done=yes
15094          continue
15095        fi
15096
15097        if test "$pre_test_object_deps_done" = no; then
15098          if test -z "$predep_objects_CXX"; then
15099            predep_objects_CXX="$p"
15100          else
15101            predep_objects_CXX="$predep_objects_CXX $p"
15102          fi
15103        else
15104          if test -z "$postdep_objects_CXX"; then
15105            postdep_objects_CXX="$p"
15106          else
15107            postdep_objects_CXX="$postdep_objects_CXX $p"
15108          fi
15109        fi
15110        ;;
15111
15112     *) ;; # Ignore the rest.
15113
15114     esac
15115   done
15116
15117   # Clean up.
15118   rm -f a.out a.exe
15119 else
15120   echo "libtool.m4: error: problem compiling CXX test program"
15121 fi
15122
15123 $RM -f confest.$objext
15124 CFLAGS=$_lt_libdeps_save_CFLAGS
15125
15126 # PORTME: override above test on systems where it is broken
15127 case $host_os in
15128 interix[3-9]*)
15129   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15130   # hack all around it, let's just trust "g++" to DTRT.
15131   predep_objects_CXX=
15132   postdep_objects_CXX=
15133   postdeps_CXX=
15134   ;;
15135
15136 linux*)
15137   case `$CC -V 2>&1 | sed 5q` in
15138   *Sun\ C*)
15139     # Sun C++ 5.9
15140
15141     # The more standards-conforming stlport4 library is
15142     # incompatible with the Cstd library. Avoid specifying
15143     # it if it's in CXXFLAGS. Ignore libCrun as
15144     # -library=stlport4 depends on it.
15145     case " $CXX $CXXFLAGS " in
15146     *" -library=stlport4 "*)
15147       solaris_use_stlport4=yes
15148       ;;
15149     esac
15150
15151     if test "$solaris_use_stlport4" != yes; then
15152       postdeps_CXX='-library=Cstd -library=Crun'
15153     fi
15154     ;;
15155   esac
15156   ;;
15157
15158 solaris*)
15159   case $cc_basename in
15160   CC* | sunCC*)
15161     # The more standards-conforming stlport4 library is
15162     # incompatible with the Cstd library. Avoid specifying
15163     # it if it's in CXXFLAGS. Ignore libCrun as
15164     # -library=stlport4 depends on it.
15165     case " $CXX $CXXFLAGS " in
15166     *" -library=stlport4 "*)
15167       solaris_use_stlport4=yes
15168       ;;
15169     esac
15170
15171     # Adding this requires a known-good setup of shared libraries for
15172     # Sun compiler versions before 5.6, else PIC objects from an old
15173     # archive will be linked into the output, leading to subtle bugs.
15174     if test "$solaris_use_stlport4" != yes; then
15175       postdeps_CXX='-library=Cstd -library=Crun'
15176     fi
15177     ;;
15178   esac
15179   ;;
15180 esac
15181
15182
15183 case " $postdeps_CXX " in
15184 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15185 esac
15186  compiler_lib_search_dirs_CXX=
15187 if test -n "${compiler_lib_search_path_CXX}"; then
15188  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15189 fi
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
15216
15217
15218
15219
15220
15221     lt_prog_compiler_wl_CXX=
15222 lt_prog_compiler_pic_CXX=
15223 lt_prog_compiler_static_CXX=
15224
15225
15226   # C++ specific cases for pic, static, wl, etc.
15227   if test "$GXX" = yes; then
15228     lt_prog_compiler_wl_CXX='-Wl,'
15229     lt_prog_compiler_static_CXX='-static'
15230
15231     case $host_os in
15232     aix*)
15233       # All AIX code is PIC.
15234       if test "$host_cpu" = ia64; then
15235         # AIX 5 now supports IA64 processor
15236         lt_prog_compiler_static_CXX='-Bstatic'
15237       fi
15238       ;;
15239
15240     amigaos*)
15241       case $host_cpu in
15242       powerpc)
15243             # see comment about AmigaOS4 .so support
15244             lt_prog_compiler_pic_CXX='-fPIC'
15245         ;;
15246       m68k)
15247             # FIXME: we need at least 68020 code to build shared libraries, but
15248             # adding the `-m68020' flag to GCC prevents building anything better,
15249             # like `-m68040'.
15250             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15251         ;;
15252       esac
15253       ;;
15254
15255     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15256       # PIC is the default for these OSes.
15257       ;;
15258     mingw* | cygwin* | os2* | pw32* | cegcc*)
15259       # This hack is so that the source file can tell whether it is being
15260       # built for inclusion in a dll (and should export symbols for example).
15261       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15262       # (--disable-auto-import) libraries
15263       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15264       ;;
15265     darwin* | rhapsody*)
15266       # PIC is the default on this platform
15267       # Common symbols not allowed in MH_DYLIB files
15268       lt_prog_compiler_pic_CXX='-fno-common'
15269       ;;
15270     *djgpp*)
15271       # DJGPP does not support shared libraries at all
15272       lt_prog_compiler_pic_CXX=
15273       ;;
15274     haiku*)
15275       # PIC is the default for Haiku.
15276       # The "-static" flag exists, but is broken.
15277       lt_prog_compiler_static_CXX=
15278       ;;
15279     interix[3-9]*)
15280       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15281       # Instead, we relocate shared libraries at runtime.
15282       ;;
15283     sysv4*MP*)
15284       if test -d /usr/nec; then
15285         lt_prog_compiler_pic_CXX=-Kconform_pic
15286       fi
15287       ;;
15288     hpux*)
15289       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15290       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15291       # sets the default TLS model and affects inlining.
15292       case $host_cpu in
15293       hppa*64*)
15294         ;;
15295       *)
15296         lt_prog_compiler_pic_CXX='-fPIC'
15297         ;;
15298       esac
15299       ;;
15300     *qnx* | *nto*)
15301       # QNX uses GNU C++, but need to define -shared option too, otherwise
15302       # it will coredump.
15303       lt_prog_compiler_pic_CXX='-fPIC -shared'
15304       ;;
15305     *)
15306       lt_prog_compiler_pic_CXX='-fPIC'
15307       ;;
15308     esac
15309   else
15310     case $host_os in
15311       aix[4-9]*)
15312         # All AIX code is PIC.
15313         if test "$host_cpu" = ia64; then
15314           # AIX 5 now supports IA64 processor
15315           lt_prog_compiler_static_CXX='-Bstatic'
15316         else
15317           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15318         fi
15319         ;;
15320       chorus*)
15321         case $cc_basename in
15322         cxch68*)
15323           # Green Hills C++ Compiler
15324           # _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"
15325           ;;
15326         esac
15327         ;;
15328       mingw* | cygwin* | os2* | pw32* | cegcc*)
15329         # This hack is so that the source file can tell whether it is being
15330         # built for inclusion in a dll (and should export symbols for example).
15331         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15332         ;;
15333       dgux*)
15334         case $cc_basename in
15335           ec++*)
15336             lt_prog_compiler_pic_CXX='-KPIC'
15337             ;;
15338           ghcx*)
15339             # Green Hills C++ Compiler
15340             lt_prog_compiler_pic_CXX='-pic'
15341             ;;
15342           *)
15343             ;;
15344         esac
15345         ;;
15346       freebsd* | dragonfly*)
15347         # FreeBSD uses GNU C++
15348         ;;
15349       hpux9* | hpux10* | hpux11*)
15350         case $cc_basename in
15351           CC*)
15352             lt_prog_compiler_wl_CXX='-Wl,'
15353             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15354             if test "$host_cpu" != ia64; then
15355               lt_prog_compiler_pic_CXX='+Z'
15356             fi
15357             ;;
15358           aCC*)
15359             lt_prog_compiler_wl_CXX='-Wl,'
15360             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15361             case $host_cpu in
15362             hppa*64*|ia64*)
15363               # +Z the default
15364               ;;
15365             *)
15366               lt_prog_compiler_pic_CXX='+Z'
15367               ;;
15368             esac
15369             ;;
15370           *)
15371             ;;
15372         esac
15373         ;;
15374       interix*)
15375         # This is c89, which is MS Visual C++ (no shared libs)
15376         # Anyone wants to do a port?
15377         ;;
15378       irix5* | irix6* | nonstopux*)
15379         case $cc_basename in
15380           CC*)
15381             lt_prog_compiler_wl_CXX='-Wl,'
15382             lt_prog_compiler_static_CXX='-non_shared'
15383             # CC pic flag -KPIC is the default.
15384             ;;
15385           *)
15386             ;;
15387         esac
15388         ;;
15389       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15390         case $cc_basename in
15391           KCC*)
15392             # KAI C++ Compiler
15393             lt_prog_compiler_wl_CXX='--backend -Wl,'
15394             lt_prog_compiler_pic_CXX='-fPIC'
15395             ;;
15396           ecpc* )
15397             # old Intel C++ for x86_64 which still supported -KPIC.
15398             lt_prog_compiler_wl_CXX='-Wl,'
15399             lt_prog_compiler_pic_CXX='-KPIC'
15400             lt_prog_compiler_static_CXX='-static'
15401             ;;
15402           icpc* )
15403             # Intel C++, used to be incompatible with GCC.
15404             # ICC 10 doesn't accept -KPIC any more.
15405             lt_prog_compiler_wl_CXX='-Wl,'
15406             lt_prog_compiler_pic_CXX='-fPIC'
15407             lt_prog_compiler_static_CXX='-static'
15408             ;;
15409           pgCC* | pgcpp*)
15410             # Portland Group C++ compiler
15411             lt_prog_compiler_wl_CXX='-Wl,'
15412             lt_prog_compiler_pic_CXX='-fpic'
15413             lt_prog_compiler_static_CXX='-Bstatic'
15414             ;;
15415           cxx*)
15416             # Compaq C++
15417             # Make sure the PIC flag is empty.  It appears that all Alpha
15418             # Linux and Compaq Tru64 Unix objects are PIC.
15419             lt_prog_compiler_pic_CXX=
15420             lt_prog_compiler_static_CXX='-non_shared'
15421             ;;
15422           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15423             # IBM XL 8.0, 9.0 on PPC and BlueGene
15424             lt_prog_compiler_wl_CXX='-Wl,'
15425             lt_prog_compiler_pic_CXX='-qpic'
15426             lt_prog_compiler_static_CXX='-qstaticlink'
15427             ;;
15428           *)
15429             case `$CC -V 2>&1 | sed 5q` in
15430             *Sun\ C*)
15431               # Sun C++ 5.9
15432               lt_prog_compiler_pic_CXX='-KPIC'
15433               lt_prog_compiler_static_CXX='-Bstatic'
15434               lt_prog_compiler_wl_CXX='-Qoption ld '
15435               ;;
15436             esac
15437             ;;
15438         esac
15439         ;;
15440       lynxos*)
15441         ;;
15442       m88k*)
15443         ;;
15444       mvs*)
15445         case $cc_basename in
15446           cxx*)
15447             lt_prog_compiler_pic_CXX='-W c,exportall'
15448             ;;
15449           *)
15450             ;;
15451         esac
15452         ;;
15453       netbsd* | netbsdelf*-gnu)
15454         ;;
15455       *qnx* | *nto*)
15456         # QNX uses GNU C++, but need to define -shared option too, otherwise
15457         # it will coredump.
15458         lt_prog_compiler_pic_CXX='-fPIC -shared'
15459         ;;
15460       osf3* | osf4* | osf5*)
15461         case $cc_basename in
15462           KCC*)
15463             lt_prog_compiler_wl_CXX='--backend -Wl,'
15464             ;;
15465           RCC*)
15466             # Rational C++ 2.4.1
15467             lt_prog_compiler_pic_CXX='-pic'
15468             ;;
15469           cxx*)
15470             # Digital/Compaq C++
15471             lt_prog_compiler_wl_CXX='-Wl,'
15472             # Make sure the PIC flag is empty.  It appears that all Alpha
15473             # Linux and Compaq Tru64 Unix objects are PIC.
15474             lt_prog_compiler_pic_CXX=
15475             lt_prog_compiler_static_CXX='-non_shared'
15476             ;;
15477           *)
15478             ;;
15479         esac
15480         ;;
15481       psos*)
15482         ;;
15483       solaris*)
15484         case $cc_basename in
15485           CC* | sunCC*)
15486             # Sun C++ 4.2, 5.x and Centerline C++
15487             lt_prog_compiler_pic_CXX='-KPIC'
15488             lt_prog_compiler_static_CXX='-Bstatic'
15489             lt_prog_compiler_wl_CXX='-Qoption ld '
15490             ;;
15491           gcx*)
15492             # Green Hills C++ Compiler
15493             lt_prog_compiler_pic_CXX='-PIC'
15494             ;;
15495           *)
15496             ;;
15497         esac
15498         ;;
15499       sunos4*)
15500         case $cc_basename in
15501           CC*)
15502             # Sun C++ 4.x
15503             lt_prog_compiler_pic_CXX='-pic'
15504             lt_prog_compiler_static_CXX='-Bstatic'
15505             ;;
15506           lcc*)
15507             # Lucid
15508             lt_prog_compiler_pic_CXX='-pic'
15509             ;;
15510           *)
15511             ;;
15512         esac
15513         ;;
15514       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15515         case $cc_basename in
15516           CC*)
15517             lt_prog_compiler_wl_CXX='-Wl,'
15518             lt_prog_compiler_pic_CXX='-KPIC'
15519             lt_prog_compiler_static_CXX='-Bstatic'
15520             ;;
15521         esac
15522         ;;
15523       tandem*)
15524         case $cc_basename in
15525           NCC*)
15526             # NonStop-UX NCC 3.20
15527             lt_prog_compiler_pic_CXX='-KPIC'
15528             ;;
15529           *)
15530             ;;
15531         esac
15532         ;;
15533       vxworks*)
15534         ;;
15535       *)
15536         lt_prog_compiler_can_build_shared_CXX=no
15537         ;;
15538     esac
15539   fi
15540
15541 case $host_os in
15542   # For platforms which do not support PIC, -DPIC is meaningless:
15543   *djgpp*)
15544     lt_prog_compiler_pic_CXX=
15545     ;;
15546   *)
15547     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15548     ;;
15549 esac
15550
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15553 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15554   $as_echo_n "(cached) " >&6
15555 else
15556   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15559 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15560 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15561
15562 #
15563 # Check to make sure the PIC flag actually works.
15564 #
15565 if test -n "$lt_prog_compiler_pic_CXX"; then
15566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15567 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15568 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15569   $as_echo_n "(cached) " >&6
15570 else
15571   lt_cv_prog_compiler_pic_works_CXX=no
15572    ac_outfile=conftest.$ac_objext
15573    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15574    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15575    # Insert the option either (1) after the last *FLAGS variable, or
15576    # (2) before a word containing "conftest.", or (3) at the end.
15577    # Note that $ac_compile itself does not contain backslashes and begins
15578    # with a dollar sign (not a hyphen), so the echo should work correctly.
15579    # The option is referenced via a variable to avoid confusing sed.
15580    lt_compile=`echo "$ac_compile" | $SED \
15581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15583    -e 's:$: $lt_compiler_flag:'`
15584    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15585    (eval "$lt_compile" 2>conftest.err)
15586    ac_status=$?
15587    cat conftest.err >&5
15588    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589    if (exit $ac_status) && test -s "$ac_outfile"; then
15590      # The compiler can only warn and ignore the option if not recognized
15591      # So say no if there are warnings other than the usual output.
15592      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15593      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15594      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15595        lt_cv_prog_compiler_pic_works_CXX=yes
15596      fi
15597    fi
15598    $RM conftest*
15599
15600 fi
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15602 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15603
15604 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15605     case $lt_prog_compiler_pic_CXX in
15606      "" | " "*) ;;
15607      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15608      esac
15609 else
15610     lt_prog_compiler_pic_CXX=
15611      lt_prog_compiler_can_build_shared_CXX=no
15612 fi
15613
15614 fi
15615
15616
15617
15618
15619
15620 #
15621 # Check to make sure the static flag actually works.
15622 #
15623 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15625 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15626 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15627   $as_echo_n "(cached) " >&6
15628 else
15629   lt_cv_prog_compiler_static_works_CXX=no
15630    save_LDFLAGS="$LDFLAGS"
15631    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15632    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15633    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15634      # The linker can only warn and ignore the option if not recognized
15635      # So say no if there are warnings
15636      if test -s conftest.err; then
15637        # Append any errors to the config.log.
15638        cat conftest.err 1>&5
15639        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15640        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15641        if diff conftest.exp conftest.er2 >/dev/null; then
15642          lt_cv_prog_compiler_static_works_CXX=yes
15643        fi
15644      else
15645        lt_cv_prog_compiler_static_works_CXX=yes
15646      fi
15647    fi
15648    $RM -r conftest*
15649    LDFLAGS="$save_LDFLAGS"
15650
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15653 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15654
15655 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15656     :
15657 else
15658     lt_prog_compiler_static_CXX=
15659 fi
15660
15661
15662
15663
15664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15666 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15667   $as_echo_n "(cached) " >&6
15668 else
15669   lt_cv_prog_compiler_c_o_CXX=no
15670    $RM -r conftest 2>/dev/null
15671    mkdir conftest
15672    cd conftest
15673    mkdir out
15674    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15675
15676    lt_compiler_flag="-o out/conftest2.$ac_objext"
15677    # Insert the option either (1) after the last *FLAGS variable, or
15678    # (2) before a word containing "conftest.", or (3) at the end.
15679    # Note that $ac_compile itself does not contain backslashes and begins
15680    # with a dollar sign (not a hyphen), so the echo should work correctly.
15681    lt_compile=`echo "$ac_compile" | $SED \
15682    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15684    -e 's:$: $lt_compiler_flag:'`
15685    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15686    (eval "$lt_compile" 2>out/conftest.err)
15687    ac_status=$?
15688    cat out/conftest.err >&5
15689    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15691    then
15692      # The compiler can only warn and ignore the option if not recognized
15693      # So say no if there are warnings
15694      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15695      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15696      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15697        lt_cv_prog_compiler_c_o_CXX=yes
15698      fi
15699    fi
15700    chmod u+w . 2>&5
15701    $RM conftest*
15702    # SGI C++ compiler will create directory out/ii_files/ for
15703    # template instantiation
15704    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15705    $RM out/* && rmdir out
15706    cd ..
15707    $RM -r conftest
15708    $RM conftest*
15709
15710 fi
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15712 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15713
15714
15715
15716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15718 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15719   $as_echo_n "(cached) " >&6
15720 else
15721   lt_cv_prog_compiler_c_o_CXX=no
15722    $RM -r conftest 2>/dev/null
15723    mkdir conftest
15724    cd conftest
15725    mkdir out
15726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15727
15728    lt_compiler_flag="-o out/conftest2.$ac_objext"
15729    # Insert the option either (1) after the last *FLAGS variable, or
15730    # (2) before a word containing "conftest.", or (3) at the end.
15731    # Note that $ac_compile itself does not contain backslashes and begins
15732    # with a dollar sign (not a hyphen), so the echo should work correctly.
15733    lt_compile=`echo "$ac_compile" | $SED \
15734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15736    -e 's:$: $lt_compiler_flag:'`
15737    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15738    (eval "$lt_compile" 2>out/conftest.err)
15739    ac_status=$?
15740    cat out/conftest.err >&5
15741    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15743    then
15744      # The compiler can only warn and ignore the option if not recognized
15745      # So say no if there are warnings
15746      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15747      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15748      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15749        lt_cv_prog_compiler_c_o_CXX=yes
15750      fi
15751    fi
15752    chmod u+w . 2>&5
15753    $RM conftest*
15754    # SGI C++ compiler will create directory out/ii_files/ for
15755    # template instantiation
15756    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15757    $RM out/* && rmdir out
15758    cd ..
15759    $RM -r conftest
15760    $RM conftest*
15761
15762 fi
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15764 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15765
15766
15767
15768
15769 hard_links="nottested"
15770 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15771   # do not overwrite the value of need_locks provided by the user
15772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15773 $as_echo_n "checking if we can lock with hard links... " >&6; }
15774   hard_links=yes
15775   $RM conftest*
15776   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15777   touch conftest.a
15778   ln conftest.a conftest.b 2>&5 || hard_links=no
15779   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15781 $as_echo "$hard_links" >&6; }
15782   if test "$hard_links" = no; then
15783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15784 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15785     need_locks=warn
15786   fi
15787 else
15788   need_locks=no
15789 fi
15790
15791
15792
15793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15794 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15795
15796   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15797   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15798   case $host_os in
15799   aix[4-9]*)
15800     # If we're using GNU nm, then we don't want the "-C" option.
15801     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15802     # Also, AIX nm treats weak defined symbols like other global defined
15803     # symbols, whereas GNU nm marks them as "W".
15804     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15805       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'
15806     else
15807       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'
15808     fi
15809     ;;
15810   pw32*)
15811     export_symbols_cmds_CXX="$ltdll_cmds"
15812     ;;
15813   cygwin* | mingw* | cegcc*)
15814     case $cc_basename in
15815     cl*)
15816       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15817       ;;
15818     *)
15819       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'
15820       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15821       ;;
15822     esac
15823     ;;
15824   linux* | k*bsd*-gnu | gnu*)
15825     link_all_deplibs_CXX=no
15826     ;;
15827   *)
15828     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15829     ;;
15830   esac
15831
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15833 $as_echo "$ld_shlibs_CXX" >&6; }
15834 test "$ld_shlibs_CXX" = no && can_build_shared=no
15835
15836 with_gnu_ld_CXX=$with_gnu_ld
15837
15838
15839
15840
15841
15842
15843 #
15844 # Do we need to explicitly link libc?
15845 #
15846 case "x$archive_cmds_need_lc_CXX" in
15847 x|xyes)
15848   # Assume -lc should be added
15849   archive_cmds_need_lc_CXX=yes
15850
15851   if test "$enable_shared" = yes && test "$GCC" = yes; then
15852     case $archive_cmds_CXX in
15853     *'~'*)
15854       # FIXME: we may have to deal with multi-command sequences.
15855       ;;
15856     '$CC '*)
15857       # Test whether the compiler implicitly links with -lc since on some
15858       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15859       # to ld, don't add -lc before -lgcc.
15860       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15861 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15862 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15863   $as_echo_n "(cached) " >&6
15864 else
15865   $RM conftest*
15866         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15867
15868         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15869   (eval $ac_compile) 2>&5
15870   ac_status=$?
15871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15872   test $ac_status = 0; } 2>conftest.err; then
15873           soname=conftest
15874           lib=conftest
15875           libobjs=conftest.$ac_objext
15876           deplibs=
15877           wl=$lt_prog_compiler_wl_CXX
15878           pic_flag=$lt_prog_compiler_pic_CXX
15879           compiler_flags=-v
15880           linker_flags=-v
15881           verstring=
15882           output_objdir=.
15883           libname=conftest
15884           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15885           allow_undefined_flag_CXX=
15886           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15887   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15888   ac_status=$?
15889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15890   test $ac_status = 0; }
15891           then
15892             lt_cv_archive_cmds_need_lc_CXX=no
15893           else
15894             lt_cv_archive_cmds_need_lc_CXX=yes
15895           fi
15896           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15897         else
15898           cat conftest.err 1>&5
15899         fi
15900         $RM conftest*
15901
15902 fi
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15904 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15905       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15906       ;;
15907     esac
15908   fi
15909   ;;
15910 esac
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
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15974 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15975
15976 library_names_spec=
15977 libname_spec='lib$name'
15978 soname_spec=
15979 shrext_cmds=".so"
15980 postinstall_cmds=
15981 postuninstall_cmds=
15982 finish_cmds=
15983 finish_eval=
15984 shlibpath_var=
15985 shlibpath_overrides_runpath=unknown
15986 version_type=none
15987 dynamic_linker="$host_os ld.so"
15988 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15989 need_lib_prefix=unknown
15990 hardcode_into_libs=no
15991
15992 # when you set need_version to no, make sure it does not cause -set_version
15993 # flags to be left without arguments
15994 need_version=unknown
15995
15996 case $host_os in
15997 aix3*)
15998   version_type=linux # correct to gnu/linux during the next big refactor
15999   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16000   shlibpath_var=LIBPATH
16001
16002   # AIX 3 has no versioning support, so we append a major version to the name.
16003   soname_spec='${libname}${release}${shared_ext}$major'
16004   ;;
16005
16006 aix[4-9]*)
16007   version_type=linux # correct to gnu/linux during the next big refactor
16008   need_lib_prefix=no
16009   need_version=no
16010   hardcode_into_libs=yes
16011   if test "$host_cpu" = ia64; then
16012     # AIX 5 supports IA64
16013     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16014     shlibpath_var=LD_LIBRARY_PATH
16015   else
16016     # With GCC up to 2.95.x, collect2 would create an import file
16017     # for dependence libraries.  The import file would start with
16018     # the line `#! .'.  This would cause the generated library to
16019     # depend on `.', always an invalid library.  This was fixed in
16020     # development snapshots of GCC prior to 3.0.
16021     case $host_os in
16022       aix4 | aix4.[01] | aix4.[01].*)
16023       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16024            echo ' yes '
16025            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16026         :
16027       else
16028         can_build_shared=no
16029       fi
16030       ;;
16031     esac
16032     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16033     # soname into executable. Probably we can add versioning support to
16034     # collect2, so additional links can be useful in future.
16035     if test "$aix_use_runtimelinking" = yes; then
16036       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16037       # instead of lib<name>.a to let people know that these are not
16038       # typical AIX shared libraries.
16039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040     else
16041       # We preserve .a as extension for shared libraries through AIX4.2
16042       # and later when we are not doing run time linking.
16043       library_names_spec='${libname}${release}.a $libname.a'
16044       soname_spec='${libname}${release}${shared_ext}$major'
16045     fi
16046     shlibpath_var=LIBPATH
16047   fi
16048   ;;
16049
16050 amigaos*)
16051   case $host_cpu in
16052   powerpc)
16053     # Since July 2007 AmigaOS4 officially supports .so libraries.
16054     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056     ;;
16057   m68k)
16058     library_names_spec='$libname.ixlibrary $libname.a'
16059     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16060     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'
16061     ;;
16062   esac
16063   ;;
16064
16065 beos*)
16066   library_names_spec='${libname}${shared_ext}'
16067   dynamic_linker="$host_os ld.so"
16068   shlibpath_var=LIBRARY_PATH
16069   ;;
16070
16071 bsdi[45]*)
16072   version_type=linux # correct to gnu/linux during the next big refactor
16073   need_version=no
16074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075   soname_spec='${libname}${release}${shared_ext}$major'
16076   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16079   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16080   # the default ld.so.conf also contains /usr/contrib/lib and
16081   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16082   # libtool to hard-code these into programs
16083   ;;
16084
16085 cygwin* | mingw* | pw32* | cegcc*)
16086   version_type=windows
16087   shrext_cmds=".dll"
16088   need_version=no
16089   need_lib_prefix=no
16090
16091   case $GCC,$cc_basename in
16092   yes,*)
16093     # gcc
16094     library_names_spec='$libname.dll.a'
16095     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16096     postinstall_cmds='base_file=`basename \${file}`~
16097       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16098       dldir=$destdir/`dirname \$dlpath`~
16099       test -d \$dldir || mkdir -p \$dldir~
16100       $install_prog $dir/$dlname \$dldir/$dlname~
16101       chmod a+x \$dldir/$dlname~
16102       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16103         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16104       fi'
16105     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16106       dlpath=$dir/\$dldll~
16107        $RM \$dlpath'
16108     shlibpath_overrides_runpath=yes
16109
16110     case $host_os in
16111     cygwin*)
16112       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16113       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16114
16115       ;;
16116     mingw* | cegcc*)
16117       # MinGW DLLs use traditional 'lib' prefix
16118       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119       ;;
16120     pw32*)
16121       # pw32 DLLs use 'pw' prefix rather than 'lib'
16122       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16123       ;;
16124     esac
16125     dynamic_linker='Win32 ld.exe'
16126     ;;
16127
16128   *,cl*)
16129     # Native MSVC
16130     libname_spec='$name'
16131     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16132     library_names_spec='${libname}.dll.lib'
16133
16134     case $build_os in
16135     mingw*)
16136       sys_lib_search_path_spec=
16137       lt_save_ifs=$IFS
16138       IFS=';'
16139       for lt_path in $LIB
16140       do
16141         IFS=$lt_save_ifs
16142         # Let DOS variable expansion print the short 8.3 style file name.
16143         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16144         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16145       done
16146       IFS=$lt_save_ifs
16147       # Convert to MSYS style.
16148       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16149       ;;
16150     cygwin*)
16151       # Convert to unix form, then to dos form, then back to unix form
16152       # but this time dos style (no spaces!) so that the unix form looks
16153       # like /cygdrive/c/PROGRA~1:/cygdr...
16154       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16155       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16156       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16157       ;;
16158     *)
16159       sys_lib_search_path_spec="$LIB"
16160       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16161         # It is most probably a Windows format PATH.
16162         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16163       else
16164         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16165       fi
16166       # FIXME: find the short name or the path components, as spaces are
16167       # common. (e.g. "Program Files" -> "PROGRA~1")
16168       ;;
16169     esac
16170
16171     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16172     postinstall_cmds='base_file=`basename \${file}`~
16173       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16174       dldir=$destdir/`dirname \$dlpath`~
16175       test -d \$dldir || mkdir -p \$dldir~
16176       $install_prog $dir/$dlname \$dldir/$dlname'
16177     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16178       dlpath=$dir/\$dldll~
16179        $RM \$dlpath'
16180     shlibpath_overrides_runpath=yes
16181     dynamic_linker='Win32 link.exe'
16182     ;;
16183
16184   *)
16185     # Assume MSVC wrapper
16186     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16187     dynamic_linker='Win32 ld.exe'
16188     ;;
16189   esac
16190   # FIXME: first we should search . and the directory the executable is in
16191   shlibpath_var=PATH
16192   ;;
16193
16194 darwin* | rhapsody*)
16195   dynamic_linker="$host_os dyld"
16196   version_type=darwin
16197   need_lib_prefix=no
16198   need_version=no
16199   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16200   soname_spec='${libname}${release}${major}$shared_ext'
16201   shlibpath_overrides_runpath=yes
16202   shlibpath_var=DYLD_LIBRARY_PATH
16203   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16204
16205   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16206   ;;
16207
16208 dgux*)
16209   version_type=linux # correct to gnu/linux during the next big refactor
16210   need_lib_prefix=no
16211   need_version=no
16212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16213   soname_spec='${libname}${release}${shared_ext}$major'
16214   shlibpath_var=LD_LIBRARY_PATH
16215   ;;
16216
16217 freebsd* | dragonfly*)
16218   # DragonFly does not have aout.  When/if they implement a new
16219   # versioning mechanism, adjust this.
16220   if test -x /usr/bin/objformat; then
16221     objformat=`/usr/bin/objformat`
16222   else
16223     case $host_os in
16224     freebsd[23].*) objformat=aout ;;
16225     *) objformat=elf ;;
16226     esac
16227   fi
16228   version_type=freebsd-$objformat
16229   case $version_type in
16230     freebsd-elf*)
16231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16232       need_version=no
16233       need_lib_prefix=no
16234       ;;
16235     freebsd-*)
16236       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16237       need_version=yes
16238       ;;
16239   esac
16240   shlibpath_var=LD_LIBRARY_PATH
16241   case $host_os in
16242   freebsd2.*)
16243     shlibpath_overrides_runpath=yes
16244     ;;
16245   freebsd3.[01]* | freebsdelf3.[01]*)
16246     shlibpath_overrides_runpath=yes
16247     hardcode_into_libs=yes
16248     ;;
16249   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16250   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16251     shlibpath_overrides_runpath=no
16252     hardcode_into_libs=yes
16253     ;;
16254   *) # from 4.6 on, and DragonFly
16255     shlibpath_overrides_runpath=yes
16256     hardcode_into_libs=yes
16257     ;;
16258   esac
16259   ;;
16260
16261 haiku*)
16262   version_type=linux # correct to gnu/linux during the next big refactor
16263   need_lib_prefix=no
16264   need_version=no
16265   dynamic_linker="$host_os runtime_loader"
16266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16267   soname_spec='${libname}${release}${shared_ext}$major'
16268   shlibpath_var=LIBRARY_PATH
16269   shlibpath_overrides_runpath=yes
16270   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16271   hardcode_into_libs=yes
16272   ;;
16273
16274 hpux9* | hpux10* | hpux11*)
16275   # Give a soname corresponding to the major version so that dld.sl refuses to
16276   # link against other versions.
16277   version_type=sunos
16278   need_lib_prefix=no
16279   need_version=no
16280   case $host_cpu in
16281   ia64*)
16282     shrext_cmds='.so'
16283     hardcode_into_libs=yes
16284     dynamic_linker="$host_os dld.so"
16285     shlibpath_var=LD_LIBRARY_PATH
16286     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288     soname_spec='${libname}${release}${shared_ext}$major'
16289     if test "X$HPUX_IA64_MODE" = X32; then
16290       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16291     else
16292       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16293     fi
16294     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16295     ;;
16296   hppa*64*)
16297     shrext_cmds='.sl'
16298     hardcode_into_libs=yes
16299     dynamic_linker="$host_os dld.sl"
16300     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16301     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16303     soname_spec='${libname}${release}${shared_ext}$major'
16304     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16305     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16306     ;;
16307   *)
16308     shrext_cmds='.sl'
16309     dynamic_linker="$host_os dld.sl"
16310     shlibpath_var=SHLIB_PATH
16311     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313     soname_spec='${libname}${release}${shared_ext}$major'
16314     ;;
16315   esac
16316   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16317   postinstall_cmds='chmod 555 $lib'
16318   # or fails outright, so override atomically:
16319   install_override_mode=555
16320   ;;
16321
16322 interix[3-9]*)
16323   version_type=linux # correct to gnu/linux during the next big refactor
16324   need_lib_prefix=no
16325   need_version=no
16326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16327   soname_spec='${libname}${release}${shared_ext}$major'
16328   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16329   shlibpath_var=LD_LIBRARY_PATH
16330   shlibpath_overrides_runpath=no
16331   hardcode_into_libs=yes
16332   ;;
16333
16334 irix5* | irix6* | nonstopux*)
16335   case $host_os in
16336     nonstopux*) version_type=nonstopux ;;
16337     *)
16338         if test "$lt_cv_prog_gnu_ld" = yes; then
16339                 version_type=linux # correct to gnu/linux during the next big refactor
16340         else
16341                 version_type=irix
16342         fi ;;
16343   esac
16344   need_lib_prefix=no
16345   need_version=no
16346   soname_spec='${libname}${release}${shared_ext}$major'
16347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16348   case $host_os in
16349   irix5* | nonstopux*)
16350     libsuff= shlibsuff=
16351     ;;
16352   *)
16353     case $LD in # libtool.m4 will add one of these switches to LD
16354     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16355       libsuff= shlibsuff= libmagic=32-bit;;
16356     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16357       libsuff=32 shlibsuff=N32 libmagic=N32;;
16358     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16359       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16360     *) libsuff= shlibsuff= libmagic=never-match;;
16361     esac
16362     ;;
16363   esac
16364   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16365   shlibpath_overrides_runpath=no
16366   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16367   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16368   hardcode_into_libs=yes
16369   ;;
16370
16371 # No shared lib support for Linux oldld, aout, or coff.
16372 linux*oldld* | linux*aout* | linux*coff*)
16373   dynamic_linker=no
16374   ;;
16375
16376 # This must be glibc/ELF.
16377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16378   version_type=linux # correct to gnu/linux during the next big refactor
16379   need_lib_prefix=no
16380   need_version=no
16381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382   soname_spec='${libname}${release}${shared_ext}$major'
16383   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16384   shlibpath_var=LD_LIBRARY_PATH
16385   shlibpath_overrides_runpath=no
16386
16387   # Some binutils ld are patched to set DT_RUNPATH
16388   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16389   $as_echo_n "(cached) " >&6
16390 else
16391   lt_cv_shlibpath_overrides_runpath=no
16392     save_LDFLAGS=$LDFLAGS
16393     save_libdir=$libdir
16394     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16395          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h.  */
16398
16399 int
16400 main ()
16401 {
16402
16403   ;
16404   return 0;
16405 }
16406 _ACEOF
16407 if ac_fn_cxx_try_link "$LINENO"; then :
16408   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16409   lt_cv_shlibpath_overrides_runpath=yes
16410 fi
16411 fi
16412 rm -f core conftest.err conftest.$ac_objext \
16413     conftest$ac_exeext conftest.$ac_ext
16414     LDFLAGS=$save_LDFLAGS
16415     libdir=$save_libdir
16416
16417 fi
16418
16419   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16420
16421   # This implies no fast_install, which is unacceptable.
16422   # Some rework will be needed to allow for fast_install
16423   # before this can be enabled.
16424   hardcode_into_libs=yes
16425
16426   # Append ld.so.conf contents to the search path
16427   if test -f /etc/ld.so.conf; then
16428     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' ' '`
16429     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16430   fi
16431
16432   # We used to test for /lib/ld.so.1 and disable shared libraries on
16433   # powerpc, because MkLinux only supported shared libraries with the
16434   # GNU dynamic linker.  Since this was broken with cross compilers,
16435   # most powerpc-linux boxes support dynamic linking these days and
16436   # people can always --disable-shared, the test was removed, and we
16437   # assume the GNU/Linux dynamic linker is in use.
16438   dynamic_linker='GNU/Linux ld.so'
16439   ;;
16440
16441 netbsdelf*-gnu)
16442   version_type=linux
16443   need_lib_prefix=no
16444   need_version=no
16445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16446   soname_spec='${libname}${release}${shared_ext}$major'
16447   shlibpath_var=LD_LIBRARY_PATH
16448   shlibpath_overrides_runpath=no
16449   hardcode_into_libs=yes
16450   dynamic_linker='NetBSD ld.elf_so'
16451   ;;
16452
16453 netbsd*)
16454   version_type=sunos
16455   need_lib_prefix=no
16456   need_version=no
16457   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16459     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16460     dynamic_linker='NetBSD (a.out) ld.so'
16461   else
16462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16463     soname_spec='${libname}${release}${shared_ext}$major'
16464     dynamic_linker='NetBSD ld.elf_so'
16465   fi
16466   shlibpath_var=LD_LIBRARY_PATH
16467   shlibpath_overrides_runpath=yes
16468   hardcode_into_libs=yes
16469   ;;
16470
16471 newsos6)
16472   version_type=linux # correct to gnu/linux during the next big refactor
16473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474   shlibpath_var=LD_LIBRARY_PATH
16475   shlibpath_overrides_runpath=yes
16476   ;;
16477
16478 *nto* | *qnx*)
16479   version_type=qnx
16480   need_lib_prefix=no
16481   need_version=no
16482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483   soname_spec='${libname}${release}${shared_ext}$major'
16484   shlibpath_var=LD_LIBRARY_PATH
16485   shlibpath_overrides_runpath=no
16486   hardcode_into_libs=yes
16487   dynamic_linker='ldqnx.so'
16488   ;;
16489
16490 openbsd*)
16491   version_type=sunos
16492   sys_lib_dlsearch_path_spec="/usr/lib"
16493   need_lib_prefix=no
16494   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16495   case $host_os in
16496     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16497     *)                          need_version=no  ;;
16498   esac
16499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16500   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16501   shlibpath_var=LD_LIBRARY_PATH
16502   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16503     case $host_os in
16504       openbsd2.[89] | openbsd2.[89].*)
16505         shlibpath_overrides_runpath=no
16506         ;;
16507       *)
16508         shlibpath_overrides_runpath=yes
16509         ;;
16510       esac
16511   else
16512     shlibpath_overrides_runpath=yes
16513   fi
16514   ;;
16515
16516 os2*)
16517   libname_spec='$name'
16518   shrext_cmds=".dll"
16519   need_lib_prefix=no
16520   library_names_spec='$libname${shared_ext} $libname.a'
16521   dynamic_linker='OS/2 ld.exe'
16522   shlibpath_var=LIBPATH
16523   ;;
16524
16525 osf3* | osf4* | osf5*)
16526   version_type=osf
16527   need_lib_prefix=no
16528   need_version=no
16529   soname_spec='${libname}${release}${shared_ext}$major'
16530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531   shlibpath_var=LD_LIBRARY_PATH
16532   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16533   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16534   ;;
16535
16536 rdos*)
16537   dynamic_linker=no
16538   ;;
16539
16540 solaris*)
16541   version_type=linux # correct to gnu/linux during the next big refactor
16542   need_lib_prefix=no
16543   need_version=no
16544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545   soname_spec='${libname}${release}${shared_ext}$major'
16546   shlibpath_var=LD_LIBRARY_PATH
16547   shlibpath_overrides_runpath=yes
16548   hardcode_into_libs=yes
16549   # ldd complains unless libraries are executable
16550   postinstall_cmds='chmod +x $lib'
16551   ;;
16552
16553 sunos4*)
16554   version_type=sunos
16555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16557   shlibpath_var=LD_LIBRARY_PATH
16558   shlibpath_overrides_runpath=yes
16559   if test "$with_gnu_ld" = yes; then
16560     need_lib_prefix=no
16561   fi
16562   need_version=yes
16563   ;;
16564
16565 sysv4 | sysv4.3*)
16566   version_type=linux # correct to gnu/linux during the next big refactor
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   shlibpath_var=LD_LIBRARY_PATH
16570   case $host_vendor in
16571     sni)
16572       shlibpath_overrides_runpath=no
16573       need_lib_prefix=no
16574       runpath_var=LD_RUN_PATH
16575       ;;
16576     siemens)
16577       need_lib_prefix=no
16578       ;;
16579     motorola)
16580       need_lib_prefix=no
16581       need_version=no
16582       shlibpath_overrides_runpath=no
16583       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16584       ;;
16585   esac
16586   ;;
16587
16588 sysv4*MP*)
16589   if test -d /usr/nec ;then
16590     version_type=linux # correct to gnu/linux during the next big refactor
16591     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16592     soname_spec='$libname${shared_ext}.$major'
16593     shlibpath_var=LD_LIBRARY_PATH
16594   fi
16595   ;;
16596
16597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16598   version_type=freebsd-elf
16599   need_lib_prefix=no
16600   need_version=no
16601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16602   soname_spec='${libname}${release}${shared_ext}$major'
16603   shlibpath_var=LD_LIBRARY_PATH
16604   shlibpath_overrides_runpath=yes
16605   hardcode_into_libs=yes
16606   if test "$with_gnu_ld" = yes; then
16607     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16608   else
16609     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16610     case $host_os in
16611       sco3.2v5*)
16612         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16613         ;;
16614     esac
16615   fi
16616   sys_lib_dlsearch_path_spec='/usr/lib'
16617   ;;
16618
16619 tpf*)
16620   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16621   version_type=linux # correct to gnu/linux during the next big refactor
16622   need_lib_prefix=no
16623   need_version=no
16624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   shlibpath_overrides_runpath=no
16627   hardcode_into_libs=yes
16628   ;;
16629
16630 uts4*)
16631   version_type=linux # correct to gnu/linux during the next big refactor
16632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16633   soname_spec='${libname}${release}${shared_ext}$major'
16634   shlibpath_var=LD_LIBRARY_PATH
16635   ;;
16636
16637 *)
16638   dynamic_linker=no
16639   ;;
16640 esac
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16642 $as_echo "$dynamic_linker" >&6; }
16643 test "$dynamic_linker" = no && can_build_shared=no
16644
16645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16646 if test "$GCC" = yes; then
16647   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16648 fi
16649
16650 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16651   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16652 fi
16653 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16654   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16655 fi
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16695 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16696 hardcode_action_CXX=
16697 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16698    test -n "$runpath_var_CXX" ||
16699    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16700
16701   # We can hardcode non-existent directories.
16702   if test "$hardcode_direct_CXX" != no &&
16703      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16704      # have to relink, otherwise we might link with an installed library
16705      # when we should be linking with a yet-to-be-installed one
16706      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16707      test "$hardcode_minus_L_CXX" != no; then
16708     # Linking always hardcodes the temporary library directory.
16709     hardcode_action_CXX=relink
16710   else
16711     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16712     hardcode_action_CXX=immediate
16713   fi
16714 else
16715   # We cannot hardcode anything, or else we can only hardcode existing
16716   # directories.
16717   hardcode_action_CXX=unsupported
16718 fi
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16720 $as_echo "$hardcode_action_CXX" >&6; }
16721
16722 if test "$hardcode_action_CXX" = relink ||
16723    test "$inherit_rpath_CXX" = yes; then
16724   # Fast installation is not supported
16725   enable_fast_install=no
16726 elif test "$shlibpath_overrides_runpath" = yes ||
16727      test "$enable_shared" = no; then
16728   # Fast installation is not necessary
16729   enable_fast_install=needless
16730 fi
16731
16732
16733
16734
16735
16736
16737
16738   fi # test -n "$compiler"
16739
16740   CC=$lt_save_CC
16741   CFLAGS=$lt_save_CFLAGS
16742   LDCXX=$LD
16743   LD=$lt_save_LD
16744   GCC=$lt_save_GCC
16745   with_gnu_ld=$lt_save_with_gnu_ld
16746   lt_cv_path_LDCXX=$lt_cv_path_LD
16747   lt_cv_path_LD=$lt_save_path_LD
16748   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16749   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16750 fi # test "$_lt_caught_CXX_error" != yes
16751
16752 ac_ext=c
16753 ac_cpp='$CPP $CPPFLAGS'
16754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16757
16758
16759
16760
16761 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16762         if test -n "$ac_tool_prefix"; then
16763   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16764 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16766 $as_echo_n "checking for $ac_word... " >&6; }
16767 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16768   $as_echo_n "(cached) " >&6
16769 else
16770   case $PKG_CONFIG in
16771   [\\/]* | ?:[\\/]*)
16772   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16773   ;;
16774   *)
16775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16776 for as_dir in $PATH
16777 do
16778   IFS=$as_save_IFS
16779   test -z "$as_dir" && as_dir=.
16780     for ac_exec_ext in '' $ac_executable_extensions; do
16781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16782     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16784     break 2
16785   fi
16786 done
16787   done
16788 IFS=$as_save_IFS
16789
16790   ;;
16791 esac
16792 fi
16793 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16794 if test -n "$PKG_CONFIG"; then
16795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16796 $as_echo "$PKG_CONFIG" >&6; }
16797 else
16798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16799 $as_echo "no" >&6; }
16800 fi
16801
16802
16803 fi
16804 if test -z "$ac_cv_path_PKG_CONFIG"; then
16805   ac_pt_PKG_CONFIG=$PKG_CONFIG
16806   # Extract the first word of "pkg-config", so it can be a program name with args.
16807 set dummy pkg-config; ac_word=$2
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809 $as_echo_n "checking for $ac_word... " >&6; }
16810 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16811   $as_echo_n "(cached) " >&6
16812 else
16813   case $ac_pt_PKG_CONFIG in
16814   [\\/]* | ?:[\\/]*)
16815   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16816   ;;
16817   *)
16818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16820 do
16821   IFS=$as_save_IFS
16822   test -z "$as_dir" && as_dir=.
16823     for ac_exec_ext in '' $ac_executable_extensions; do
16824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16825     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16827     break 2
16828   fi
16829 done
16830   done
16831 IFS=$as_save_IFS
16832
16833   ;;
16834 esac
16835 fi
16836 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16837 if test -n "$ac_pt_PKG_CONFIG"; then
16838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16839 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16840 else
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843 fi
16844
16845   if test "x$ac_pt_PKG_CONFIG" = x; then
16846     PKG_CONFIG=""
16847   else
16848     case $cross_compiling:$ac_tool_warned in
16849 yes:)
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16852 ac_tool_warned=yes ;;
16853 esac
16854     PKG_CONFIG=$ac_pt_PKG_CONFIG
16855   fi
16856 else
16857   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16858 fi
16859
16860 fi
16861 if test -n "$PKG_CONFIG"; then
16862         _pkg_min_version=0.20
16863         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16864 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16865         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16866                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16867 $as_echo "yes" >&6; }
16868         else
16869                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16870 $as_echo "no" >&6; }
16871                 PKG_CONFIG=""
16872         fi
16873
16874 fi
16875
16876 RAGEL=${RAGEL-"${am_missing_run}ragel"}
16877
16878
16879 GIT=${GIT-"${am_missing_run}git"}
16880
16881
16882 # Version
16883
16884
16885
16886
16887 HB_VERSION_MAJOR=1
16888 HB_VERSION_MINOR=2
16889 HB_VERSION_MICRO=7
16890 HB_VERSION=1.2.7
16891
16892
16893
16894
16895
16896 # Libtool version
16897
16898
16899
16900
16901 HB_LIBTOOL_VERSION_INFO=10200:7:10200
16902
16903
16904 # Documentation
16905 have_gtk_doc=false
16906
16907
16908
16909
16910   gtk_doc_requires="gtk-doc >= 1.15"
16911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
16912 $as_echo_n "checking for gtk-doc... " >&6; }
16913   if test -n "$PKG_CONFIG" && \
16914     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
16915   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
16916   ac_status=$?
16917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16918   test $ac_status = 0; }; then
16919   have_gtk_doc=yes
16920 else
16921   have_gtk_doc=no
16922 fi
16923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
16924 $as_echo "$have_gtk_doc" >&6; }
16925
16926   if test "$have_gtk_doc" = "no"; then
16927       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16928   You will not be able to create source packages with 'make dist'
16929   because $gtk_doc_requires is not found." >&5
16930 $as_echo "$as_me: WARNING:
16931   You will not be able to create source packages with 'make dist'
16932   because $gtk_doc_requires is not found." >&2;}
16933   fi
16934
16935             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16936 set dummy gtkdoc-check; ac_word=$2
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16938 $as_echo_n "checking for $ac_word... " >&6; }
16939 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
16940   $as_echo_n "(cached) " >&6
16941 else
16942   if test -n "$GTKDOC_CHECK"; then
16943   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
16944 else
16945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16946 for as_dir in $PATH
16947 do
16948   IFS=$as_save_IFS
16949   test -z "$as_dir" && as_dir=.
16950     for ac_exec_ext in '' $ac_executable_extensions; do
16951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16952     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
16953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16954     break 2
16955   fi
16956 done
16957   done
16958 IFS=$as_save_IFS
16959
16960 fi
16961 fi
16962 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
16963 if test -n "$GTKDOC_CHECK"; then
16964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16965 $as_echo "$GTKDOC_CHECK" >&6; }
16966 else
16967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16968 $as_echo "no" >&6; }
16969 fi
16970
16971
16972   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16973 set dummy gtkdoc-check; ac_word=$2
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16975 $as_echo_n "checking for $ac_word... " >&6; }
16976 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
16977   $as_echo_n "(cached) " >&6
16978 else
16979   case $GTKDOC_CHECK_PATH in
16980   [\\/]* | ?:[\\/]*)
16981   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
16982   ;;
16983   *)
16984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16985 for as_dir in $PATH
16986 do
16987   IFS=$as_save_IFS
16988   test -z "$as_dir" && as_dir=.
16989     for ac_exec_ext in '' $ac_executable_extensions; do
16990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16991     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
16992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16993     break 2
16994   fi
16995 done
16996   done
16997 IFS=$as_save_IFS
16998
16999   ;;
17000 esac
17001 fi
17002 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
17003 if test -n "$GTKDOC_CHECK_PATH"; then
17004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
17005 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
17006 else
17007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008 $as_echo "no" >&6; }
17009 fi
17010
17011
17012   for ac_prog in gtkdoc-rebase
17013 do
17014   # Extract the first word of "$ac_prog", so it can be a program name with args.
17015 set dummy $ac_prog; ac_word=$2
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17017 $as_echo_n "checking for $ac_word... " >&6; }
17018 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
17019   $as_echo_n "(cached) " >&6
17020 else
17021   case $GTKDOC_REBASE in
17022   [\\/]* | ?:[\\/]*)
17023   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
17024   ;;
17025   *)
17026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17027 for as_dir in $PATH
17028 do
17029   IFS=$as_save_IFS
17030   test -z "$as_dir" && as_dir=.
17031     for ac_exec_ext in '' $ac_executable_extensions; do
17032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17033     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
17034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17035     break 2
17036   fi
17037 done
17038   done
17039 IFS=$as_save_IFS
17040
17041   ;;
17042 esac
17043 fi
17044 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
17045 if test -n "$GTKDOC_REBASE"; then
17046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
17047 $as_echo "$GTKDOC_REBASE" >&6; }
17048 else
17049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17050 $as_echo "no" >&6; }
17051 fi
17052
17053
17054   test -n "$GTKDOC_REBASE" && break
17055 done
17056 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
17057
17058   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
17059 set dummy gtkdoc-mkpdf; ac_word=$2
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17061 $as_echo_n "checking for $ac_word... " >&6; }
17062 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
17063   $as_echo_n "(cached) " >&6
17064 else
17065   case $GTKDOC_MKPDF in
17066   [\\/]* | ?:[\\/]*)
17067   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
17068   ;;
17069   *)
17070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17071 for as_dir in $PATH
17072 do
17073   IFS=$as_save_IFS
17074   test -z "$as_dir" && as_dir=.
17075     for ac_exec_ext in '' $ac_executable_extensions; do
17076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17077     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17079     break 2
17080   fi
17081 done
17082   done
17083 IFS=$as_save_IFS
17084
17085   ;;
17086 esac
17087 fi
17088 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
17089 if test -n "$GTKDOC_MKPDF"; then
17090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
17091 $as_echo "$GTKDOC_MKPDF" >&6; }
17092 else
17093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094 $as_echo "no" >&6; }
17095 fi
17096
17097
17098
17099
17100 # Check whether --with-html-dir was given.
17101 if test "${with_html_dir+set}" = set; then :
17102   withval=$with_html_dir;
17103 else
17104   with_html_dir='${datadir}/gtk-doc/html'
17105 fi
17106
17107   HTML_DIR="$with_html_dir"
17108
17109
17110     # Check whether --enable-gtk-doc was given.
17111 if test "${enable_gtk_doc+set}" = set; then :
17112   enableval=$enable_gtk_doc;
17113 else
17114   enable_gtk_doc=no
17115 fi
17116
17117
17118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
17119 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
17120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
17121 $as_echo "$enable_gtk_doc" >&6; }
17122
17123   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
17124     as_fn_error $? "
17125   You must have $gtk_doc_requires installed to build documentation for
17126   $PACKAGE_NAME. Please install gtk-doc or disable building the
17127   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
17128   fi
17129
17130     if test "x$PACKAGE_NAME" != "xglib"; then
17131
17132 pkg_failed=no
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17134 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17135
17136 if test -n "$PKG_CONFIG"; then
17137     if test -n "$GTKDOC_DEPS_CFLAGS"; then
17138         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17139     else
17140         if test -n "$PKG_CONFIG" && \
17141     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
17142   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17143   ac_status=$?
17144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17145   test $ac_status = 0; }; then
17146   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17147 else
17148   pkg_failed=yes
17149 fi
17150     fi
17151 else
17152         pkg_failed=untried
17153 fi
17154 if test -n "$PKG_CONFIG"; then
17155     if test -n "$GTKDOC_DEPS_LIBS"; then
17156         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17157     else
17158         if test -n "$PKG_CONFIG" && \
17159     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
17160   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17161   ac_status=$?
17162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17163   test $ac_status = 0; }; then
17164   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17165 else
17166   pkg_failed=yes
17167 fi
17168     fi
17169 else
17170         pkg_failed=untried
17171 fi
17172
17173
17174
17175 if test $pkg_failed = yes; then
17176
17177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17178         _pkg_short_errors_supported=yes
17179 else
17180         _pkg_short_errors_supported=no
17181 fi
17182         if test $_pkg_short_errors_supported = yes; then
17183                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17184         else
17185                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17186         fi
17187         # Put the nasty error message in config.log where it belongs
17188         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17189
17190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17192                 :
17193 elif test $pkg_failed = untried; then
17194         :
17195 else
17196         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17197         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17199 $as_echo "yes" >&6; }
17200         :
17201 fi
17202   fi
17203
17204     # Check whether --enable-gtk-doc-html was given.
17205 if test "${enable_gtk_doc_html+set}" = set; then :
17206   enableval=$enable_gtk_doc_html;
17207 else
17208   enable_gtk_doc_html=yes
17209 fi
17210
17211     # Check whether --enable-gtk-doc-pdf was given.
17212 if test "${enable_gtk_doc_pdf+set}" = set; then :
17213   enableval=$enable_gtk_doc_pdf;
17214 else
17215   enable_gtk_doc_pdf=no
17216 fi
17217
17218
17219   if test -z "$GTKDOC_MKPDF"; then
17220     enable_gtk_doc_pdf=no
17221   fi
17222
17223   if test -z "$AM_DEFAULT_VERBOSITY"; then
17224     AM_DEFAULT_VERBOSITY=1
17225   fi
17226
17227
17228    if test x$have_gtk_doc = xyes; then
17229   HAVE_GTK_DOC_TRUE=
17230   HAVE_GTK_DOC_FALSE='#'
17231 else
17232   HAVE_GTK_DOC_TRUE='#'
17233   HAVE_GTK_DOC_FALSE=
17234 fi
17235
17236    if test x$enable_gtk_doc = xyes; then
17237   ENABLE_GTK_DOC_TRUE=
17238   ENABLE_GTK_DOC_FALSE='#'
17239 else
17240   ENABLE_GTK_DOC_TRUE='#'
17241   ENABLE_GTK_DOC_FALSE=
17242 fi
17243
17244    if test x$enable_gtk_doc_html = xyes; then
17245   GTK_DOC_BUILD_HTML_TRUE=
17246   GTK_DOC_BUILD_HTML_FALSE='#'
17247 else
17248   GTK_DOC_BUILD_HTML_TRUE='#'
17249   GTK_DOC_BUILD_HTML_FALSE=
17250 fi
17251
17252    if test x$enable_gtk_doc_pdf = xyes; then
17253   GTK_DOC_BUILD_PDF_TRUE=
17254   GTK_DOC_BUILD_PDF_FALSE='#'
17255 else
17256   GTK_DOC_BUILD_PDF_TRUE='#'
17257   GTK_DOC_BUILD_PDF_FALSE=
17258 fi
17259
17260    if test -n "$LIBTOOL"; then
17261   GTK_DOC_USE_LIBTOOL_TRUE=
17262   GTK_DOC_USE_LIBTOOL_FALSE='#'
17263 else
17264   GTK_DOC_USE_LIBTOOL_TRUE='#'
17265   GTK_DOC_USE_LIBTOOL_FALSE=
17266 fi
17267
17268    if test -n "$GTKDOC_REBASE"; then
17269   GTK_DOC_USE_REBASE_TRUE=
17270   GTK_DOC_USE_REBASE_FALSE='#'
17271 else
17272   GTK_DOC_USE_REBASE_TRUE='#'
17273   GTK_DOC_USE_REBASE_FALSE=
17274 fi
17275
17276
17277         if test "x$enable_gtk_doc" = xyes; then
17278                 have_gtk_doc=true
17279         fi
17280
17281
17282 # Functions and headers
17283 for ac_func in atexit mprotect sysconf getpagesize mmap isatty
17284 do :
17285   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17287 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17288   cat >>confdefs.h <<_ACEOF
17289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17290 _ACEOF
17291
17292 fi
17293 done
17294
17295 for ac_header in unistd.h sys/mman.h
17296 do :
17297   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17300   cat >>confdefs.h <<_ACEOF
17301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17302 _ACEOF
17303
17304 fi
17305
17306 done
17307
17308
17309 # Compiler flags
17310
17311 # The cast to long int works around a bug in the HP C Compiler,
17312 # see AC_CHECK_SIZEOF for more information.
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
17314 $as_echo_n "checking alignment of struct{char;}... " >&6; }
17315 if ${ac_cv_alignof_struct_char__+:} false; then :
17316   $as_echo_n "(cached) " >&6
17317 else
17318   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
17319 #ifndef offsetof
17320 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17321 #endif
17322 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
17323
17324 else
17325   if test "$ac_cv_type_struct_char__" = yes; then
17326      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17328 as_fn_error 77 "cannot compute alignment of struct{char;}
17329 See \`config.log' for more details" "$LINENO" 5; }
17330    else
17331      ac_cv_alignof_struct_char__=0
17332    fi
17333 fi
17334
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
17337 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
17338
17339
17340
17341 cat >>confdefs.h <<_ACEOF
17342 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
17343 _ACEOF
17344
17345
17346 if test "x$GCC" = "xyes"; then
17347
17348         # Make symbols link locally
17349         LDFLAGS="$LDFLAGS -Bsymbolic-functions"
17350
17351         # Make sure we don't link to libstdc++
17352         CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
17353
17354         # Assorted warnings
17355         CXXFLAGS="$CXXFLAGS -Wcast-align"
17356
17357         case "$host" in
17358                 *-*-mingw*)
17359                 ;;
17360                 *)
17361                         # Hide inline methods
17362                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
17363                 ;;
17364         esac
17365
17366         case "$host" in
17367                 arm-*-*)
17368                         if test "x$ac_cv_alignof_struct_char__" != x1; then
17369                                 # Request byte alignment
17370                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
17371                         fi
17372                 ;;
17373         esac
17374 fi
17375
17376  if test "x$GCC" = "xyes"; then
17377   HAVE_GCC_TRUE=
17378   HAVE_GCC_FALSE='#'
17379 else
17380   HAVE_GCC_TRUE='#'
17381   HAVE_GCC_FALSE=
17382 fi
17383
17384
17385 hb_os_win32=no
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
17387 $as_echo_n "checking for native Win32... " >&6; }
17388 case "$host" in
17389   *-*-mingw*)
17390     hb_os_win32=yes
17391     ;;
17392 esac
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
17394 $as_echo "$hb_os_win32" >&6; }
17395  if test "$hb_os_win32" = "yes"; then
17396   OS_WIN32_TRUE=
17397   OS_WIN32_FALSE='#'
17398 else
17399   OS_WIN32_TRUE='#'
17400   OS_WIN32_FALSE=
17401 fi
17402
17403
17404 have_pthread=false
17405 if test "$hb_os_win32" = no; then
17406
17407
17408 ac_ext=c
17409 ac_cpp='$CPP $CPPFLAGS'
17410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17413
17414 ax_pthread_ok=no
17415
17416 # We used to check for pthread.h first, but this fails if pthread.h
17417 # requires special compiler flags (e.g. on True64 or Sequent).
17418 # It gets checked for in the link test anyway.
17419
17420 # First of all, check if the user has set any of the PTHREAD_LIBS,
17421 # etcetera environment variables, and if threads linking works using
17422 # them:
17423 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17424         save_CFLAGS="$CFLAGS"
17425         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17426         save_LIBS="$LIBS"
17427         LIBS="$PTHREAD_LIBS $LIBS"
17428         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17429 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17430         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h.  */
17432
17433 /* Override any GCC internal prototype to avoid an error.
17434    Use char because int might match the return type of a GCC
17435    builtin and then its argument prototype would still apply.  */
17436 #ifdef __cplusplus
17437 extern "C"
17438 #endif
17439 char pthread_join ();
17440 int
17441 main ()
17442 {
17443 return pthread_join ();
17444   ;
17445   return 0;
17446 }
17447 _ACEOF
17448 if ac_fn_c_try_link "$LINENO"; then :
17449   ax_pthread_ok=yes
17450 fi
17451 rm -f core conftest.err conftest.$ac_objext \
17452     conftest$ac_exeext conftest.$ac_ext
17453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17454 $as_echo "$ax_pthread_ok" >&6; }
17455         if test x"$ax_pthread_ok" = xno; then
17456                 PTHREAD_LIBS=""
17457                 PTHREAD_CFLAGS=""
17458         fi
17459         LIBS="$save_LIBS"
17460         CFLAGS="$save_CFLAGS"
17461 fi
17462
17463 # We must check for the threads library under a number of different
17464 # names; the ordering is very important because some systems
17465 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17466 # libraries is broken (non-POSIX).
17467
17468 # Create a list of thread flags to try.  Items starting with a "-" are
17469 # C compiler flags, and other items are library names, except for "none"
17470 # which indicates that we try without any flags at all, and "pthread-config"
17471 # which is a program returning the flags for the Pth emulation library.
17472
17473 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17474
17475 # The ordering *is* (sometimes) important.  Some notes on the
17476 # individual items follow:
17477
17478 # pthreads: AIX (must check this before -lpthread)
17479 # none: in case threads are in libc; should be tried before -Kthread and
17480 #       other compiler flags to prevent continual compiler warnings
17481 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17482 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17483 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17484 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17485 # -pthreads: Solaris/gcc
17486 # -mthreads: Mingw32/gcc, Lynx/gcc
17487 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17488 #      doesn't hurt to check since this sometimes defines pthreads too;
17489 #      also defines -D_REENTRANT)
17490 #      ... -mt is also the pthreads flag for HP/aCC
17491 # pthread: Linux, etcetera
17492 # --thread-safe: KAI C++
17493 # pthread-config: use pthread-config program (for GNU Pth library)
17494
17495 case ${host_os} in
17496         solaris*)
17497
17498         # On Solaris (at least, for some versions), libc contains stubbed
17499         # (non-functional) versions of the pthreads routines, so link-based
17500         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17501         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17502         # a function called by this macro, so we could check for that, but
17503         # who knows whether they'll stub that too in a future libc.)  So,
17504         # we'll just look for -pthreads and -lpthread first:
17505
17506         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17507         ;;
17508
17509         darwin*)
17510         ax_pthread_flags="-pthread $ax_pthread_flags"
17511         ;;
17512 esac
17513
17514 if test x"$ax_pthread_ok" = xno; then
17515 for flag in $ax_pthread_flags; do
17516
17517         case $flag in
17518                 none)
17519                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17520 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17521                 ;;
17522
17523                 -*)
17524                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17525 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17526                 PTHREAD_CFLAGS="$flag"
17527                 ;;
17528
17529                 pthread-config)
17530                 # Extract the first word of "pthread-config", so it can be a program name with args.
17531 set dummy pthread-config; ac_word=$2
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17533 $as_echo_n "checking for $ac_word... " >&6; }
17534 if ${ac_cv_prog_ax_pthread_config+:} false; then :
17535   $as_echo_n "(cached) " >&6
17536 else
17537   if test -n "$ax_pthread_config"; then
17538   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17539 else
17540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17541 for as_dir in $PATH
17542 do
17543   IFS=$as_save_IFS
17544   test -z "$as_dir" && as_dir=.
17545     for ac_exec_ext in '' $ac_executable_extensions; do
17546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17547     ac_cv_prog_ax_pthread_config="yes"
17548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17549     break 2
17550   fi
17551 done
17552   done
17553 IFS=$as_save_IFS
17554
17555   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17556 fi
17557 fi
17558 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17559 if test -n "$ax_pthread_config"; then
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17561 $as_echo "$ax_pthread_config" >&6; }
17562 else
17563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564 $as_echo "no" >&6; }
17565 fi
17566
17567
17568                 if test x"$ax_pthread_config" = xno; then continue; fi
17569                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17570                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17571                 ;;
17572
17573                 *)
17574                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17575 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17576                 PTHREAD_LIBS="-l$flag"
17577                 ;;
17578         esac
17579
17580         save_LIBS="$LIBS"
17581         save_CFLAGS="$CFLAGS"
17582         LIBS="$PTHREAD_LIBS $LIBS"
17583         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17584
17585         # Check for various functions.  We must include pthread.h,
17586         # since some functions may be macros.  (On the Sequent, we
17587         # need a special flag -Kthread to make this header compile.)
17588         # We check for pthread_join because it is in -lpthread on IRIX
17589         # while pthread_create is in libc.  We check for pthread_attr_init
17590         # due to DEC craziness with -lpthreads.  We check for
17591         # pthread_cleanup_push because it is one of the few pthread
17592         # functions on Solaris that doesn't have a non-functional libc stub.
17593         # We try pthread_create on general principles.
17594         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h.  */
17596 #include <pthread.h>
17597                         static void routine(void *a) { a = 0; }
17598                         static void *start_routine(void *a) { return a; }
17599 int
17600 main ()
17601 {
17602 pthread_t th; pthread_attr_t attr;
17603                         pthread_create(&th, 0, start_routine, 0);
17604                         pthread_join(th, 0);
17605                         pthread_attr_init(&attr);
17606                         pthread_cleanup_push(routine, 0);
17607                         pthread_cleanup_pop(0) /* ; */
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 if ac_fn_c_try_link "$LINENO"; then :
17613   ax_pthread_ok=yes
17614 fi
17615 rm -f core conftest.err conftest.$ac_objext \
17616     conftest$ac_exeext conftest.$ac_ext
17617
17618         LIBS="$save_LIBS"
17619         CFLAGS="$save_CFLAGS"
17620
17621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17622 $as_echo "$ax_pthread_ok" >&6; }
17623         if test "x$ax_pthread_ok" = xyes; then
17624                 break;
17625         fi
17626
17627         PTHREAD_LIBS=""
17628         PTHREAD_CFLAGS=""
17629 done
17630 fi
17631
17632 # Various other checks:
17633 if test "x$ax_pthread_ok" = xyes; then
17634         save_LIBS="$LIBS"
17635         LIBS="$PTHREAD_LIBS $LIBS"
17636         save_CFLAGS="$CFLAGS"
17637         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17638
17639         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17641 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17642         attr_name=unknown
17643         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17644             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h.  */
17646 #include <pthread.h>
17647 int
17648 main ()
17649 {
17650 int attr = $attr; return attr /* ; */
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 if ac_fn_c_try_link "$LINENO"; then :
17656   attr_name=$attr; break
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext \
17659     conftest$ac_exeext conftest.$ac_ext
17660         done
17661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17662 $as_echo "$attr_name" >&6; }
17663         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17664
17665 cat >>confdefs.h <<_ACEOF
17666 #define PTHREAD_CREATE_JOINABLE $attr_name
17667 _ACEOF
17668
17669         fi
17670
17671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17672 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17673         flag=no
17674         case ${host_os} in
17675             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
17676             osf* | hpux*) flag="-D_REENTRANT";;
17677             solaris*)
17678             if test "$GCC" = "yes"; then
17679                 flag="-D_REENTRANT"
17680             else
17681                 flag="-mt -D_REENTRANT"
17682             fi
17683             ;;
17684         esac
17685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17686 $as_echo "${flag}" >&6; }
17687         if test "x$flag" != xno; then
17688             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17689         fi
17690
17691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17692 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17693 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
17694   $as_echo_n "(cached) " >&6
17695 else
17696
17697                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h.  */
17699
17700                     #include <pthread.h>
17701 int
17702 main ()
17703 {
17704 int i = PTHREAD_PRIO_INHERIT;
17705   ;
17706   return 0;
17707 }
17708 _ACEOF
17709 if ac_fn_c_try_link "$LINENO"; then :
17710   ax_cv_PTHREAD_PRIO_INHERIT=yes
17711 else
17712   ax_cv_PTHREAD_PRIO_INHERIT=no
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext \
17715     conftest$ac_exeext conftest.$ac_ext
17716
17717 fi
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17719 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17720         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
17721
17722 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17723
17724 fi
17725
17726         LIBS="$save_LIBS"
17727         CFLAGS="$save_CFLAGS"
17728
17729         # More AIX lossage: must compile with xlc_r or cc_r
17730         if test x"$GCC" != xyes; then
17731           for ac_prog in xlc_r cc_r
17732 do
17733   # Extract the first word of "$ac_prog", so it can be a program name with args.
17734 set dummy $ac_prog; ac_word=$2
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17736 $as_echo_n "checking for $ac_word... " >&6; }
17737 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17738   $as_echo_n "(cached) " >&6
17739 else
17740   if test -n "$PTHREAD_CC"; then
17741   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17742 else
17743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17744 for as_dir in $PATH
17745 do
17746   IFS=$as_save_IFS
17747   test -z "$as_dir" && as_dir=.
17748     for ac_exec_ext in '' $ac_executable_extensions; do
17749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17750     ac_cv_prog_PTHREAD_CC="$ac_prog"
17751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17752     break 2
17753   fi
17754 done
17755   done
17756 IFS=$as_save_IFS
17757
17758 fi
17759 fi
17760 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17761 if test -n "$PTHREAD_CC"; then
17762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17763 $as_echo "$PTHREAD_CC" >&6; }
17764 else
17765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17766 $as_echo "no" >&6; }
17767 fi
17768
17769
17770   test -n "$PTHREAD_CC" && break
17771 done
17772 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17773
17774         else
17775           PTHREAD_CC=$CC
17776         fi
17777 else
17778         PTHREAD_CC="$CC"
17779 fi
17780
17781
17782
17783
17784
17785 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17786 if test x"$ax_pthread_ok" = xyes; then
17787         have_pthread=true
17788         :
17789 else
17790         ax_pthread_ok=no
17791
17792 fi
17793 ac_ext=c
17794 ac_cpp='$CPP $CPPFLAGS'
17795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798
17799
17800 fi
17801 if $have_pthread; then
17802
17803 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17804
17805 fi
17806  if $have_pthread; then
17807   HAVE_PTHREAD_TRUE=
17808   HAVE_PTHREAD_FALSE='#'
17809 else
17810   HAVE_PTHREAD_TRUE='#'
17811   HAVE_PTHREAD_FALSE=
17812 fi
17813
17814
17815
17816 have_ot=true
17817 if $have_ot; then
17818
17819 $as_echo "#define HAVE_OT 1" >>confdefs.h
17820
17821 fi
17822  if $have_ot; then
17823   HAVE_OT_TRUE=
17824   HAVE_OT_FALSE='#'
17825 else
17826   HAVE_OT_TRUE='#'
17827   HAVE_OT_FALSE=
17828 fi
17829
17830
17831 have_fallback=true
17832 if $have_fallback; then
17833
17834 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
17835
17836 fi
17837  if $have_fallback; then
17838   HAVE_FALLBACK_TRUE=
17839   HAVE_FALLBACK_FALSE='#'
17840 else
17841   HAVE_FALLBACK_TRUE='#'
17842   HAVE_FALLBACK_FALSE=
17843 fi
17844
17845
17846
17847
17848 # Check whether --with-glib was given.
17849 if test "${with_glib+set}" = set; then :
17850   withval=$with_glib;
17851 else
17852   with_glib=auto
17853 fi
17854
17855 have_glib=false
17856 GLIB_DEPS="glib-2.0 >= 2.16"
17857
17858 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
17859
17860 pkg_failed=no
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
17862 $as_echo_n "checking for GLIB... " >&6; }
17863
17864 if test -n "$PKG_CONFIG"; then
17865     if test -n "$GLIB_CFLAGS"; then
17866         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
17867     else
17868         if test -n "$PKG_CONFIG" && \
17869     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
17870   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
17871   ac_status=$?
17872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17873   test $ac_status = 0; }; then
17874   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
17875 else
17876   pkg_failed=yes
17877 fi
17878     fi
17879 else
17880         pkg_failed=untried
17881 fi
17882 if test -n "$PKG_CONFIG"; then
17883     if test -n "$GLIB_LIBS"; then
17884         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
17885     else
17886         if test -n "$PKG_CONFIG" && \
17887     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
17888   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
17889   ac_status=$?
17890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17891   test $ac_status = 0; }; then
17892   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
17893 else
17894   pkg_failed=yes
17895 fi
17896     fi
17897 else
17898         pkg_failed=untried
17899 fi
17900
17901
17902
17903 if test $pkg_failed = yes; then
17904
17905 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17906         _pkg_short_errors_supported=yes
17907 else
17908         _pkg_short_errors_supported=no
17909 fi
17910         if test $_pkg_short_errors_supported = yes; then
17911                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
17912         else
17913                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
17914         fi
17915         # Put the nasty error message in config.log where it belongs
17916         echo "$GLIB_PKG_ERRORS" >&5
17917
17918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919 $as_echo "no" >&6; }
17920                 :
17921 elif test $pkg_failed = untried; then
17922         :
17923 else
17924         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
17925         GLIB_LIBS=$pkg_cv_GLIB_LIBS
17926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17927 $as_echo "yes" >&6; }
17928         have_glib=true
17929 fi
17930 fi
17931 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
17932         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
17933 fi
17934 if $have_glib; then
17935
17936 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
17937
17938 fi
17939  if $have_glib; then
17940   HAVE_GLIB_TRUE=
17941   HAVE_GLIB_FALSE='#'
17942 else
17943   HAVE_GLIB_TRUE='#'
17944   HAVE_GLIB_FALSE=
17945 fi
17946
17947
17948
17949
17950 # Check whether --with-gobject was given.
17951 if test "${with_gobject+set}" = set; then :
17952   withval=$with_gobject;
17953 else
17954   with_gobject=no
17955 fi
17956
17957 have_gobject=false
17958 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
17959
17960 pkg_failed=no
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
17962 $as_echo_n "checking for GOBJECT... " >&6; }
17963
17964 if test -n "$PKG_CONFIG"; then
17965     if test -n "$GOBJECT_CFLAGS"; then
17966         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
17967     else
17968         if test -n "$PKG_CONFIG" && \
17969     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17970   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17971   ac_status=$?
17972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17973   test $ac_status = 0; }; then
17974   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
17975 else
17976   pkg_failed=yes
17977 fi
17978     fi
17979 else
17980         pkg_failed=untried
17981 fi
17982 if test -n "$PKG_CONFIG"; then
17983     if test -n "$GOBJECT_LIBS"; then
17984         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
17985     else
17986         if test -n "$PKG_CONFIG" && \
17987     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17988   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17989   ac_status=$?
17990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17991   test $ac_status = 0; }; then
17992   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
17993 else
17994   pkg_failed=yes
17995 fi
17996     fi
17997 else
17998         pkg_failed=untried
17999 fi
18000
18001
18002
18003 if test $pkg_failed = yes; then
18004
18005 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18006         _pkg_short_errors_supported=yes
18007 else
18008         _pkg_short_errors_supported=no
18009 fi
18010         if test $_pkg_short_errors_supported = yes; then
18011                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18012         else
18013                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18014         fi
18015         # Put the nasty error message in config.log where it belongs
18016         echo "$GOBJECT_PKG_ERRORS" >&5
18017
18018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18019 $as_echo "no" >&6; }
18020                 :
18021 elif test $pkg_failed = untried; then
18022         :
18023 else
18024         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
18025         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
18026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18027 $as_echo "yes" >&6; }
18028         have_gobject=true
18029 fi
18030 fi
18031 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
18032         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
18033 fi
18034 if $have_gobject; then
18035
18036 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
18037
18038         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
18039
18040 fi
18041  if $have_gobject; then
18042   HAVE_GOBJECT_TRUE=
18043   HAVE_GOBJECT_FALSE='#'
18044 else
18045   HAVE_GOBJECT_TRUE='#'
18046   HAVE_GOBJECT_FALSE=
18047 fi
18048
18049
18050
18051
18052 # Gobject-Introspection
18053 have_introspection=false
18054
18055         if $have_gobject; then
18056
18057
18058
18059                 # Check whether --enable-introspection was given.
18060 if test "${enable_introspection+set}" = set; then :
18061   enableval=$enable_introspection;
18062 else
18063   enable_introspection=auto
18064 fi
18065
18066
18067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
18068 $as_echo_n "checking for gobject-introspection... " >&6; }
18069
18070         case $enable_introspection in #(
18071   no) :
18072             found_introspection="no (disabled, use --enable-introspection to enable)"
18073      ;; #(
18074       yes) :
18075             if test -n "$PKG_CONFIG" && \
18076     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
18077   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
18078   ac_status=$?
18079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080   test $ac_status = 0; }; then
18081   :
18082 else
18083   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
18084 fi
18085         if test -n "$PKG_CONFIG" && \
18086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18087   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18088   ac_status=$?
18089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18090   test $ac_status = 0; }; then
18091   found_introspection=yes
18092 else
18093   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
18094 fi
18095      ;; #(
18096       auto) :
18097             if test -n "$PKG_CONFIG" && \
18098     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18099   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18100   ac_status=$?
18101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18102   test $ac_status = 0; }; then
18103   found_introspection=yes
18104 else
18105   found_introspection=no
18106 fi
18107                 enable_introspection=$found_introspection
18108      ;; #(
18109   *) :
18110                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
18111      ;;
18112 esac
18113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
18114 $as_echo "$found_introspection" >&6; }
18115
18116     INTROSPECTION_SCANNER=
18117     INTROSPECTION_COMPILER=
18118     INTROSPECTION_GENERATE=
18119     INTROSPECTION_GIRDIR=
18120     INTROSPECTION_TYPELIBDIR=
18121     if test "x$found_introspection" = "xyes"; then
18122        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
18123        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
18124        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
18125        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
18126        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
18127        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
18128        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
18129        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
18130     fi
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140      if test "x$found_introspection" = "xyes"; then
18141   HAVE_INTROSPECTION_TRUE=
18142   HAVE_INTROSPECTION_FALSE='#'
18143 else
18144   HAVE_INTROSPECTION_TRUE='#'
18145   HAVE_INTROSPECTION_FALSE=
18146 fi
18147
18148
18149
18150                 if test "x$found_introspection" = xyes; then
18151                         have_introspection=true
18152                 fi
18153         else
18154                  if false; then
18155   HAVE_INTROSPECTION_TRUE=
18156   HAVE_INTROSPECTION_FALSE='#'
18157 else
18158   HAVE_INTROSPECTION_TRUE='#'
18159   HAVE_INTROSPECTION_FALSE=
18160 fi
18161
18162         fi
18163
18164
18165
18166
18167 # Check whether --with-cairo was given.
18168 if test "${with_cairo+set}" = set; then :
18169   withval=$with_cairo;
18170 else
18171   with_cairo=auto
18172 fi
18173
18174 have_cairo=false
18175 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
18176
18177 pkg_failed=no
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
18179 $as_echo_n "checking for CAIRO... " >&6; }
18180
18181 if test -n "$PKG_CONFIG"; then
18182     if test -n "$CAIRO_CFLAGS"; then
18183         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
18184     else
18185         if test -n "$PKG_CONFIG" && \
18186     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18187   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18188   ac_status=$?
18189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18190   test $ac_status = 0; }; then
18191   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
18192 else
18193   pkg_failed=yes
18194 fi
18195     fi
18196 else
18197         pkg_failed=untried
18198 fi
18199 if test -n "$PKG_CONFIG"; then
18200     if test -n "$CAIRO_LIBS"; then
18201         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
18202     else
18203         if test -n "$PKG_CONFIG" && \
18204     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18205   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18206   ac_status=$?
18207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18208   test $ac_status = 0; }; then
18209   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
18210 else
18211   pkg_failed=yes
18212 fi
18213     fi
18214 else
18215         pkg_failed=untried
18216 fi
18217
18218
18219
18220 if test $pkg_failed = yes; then
18221
18222 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18223         _pkg_short_errors_supported=yes
18224 else
18225         _pkg_short_errors_supported=no
18226 fi
18227         if test $_pkg_short_errors_supported = yes; then
18228                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18229         else
18230                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18231         fi
18232         # Put the nasty error message in config.log where it belongs
18233         echo "$CAIRO_PKG_ERRORS" >&5
18234
18235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18236 $as_echo "no" >&6; }
18237                 :
18238 elif test $pkg_failed = untried; then
18239         :
18240 else
18241         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
18242         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
18243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18244 $as_echo "yes" >&6; }
18245         have_cairo=true
18246 fi
18247 fi
18248 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
18249         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
18250 fi
18251 if $have_cairo; then
18252
18253 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
18254
18255 fi
18256  if $have_cairo; then
18257   HAVE_CAIRO_TRUE=
18258   HAVE_CAIRO_FALSE='#'
18259 else
18260   HAVE_CAIRO_TRUE='#'
18261   HAVE_CAIRO_FALSE=
18262 fi
18263
18264
18265 have_cairo_ft=false
18266 if $have_cairo; then
18267
18268 pkg_failed=no
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
18270 $as_echo_n "checking for CAIRO_FT... " >&6; }
18271
18272 if test -n "$PKG_CONFIG"; then
18273     if test -n "$CAIRO_FT_CFLAGS"; then
18274         pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
18275     else
18276         if test -n "$PKG_CONFIG" && \
18277     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18278   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18279   ac_status=$?
18280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18281   test $ac_status = 0; }; then
18282   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
18283 else
18284   pkg_failed=yes
18285 fi
18286     fi
18287 else
18288         pkg_failed=untried
18289 fi
18290 if test -n "$PKG_CONFIG"; then
18291     if test -n "$CAIRO_FT_LIBS"; then
18292         pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
18293     else
18294         if test -n "$PKG_CONFIG" && \
18295     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18296   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18297   ac_status=$?
18298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18299   test $ac_status = 0; }; then
18300   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
18301 else
18302   pkg_failed=yes
18303 fi
18304     fi
18305 else
18306         pkg_failed=untried
18307 fi
18308
18309
18310
18311 if test $pkg_failed = yes; then
18312
18313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18314         _pkg_short_errors_supported=yes
18315 else
18316         _pkg_short_errors_supported=no
18317 fi
18318         if test $_pkg_short_errors_supported = yes; then
18319                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
18320         else
18321                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
18322         fi
18323         # Put the nasty error message in config.log where it belongs
18324         echo "$CAIRO_FT_PKG_ERRORS" >&5
18325
18326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327 $as_echo "no" >&6; }
18328                 :
18329 elif test $pkg_failed = untried; then
18330         :
18331 else
18332         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
18333         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
18334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18335 $as_echo "yes" >&6; }
18336         have_cairo_ft=true
18337 fi
18338 fi
18339 if $have_cairo_ft; then
18340
18341 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
18342
18343 fi
18344  if $have_cairo_ft; then
18345   HAVE_CAIRO_FT_TRUE=
18346   HAVE_CAIRO_FT_FALSE='#'
18347 else
18348   HAVE_CAIRO_FT_TRUE='#'
18349   HAVE_CAIRO_FT_FALSE=
18350 fi
18351
18352
18353
18354
18355 # Check whether --with-fontconfig was given.
18356 if test "${with_fontconfig+set}" = set; then :
18357   withval=$with_fontconfig;
18358 else
18359   with_fontconfig=auto
18360 fi
18361
18362 have_fontconfig=false
18363 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
18364
18365 pkg_failed=no
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18367 $as_echo_n "checking for FONTCONFIG... " >&6; }
18368
18369 if test -n "$PKG_CONFIG"; then
18370     if test -n "$FONTCONFIG_CFLAGS"; then
18371         pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18372     else
18373         if test -n "$PKG_CONFIG" && \
18374     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18375   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18376   ac_status=$?
18377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18378   test $ac_status = 0; }; then
18379   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
18380 else
18381   pkg_failed=yes
18382 fi
18383     fi
18384 else
18385         pkg_failed=untried
18386 fi
18387 if test -n "$PKG_CONFIG"; then
18388     if test -n "$FONTCONFIG_LIBS"; then
18389         pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18390     else
18391         if test -n "$PKG_CONFIG" && \
18392     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18393   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18394   ac_status=$?
18395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18396   test $ac_status = 0; }; then
18397   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
18398 else
18399   pkg_failed=yes
18400 fi
18401     fi
18402 else
18403         pkg_failed=untried
18404 fi
18405
18406
18407
18408 if test $pkg_failed = yes; then
18409
18410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18411         _pkg_short_errors_supported=yes
18412 else
18413         _pkg_short_errors_supported=no
18414 fi
18415         if test $_pkg_short_errors_supported = yes; then
18416                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
18417         else
18418                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
18419         fi
18420         # Put the nasty error message in config.log where it belongs
18421         echo "$FONTCONFIG_PKG_ERRORS" >&5
18422
18423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18424 $as_echo "no" >&6; }
18425                 :
18426 elif test $pkg_failed = untried; then
18427         :
18428 else
18429         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18430         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18432 $as_echo "yes" >&6; }
18433         have_fontconfig=true
18434 fi
18435 fi
18436 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
18437         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
18438 fi
18439 if $have_fontconfig; then
18440
18441 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
18442
18443 fi
18444  if $have_fontconfig; then
18445   HAVE_FONTCONFIG_TRUE=
18446   HAVE_FONTCONFIG_FALSE='#'
18447 else
18448   HAVE_FONTCONFIG_TRUE='#'
18449   HAVE_FONTCONFIG_FALSE=
18450 fi
18451
18452
18453
18454
18455 # Check whether --with-icu was given.
18456 if test "${with_icu+set}" = set; then :
18457   withval=$with_icu;
18458 else
18459   with_icu=auto
18460 fi
18461
18462 have_icu=false
18463 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
18464
18465 pkg_failed=no
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18467 $as_echo_n "checking for ICU... " >&6; }
18468
18469 if test -n "$PKG_CONFIG"; then
18470     if test -n "$ICU_CFLAGS"; then
18471         pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18472     else
18473         if test -n "$PKG_CONFIG" && \
18474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18475   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18476   ac_status=$?
18477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18478   test $ac_status = 0; }; then
18479   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18480 else
18481   pkg_failed=yes
18482 fi
18483     fi
18484 else
18485         pkg_failed=untried
18486 fi
18487 if test -n "$PKG_CONFIG"; then
18488     if test -n "$ICU_LIBS"; then
18489         pkg_cv_ICU_LIBS="$ICU_LIBS"
18490     else
18491         if test -n "$PKG_CONFIG" && \
18492     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18493   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18494   ac_status=$?
18495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18496   test $ac_status = 0; }; then
18497   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
18498 else
18499   pkg_failed=yes
18500 fi
18501     fi
18502 else
18503         pkg_failed=untried
18504 fi
18505
18506
18507
18508 if test $pkg_failed = yes; then
18509
18510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18511         _pkg_short_errors_supported=yes
18512 else
18513         _pkg_short_errors_supported=no
18514 fi
18515         if test $_pkg_short_errors_supported = yes; then
18516                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
18517         else
18518                 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
18519         fi
18520         # Put the nasty error message in config.log where it belongs
18521         echo "$ICU_PKG_ERRORS" >&5
18522
18523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18524 $as_echo "no" >&6; }
18525                 :
18526 elif test $pkg_failed = untried; then
18527         :
18528 else
18529         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18530         ICU_LIBS=$pkg_cv_ICU_LIBS
18531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18532 $as_echo "yes" >&6; }
18533         have_icu=true
18534 fi
18535
18536                 if test "$have_icu" != "true"; then
18537                 if test -n "$ac_tool_prefix"; then
18538   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
18539 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18541 $as_echo_n "checking for $ac_word... " >&6; }
18542 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
18543   $as_echo_n "(cached) " >&6
18544 else
18545   if test -n "$ICU_CONFIG"; then
18546   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
18547 else
18548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18549 for as_dir in $PATH
18550 do
18551   IFS=$as_save_IFS
18552   test -z "$as_dir" && as_dir=.
18553     for ac_exec_ext in '' $ac_executable_extensions; do
18554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18555     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
18556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18557     break 2
18558   fi
18559 done
18560   done
18561 IFS=$as_save_IFS
18562
18563 fi
18564 fi
18565 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
18566 if test -n "$ICU_CONFIG"; then
18567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
18568 $as_echo "$ICU_CONFIG" >&6; }
18569 else
18570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18571 $as_echo "no" >&6; }
18572 fi
18573
18574
18575 fi
18576 if test -z "$ac_cv_prog_ICU_CONFIG"; then
18577   ac_ct_ICU_CONFIG=$ICU_CONFIG
18578   # Extract the first word of "icu-config", so it can be a program name with args.
18579 set dummy icu-config; ac_word=$2
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18581 $as_echo_n "checking for $ac_word... " >&6; }
18582 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
18583   $as_echo_n "(cached) " >&6
18584 else
18585   if test -n "$ac_ct_ICU_CONFIG"; then
18586   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
18587 else
18588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18589 for as_dir in $PATH
18590 do
18591   IFS=$as_save_IFS
18592   test -z "$as_dir" && as_dir=.
18593     for ac_exec_ext in '' $ac_executable_extensions; do
18594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18595     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
18596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18597     break 2
18598   fi
18599 done
18600   done
18601 IFS=$as_save_IFS
18602
18603 fi
18604 fi
18605 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
18606 if test -n "$ac_ct_ICU_CONFIG"; then
18607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
18608 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
18609 else
18610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18611 $as_echo "no" >&6; }
18612 fi
18613
18614   if test "x$ac_ct_ICU_CONFIG" = x; then
18615     ICU_CONFIG="no"
18616   else
18617     case $cross_compiling:$ac_tool_warned in
18618 yes:)
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18621 ac_tool_warned=yes ;;
18622 esac
18623     ICU_CONFIG=$ac_ct_ICU_CONFIG
18624   fi
18625 else
18626   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
18627 fi
18628
18629                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
18630 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
18631                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
18632                         have_icu=true
18633                         # We don't use --cflags as this gives us a lot of things that we don't
18634                         # necessarily want, like debugging and optimization flags
18635                         # See man (1) icu-config for more info.
18636                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
18637                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
18638
18639
18640                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18641 $as_echo "yes" >&6; }
18642                 else
18643                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645                 fi
18646         fi
18647 fi
18648 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
18649         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
18650 fi
18651
18652 if $have_icu; then
18653         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
18654
18655 $as_echo "#define HAVE_ICU 1" >>confdefs.h
18656
18657         if test "x$with_icu" = "xbuiltin"; then
18658
18659 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
18660
18661         fi
18662 fi
18663  if $have_icu; then
18664   HAVE_ICU_TRUE=
18665   HAVE_ICU_FALSE='#'
18666 else
18667   HAVE_ICU_TRUE='#'
18668   HAVE_ICU_FALSE=
18669 fi
18670
18671  if $have_icu && test "x$with_icu" = "xbuiltin"; then
18672   HAVE_ICU_BUILTIN_TRUE=
18673   HAVE_ICU_BUILTIN_FALSE='#'
18674 else
18675   HAVE_ICU_BUILTIN_TRUE='#'
18676   HAVE_ICU_BUILTIN_FALSE=
18677 fi
18678
18679
18680
18681 have_ucdn=true
18682 if $have_glib || $have_icu && test "x$with_icu" = "xbuiltin"; then
18683         have_ucdn=false
18684 fi
18685 if $have_ucdn; then
18686
18687 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
18688
18689 fi
18690  if $have_ucdn; then
18691   HAVE_UCDN_TRUE=
18692   HAVE_UCDN_FALSE='#'
18693 else
18694   HAVE_UCDN_TRUE='#'
18695   HAVE_UCDN_FALSE=
18696 fi
18697
18698
18699
18700
18701 # Check whether --with-graphite2 was given.
18702 if test "${with_graphite2+set}" = set; then :
18703   withval=$with_graphite2;
18704 else
18705   with_graphite2=no
18706 fi
18707
18708 have_graphite2=false
18709 GRAPHITE2_DEPS="graphite2"
18710
18711 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
18712
18713 pkg_failed=no
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
18715 $as_echo_n "checking for GRAPHITE2... " >&6; }
18716
18717 if test -n "$PKG_CONFIG"; then
18718     if test -n "$GRAPHITE2_CFLAGS"; then
18719         pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
18720     else
18721         if test -n "$PKG_CONFIG" && \
18722     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
18723   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
18724   ac_status=$?
18725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18726   test $ac_status = 0; }; then
18727   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
18728 else
18729   pkg_failed=yes
18730 fi
18731     fi
18732 else
18733         pkg_failed=untried
18734 fi
18735 if test -n "$PKG_CONFIG"; then
18736     if test -n "$GRAPHITE2_LIBS"; then
18737         pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
18738     else
18739         if test -n "$PKG_CONFIG" && \
18740     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
18741   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
18742   ac_status=$?
18743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18744   test $ac_status = 0; }; then
18745   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
18746 else
18747   pkg_failed=yes
18748 fi
18749     fi
18750 else
18751         pkg_failed=untried
18752 fi
18753
18754
18755
18756 if test $pkg_failed = yes; then
18757
18758 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18759         _pkg_short_errors_supported=yes
18760 else
18761         _pkg_short_errors_supported=no
18762 fi
18763         if test $_pkg_short_errors_supported = yes; then
18764                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
18765         else
18766                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
18767         fi
18768         # Put the nasty error message in config.log where it belongs
18769         echo "$GRAPHITE2_PKG_ERRORS" >&5
18770
18771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772 $as_echo "no" >&6; }
18773                 :
18774 elif test $pkg_failed = untried; then
18775         :
18776 else
18777         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
18778         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
18779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18780 $as_echo "yes" >&6; }
18781         have_graphite2=true
18782 fi
18783 fi
18784 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
18785         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
18786 fi
18787 if $have_graphite2; then
18788
18789 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
18790
18791 fi
18792  if $have_graphite2; then
18793   HAVE_GRAPHITE2_TRUE=
18794   HAVE_GRAPHITE2_FALSE='#'
18795 else
18796   HAVE_GRAPHITE2_TRUE='#'
18797   HAVE_GRAPHITE2_FALSE=
18798 fi
18799
18800
18801
18802
18803 # Check whether --with-freetype was given.
18804 if test "${with_freetype+set}" = set; then :
18805   withval=$with_freetype;
18806 else
18807   with_freetype=auto
18808 fi
18809
18810 have_freetype=false
18811 FREETYPE_DEPS="freetype2 >= 12.0.6"
18812
18813 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
18814         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
18815
18816 pkg_failed=no
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18818 $as_echo_n "checking for FREETYPE... " >&6; }
18819
18820 if test -n "$PKG_CONFIG"; then
18821     if test -n "$FREETYPE_CFLAGS"; then
18822         pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18823     else
18824         if test -n "$PKG_CONFIG" && \
18825     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
18826   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
18827   ac_status=$?
18828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18829   test $ac_status = 0; }; then
18830   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
18831 else
18832   pkg_failed=yes
18833 fi
18834     fi
18835 else
18836         pkg_failed=untried
18837 fi
18838 if test -n "$PKG_CONFIG"; then
18839     if test -n "$FREETYPE_LIBS"; then
18840         pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18841     else
18842         if test -n "$PKG_CONFIG" && \
18843     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
18844   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
18845   ac_status=$?
18846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18847   test $ac_status = 0; }; then
18848   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
18849 else
18850   pkg_failed=yes
18851 fi
18852     fi
18853 else
18854         pkg_failed=untried
18855 fi
18856
18857
18858
18859 if test $pkg_failed = yes; then
18860
18861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18862         _pkg_short_errors_supported=yes
18863 else
18864         _pkg_short_errors_supported=no
18865 fi
18866         if test $_pkg_short_errors_supported = yes; then
18867                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
18868         else
18869                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
18870         fi
18871         # Put the nasty error message in config.log where it belongs
18872         echo "$FREETYPE_PKG_ERRORS" >&5
18873
18874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18875 $as_echo "no" >&6; }
18876                 :
18877 elif test $pkg_failed = untried; then
18878         :
18879 else
18880         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18881         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18883 $as_echo "yes" >&6; }
18884         have_freetype=true
18885 fi
18886 fi
18887 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
18888         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
18889 fi
18890 if $have_freetype; then
18891
18892 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
18893
18894 fi
18895  if $have_freetype; then
18896   HAVE_FREETYPE_TRUE=
18897   HAVE_FREETYPE_FALSE='#'
18898 else
18899   HAVE_FREETYPE_TRUE='#'
18900   HAVE_FREETYPE_FALSE=
18901 fi
18902
18903
18904
18905
18906 # Check whether --with-uniscribe was given.
18907 if test "${with_uniscribe+set}" = set; then :
18908   withval=$with_uniscribe;
18909 else
18910   with_uniscribe=no
18911 fi
18912
18913 have_uniscribe=false
18914 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
18915         for ac_header in usp10.h windows.h
18916 do :
18917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18920   cat >>confdefs.h <<_ACEOF
18921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18922 _ACEOF
18923  have_uniscribe=true
18924 fi
18925
18926 done
18927
18928 fi
18929 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
18930         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
18931 fi
18932 if $have_uniscribe; then
18933         UNISCRIBE_CFLAGS=
18934         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
18935
18936
18937
18938 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
18939
18940 fi
18941  if $have_uniscribe; then
18942   HAVE_UNISCRIBE_TRUE=
18943   HAVE_UNISCRIBE_FALSE='#'
18944 else
18945   HAVE_UNISCRIBE_TRUE='#'
18946   HAVE_UNISCRIBE_FALSE=
18947 fi
18948
18949
18950
18951
18952 # Check whether --with-directwrite was given.
18953 if test "${with_directwrite+set}" = set; then :
18954   withval=$with_directwrite;
18955 else
18956   with_directwrite=no
18957 fi
18958
18959 have_directwrite=false
18960 ac_ext=cpp
18961 ac_cpp='$CXXCPP $CPPFLAGS'
18962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18965
18966 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
18967
18968 for ac_header in dwrite.h
18969 do :
18970   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
18971 if test "x$ac_cv_header_dwrite_h" = xyes; then :
18972   cat >>confdefs.h <<_ACEOF
18973 #define HAVE_DWRITE_H 1
18974 _ACEOF
18975  have_directwrite=true
18976 fi
18977
18978 done
18979
18980 fi
18981 ac_ext=c
18982 ac_cpp='$CPP $CPPFLAGS'
18983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18986
18987 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
18988         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
18989 fi
18990 if $have_directwrite; then
18991         DIRECTWRITE_CXXFLAGS=
18992         DIRECTWRITE_LIBS="-ldwrite"
18993
18994
18995
18996 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
18997
18998 fi
18999  if $have_directwrite; then
19000   HAVE_DIRECTWRITE_TRUE=
19001   HAVE_DIRECTWRITE_FALSE='#'
19002 else
19003   HAVE_DIRECTWRITE_TRUE='#'
19004   HAVE_DIRECTWRITE_FALSE=
19005 fi
19006
19007
19008
19009
19010 # Check whether --with-coretext was given.
19011 if test "${with_coretext+set}" = set; then :
19012   withval=$with_coretext;
19013 else
19014   with_coretext=no
19015 fi
19016
19017 have_coretext=false
19018 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
19019         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
19020 "
19021 if test "x$ac_cv_type_CTFontRef" = xyes; then :
19022   have_coretext=true
19023 fi
19024
19025
19026         if $have_coretext; then
19027                 CORETEXT_CFLAGS=
19028                 CORETEXT_LIBS="-framework ApplicationServices"
19029
19030
19031         else
19032                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
19033                 if test "x$have_coretext" != "xtrue"; then
19034                         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <CoreText/CoreText.h>
19035 "
19036 if test "x$ac_cv_type_CTFontRef" = xyes; then :
19037   have_coretext=true
19038 fi
19039
19040                 fi
19041
19042                 if $have_coretext; then
19043                         CORETEXT_CFLAGS=
19044                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
19045
19046
19047                 fi
19048         fi
19049 fi
19050 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
19051         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
19052 fi
19053 if $have_coretext; then
19054
19055 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
19056
19057 fi
19058  if $have_coretext; then
19059   HAVE_CORETEXT_TRUE=
19060   HAVE_CORETEXT_FALSE='#'
19061 else
19062   HAVE_CORETEXT_TRUE='#'
19063   HAVE_CORETEXT_FALSE=
19064 fi
19065
19066
19067
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19069 $as_echo_n "checking for Intel atomic primitives... " >&6; }
19070 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
19071   $as_echo_n "(cached) " >&6
19072 else
19073
19074         hb_cv_have_intel_atomic_primitives=false
19075         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h.  */
19077
19078                 void memory_barrier (void) { __sync_synchronize (); }
19079                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19080                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19081                 void mutex_unlock (int *m) { __sync_lock_release (m); }
19082
19083 int
19084 main ()
19085 {
19086
19087   ;
19088   return 0;
19089 }
19090 _ACEOF
19091 if ac_fn_c_try_link "$LINENO"; then :
19092   hb_cv_have_intel_atomic_primitives=true
19093
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext \
19096     conftest$ac_exeext conftest.$ac_ext
19097
19098 fi
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
19100 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
19101 if $hb_cv_have_intel_atomic_primitives; then
19102
19103 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19104
19105 fi
19106
19107
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19109 $as_echo_n "checking for Solaris atomic operations... " >&6; }
19110 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
19111   $as_echo_n "(cached) " >&6
19112 else
19113
19114         hb_cv_have_solaris_atomic_ops=false
19115         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116 /* end confdefs.h.  */
19117
19118                 #include <atomic.h>
19119                 /* This requires Solaris Studio 12.2 or newer: */
19120                 #include <mbarrier.h>
19121                 void memory_barrier (void) { __machine_rw_barrier (); }
19122                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19123                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19124
19125 int
19126 main ()
19127 {
19128
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 if ac_fn_c_try_link "$LINENO"; then :
19134   hb_cv_have_solaris_atomic_ops=true
19135
19136 fi
19137 rm -f core conftest.err conftest.$ac_objext \
19138     conftest$ac_exeext conftest.$ac_ext
19139
19140 fi
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
19142 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
19143 if $hb_cv_have_solaris_atomic_ops; then
19144
19145 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19146
19147 fi
19148
19149 if test "$os_win32" = no && ! $have_pthread; then
19150         for ac_header in sched.h
19151 do :
19152   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19153 if test "x$ac_cv_header_sched_h" = xyes; then :
19154   cat >>confdefs.h <<_ACEOF
19155 #define HAVE_SCHED_H 1
19156 _ACEOF
19157
19158 fi
19159
19160 done
19161
19162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19163 $as_echo_n "checking for library containing sched_yield... " >&6; }
19164 if ${ac_cv_search_sched_yield+:} false; then :
19165   $as_echo_n "(cached) " >&6
19166 else
19167   ac_func_search_save_LIBS=$LIBS
19168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h.  */
19170
19171 /* Override any GCC internal prototype to avoid an error.
19172    Use char because int might match the return type of a GCC
19173    builtin and then its argument prototype would still apply.  */
19174 #ifdef __cplusplus
19175 extern "C"
19176 #endif
19177 char sched_yield ();
19178 int
19179 main ()
19180 {
19181 return sched_yield ();
19182   ;
19183   return 0;
19184 }
19185 _ACEOF
19186 for ac_lib in '' rt; do
19187   if test -z "$ac_lib"; then
19188     ac_res="none required"
19189   else
19190     ac_res=-l$ac_lib
19191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19192   fi
19193   if ac_fn_c_try_link "$LINENO"; then :
19194   ac_cv_search_sched_yield=$ac_res
19195 fi
19196 rm -f core conftest.err conftest.$ac_objext \
19197     conftest$ac_exeext
19198   if ${ac_cv_search_sched_yield+:} false; then :
19199   break
19200 fi
19201 done
19202 if ${ac_cv_search_sched_yield+:} false; then :
19203
19204 else
19205   ac_cv_search_sched_yield=no
19206 fi
19207 rm conftest.$ac_ext
19208 LIBS=$ac_func_search_save_LIBS
19209 fi
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19211 $as_echo "$ac_cv_search_sched_yield" >&6; }
19212 ac_res=$ac_cv_search_sched_yield
19213 if test "$ac_res" != no; then :
19214   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19215
19216 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19217
19218 fi
19219
19220 fi
19221
19222
19223 ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile docs/Makefile docs/version.xml win32/Makefile win32/config.h.win32"
19224
19225
19226 cat >confcache <<\_ACEOF
19227 # This file is a shell script that caches the results of configure
19228 # tests run on this system so they can be shared between configure
19229 # scripts and configure runs, see configure's option --config-cache.
19230 # It is not useful on other systems.  If it contains results you don't
19231 # want to keep, you may remove or edit it.
19232 #
19233 # config.status only pays attention to the cache file if you give it
19234 # the --recheck option to rerun configure.
19235 #
19236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19238 # following values.
19239
19240 _ACEOF
19241
19242 # The following way of writing the cache mishandles newlines in values,
19243 # but we know of no workaround that is simple, portable, and efficient.
19244 # So, we kill variables containing newlines.
19245 # Ultrix sh set writes to stderr and can't be redirected directly,
19246 # and sets the high bit in the cache file unless we assign to the vars.
19247 (
19248   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19249     eval ac_val=\$$ac_var
19250     case $ac_val in #(
19251     *${as_nl}*)
19252       case $ac_var in #(
19253       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19255       esac
19256       case $ac_var in #(
19257       _ | IFS | as_nl) ;; #(
19258       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19259       *) { eval $ac_var=; unset $ac_var;} ;;
19260       esac ;;
19261     esac
19262   done
19263
19264   (set) 2>&1 |
19265     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19266     *${as_nl}ac_space=\ *)
19267       # `set' does not quote correctly, so add quotes: double-quote
19268       # substitution turns \\\\ into \\, and sed turns \\ into \.
19269       sed -n \
19270         "s/'/'\\\\''/g;
19271           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19272       ;; #(
19273     *)
19274       # `set' quotes correctly as required by POSIX, so do not add quotes.
19275       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19276       ;;
19277     esac |
19278     sort
19279 ) |
19280   sed '
19281      /^ac_cv_env_/b end
19282      t clear
19283      :clear
19284      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19285      t end
19286      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19287      :end' >>confcache
19288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19289   if test -w "$cache_file"; then
19290     if test "x$cache_file" != "x/dev/null"; then
19291       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19292 $as_echo "$as_me: updating cache $cache_file" >&6;}
19293       if test ! -f "$cache_file" || test -h "$cache_file"; then
19294         cat confcache >"$cache_file"
19295       else
19296         case $cache_file in #(
19297         */* | ?:*)
19298           mv -f confcache "$cache_file"$$ &&
19299           mv -f "$cache_file"$$ "$cache_file" ;; #(
19300         *)
19301           mv -f confcache "$cache_file" ;;
19302         esac
19303       fi
19304     fi
19305   else
19306     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19307 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19308   fi
19309 fi
19310 rm -f confcache
19311
19312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19313 # Let make expand exec_prefix.
19314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19315
19316 DEFS=-DHAVE_CONFIG_H
19317
19318 ac_libobjs=
19319 ac_ltlibobjs=
19320 U=
19321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19322   # 1. Remove the extension, and $U if already installed.
19323   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19324   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19325   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19326   #    will be set to the directory where LIBOBJS objects are built.
19327   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19328   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19329 done
19330 LIBOBJS=$ac_libobjs
19331
19332 LTLIBOBJS=$ac_ltlibobjs
19333
19334
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19336 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19337    if test -n "$am_sleep_pid"; then
19338      # Hide warnings about reused PIDs.
19339      wait $am_sleep_pid 2>/dev/null
19340    fi
19341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19342 $as_echo "done" >&6; }
19343  if test -n "$EXEEXT"; then
19344   am__EXEEXT_TRUE=
19345   am__EXEEXT_FALSE='#'
19346 else
19347   am__EXEEXT_TRUE='#'
19348   am__EXEEXT_FALSE=
19349 fi
19350
19351 if test -z "${AUTOMAKE_OLDER_THAN_1_13_TRUE}" && test -z "${AUTOMAKE_OLDER_THAN_1_13_FALSE}"; then
19352   as_fn_error $? "conditional \"AUTOMAKE_OLDER_THAN_1_13\" was never defined.
19353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19354 fi
19355 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19356   as_fn_error $? "conditional \"AMDEP\" was never defined.
19357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19358 fi
19359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19360   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19362 fi
19363 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19364   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19366 fi
19367 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19368   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19370 fi
19371 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
19372   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
19373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19374 fi
19375 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19376   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19378 fi
19379 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
19380   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
19381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19382 fi
19383 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
19384   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
19385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19386 fi
19387 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
19388   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
19389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19390 fi
19391 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
19392   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
19393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19394 fi
19395 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
19396   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
19397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19398 fi
19399 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19400   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19402 fi
19403 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19404   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19406 fi
19407 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
19408   as_fn_error $? "conditional \"HAVE_OT\" was never defined.
19409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19410 fi
19411 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
19412   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
19413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19414 fi
19415 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
19416   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
19417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19418 fi
19419 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
19420   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
19421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19422 fi
19423 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19424   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19426 fi
19427 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19428   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19430 fi
19431 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
19432   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
19433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19434 fi
19435 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
19436   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
19437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19438 fi
19439 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
19440   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
19441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19442 fi
19443 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
19444   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
19445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19446 fi
19447 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
19448   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
19449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19450 fi
19451 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
19452   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
19453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19454 fi
19455 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
19456   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
19457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19458 fi
19459 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
19460   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
19461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19462 fi
19463 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
19464   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
19465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19466 fi
19467 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
19468   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
19469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19470 fi
19471 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
19472   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
19473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19474 fi
19475
19476 : "${CONFIG_STATUS=./config.status}"
19477 ac_write_fail=0
19478 ac_clean_files_save=$ac_clean_files
19479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19481 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19482 as_write_fail=0
19483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19484 #! $SHELL
19485 # Generated by $as_me.
19486 # Run this file to recreate the current configuration.
19487 # Compiler output produced by configure, useful for debugging
19488 # configure, is in config.log if it exists.
19489
19490 debug=false
19491 ac_cs_recheck=false
19492 ac_cs_silent=false
19493
19494 SHELL=\${CONFIG_SHELL-$SHELL}
19495 export SHELL
19496 _ASEOF
19497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19498 ## -------------------- ##
19499 ## M4sh Initialization. ##
19500 ## -------------------- ##
19501
19502 # Be more Bourne compatible
19503 DUALCASE=1; export DUALCASE # for MKS sh
19504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19505   emulate sh
19506   NULLCMD=:
19507   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19508   # is contrary to our usage.  Disable this feature.
19509   alias -g '${1+"$@"}'='"$@"'
19510   setopt NO_GLOB_SUBST
19511 else
19512   case `(set -o) 2>/dev/null` in #(
19513   *posix*) :
19514     set -o posix ;; #(
19515   *) :
19516      ;;
19517 esac
19518 fi
19519
19520
19521 as_nl='
19522 '
19523 export as_nl
19524 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19525 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19528 # Prefer a ksh shell builtin over an external printf program on Solaris,
19529 # but without wasting forks for bash or zsh.
19530 if test -z "$BASH_VERSION$ZSH_VERSION" \
19531     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19532   as_echo='print -r --'
19533   as_echo_n='print -rn --'
19534 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19535   as_echo='printf %s\n'
19536   as_echo_n='printf %s'
19537 else
19538   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19539     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19540     as_echo_n='/usr/ucb/echo -n'
19541   else
19542     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19543     as_echo_n_body='eval
19544       arg=$1;
19545       case $arg in #(
19546       *"$as_nl"*)
19547         expr "X$arg" : "X\\(.*\\)$as_nl";
19548         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19549       esac;
19550       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19551     '
19552     export as_echo_n_body
19553     as_echo_n='sh -c $as_echo_n_body as_echo'
19554   fi
19555   export as_echo_body
19556   as_echo='sh -c $as_echo_body as_echo'
19557 fi
19558
19559 # The user is always right.
19560 if test "${PATH_SEPARATOR+set}" != set; then
19561   PATH_SEPARATOR=:
19562   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19563     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19564       PATH_SEPARATOR=';'
19565   }
19566 fi
19567
19568
19569 # IFS
19570 # We need space, tab and new line, in precisely that order.  Quoting is
19571 # there to prevent editors from complaining about space-tab.
19572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19573 # splitting by setting IFS to empty value.)
19574 IFS=" ""        $as_nl"
19575
19576 # Find who we are.  Look in the path if we contain no directory separator.
19577 as_myself=
19578 case $0 in #((
19579   *[\\/]* ) as_myself=$0 ;;
19580   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19581 for as_dir in $PATH
19582 do
19583   IFS=$as_save_IFS
19584   test -z "$as_dir" && as_dir=.
19585     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19586   done
19587 IFS=$as_save_IFS
19588
19589      ;;
19590 esac
19591 # We did not find ourselves, most probably we were run as `sh COMMAND'
19592 # in which case we are not to be found in the path.
19593 if test "x$as_myself" = x; then
19594   as_myself=$0
19595 fi
19596 if test ! -f "$as_myself"; then
19597   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19598   exit 1
19599 fi
19600
19601 # Unset variables that we do not need and which cause bugs (e.g. in
19602 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19603 # suppresses any "Segmentation fault" message there.  '((' could
19604 # trigger a bug in pdksh 5.2.14.
19605 for as_var in BASH_ENV ENV MAIL MAILPATH
19606 do eval test x\${$as_var+set} = xset \
19607   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19608 done
19609 PS1='$ '
19610 PS2='> '
19611 PS4='+ '
19612
19613 # NLS nuisances.
19614 LC_ALL=C
19615 export LC_ALL
19616 LANGUAGE=C
19617 export LANGUAGE
19618
19619 # CDPATH.
19620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19621
19622
19623 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19624 # ----------------------------------------
19625 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19626 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19627 # script with STATUS, using 1 if that was 0.
19628 as_fn_error ()
19629 {
19630   as_status=$1; test $as_status -eq 0 && as_status=1
19631   if test "$4"; then
19632     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19633     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19634   fi
19635   $as_echo "$as_me: error: $2" >&2
19636   as_fn_exit $as_status
19637 } # as_fn_error
19638
19639
19640 # as_fn_set_status STATUS
19641 # -----------------------
19642 # Set $? to STATUS, without forking.
19643 as_fn_set_status ()
19644 {
19645   return $1
19646 } # as_fn_set_status
19647
19648 # as_fn_exit STATUS
19649 # -----------------
19650 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19651 as_fn_exit ()
19652 {
19653   set +e
19654   as_fn_set_status $1
19655   exit $1
19656 } # as_fn_exit
19657
19658 # as_fn_unset VAR
19659 # ---------------
19660 # Portably unset VAR.
19661 as_fn_unset ()
19662 {
19663   { eval $1=; unset $1;}
19664 }
19665 as_unset=as_fn_unset
19666 # as_fn_append VAR VALUE
19667 # ----------------------
19668 # Append the text in VALUE to the end of the definition contained in VAR. Take
19669 # advantage of any shell optimizations that allow amortized linear growth over
19670 # repeated appends, instead of the typical quadratic growth present in naive
19671 # implementations.
19672 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19673   eval 'as_fn_append ()
19674   {
19675     eval $1+=\$2
19676   }'
19677 else
19678   as_fn_append ()
19679   {
19680     eval $1=\$$1\$2
19681   }
19682 fi # as_fn_append
19683
19684 # as_fn_arith ARG...
19685 # ------------------
19686 # Perform arithmetic evaluation on the ARGs, and store the result in the
19687 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19688 # must be portable across $(()) and expr.
19689 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19690   eval 'as_fn_arith ()
19691   {
19692     as_val=$(( $* ))
19693   }'
19694 else
19695   as_fn_arith ()
19696   {
19697     as_val=`expr "$@" || test $? -eq 1`
19698   }
19699 fi # as_fn_arith
19700
19701
19702 if expr a : '\(a\)' >/dev/null 2>&1 &&
19703    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19704   as_expr=expr
19705 else
19706   as_expr=false
19707 fi
19708
19709 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19710   as_basename=basename
19711 else
19712   as_basename=false
19713 fi
19714
19715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19716   as_dirname=dirname
19717 else
19718   as_dirname=false
19719 fi
19720
19721 as_me=`$as_basename -- "$0" ||
19722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19723          X"$0" : 'X\(//\)$' \| \
19724          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19725 $as_echo X/"$0" |
19726     sed '/^.*\/\([^/][^/]*\)\/*$/{
19727             s//\1/
19728             q
19729           }
19730           /^X\/\(\/\/\)$/{
19731             s//\1/
19732             q
19733           }
19734           /^X\/\(\/\).*/{
19735             s//\1/
19736             q
19737           }
19738           s/.*/./; q'`
19739
19740 # Avoid depending upon Character Ranges.
19741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19744 as_cr_digits='0123456789'
19745 as_cr_alnum=$as_cr_Letters$as_cr_digits
19746
19747 ECHO_C= ECHO_N= ECHO_T=
19748 case `echo -n x` in #(((((
19749 -n*)
19750   case `echo 'xy\c'` in
19751   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19752   xy)  ECHO_C='\c';;
19753   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19754        ECHO_T=' ';;
19755   esac;;
19756 *)
19757   ECHO_N='-n';;
19758 esac
19759
19760 rm -f conf$$ conf$$.exe conf$$.file
19761 if test -d conf$$.dir; then
19762   rm -f conf$$.dir/conf$$.file
19763 else
19764   rm -f conf$$.dir
19765   mkdir conf$$.dir 2>/dev/null
19766 fi
19767 if (echo >conf$$.file) 2>/dev/null; then
19768   if ln -s conf$$.file conf$$ 2>/dev/null; then
19769     as_ln_s='ln -s'
19770     # ... but there are two gotchas:
19771     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19772     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19773     # In both cases, we have to default to `cp -pR'.
19774     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19775       as_ln_s='cp -pR'
19776   elif ln conf$$.file conf$$ 2>/dev/null; then
19777     as_ln_s=ln
19778   else
19779     as_ln_s='cp -pR'
19780   fi
19781 else
19782   as_ln_s='cp -pR'
19783 fi
19784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19785 rmdir conf$$.dir 2>/dev/null
19786
19787
19788 # as_fn_mkdir_p
19789 # -------------
19790 # Create "$as_dir" as a directory, including parents if necessary.
19791 as_fn_mkdir_p ()
19792 {
19793
19794   case $as_dir in #(
19795   -*) as_dir=./$as_dir;;
19796   esac
19797   test -d "$as_dir" || eval $as_mkdir_p || {
19798     as_dirs=
19799     while :; do
19800       case $as_dir in #(
19801       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19802       *) as_qdir=$as_dir;;
19803       esac
19804       as_dirs="'$as_qdir' $as_dirs"
19805       as_dir=`$as_dirname -- "$as_dir" ||
19806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19807          X"$as_dir" : 'X\(//\)[^/]' \| \
19808          X"$as_dir" : 'X\(//\)$' \| \
19809          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19810 $as_echo X"$as_dir" |
19811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19812             s//\1/
19813             q
19814           }
19815           /^X\(\/\/\)[^/].*/{
19816             s//\1/
19817             q
19818           }
19819           /^X\(\/\/\)$/{
19820             s//\1/
19821             q
19822           }
19823           /^X\(\/\).*/{
19824             s//\1/
19825             q
19826           }
19827           s/.*/./; q'`
19828       test -d "$as_dir" && break
19829     done
19830     test -z "$as_dirs" || eval "mkdir $as_dirs"
19831   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19832
19833
19834 } # as_fn_mkdir_p
19835 if mkdir -p . 2>/dev/null; then
19836   as_mkdir_p='mkdir -p "$as_dir"'
19837 else
19838   test -d ./-p && rmdir ./-p
19839   as_mkdir_p=false
19840 fi
19841
19842
19843 # as_fn_executable_p FILE
19844 # -----------------------
19845 # Test if FILE is an executable regular file.
19846 as_fn_executable_p ()
19847 {
19848   test -f "$1" && test -x "$1"
19849 } # as_fn_executable_p
19850 as_test_x='test -x'
19851 as_executable_p=as_fn_executable_p
19852
19853 # Sed expression to map a string onto a valid CPP name.
19854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19855
19856 # Sed expression to map a string onto a valid variable name.
19857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19858
19859
19860 exec 6>&1
19861 ## ----------------------------------- ##
19862 ## Main body of $CONFIG_STATUS script. ##
19863 ## ----------------------------------- ##
19864 _ASEOF
19865 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19866
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868 # Save the log message, to keep $0 and so on meaningful, and to
19869 # report actual input values of CONFIG_FILES etc. instead of their
19870 # values after options handling.
19871 ac_log="
19872 This file was extended by HarfBuzz $as_me 1.2.7, which was
19873 generated by GNU Autoconf 2.69.  Invocation command line was
19874
19875   CONFIG_FILES    = $CONFIG_FILES
19876   CONFIG_HEADERS  = $CONFIG_HEADERS
19877   CONFIG_LINKS    = $CONFIG_LINKS
19878   CONFIG_COMMANDS = $CONFIG_COMMANDS
19879   $ $0 $@
19880
19881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19882 "
19883
19884 _ACEOF
19885
19886 case $ac_config_files in *"
19887 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19888 esac
19889
19890 case $ac_config_headers in *"
19891 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19892 esac
19893
19894
19895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19896 # Files that config.status was made for.
19897 config_files="$ac_config_files"
19898 config_headers="$ac_config_headers"
19899 config_commands="$ac_config_commands"
19900
19901 _ACEOF
19902
19903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904 ac_cs_usage="\
19905 \`$as_me' instantiates files and other configuration actions
19906 from templates according to the current configuration.  Unless the files
19907 and actions are specified as TAGs, all are instantiated by default.
19908
19909 Usage: $0 [OPTION]... [TAG]...
19910
19911   -h, --help       print this help, then exit
19912   -V, --version    print version number and configuration settings, then exit
19913       --config     print configuration, then exit
19914   -q, --quiet, --silent
19915                    do not print progress messages
19916   -d, --debug      don't remove temporary files
19917       --recheck    update $as_me by reconfiguring in the same conditions
19918       --file=FILE[:TEMPLATE]
19919                    instantiate the configuration file FILE
19920       --header=FILE[:TEMPLATE]
19921                    instantiate the configuration header FILE
19922
19923 Configuration files:
19924 $config_files
19925
19926 Configuration headers:
19927 $config_headers
19928
19929 Configuration commands:
19930 $config_commands
19931
19932 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
19933 HarfBuzz home page: <http://harfbuzz.org/>."
19934
19935 _ACEOF
19936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19937 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19938 ac_cs_version="\\
19939 HarfBuzz config.status 1.2.7
19940 configured by $0, generated by GNU Autoconf 2.69,
19941   with options \\"\$ac_cs_config\\"
19942
19943 Copyright (C) 2012 Free Software Foundation, Inc.
19944 This config.status script is free software; the Free Software Foundation
19945 gives unlimited permission to copy, distribute and modify it."
19946
19947 ac_pwd='$ac_pwd'
19948 srcdir='$srcdir'
19949 INSTALL='$INSTALL'
19950 MKDIR_P='$MKDIR_P'
19951 AWK='$AWK'
19952 test -n "\$AWK" || AWK=awk
19953 _ACEOF
19954
19955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19956 # The default lists apply if the user does not specify any file.
19957 ac_need_defaults=:
19958 while test $# != 0
19959 do
19960   case $1 in
19961   --*=?*)
19962     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19963     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19964     ac_shift=:
19965     ;;
19966   --*=)
19967     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19968     ac_optarg=
19969     ac_shift=:
19970     ;;
19971   *)
19972     ac_option=$1
19973     ac_optarg=$2
19974     ac_shift=shift
19975     ;;
19976   esac
19977
19978   case $ac_option in
19979   # Handling of the options.
19980   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19981     ac_cs_recheck=: ;;
19982   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19983     $as_echo "$ac_cs_version"; exit ;;
19984   --config | --confi | --conf | --con | --co | --c )
19985     $as_echo "$ac_cs_config"; exit ;;
19986   --debug | --debu | --deb | --de | --d | -d )
19987     debug=: ;;
19988   --file | --fil | --fi | --f )
19989     $ac_shift
19990     case $ac_optarg in
19991     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19992     '') as_fn_error $? "missing file argument" ;;
19993     esac
19994     as_fn_append CONFIG_FILES " '$ac_optarg'"
19995     ac_need_defaults=false;;
19996   --header | --heade | --head | --hea )
19997     $ac_shift
19998     case $ac_optarg in
19999     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20000     esac
20001     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20002     ac_need_defaults=false;;
20003   --he | --h)
20004     # Conflict between --help and --header
20005     as_fn_error $? "ambiguous option: \`$1'
20006 Try \`$0 --help' for more information.";;
20007   --help | --hel | -h )
20008     $as_echo "$ac_cs_usage"; exit ;;
20009   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20010   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20011     ac_cs_silent=: ;;
20012
20013   # This is an error.
20014   -*) as_fn_error $? "unrecognized option: \`$1'
20015 Try \`$0 --help' for more information." ;;
20016
20017   *) as_fn_append ac_config_targets " $1"
20018      ac_need_defaults=false ;;
20019
20020   esac
20021   shift
20022 done
20023
20024 ac_configure_extra_args=
20025
20026 if $ac_cs_silent; then
20027   exec 6>/dev/null
20028   ac_configure_extra_args="$ac_configure_extra_args --silent"
20029 fi
20030
20031 _ACEOF
20032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20033 if \$ac_cs_recheck; then
20034   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20035   shift
20036   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20037   CONFIG_SHELL='$SHELL'
20038   export CONFIG_SHELL
20039   exec "\$@"
20040 fi
20041
20042 _ACEOF
20043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20044 exec 5>>config.log
20045 {
20046   echo
20047   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20048 ## Running $as_me. ##
20049 _ASBOX
20050   $as_echo "$ac_log"
20051 } >&5
20052
20053 _ACEOF
20054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20055 #
20056 # INIT-COMMANDS
20057 #
20058 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20059
20060
20061 # The HP-UX ksh and POSIX shell print the target directory to stdout
20062 # if CDPATH is set.
20063 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20064
20065 sed_quote_subst='$sed_quote_subst'
20066 double_quote_subst='$double_quote_subst'
20067 delay_variable_subst='$delay_variable_subst'
20068 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20069 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20070 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20071 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20072 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20073 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20074 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20075 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20076 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20077 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20078 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20079 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20080 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20081 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20082 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20083 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20084 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20085 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20086 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20087 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20088 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20089 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20090 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20091 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20092 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20093 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20094 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20095 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20096 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20097 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20098 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20099 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20100 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20101 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20102 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20103 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20104 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20105 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20106 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20107 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20108 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20109 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20110 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20111 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20112 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20113 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20114 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20115 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20116 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20117 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20118 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20119 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20120 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20121 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20122 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20123 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20124 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"`'
20125 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20126 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20127 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20128 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20129 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20130 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20131 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20132 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20133 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20134 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20135 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20136 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20137 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20138 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20139 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20140 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20141 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20142 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20143 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20144 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20145 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20146 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20147 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20148 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20149 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20150 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20151 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20152 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20153 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20154 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20155 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20156 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20157 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20158 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20159 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20160 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20161 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20162 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20163 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20164 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20165 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20166 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20167 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20168 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20169 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20170 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20171 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20172 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20173 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20174 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20175 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20176 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20177 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20178 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20179 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20180 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20181 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20182 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20183 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20184 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20185 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20186 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20187 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20188 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20189 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20190 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20191 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20192 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20193 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20194 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20195 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20196 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20197 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20198 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20199 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20200 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20201 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20202 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20203 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20204 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20205 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20206 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20207 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20208 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20209 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20210 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20211 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20212 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20213 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20214 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20215 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20216 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20217 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20218 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20219 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20220 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20221 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20222 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20223 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20224 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20225 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20226 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20227 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20228 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20229 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20230 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20231 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20232 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20233 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20234 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20235 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20236 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20237 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20238 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20239 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20240 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20241 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20242 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20243 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20244 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20245 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20246 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20247 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20248 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20249 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20250 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20251 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20252
20253 LTCC='$LTCC'
20254 LTCFLAGS='$LTCFLAGS'
20255 compiler='$compiler_DEFAULT'
20256
20257 # A function that is used when there is no print builtin or printf.
20258 func_fallback_echo ()
20259 {
20260   eval 'cat <<_LTECHO_EOF
20261 \$1
20262 _LTECHO_EOF'
20263 }
20264
20265 # Quote evaled strings.
20266 for var in SHELL \
20267 ECHO \
20268 PATH_SEPARATOR \
20269 SED \
20270 GREP \
20271 EGREP \
20272 FGREP \
20273 LD \
20274 NM \
20275 LN_S \
20276 lt_SP2NL \
20277 lt_NL2SP \
20278 reload_flag \
20279 OBJDUMP \
20280 deplibs_check_method \
20281 file_magic_cmd \
20282 file_magic_glob \
20283 want_nocaseglob \
20284 DLLTOOL \
20285 sharedlib_from_linklib_cmd \
20286 AR \
20287 AR_FLAGS \
20288 archiver_list_spec \
20289 STRIP \
20290 RANLIB \
20291 CC \
20292 CFLAGS \
20293 compiler \
20294 lt_cv_sys_global_symbol_pipe \
20295 lt_cv_sys_global_symbol_to_cdecl \
20296 lt_cv_sys_global_symbol_to_c_name_address \
20297 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20298 nm_file_list_spec \
20299 lt_prog_compiler_no_builtin_flag \
20300 lt_prog_compiler_pic \
20301 lt_prog_compiler_wl \
20302 lt_prog_compiler_static \
20303 lt_cv_prog_compiler_c_o \
20304 need_locks \
20305 MANIFEST_TOOL \
20306 DSYMUTIL \
20307 NMEDIT \
20308 LIPO \
20309 OTOOL \
20310 OTOOL64 \
20311 shrext_cmds \
20312 export_dynamic_flag_spec \
20313 whole_archive_flag_spec \
20314 compiler_needs_object \
20315 with_gnu_ld \
20316 allow_undefined_flag \
20317 no_undefined_flag \
20318 hardcode_libdir_flag_spec \
20319 hardcode_libdir_separator \
20320 exclude_expsyms \
20321 include_expsyms \
20322 file_list_spec \
20323 variables_saved_for_relink \
20324 libname_spec \
20325 library_names_spec \
20326 soname_spec \
20327 install_override_mode \
20328 finish_eval \
20329 old_striplib \
20330 striplib \
20331 compiler_lib_search_dirs \
20332 predep_objects \
20333 postdep_objects \
20334 predeps \
20335 postdeps \
20336 compiler_lib_search_path \
20337 LD_CXX \
20338 reload_flag_CXX \
20339 compiler_CXX \
20340 lt_prog_compiler_no_builtin_flag_CXX \
20341 lt_prog_compiler_pic_CXX \
20342 lt_prog_compiler_wl_CXX \
20343 lt_prog_compiler_static_CXX \
20344 lt_cv_prog_compiler_c_o_CXX \
20345 export_dynamic_flag_spec_CXX \
20346 whole_archive_flag_spec_CXX \
20347 compiler_needs_object_CXX \
20348 with_gnu_ld_CXX \
20349 allow_undefined_flag_CXX \
20350 no_undefined_flag_CXX \
20351 hardcode_libdir_flag_spec_CXX \
20352 hardcode_libdir_separator_CXX \
20353 exclude_expsyms_CXX \
20354 include_expsyms_CXX \
20355 file_list_spec_CXX \
20356 compiler_lib_search_dirs_CXX \
20357 predep_objects_CXX \
20358 postdep_objects_CXX \
20359 predeps_CXX \
20360 postdeps_CXX \
20361 compiler_lib_search_path_CXX; do
20362     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20363     *[\\\\\\\`\\"\\\$]*)
20364       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20365       ;;
20366     *)
20367       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20368       ;;
20369     esac
20370 done
20371
20372 # Double-quote double-evaled strings.
20373 for var in reload_cmds \
20374 old_postinstall_cmds \
20375 old_postuninstall_cmds \
20376 old_archive_cmds \
20377 extract_expsyms_cmds \
20378 old_archive_from_new_cmds \
20379 old_archive_from_expsyms_cmds \
20380 archive_cmds \
20381 archive_expsym_cmds \
20382 module_cmds \
20383 module_expsym_cmds \
20384 export_symbols_cmds \
20385 prelink_cmds \
20386 postlink_cmds \
20387 postinstall_cmds \
20388 postuninstall_cmds \
20389 finish_cmds \
20390 sys_lib_search_path_spec \
20391 sys_lib_dlsearch_path_spec \
20392 reload_cmds_CXX \
20393 old_archive_cmds_CXX \
20394 old_archive_from_new_cmds_CXX \
20395 old_archive_from_expsyms_cmds_CXX \
20396 archive_cmds_CXX \
20397 archive_expsym_cmds_CXX \
20398 module_cmds_CXX \
20399 module_expsym_cmds_CXX \
20400 export_symbols_cmds_CXX \
20401 prelink_cmds_CXX \
20402 postlink_cmds_CXX; do
20403     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20404     *[\\\\\\\`\\"\\\$]*)
20405       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20406       ;;
20407     *)
20408       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20409       ;;
20410     esac
20411 done
20412
20413 ac_aux_dir='$ac_aux_dir'
20414 xsi_shell='$xsi_shell'
20415 lt_shell_append='$lt_shell_append'
20416
20417 # See if we are running on zsh, and set the options which allow our
20418 # commands through without removal of \ escapes INIT.
20419 if test -n "\${ZSH_VERSION+set}" ; then
20420    setopt NO_GLOB_SUBST
20421 fi
20422
20423
20424     PACKAGE='$PACKAGE'
20425     VERSION='$VERSION'
20426     TIMESTAMP='$TIMESTAMP'
20427     RM='$RM'
20428     ofile='$ofile'
20429
20430
20431
20432
20433
20434
20435 _ACEOF
20436
20437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20438
20439 # Handling of arguments.
20440 for ac_config_target in $ac_config_targets
20441 do
20442   case $ac_config_target in
20443     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20444     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20445     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20446     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20447     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20448     "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
20449     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
20450     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20451     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20452     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
20453     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
20454     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
20455     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20456     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
20457     "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20458     "win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES win32/config.h.win32" ;;
20459
20460   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20461   esac
20462 done
20463
20464
20465 # If the user did not use the arguments to specify the items to instantiate,
20466 # then the envvar interface is used.  Set only those that are not.
20467 # We use the long form for the default assignment because of an extremely
20468 # bizarre bug on SunOS 4.1.3.
20469 if $ac_need_defaults; then
20470   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20471   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20472   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20473 fi
20474
20475 # Have a temporary directory for convenience.  Make it in the build tree
20476 # simply because there is no reason against having it here, and in addition,
20477 # creating and moving files from /tmp can sometimes cause problems.
20478 # Hook for its removal unless debugging.
20479 # Note that there is a small window in which the directory will not be cleaned:
20480 # after its creation but before its name has been assigned to `$tmp'.
20481 $debug ||
20482 {
20483   tmp= ac_tmp=
20484   trap 'exit_status=$?
20485   : "${ac_tmp:=$tmp}"
20486   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20487 ' 0
20488   trap 'as_fn_exit 1' 1 2 13 15
20489 }
20490 # Create a (secure) tmp directory for tmp files.
20491
20492 {
20493   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20494   test -d "$tmp"
20495 }  ||
20496 {
20497   tmp=./conf$$-$RANDOM
20498   (umask 077 && mkdir "$tmp")
20499 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20500 ac_tmp=$tmp
20501
20502 # Set up the scripts for CONFIG_FILES section.
20503 # No need to generate them if there are no CONFIG_FILES.
20504 # This happens for instance with `./config.status config.h'.
20505 if test -n "$CONFIG_FILES"; then
20506
20507
20508 ac_cr=`echo X | tr X '\015'`
20509 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20510 # But we know of no other shell where ac_cr would be empty at this
20511 # point, so we can use a bashism as a fallback.
20512 if test "x$ac_cr" = x; then
20513   eval ac_cr=\$\'\\r\'
20514 fi
20515 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20516 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20517   ac_cs_awk_cr='\\r'
20518 else
20519   ac_cs_awk_cr=$ac_cr
20520 fi
20521
20522 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20523 _ACEOF
20524
20525
20526 {
20527   echo "cat >conf$$subs.awk <<_ACEOF" &&
20528   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20529   echo "_ACEOF"
20530 } >conf$$subs.sh ||
20531   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20532 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20533 ac_delim='%!_!# '
20534 for ac_last_try in false false false false false :; do
20535   . ./conf$$subs.sh ||
20536     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20537
20538   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20539   if test $ac_delim_n = $ac_delim_num; then
20540     break
20541   elif $ac_last_try; then
20542     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20543   else
20544     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20545   fi
20546 done
20547 rm -f conf$$subs.sh
20548
20549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20550 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20551 _ACEOF
20552 sed -n '
20553 h
20554 s/^/S["/; s/!.*/"]=/
20555 p
20556 g
20557 s/^[^!]*!//
20558 :repl
20559 t repl
20560 s/'"$ac_delim"'$//
20561 t delim
20562 :nl
20563 h
20564 s/\(.\{148\}\)..*/\1/
20565 t more1
20566 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20567 p
20568 n
20569 b repl
20570 :more1
20571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20572 p
20573 g
20574 s/.\{148\}//
20575 t nl
20576 :delim
20577 h
20578 s/\(.\{148\}\)..*/\1/
20579 t more2
20580 s/["\\]/\\&/g; s/^/"/; s/$/"/
20581 p
20582 b
20583 :more2
20584 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20585 p
20586 g
20587 s/.\{148\}//
20588 t delim
20589 ' <conf$$subs.awk | sed '
20590 /^[^""]/{
20591   N
20592   s/\n//
20593 }
20594 ' >>$CONFIG_STATUS || ac_write_fail=1
20595 rm -f conf$$subs.awk
20596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20597 _ACAWK
20598 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20599   for (key in S) S_is_set[key] = 1
20600   FS = "\a"
20601
20602 }
20603 {
20604   line = $ 0
20605   nfields = split(line, field, "@")
20606   substed = 0
20607   len = length(field[1])
20608   for (i = 2; i < nfields; i++) {
20609     key = field[i]
20610     keylen = length(key)
20611     if (S_is_set[key]) {
20612       value = S[key]
20613       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20614       len += length(value) + length(field[++i])
20615       substed = 1
20616     } else
20617       len += 1 + keylen
20618   }
20619
20620   print line
20621 }
20622
20623 _ACAWK
20624 _ACEOF
20625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20626 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20627   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20628 else
20629   cat
20630 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20631   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20632 _ACEOF
20633
20634 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20635 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20636 # trailing colons and then remove the whole line if VPATH becomes empty
20637 # (actually we leave an empty line to preserve line numbers).
20638 if test "x$srcdir" = x.; then
20639   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20640 h
20641 s///
20642 s/^/:/
20643 s/[      ]*$/:/
20644 s/:\$(srcdir):/:/g
20645 s/:\${srcdir}:/:/g
20646 s/:@srcdir@:/:/g
20647 s/^:*//
20648 s/:*$//
20649 x
20650 s/\(=[   ]*\).*/\1/
20651 G
20652 s/\n//
20653 s/^[^=]*=[       ]*$//
20654 }'
20655 fi
20656
20657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20658 fi # test -n "$CONFIG_FILES"
20659
20660 # Set up the scripts for CONFIG_HEADERS section.
20661 # No need to generate them if there are no CONFIG_HEADERS.
20662 # This happens for instance with `./config.status Makefile'.
20663 if test -n "$CONFIG_HEADERS"; then
20664 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20665 BEGIN {
20666 _ACEOF
20667
20668 # Transform confdefs.h into an awk script `defines.awk', embedded as
20669 # here-document in config.status, that substitutes the proper values into
20670 # config.h.in to produce config.h.
20671
20672 # Create a delimiter string that does not exist in confdefs.h, to ease
20673 # handling of long lines.
20674 ac_delim='%!_!# '
20675 for ac_last_try in false false :; do
20676   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20677   if test -z "$ac_tt"; then
20678     break
20679   elif $ac_last_try; then
20680     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20681   else
20682     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20683   fi
20684 done
20685
20686 # For the awk script, D is an array of macro values keyed by name,
20687 # likewise P contains macro parameters if any.  Preserve backslash
20688 # newline sequences.
20689
20690 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20691 sed -n '
20692 s/.\{148\}/&'"$ac_delim"'/g
20693 t rset
20694 :rset
20695 s/^[     ]*#[    ]*define[       ][      ]*/ /
20696 t def
20697 d
20698 :def
20699 s/\\$//
20700 t bsnl
20701 s/["\\]/\\&/g
20702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20703 D["\1"]=" \3"/p
20704 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20705 d
20706 :bsnl
20707 s/["\\]/\\&/g
20708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20709 D["\1"]=" \3\\\\\\n"\\/p
20710 t cont
20711 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20712 t cont
20713 d
20714 :cont
20715 n
20716 s/.\{148\}/&'"$ac_delim"'/g
20717 t clear
20718 :clear
20719 s/\\$//
20720 t bsnlc
20721 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20722 d
20723 :bsnlc
20724 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20725 b cont
20726 ' <confdefs.h | sed '
20727 s/'"$ac_delim"'/"\\\
20728 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20729
20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20731   for (key in D) D_is_set[key] = 1
20732   FS = "\a"
20733 }
20734 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20735   line = \$ 0
20736   split(line, arg, " ")
20737   if (arg[1] == "#") {
20738     defundef = arg[2]
20739     mac1 = arg[3]
20740   } else {
20741     defundef = substr(arg[1], 2)
20742     mac1 = arg[2]
20743   }
20744   split(mac1, mac2, "(") #)
20745   macro = mac2[1]
20746   prefix = substr(line, 1, index(line, defundef) - 1)
20747   if (D_is_set[macro]) {
20748     # Preserve the white space surrounding the "#".
20749     print prefix "define", macro P[macro] D[macro]
20750     next
20751   } else {
20752     # Replace #undef with comments.  This is necessary, for example,
20753     # in the case of _POSIX_SOURCE, which is predefined and required
20754     # on some systems where configure will not decide to define it.
20755     if (defundef == "undef") {
20756       print "/*", prefix defundef, macro, "*/"
20757       next
20758     }
20759   }
20760 }
20761 { print }
20762 _ACAWK
20763 _ACEOF
20764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20765   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20766 fi # test -n "$CONFIG_HEADERS"
20767
20768
20769 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20770 shift
20771 for ac_tag
20772 do
20773   case $ac_tag in
20774   :[FHLC]) ac_mode=$ac_tag; continue;;
20775   esac
20776   case $ac_mode$ac_tag in
20777   :[FHL]*:*);;
20778   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20779   :[FH]-) ac_tag=-:-;;
20780   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20781   esac
20782   ac_save_IFS=$IFS
20783   IFS=:
20784   set x $ac_tag
20785   IFS=$ac_save_IFS
20786   shift
20787   ac_file=$1
20788   shift
20789
20790   case $ac_mode in
20791   :L) ac_source=$1;;
20792   :[FH])
20793     ac_file_inputs=
20794     for ac_f
20795     do
20796       case $ac_f in
20797       -) ac_f="$ac_tmp/stdin";;
20798       *) # Look for the file first in the build tree, then in the source tree
20799          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20800          # because $ac_f cannot contain `:'.
20801          test -f "$ac_f" ||
20802            case $ac_f in
20803            [\\/$]*) false;;
20804            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20805            esac ||
20806            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20807       esac
20808       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20809       as_fn_append ac_file_inputs " '$ac_f'"
20810     done
20811
20812     # Let's still pretend it is `configure' which instantiates (i.e., don't
20813     # use $as_me), people would be surprised to read:
20814     #    /* config.h.  Generated by config.status.  */
20815     configure_input='Generated from '`
20816           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20817         `' by configure.'
20818     if test x"$ac_file" != x-; then
20819       configure_input="$ac_file.  $configure_input"
20820       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20821 $as_echo "$as_me: creating $ac_file" >&6;}
20822     fi
20823     # Neutralize special characters interpreted by sed in replacement strings.
20824     case $configure_input in #(
20825     *\&* | *\|* | *\\* )
20826        ac_sed_conf_input=`$as_echo "$configure_input" |
20827        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20828     *) ac_sed_conf_input=$configure_input;;
20829     esac
20830
20831     case $ac_tag in
20832     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20833       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20834     esac
20835     ;;
20836   esac
20837
20838   ac_dir=`$as_dirname -- "$ac_file" ||
20839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20840          X"$ac_file" : 'X\(//\)[^/]' \| \
20841          X"$ac_file" : 'X\(//\)$' \| \
20842          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20843 $as_echo X"$ac_file" |
20844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20845             s//\1/
20846             q
20847           }
20848           /^X\(\/\/\)[^/].*/{
20849             s//\1/
20850             q
20851           }
20852           /^X\(\/\/\)$/{
20853             s//\1/
20854             q
20855           }
20856           /^X\(\/\).*/{
20857             s//\1/
20858             q
20859           }
20860           s/.*/./; q'`
20861   as_dir="$ac_dir"; as_fn_mkdir_p
20862   ac_builddir=.
20863
20864 case "$ac_dir" in
20865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20866 *)
20867   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20868   # A ".." for each directory in $ac_dir_suffix.
20869   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20870   case $ac_top_builddir_sub in
20871   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20872   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20873   esac ;;
20874 esac
20875 ac_abs_top_builddir=$ac_pwd
20876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20877 # for backward compatibility:
20878 ac_top_builddir=$ac_top_build_prefix
20879
20880 case $srcdir in
20881   .)  # We are building in place.
20882     ac_srcdir=.
20883     ac_top_srcdir=$ac_top_builddir_sub
20884     ac_abs_top_srcdir=$ac_pwd ;;
20885   [\\/]* | ?:[\\/]* )  # Absolute name.
20886     ac_srcdir=$srcdir$ac_dir_suffix;
20887     ac_top_srcdir=$srcdir
20888     ac_abs_top_srcdir=$srcdir ;;
20889   *) # Relative name.
20890     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20891     ac_top_srcdir=$ac_top_build_prefix$srcdir
20892     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20893 esac
20894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20895
20896
20897   case $ac_mode in
20898   :F)
20899   #
20900   # CONFIG_FILE
20901   #
20902
20903   case $INSTALL in
20904   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20905   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20906   esac
20907   ac_MKDIR_P=$MKDIR_P
20908   case $MKDIR_P in
20909   [\\/$]* | ?:[\\/]* ) ;;
20910   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20911   esac
20912 _ACEOF
20913
20914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20915 # If the template does not know about datarootdir, expand it.
20916 # FIXME: This hack should be removed a few years after 2.60.
20917 ac_datarootdir_hack=; ac_datarootdir_seen=
20918 ac_sed_dataroot='
20919 /datarootdir/ {
20920   p
20921   q
20922 }
20923 /@datadir@/p
20924 /@docdir@/p
20925 /@infodir@/p
20926 /@localedir@/p
20927 /@mandir@/p'
20928 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20929 *datarootdir*) ac_datarootdir_seen=yes;;
20930 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20931   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20932 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20933 _ACEOF
20934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20935   ac_datarootdir_hack='
20936   s&@datadir@&$datadir&g
20937   s&@docdir@&$docdir&g
20938   s&@infodir@&$infodir&g
20939   s&@localedir@&$localedir&g
20940   s&@mandir@&$mandir&g
20941   s&\\\${datarootdir}&$datarootdir&g' ;;
20942 esac
20943 _ACEOF
20944
20945 # Neutralize VPATH when `$srcdir' = `.'.
20946 # Shell code in configure.ac might set extrasub.
20947 # FIXME: do we really want to maintain this feature?
20948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20949 ac_sed_extra="$ac_vpsub
20950 $extrasub
20951 _ACEOF
20952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20953 :t
20954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20955 s|@configure_input@|$ac_sed_conf_input|;t t
20956 s&@top_builddir@&$ac_top_builddir_sub&;t t
20957 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20958 s&@srcdir@&$ac_srcdir&;t t
20959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20960 s&@top_srcdir@&$ac_top_srcdir&;t t
20961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20962 s&@builddir@&$ac_builddir&;t t
20963 s&@abs_builddir@&$ac_abs_builddir&;t t
20964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20965 s&@INSTALL@&$ac_INSTALL&;t t
20966 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20967 $ac_datarootdir_hack
20968 "
20969 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20970   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20971
20972 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20973   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20974   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20975       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20977 which seems to be undefined.  Please make sure it is defined" >&5
20978 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20979 which seems to be undefined.  Please make sure it is defined" >&2;}
20980
20981   rm -f "$ac_tmp/stdin"
20982   case $ac_file in
20983   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20984   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20985   esac \
20986   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20987  ;;
20988   :H)
20989   #
20990   # CONFIG_HEADER
20991   #
20992   if test x"$ac_file" != x-; then
20993     {
20994       $as_echo "/* $configure_input  */" \
20995       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20996     } >"$ac_tmp/config.h" \
20997       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20998     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20999       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21000 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21001     else
21002       rm -f "$ac_file"
21003       mv "$ac_tmp/config.h" "$ac_file" \
21004         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21005     fi
21006   else
21007     $as_echo "/* $configure_input  */" \
21008       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21009       || as_fn_error $? "could not create -" "$LINENO" 5
21010   fi
21011 # Compute "$ac_file"'s index in $config_headers.
21012 _am_arg="$ac_file"
21013 _am_stamp_count=1
21014 for _am_header in $config_headers :; do
21015   case $_am_header in
21016     $_am_arg | $_am_arg:* )
21017       break ;;
21018     * )
21019       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21020   esac
21021 done
21022 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21023 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21024          X"$_am_arg" : 'X\(//\)[^/]' \| \
21025          X"$_am_arg" : 'X\(//\)$' \| \
21026          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21027 $as_echo X"$_am_arg" |
21028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21029             s//\1/
21030             q
21031           }
21032           /^X\(\/\/\)[^/].*/{
21033             s//\1/
21034             q
21035           }
21036           /^X\(\/\/\)$/{
21037             s//\1/
21038             q
21039           }
21040           /^X\(\/\).*/{
21041             s//\1/
21042             q
21043           }
21044           s/.*/./; q'`/stamp-h$_am_stamp_count
21045  ;;
21046
21047   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21048 $as_echo "$as_me: executing $ac_file commands" >&6;}
21049  ;;
21050   esac
21051
21052
21053   case $ac_file$ac_mode in
21054     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21055   # Older Autoconf quotes --file arguments for eval, but not when files
21056   # are listed without --file.  Let's play safe and only enable the eval
21057   # if we detect the quoting.
21058   case $CONFIG_FILES in
21059   *\'*) eval set x "$CONFIG_FILES" ;;
21060   *)   set x $CONFIG_FILES ;;
21061   esac
21062   shift
21063   for mf
21064   do
21065     # Strip MF so we end up with the name of the file.
21066     mf=`echo "$mf" | sed -e 's/:.*$//'`
21067     # Check whether this is an Automake generated Makefile or not.
21068     # We used to match only the files named 'Makefile.in', but
21069     # some people rename them; so instead we look at the file content.
21070     # Grep'ing the first line is not enough: some people post-process
21071     # each Makefile.in and add a new line on top of each file to say so.
21072     # Grep'ing the whole file is not good either: AIX grep has a line
21073     # limit of 2048, but all sed's we know have understand at least 4000.
21074     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21075       dirpart=`$as_dirname -- "$mf" ||
21076 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21077          X"$mf" : 'X\(//\)[^/]' \| \
21078          X"$mf" : 'X\(//\)$' \| \
21079          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21080 $as_echo X"$mf" |
21081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21082             s//\1/
21083             q
21084           }
21085           /^X\(\/\/\)[^/].*/{
21086             s//\1/
21087             q
21088           }
21089           /^X\(\/\/\)$/{
21090             s//\1/
21091             q
21092           }
21093           /^X\(\/\).*/{
21094             s//\1/
21095             q
21096           }
21097           s/.*/./; q'`
21098     else
21099       continue
21100     fi
21101     # Extract the definition of DEPDIR, am__include, and am__quote
21102     # from the Makefile without running 'make'.
21103     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21104     test -z "$DEPDIR" && continue
21105     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21106     test -z "$am__include" && continue
21107     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21108     # Find all dependency output files, they are included files with
21109     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21110     # simplest approach to changing $(DEPDIR) to its actual value in the
21111     # expansion.
21112     for file in `sed -n "
21113       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21114          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21115       # Make sure the directory exists.
21116       test -f "$dirpart/$file" && continue
21117       fdir=`$as_dirname -- "$file" ||
21118 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21119          X"$file" : 'X\(//\)[^/]' \| \
21120          X"$file" : 'X\(//\)$' \| \
21121          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21122 $as_echo X"$file" |
21123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21124             s//\1/
21125             q
21126           }
21127           /^X\(\/\/\)[^/].*/{
21128             s//\1/
21129             q
21130           }
21131           /^X\(\/\/\)$/{
21132             s//\1/
21133             q
21134           }
21135           /^X\(\/\).*/{
21136             s//\1/
21137             q
21138           }
21139           s/.*/./; q'`
21140       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21141       # echo "creating $dirpart/$file"
21142       echo '# dummy' > "$dirpart/$file"
21143     done
21144   done
21145 }
21146  ;;
21147     "libtool":C)
21148
21149     # See if we are running on zsh, and set the options which allow our
21150     # commands through without removal of \ escapes.
21151     if test -n "${ZSH_VERSION+set}" ; then
21152       setopt NO_GLOB_SUBST
21153     fi
21154
21155     cfgfile="${ofile}T"
21156     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21157     $RM "$cfgfile"
21158
21159     cat <<_LT_EOF >> "$cfgfile"
21160 #! $SHELL
21161
21162 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21163 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21164 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21165 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21166 #
21167 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21168 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21169 #                 Foundation, Inc.
21170 #   Written by Gordon Matzigkeit, 1996
21171 #
21172 #   This file is part of GNU Libtool.
21173 #
21174 # GNU Libtool is free software; you can redistribute it and/or
21175 # modify it under the terms of the GNU General Public License as
21176 # published by the Free Software Foundation; either version 2 of
21177 # the License, or (at your option) any later version.
21178 #
21179 # As a special exception to the GNU General Public License,
21180 # if you distribute this file as part of a program or library that
21181 # is built using GNU Libtool, you may include this file under the
21182 # same distribution terms that you use for the rest of that program.
21183 #
21184 # GNU Libtool is distributed in the hope that it will be useful,
21185 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21187 # GNU General Public License for more details.
21188 #
21189 # You should have received a copy of the GNU General Public License
21190 # along with GNU Libtool; see the file COPYING.  If not, a copy
21191 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21192 # obtained by writing to the Free Software Foundation, Inc.,
21193 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21194
21195
21196 # The names of the tagged configurations supported by this script.
21197 available_tags="CXX "
21198
21199 # ### BEGIN LIBTOOL CONFIG
21200
21201 # Which release of libtool.m4 was used?
21202 macro_version=$macro_version
21203 macro_revision=$macro_revision
21204
21205 # Whether or not to build static libraries.
21206 build_old_libs=$enable_static
21207
21208 # Whether or not to build shared libraries.
21209 build_libtool_libs=$enable_shared
21210
21211 # What type of objects to build.
21212 pic_mode=$pic_mode
21213
21214 # Whether or not to optimize for fast installation.
21215 fast_install=$enable_fast_install
21216
21217 # Shell to use when invoking shell scripts.
21218 SHELL=$lt_SHELL
21219
21220 # An echo program that protects backslashes.
21221 ECHO=$lt_ECHO
21222
21223 # The PATH separator for the build system.
21224 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21225
21226 # The host system.
21227 host_alias=$host_alias
21228 host=$host
21229 host_os=$host_os
21230
21231 # The build system.
21232 build_alias=$build_alias
21233 build=$build
21234 build_os=$build_os
21235
21236 # A sed program that does not truncate output.
21237 SED=$lt_SED
21238
21239 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21240 Xsed="\$SED -e 1s/^X//"
21241
21242 # A grep program that handles long lines.
21243 GREP=$lt_GREP
21244
21245 # An ERE matcher.
21246 EGREP=$lt_EGREP
21247
21248 # A literal string matcher.
21249 FGREP=$lt_FGREP
21250
21251 # A BSD- or MS-compatible name lister.
21252 NM=$lt_NM
21253
21254 # Whether we need soft or hard links.
21255 LN_S=$lt_LN_S
21256
21257 # What is the maximum length of a command?
21258 max_cmd_len=$max_cmd_len
21259
21260 # Object file suffix (normally "o").
21261 objext=$ac_objext
21262
21263 # Executable file suffix (normally "").
21264 exeext=$exeext
21265
21266 # whether the shell understands "unset".
21267 lt_unset=$lt_unset
21268
21269 # turn spaces into newlines.
21270 SP2NL=$lt_lt_SP2NL
21271
21272 # turn newlines into spaces.
21273 NL2SP=$lt_lt_NL2SP
21274
21275 # convert \$build file names to \$host format.
21276 to_host_file_cmd=$lt_cv_to_host_file_cmd
21277
21278 # convert \$build files to toolchain format.
21279 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21280
21281 # An object symbol dumper.
21282 OBJDUMP=$lt_OBJDUMP
21283
21284 # Method to check whether dependent libraries are shared objects.
21285 deplibs_check_method=$lt_deplibs_check_method
21286
21287 # Command to use when deplibs_check_method = "file_magic".
21288 file_magic_cmd=$lt_file_magic_cmd
21289
21290 # How to find potential files when deplibs_check_method = "file_magic".
21291 file_magic_glob=$lt_file_magic_glob
21292
21293 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21294 want_nocaseglob=$lt_want_nocaseglob
21295
21296 # DLL creation program.
21297 DLLTOOL=$lt_DLLTOOL
21298
21299 # Command to associate shared and link libraries.
21300 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21301
21302 # The archiver.
21303 AR=$lt_AR
21304
21305 # Flags to create an archive.
21306 AR_FLAGS=$lt_AR_FLAGS
21307
21308 # How to feed a file listing to the archiver.
21309 archiver_list_spec=$lt_archiver_list_spec
21310
21311 # A symbol stripping program.
21312 STRIP=$lt_STRIP
21313
21314 # Commands used to install an old-style archive.
21315 RANLIB=$lt_RANLIB
21316 old_postinstall_cmds=$lt_old_postinstall_cmds
21317 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21318
21319 # Whether to use a lock for old archive extraction.
21320 lock_old_archive_extraction=$lock_old_archive_extraction
21321
21322 # A C compiler.
21323 LTCC=$lt_CC
21324
21325 # LTCC compiler flags.
21326 LTCFLAGS=$lt_CFLAGS
21327
21328 # Take the output of nm and produce a listing of raw symbols and C names.
21329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21330
21331 # Transform the output of nm in a proper C declaration.
21332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21333
21334 # Transform the output of nm in a C name address pair.
21335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21336
21337 # Transform the output of nm in a C name address pair when lib prefix is needed.
21338 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21339
21340 # Specify filename containing input files for \$NM.
21341 nm_file_list_spec=$lt_nm_file_list_spec
21342
21343 # The root where to search for dependent libraries,and in which our libraries should be installed.
21344 lt_sysroot=$lt_sysroot
21345
21346 # The name of the directory that contains temporary libtool files.
21347 objdir=$objdir
21348
21349 # Used to examine libraries when file_magic_cmd begins with "file".
21350 MAGIC_CMD=$MAGIC_CMD
21351
21352 # Must we lock files when doing compilation?
21353 need_locks=$lt_need_locks
21354
21355 # Manifest tool.
21356 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21357
21358 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21359 DSYMUTIL=$lt_DSYMUTIL
21360
21361 # Tool to change global to local symbols on Mac OS X.
21362 NMEDIT=$lt_NMEDIT
21363
21364 # Tool to manipulate fat objects and archives on Mac OS X.
21365 LIPO=$lt_LIPO
21366
21367 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21368 OTOOL=$lt_OTOOL
21369
21370 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21371 OTOOL64=$lt_OTOOL64
21372
21373 # Old archive suffix (normally "a").
21374 libext=$libext
21375
21376 # Shared library suffix (normally ".so").
21377 shrext_cmds=$lt_shrext_cmds
21378
21379 # The commands to extract the exported symbol list from a shared archive.
21380 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21381
21382 # Variables whose values should be saved in libtool wrapper scripts and
21383 # restored at link time.
21384 variables_saved_for_relink=$lt_variables_saved_for_relink
21385
21386 # Do we need the "lib" prefix for modules?
21387 need_lib_prefix=$need_lib_prefix
21388
21389 # Do we need a version for libraries?
21390 need_version=$need_version
21391
21392 # Library versioning type.
21393 version_type=$version_type
21394
21395 # Shared library runtime path variable.
21396 runpath_var=$runpath_var
21397
21398 # Shared library path variable.
21399 shlibpath_var=$shlibpath_var
21400
21401 # Is shlibpath searched before the hard-coded library search path?
21402 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21403
21404 # Format of library name prefix.
21405 libname_spec=$lt_libname_spec
21406
21407 # List of archive names.  First name is the real one, the rest are links.
21408 # The last name is the one that the linker finds with -lNAME
21409 library_names_spec=$lt_library_names_spec
21410
21411 # The coded name of the library, if different from the real name.
21412 soname_spec=$lt_soname_spec
21413
21414 # Permission mode override for installation of shared libraries.
21415 install_override_mode=$lt_install_override_mode
21416
21417 # Command to use after installation of a shared archive.
21418 postinstall_cmds=$lt_postinstall_cmds
21419
21420 # Command to use after uninstallation of a shared archive.
21421 postuninstall_cmds=$lt_postuninstall_cmds
21422
21423 # Commands used to finish a libtool library installation in a directory.
21424 finish_cmds=$lt_finish_cmds
21425
21426 # As "finish_cmds", except a single script fragment to be evaled but
21427 # not shown.
21428 finish_eval=$lt_finish_eval
21429
21430 # Whether we should hardcode library paths into libraries.
21431 hardcode_into_libs=$hardcode_into_libs
21432
21433 # Compile-time system search path for libraries.
21434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21435
21436 # Run-time system search path for libraries.
21437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21438
21439 # Whether dlopen is supported.
21440 dlopen_support=$enable_dlopen
21441
21442 # Whether dlopen of programs is supported.
21443 dlopen_self=$enable_dlopen_self
21444
21445 # Whether dlopen of statically linked programs is supported.
21446 dlopen_self_static=$enable_dlopen_self_static
21447
21448 # Commands to strip libraries.
21449 old_striplib=$lt_old_striplib
21450 striplib=$lt_striplib
21451
21452
21453 # The linker used to build libraries.
21454 LD=$lt_LD
21455
21456 # How to create reloadable object files.
21457 reload_flag=$lt_reload_flag
21458 reload_cmds=$lt_reload_cmds
21459
21460 # Commands used to build an old-style archive.
21461 old_archive_cmds=$lt_old_archive_cmds
21462
21463 # A language specific compiler.
21464 CC=$lt_compiler
21465
21466 # Is the compiler the GNU compiler?
21467 with_gcc=$GCC
21468
21469 # Compiler flag to turn off builtin functions.
21470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21471
21472 # Additional compiler flags for building library objects.
21473 pic_flag=$lt_lt_prog_compiler_pic
21474
21475 # How to pass a linker flag through the compiler.
21476 wl=$lt_lt_prog_compiler_wl
21477
21478 # Compiler flag to prevent dynamic linking.
21479 link_static_flag=$lt_lt_prog_compiler_static
21480
21481 # Does compiler simultaneously support -c and -o options?
21482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21483
21484 # Whether or not to add -lc for building shared libraries.
21485 build_libtool_need_lc=$archive_cmds_need_lc
21486
21487 # Whether or not to disallow shared libs when runtime libs are static.
21488 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21489
21490 # Compiler flag to allow reflexive dlopens.
21491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21492
21493 # Compiler flag to generate shared objects directly from archives.
21494 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21495
21496 # Whether the compiler copes with passing no objects directly.
21497 compiler_needs_object=$lt_compiler_needs_object
21498
21499 # Create an old-style archive from a shared archive.
21500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21501
21502 # Create a temporary old-style archive to link instead of a shared archive.
21503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21504
21505 # Commands used to build a shared archive.
21506 archive_cmds=$lt_archive_cmds
21507 archive_expsym_cmds=$lt_archive_expsym_cmds
21508
21509 # Commands used to build a loadable module if different from building
21510 # a shared archive.
21511 module_cmds=$lt_module_cmds
21512 module_expsym_cmds=$lt_module_expsym_cmds
21513
21514 # Whether we are building with GNU ld or not.
21515 with_gnu_ld=$lt_with_gnu_ld
21516
21517 # Flag that allows shared libraries with undefined symbols to be built.
21518 allow_undefined_flag=$lt_allow_undefined_flag
21519
21520 # Flag that enforces no undefined symbols.
21521 no_undefined_flag=$lt_no_undefined_flag
21522
21523 # Flag to hardcode \$libdir into a binary during linking.
21524 # This must work even if \$libdir does not exist
21525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21526
21527 # Whether we need a single "-rpath" flag with a separated argument.
21528 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21529
21530 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21531 # DIR into the resulting binary.
21532 hardcode_direct=$hardcode_direct
21533
21534 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21535 # DIR into the resulting binary and the resulting library dependency is
21536 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21537 # library is relocated.
21538 hardcode_direct_absolute=$hardcode_direct_absolute
21539
21540 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21541 # into the resulting binary.
21542 hardcode_minus_L=$hardcode_minus_L
21543
21544 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21545 # into the resulting binary.
21546 hardcode_shlibpath_var=$hardcode_shlibpath_var
21547
21548 # Set to "yes" if building a shared library automatically hardcodes DIR
21549 # into the library and all subsequent libraries and executables linked
21550 # against it.
21551 hardcode_automatic=$hardcode_automatic
21552
21553 # Set to yes if linker adds runtime paths of dependent libraries
21554 # to runtime path list.
21555 inherit_rpath=$inherit_rpath
21556
21557 # Whether libtool must link a program against all its dependency libraries.
21558 link_all_deplibs=$link_all_deplibs
21559
21560 # Set to "yes" if exported symbols are required.
21561 always_export_symbols=$always_export_symbols
21562
21563 # The commands to list exported symbols.
21564 export_symbols_cmds=$lt_export_symbols_cmds
21565
21566 # Symbols that should not be listed in the preloaded symbols.
21567 exclude_expsyms=$lt_exclude_expsyms
21568
21569 # Symbols that must always be exported.
21570 include_expsyms=$lt_include_expsyms
21571
21572 # Commands necessary for linking programs (against libraries) with templates.
21573 prelink_cmds=$lt_prelink_cmds
21574
21575 # Commands necessary for finishing linking programs.
21576 postlink_cmds=$lt_postlink_cmds
21577
21578 # Specify filename containing input files.
21579 file_list_spec=$lt_file_list_spec
21580
21581 # How to hardcode a shared library path into an executable.
21582 hardcode_action=$hardcode_action
21583
21584 # The directories searched by this compiler when creating a shared library.
21585 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21586
21587 # Dependencies to place before and after the objects being linked to
21588 # create a shared library.
21589 predep_objects=$lt_predep_objects
21590 postdep_objects=$lt_postdep_objects
21591 predeps=$lt_predeps
21592 postdeps=$lt_postdeps
21593
21594 # The library search path used internally by the compiler when linking
21595 # a shared library.
21596 compiler_lib_search_path=$lt_compiler_lib_search_path
21597
21598 # ### END LIBTOOL CONFIG
21599
21600 _LT_EOF
21601
21602   case $host_os in
21603   aix3*)
21604     cat <<\_LT_EOF >> "$cfgfile"
21605 # AIX sometimes has problems with the GCC collect2 program.  For some
21606 # reason, if we set the COLLECT_NAMES environment variable, the problems
21607 # vanish in a puff of smoke.
21608 if test "X${COLLECT_NAMES+set}" != Xset; then
21609   COLLECT_NAMES=
21610   export COLLECT_NAMES
21611 fi
21612 _LT_EOF
21613     ;;
21614   esac
21615
21616
21617 ltmain="$ac_aux_dir/ltmain.sh"
21618
21619
21620   # We use sed instead of cat because bash on DJGPP gets confused if
21621   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21622   # text mode, it properly converts lines to CR/LF.  This bash problem
21623   # is reportedly fixed, but why not run on old versions too?
21624   sed '$q' "$ltmain" >> "$cfgfile" \
21625      || (rm -f "$cfgfile"; exit 1)
21626
21627   if test x"$xsi_shell" = xyes; then
21628   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21629 func_dirname ()\
21630 {\
21631 \    case ${1} in\
21632 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21633 \      *  ) func_dirname_result="${3}" ;;\
21634 \    esac\
21635 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21636   && mv -f "$cfgfile.tmp" "$cfgfile" \
21637     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21638 test 0 -eq $? || _lt_function_replace_fail=:
21639
21640
21641   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21642 func_basename ()\
21643 {\
21644 \    func_basename_result="${1##*/}"\
21645 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21646   && mv -f "$cfgfile.tmp" "$cfgfile" \
21647     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21648 test 0 -eq $? || _lt_function_replace_fail=:
21649
21650
21651   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21652 func_dirname_and_basename ()\
21653 {\
21654 \    case ${1} in\
21655 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21656 \      *  ) func_dirname_result="${3}" ;;\
21657 \    esac\
21658 \    func_basename_result="${1##*/}"\
21659 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21660   && mv -f "$cfgfile.tmp" "$cfgfile" \
21661     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21662 test 0 -eq $? || _lt_function_replace_fail=:
21663
21664
21665   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21666 func_stripname ()\
21667 {\
21668 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21669 \    # positional parameters, so assign one to ordinary parameter first.\
21670 \    func_stripname_result=${3}\
21671 \    func_stripname_result=${func_stripname_result#"${1}"}\
21672 \    func_stripname_result=${func_stripname_result%"${2}"}\
21673 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21674   && mv -f "$cfgfile.tmp" "$cfgfile" \
21675     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21676 test 0 -eq $? || _lt_function_replace_fail=:
21677
21678
21679   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21680 func_split_long_opt ()\
21681 {\
21682 \    func_split_long_opt_name=${1%%=*}\
21683 \    func_split_long_opt_arg=${1#*=}\
21684 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21685   && mv -f "$cfgfile.tmp" "$cfgfile" \
21686     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21687 test 0 -eq $? || _lt_function_replace_fail=:
21688
21689
21690   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21691 func_split_short_opt ()\
21692 {\
21693 \    func_split_short_opt_arg=${1#??}\
21694 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21695 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21696   && mv -f "$cfgfile.tmp" "$cfgfile" \
21697     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21698 test 0 -eq $? || _lt_function_replace_fail=:
21699
21700
21701   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21702 func_lo2o ()\
21703 {\
21704 \    case ${1} in\
21705 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21706 \      *)    func_lo2o_result=${1} ;;\
21707 \    esac\
21708 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21709   && mv -f "$cfgfile.tmp" "$cfgfile" \
21710     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21711 test 0 -eq $? || _lt_function_replace_fail=:
21712
21713
21714   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21715 func_xform ()\
21716 {\
21717     func_xform_result=${1%.*}.lo\
21718 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21719   && mv -f "$cfgfile.tmp" "$cfgfile" \
21720     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21721 test 0 -eq $? || _lt_function_replace_fail=:
21722
21723
21724   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21725 func_arith ()\
21726 {\
21727     func_arith_result=$(( $* ))\
21728 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21729   && mv -f "$cfgfile.tmp" "$cfgfile" \
21730     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21731 test 0 -eq $? || _lt_function_replace_fail=:
21732
21733
21734   sed -e '/^func_len ()$/,/^} # func_len /c\
21735 func_len ()\
21736 {\
21737     func_len_result=${#1}\
21738 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21739   && mv -f "$cfgfile.tmp" "$cfgfile" \
21740     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21741 test 0 -eq $? || _lt_function_replace_fail=:
21742
21743 fi
21744
21745 if test x"$lt_shell_append" = xyes; then
21746   sed -e '/^func_append ()$/,/^} # func_append /c\
21747 func_append ()\
21748 {\
21749     eval "${1}+=\\${2}"\
21750 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21751   && mv -f "$cfgfile.tmp" "$cfgfile" \
21752     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21753 test 0 -eq $? || _lt_function_replace_fail=:
21754
21755
21756   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21757 func_append_quoted ()\
21758 {\
21759 \    func_quote_for_eval "${2}"\
21760 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21761 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21762   && mv -f "$cfgfile.tmp" "$cfgfile" \
21763     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21764 test 0 -eq $? || _lt_function_replace_fail=:
21765
21766
21767   # Save a `func_append' function call where possible by direct use of '+='
21768   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21769     && mv -f "$cfgfile.tmp" "$cfgfile" \
21770       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21771   test 0 -eq $? || _lt_function_replace_fail=:
21772 else
21773   # Save a `func_append' function call even when '+=' is not available
21774   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21775     && mv -f "$cfgfile.tmp" "$cfgfile" \
21776       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21777   test 0 -eq $? || _lt_function_replace_fail=:
21778 fi
21779
21780 if test x"$_lt_function_replace_fail" = x":"; then
21781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21782 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21783 fi
21784
21785
21786    mv -f "$cfgfile" "$ofile" ||
21787     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21788   chmod +x "$ofile"
21789
21790
21791     cat <<_LT_EOF >> "$ofile"
21792
21793 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21794
21795 # The linker used to build libraries.
21796 LD=$lt_LD_CXX
21797
21798 # How to create reloadable object files.
21799 reload_flag=$lt_reload_flag_CXX
21800 reload_cmds=$lt_reload_cmds_CXX
21801
21802 # Commands used to build an old-style archive.
21803 old_archive_cmds=$lt_old_archive_cmds_CXX
21804
21805 # A language specific compiler.
21806 CC=$lt_compiler_CXX
21807
21808 # Is the compiler the GNU compiler?
21809 with_gcc=$GCC_CXX
21810
21811 # Compiler flag to turn off builtin functions.
21812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21813
21814 # Additional compiler flags for building library objects.
21815 pic_flag=$lt_lt_prog_compiler_pic_CXX
21816
21817 # How to pass a linker flag through the compiler.
21818 wl=$lt_lt_prog_compiler_wl_CXX
21819
21820 # Compiler flag to prevent dynamic linking.
21821 link_static_flag=$lt_lt_prog_compiler_static_CXX
21822
21823 # Does compiler simultaneously support -c and -o options?
21824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21825
21826 # Whether or not to add -lc for building shared libraries.
21827 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21828
21829 # Whether or not to disallow shared libs when runtime libs are static.
21830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21831
21832 # Compiler flag to allow reflexive dlopens.
21833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21834
21835 # Compiler flag to generate shared objects directly from archives.
21836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21837
21838 # Whether the compiler copes with passing no objects directly.
21839 compiler_needs_object=$lt_compiler_needs_object_CXX
21840
21841 # Create an old-style archive from a shared archive.
21842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21843
21844 # Create a temporary old-style archive to link instead of a shared archive.
21845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21846
21847 # Commands used to build a shared archive.
21848 archive_cmds=$lt_archive_cmds_CXX
21849 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21850
21851 # Commands used to build a loadable module if different from building
21852 # a shared archive.
21853 module_cmds=$lt_module_cmds_CXX
21854 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21855
21856 # Whether we are building with GNU ld or not.
21857 with_gnu_ld=$lt_with_gnu_ld_CXX
21858
21859 # Flag that allows shared libraries with undefined symbols to be built.
21860 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21861
21862 # Flag that enforces no undefined symbols.
21863 no_undefined_flag=$lt_no_undefined_flag_CXX
21864
21865 # Flag to hardcode \$libdir into a binary during linking.
21866 # This must work even if \$libdir does not exist
21867 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21868
21869 # Whether we need a single "-rpath" flag with a separated argument.
21870 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21871
21872 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21873 # DIR into the resulting binary.
21874 hardcode_direct=$hardcode_direct_CXX
21875
21876 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21877 # DIR into the resulting binary and the resulting library dependency is
21878 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21879 # library is relocated.
21880 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21881
21882 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21883 # into the resulting binary.
21884 hardcode_minus_L=$hardcode_minus_L_CXX
21885
21886 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21887 # into the resulting binary.
21888 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21889
21890 # Set to "yes" if building a shared library automatically hardcodes DIR
21891 # into the library and all subsequent libraries and executables linked
21892 # against it.
21893 hardcode_automatic=$hardcode_automatic_CXX
21894
21895 # Set to yes if linker adds runtime paths of dependent libraries
21896 # to runtime path list.
21897 inherit_rpath=$inherit_rpath_CXX
21898
21899 # Whether libtool must link a program against all its dependency libraries.
21900 link_all_deplibs=$link_all_deplibs_CXX
21901
21902 # Set to "yes" if exported symbols are required.
21903 always_export_symbols=$always_export_symbols_CXX
21904
21905 # The commands to list exported symbols.
21906 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21907
21908 # Symbols that should not be listed in the preloaded symbols.
21909 exclude_expsyms=$lt_exclude_expsyms_CXX
21910
21911 # Symbols that must always be exported.
21912 include_expsyms=$lt_include_expsyms_CXX
21913
21914 # Commands necessary for linking programs (against libraries) with templates.
21915 prelink_cmds=$lt_prelink_cmds_CXX
21916
21917 # Commands necessary for finishing linking programs.
21918 postlink_cmds=$lt_postlink_cmds_CXX
21919
21920 # Specify filename containing input files.
21921 file_list_spec=$lt_file_list_spec_CXX
21922
21923 # How to hardcode a shared library path into an executable.
21924 hardcode_action=$hardcode_action_CXX
21925
21926 # The directories searched by this compiler when creating a shared library.
21927 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21928
21929 # Dependencies to place before and after the objects being linked to
21930 # create a shared library.
21931 predep_objects=$lt_predep_objects_CXX
21932 postdep_objects=$lt_postdep_objects_CXX
21933 predeps=$lt_predeps_CXX
21934 postdeps=$lt_postdeps_CXX
21935
21936 # The library search path used internally by the compiler when linking
21937 # a shared library.
21938 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21939
21940 # ### END LIBTOOL TAG CONFIG: CXX
21941 _LT_EOF
21942
21943  ;;
21944
21945   esac
21946 done # for ac_tag
21947
21948
21949 as_fn_exit 0
21950 _ACEOF
21951 ac_clean_files=$ac_clean_files_save
21952
21953 test $ac_write_fail = 0 ||
21954   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21955
21956
21957 # configure is writing to config.log, and then calls config.status.
21958 # config.status does its own redirection, appending to config.log.
21959 # Unfortunately, on DOS this fails, as config.log is still kept open
21960 # by configure, so config.status won't be able to write to it; its
21961 # output is simply discarded.  So we exec the FD to /dev/null,
21962 # effectively closing config.log, so it can be properly (re)opened and
21963 # appended to by config.status.  When coming back to configure, we
21964 # need to make the FD available again.
21965 if test "$no_create" != yes; then
21966   ac_cs_success=:
21967   ac_config_status_args=
21968   test "$silent" = yes &&
21969     ac_config_status_args="$ac_config_status_args --quiet"
21970   exec 5>/dev/null
21971   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21972   exec 5>>config.log
21973   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21974   # would make configure fail if this is the last instruction.
21975   $ac_cs_success || as_fn_exit 1
21976 fi
21977 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21978   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21979 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21980 fi
21981
21982
21983 { $as_echo "$as_me:${as_lineno-$LINENO}:
21984
21985 Build configuration:
21986
21987 Unicode callbacks (you want at least one):
21988         Glib:                   ${have_glib}
21989         ICU:                    ${have_icu}
21990         UCDN:                   ${have_ucdn}
21991
21992 Font callbacks (the more the better):
21993         FreeType:               ${have_freetype}
21994
21995 Tools used for command-line utilities:
21996         Cairo:                  ${have_cairo}
21997         Fontconfig:             ${have_fontconfig}
21998
21999 Additional shapers (the more the better):
22000         Graphite2:              ${have_graphite2}
22001
22002 Platform shapers (not normally needed):
22003         CoreText:               ${have_coretext}
22004         Uniscribe:              ${have_uniscribe}
22005         DirectWrite:            ${have_directwrite}
22006
22007 Other features:
22008         Documentation:          ${have_gtk_doc}
22009         GObject bindings:       ${have_gobject}
22010         Introspection:          ${have_introspection}
22011 " >&5
22012 $as_echo "$as_me:
22013
22014 Build configuration:
22015
22016 Unicode callbacks (you want at least one):
22017         Glib:                   ${have_glib}
22018         ICU:                    ${have_icu}
22019         UCDN:                   ${have_ucdn}
22020
22021 Font callbacks (the more the better):
22022         FreeType:               ${have_freetype}
22023
22024 Tools used for command-line utilities:
22025         Cairo:                  ${have_cairo}
22026         Fontconfig:             ${have_fontconfig}
22027
22028 Additional shapers (the more the better):
22029         Graphite2:              ${have_graphite2}
22030
22031 Platform shapers (not normally needed):
22032         CoreText:               ${have_coretext}
22033         Uniscribe:              ${have_uniscribe}
22034         DirectWrite:            ${have_directwrite}
22035
22036 Other features:
22037         Documentation:          ${have_gtk_doc}
22038         GObject bindings:       ${have_gobject}
22039         Introspection:          ${have_introspection}
22040 " >&6;}