Merge branch 'upstream' into tizen
[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 8.2.2.
4 #
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='8.2.2'
594 PACKAGE_STRING='HarfBuzz 8.2.2'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
597
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_WASM_FALSE
640 HAVE_WASM_TRUE
641 WASM_LIBS
642 WASM_CFLAGS
643 HAVE_CORETEXT_FALSE
644 HAVE_CORETEXT_TRUE
645 CORETEXT_LIBS
646 CORETEXT_CFLAGS
647 HAVE_DIRECTWRITE_FALSE
648 HAVE_DIRECTWRITE_TRUE
649 HAVE_GDI_FALSE
650 HAVE_GDI_TRUE
651 GDI_LIBS
652 GDI_CFLAGS
653 HAVE_UNISCRIBE_FALSE
654 HAVE_UNISCRIBE_TRUE
655 UNISCRIBE_LIBS
656 UNISCRIBE_CFLAGS
657 HAVE_FREETYPE_FALSE
658 HAVE_FREETYPE_TRUE
659 FREETYPE_LIBS
660 FREETYPE_CFLAGS
661 FREETYPE_DEPS
662 HAVE_GRAPHITE2_FALSE
663 HAVE_GRAPHITE2_TRUE
664 GRAPHITE2_LIBS
665 GRAPHITE2_CFLAGS
666 GRAPHITE2_DEPS
667 HAVE_ICU_BUILTIN_FALSE
668 HAVE_ICU_BUILTIN_TRUE
669 HAVE_ICU_FALSE
670 HAVE_ICU_TRUE
671 ICU_LIBS
672 ICU_CFLAGS
673 HAVE_CHAFA_FALSE
674 HAVE_CHAFA_TRUE
675 CHAFA_LIBS
676 CHAFA_CFLAGS
677 HAVE_CAIRO_FT_FALSE
678 HAVE_CAIRO_FT_TRUE
679 CAIRO_FT_LIBS
680 CAIRO_FT_CFLAGS
681 HAVE_CAIRO_FALSE
682 HAVE_CAIRO_TRUE
683 CAIRO_LIBS
684 CAIRO_CFLAGS
685 HAVE_INTROSPECTION_FALSE
686 HAVE_INTROSPECTION_TRUE
687 INTROSPECTION_MAKEFILE
688 INTROSPECTION_LIBS
689 INTROSPECTION_CFLAGS
690 INTROSPECTION_TYPELIBDIR
691 INTROSPECTION_GIRDIR
692 INTROSPECTION_GENERATE
693 INTROSPECTION_COMPILER
694 INTROSPECTION_SCANNER
695 _GI_EXP_LIBDIR
696 _GI_EXP_DATADIR
697 have_gobject
698 HAVE_GOBJECT_FALSE
699 HAVE_GOBJECT_TRUE
700 GLIB_MKENUMS
701 GOBJECT_LIBS
702 GOBJECT_CFLAGS
703 HAVE_GLIB_FALSE
704 HAVE_GLIB_TRUE
705 GLIB_LIBS
706 GLIB_CFLAGS
707 GLIB_DEPS
708 HAVE_PTHREAD_FALSE
709 HAVE_PTHREAD_TRUE
710 PTHREAD_CFLAGS
711 PTHREAD_LIBS
712 PTHREAD_CC
713 ax_pthread_config
714 OS_WIN32_FALSE
715 OS_WIN32_TRUE
716 HAVE_GCC_FALSE
717 HAVE_GCC_TRUE
718 GTK_DOC_USE_REBASE_FALSE
719 GTK_DOC_USE_REBASE_TRUE
720 GTK_DOC_USE_LIBTOOL_FALSE
721 GTK_DOC_USE_LIBTOOL_TRUE
722 GTK_DOC_BUILD_PDF_FALSE
723 GTK_DOC_BUILD_PDF_TRUE
724 GTK_DOC_BUILD_HTML_FALSE
725 GTK_DOC_BUILD_HTML_TRUE
726 ENABLE_GTK_DOC_FALSE
727 ENABLE_GTK_DOC_TRUE
728 HAVE_GTK_DOC_FALSE
729 HAVE_GTK_DOC_TRUE
730 GTKDOC_DEPS_LIBS
731 GTKDOC_DEPS_CFLAGS
732 HTML_DIR
733 GTKDOC_MKPDF
734 GTKDOC_REBASE
735 GTKDOC_CHECK_PATH
736 GTKDOC_CHECK
737 WITH_LIBSTDCXX_FALSE
738 WITH_LIBSTDCXX_TRUE
739 HB_LIBTOOL_VERSION_INFO
740 HB_VERSION
741 HB_VERSION_MICRO
742 HB_VERSION_MINOR
743 HB_VERSION_MAJOR
744 GIT
745 RAGEL
746 PKG_CONFIG_LIBDIR
747 PKG_CONFIG_PATH
748 PKG_CONFIG
749 HAVE_CXX11
750 CXXCPP
751 am__fastdepCXX_FALSE
752 am__fastdepCXX_TRUE
753 CXXDEPMODE
754 ac_ct_CXX
755 CXXFLAGS
756 CXX
757 CPP
758 LT_SYS_LIBRARY_PATH
759 OTOOL64
760 OTOOL
761 LIPO
762 NMEDIT
763 DSYMUTIL
764 MANIFEST_TOOL
765 RANLIB
766 DLLTOOL
767 OBJDUMP
768 LN_S
769 NM
770 ac_ct_DUMPBIN
771 DUMPBIN
772 LD
773 FGREP
774 EGREP
775 GREP
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 LIBTOOL
785 am__fastdepCC_FALSE
786 am__fastdepCC_TRUE
787 CCDEPMODE
788 am__nodep
789 AMDEPBACKSLASH
790 AMDEP_FALSE
791 AMDEP_TRUE
792 am__include
793 DEPDIR
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 ac_ct_AR
802 AR
803 CODE_COVERAGE_RULES
804 CODE_COVERAGE_LDFLAGS
805 CODE_COVERAGE_LIBS
806 CODE_COVERAGE_CXXFLAGS
807 CODE_COVERAGE_CFLAGS
808 CODE_COVERAGE_CPPFLAGS
809 GENHTML
810 LCOV
811 GCOV
812 CODE_COVERAGE_ENABLED
813 CODE_COVERAGE_ENABLED_FALSE
814 CODE_COVERAGE_ENABLED_TRUE
815 SED
816 AM_BACKSLASH
817 AM_DEFAULT_VERBOSITY
818 AM_DEFAULT_V
819 AM_V
820 am__untar
821 am__tar
822 AMTAR
823 am__leading_dot
824 SET_MAKE
825 AWK
826 mkdir_p
827 MKDIR_P
828 INSTALL_STRIP_PROGRAM
829 STRIP
830 install_sh
831 MAKEINFO
832 AUTOHEADER
833 AUTOMAKE
834 AUTOCONF
835 ACLOCAL
836 VERSION
837 PACKAGE
838 CYGPATH_W
839 am__isrc
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 target_alias
844 host_alias
845 build_alias
846 LIBS
847 ECHO_T
848 ECHO_N
849 ECHO_C
850 DEFS
851 mandir
852 localedir
853 libdir
854 psdir
855 pdfdir
856 dvidir
857 htmldir
858 infodir
859 docdir
860 oldincludedir
861 includedir
862 runstatedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL
882 am__quote'
883 ac_subst_files=''
884 ac_user_opts='
885 enable_option_checking
886 enable_silent_rules
887 with_gcov
888 enable_code_coverage
889 enable_dependency_tracking
890 enable_static
891 enable_shared
892 with_pic
893 enable_fast_install
894 with_aix_soname
895 with_gnu_ld
896 with_sysroot
897 enable_libtool_lock
898 enable_largefile
899 with_libstdc__
900 with_html_dir
901 enable_gtk_doc
902 enable_gtk_doc_html
903 enable_gtk_doc_pdf
904 with_glib
905 with_gobject
906 enable_introspection
907 with_cairo
908 with_chafa
909 with_icu
910 with_graphite2
911 with_freetype
912 with_uniscribe
913 with_gdi
914 with_directwrite
915 with_coretext
916 with_wasm
917 '
918       ac_precious_vars='build_alias
919 host_alias
920 target_alias
921 CC
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
926 LT_SYS_LIBRARY_PATH
927 CPP
928 CXX
929 CXXFLAGS
930 CCC
931 CXXCPP
932 PKG_CONFIG
933 PKG_CONFIG_PATH
934 PKG_CONFIG_LIBDIR
935 GTKDOC_DEPS_CFLAGS
936 GTKDOC_DEPS_LIBS
937 GLIB_CFLAGS
938 GLIB_LIBS
939 GOBJECT_CFLAGS
940 GOBJECT_LIBS
941 CAIRO_CFLAGS
942 CAIRO_LIBS
943 CAIRO_FT_CFLAGS
944 CAIRO_FT_LIBS
945 CHAFA_CFLAGS
946 CHAFA_LIBS
947 ICU_CFLAGS
948 ICU_LIBS
949 GRAPHITE2_CFLAGS
950 GRAPHITE2_LIBS
951 FREETYPE_CFLAGS
952 FREETYPE_LIBS'
953
954
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
976
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 runstatedir='${localstatedir}/run'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008   # If the previous option needs an argument, assign it.
1009   if test -n "$ac_prev"; then
1010     eval $ac_prev=\$ac_option
1011     ac_prev=
1012     continue
1013   fi
1014
1015   case $ac_option in
1016   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017   *=)   ac_optarg= ;;
1018   *)    ac_optarg=yes ;;
1019   esac
1020
1021   # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023   case $ac_dashdash$ac_option in
1024   --)
1025     ac_dashdash=yes ;;
1026
1027   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028     ac_prev=bindir ;;
1029   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030     bindir=$ac_optarg ;;
1031
1032   -build | --build | --buil | --bui | --bu)
1033     ac_prev=build_alias ;;
1034   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035     build_alias=$ac_optarg ;;
1036
1037   -cache-file | --cache-file | --cache-fil | --cache-fi \
1038   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039     ac_prev=cache_file ;;
1040   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042     cache_file=$ac_optarg ;;
1043
1044   --config-cache | -C)
1045     cache_file=config.cache ;;
1046
1047   -datadir | --datadir | --datadi | --datad)
1048     ac_prev=datadir ;;
1049   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050     datadir=$ac_optarg ;;
1051
1052   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053   | --dataroo | --dataro | --datar)
1054     ac_prev=datarootdir ;;
1055   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057     datarootdir=$ac_optarg ;;
1058
1059   -disable-* | --disable-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error $? "invalid feature name: $ac_useropt"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=no ;;
1074
1075   -docdir | --docdir | --docdi | --doc | --do)
1076     ac_prev=docdir ;;
1077   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078     docdir=$ac_optarg ;;
1079
1080   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081     ac_prev=dvidir ;;
1082   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083     dvidir=$ac_optarg ;;
1084
1085   -enable-* | --enable-*)
1086     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087     # Reject names that are not valid shell variable names.
1088     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089       as_fn_error $? "invalid feature name: $ac_useropt"
1090     ac_useropt_orig=$ac_useropt
1091     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092     case $ac_user_opts in
1093       *"
1094 "enable_$ac_useropt"
1095 "*) ;;
1096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097          ac_unrecognized_sep=', ';;
1098     esac
1099     eval enable_$ac_useropt=\$ac_optarg ;;
1100
1101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103   | --exec | --exe | --ex)
1104     ac_prev=exec_prefix ;;
1105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107   | --exec=* | --exe=* | --ex=*)
1108     exec_prefix=$ac_optarg ;;
1109
1110   -gas | --gas | --ga | --g)
1111     # Obsolete; use --with-gas.
1112     with_gas=yes ;;
1113
1114   -help | --help | --hel | --he | -h)
1115     ac_init_help=long ;;
1116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117     ac_init_help=recursive ;;
1118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119     ac_init_help=short ;;
1120
1121   -host | --host | --hos | --ho)
1122     ac_prev=host_alias ;;
1123   -host=* | --host=* | --hos=* | --ho=*)
1124     host_alias=$ac_optarg ;;
1125
1126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127     ac_prev=htmldir ;;
1128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129   | --ht=*)
1130     htmldir=$ac_optarg ;;
1131
1132   -includedir | --includedir | --includedi | --included | --include \
1133   | --includ | --inclu | --incl | --inc)
1134     ac_prev=includedir ;;
1135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136   | --includ=* | --inclu=* | --incl=* | --inc=*)
1137     includedir=$ac_optarg ;;
1138
1139   -infodir | --infodir | --infodi | --infod | --info | --inf)
1140     ac_prev=infodir ;;
1141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142     infodir=$ac_optarg ;;
1143
1144   -libdir | --libdir | --libdi | --libd)
1145     ac_prev=libdir ;;
1146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147     libdir=$ac_optarg ;;
1148
1149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150   | --libexe | --libex | --libe)
1151     ac_prev=libexecdir ;;
1152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153   | --libexe=* | --libex=* | --libe=*)
1154     libexecdir=$ac_optarg ;;
1155
1156   -localedir | --localedir | --localedi | --localed | --locale)
1157     ac_prev=localedir ;;
1158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159     localedir=$ac_optarg ;;
1160
1161   -localstatedir | --localstatedir | --localstatedi | --localstated \
1162   | --localstate | --localstat | --localsta | --localst | --locals)
1163     ac_prev=localstatedir ;;
1164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166     localstatedir=$ac_optarg ;;
1167
1168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169     ac_prev=mandir ;;
1170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171     mandir=$ac_optarg ;;
1172
1173   -nfp | --nfp | --nf)
1174     # Obsolete; use --without-fp.
1175     with_fp=no ;;
1176
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n)
1179     no_create=yes ;;
1180
1181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183     no_recursion=yes ;;
1184
1185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187   | --oldin | --oldi | --old | --ol | --o)
1188     ac_prev=oldincludedir ;;
1189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192     oldincludedir=$ac_optarg ;;
1193
1194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195     ac_prev=prefix ;;
1196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197     prefix=$ac_optarg ;;
1198
1199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200   | --program-pre | --program-pr | --program-p)
1201     ac_prev=program_prefix ;;
1202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204     program_prefix=$ac_optarg ;;
1205
1206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207   | --program-suf | --program-su | --program-s)
1208     ac_prev=program_suffix ;;
1209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211     program_suffix=$ac_optarg ;;
1212
1213   -program-transform-name | --program-transform-name \
1214   | --program-transform-nam | --program-transform-na \
1215   | --program-transform-n | --program-transform- \
1216   | --program-transform | --program-transfor \
1217   | --program-transfo | --program-transf \
1218   | --program-trans | --program-tran \
1219   | --progr-tra | --program-tr | --program-t)
1220     ac_prev=program_transform_name ;;
1221   -program-transform-name=* | --program-transform-name=* \
1222   | --program-transform-nam=* | --program-transform-na=* \
1223   | --program-transform-n=* | --program-transform-=* \
1224   | --program-transform=* | --program-transfor=* \
1225   | --program-transfo=* | --program-transf=* \
1226   | --program-trans=* | --program-tran=* \
1227   | --progr-tra=* | --program-tr=* | --program-t=*)
1228     program_transform_name=$ac_optarg ;;
1229
1230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231     ac_prev=pdfdir ;;
1232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233     pdfdir=$ac_optarg ;;
1234
1235   -psdir | --psdir | --psdi | --psd | --ps)
1236     ac_prev=psdir ;;
1237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238     psdir=$ac_optarg ;;
1239
1240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241   | -silent | --silent | --silen | --sile | --sil)
1242     silent=yes ;;
1243
1244   -runstatedir | --runstatedir | --runstatedi | --runstated \
1245   | --runstate | --runstat | --runsta | --runst | --runs \
1246   | --run | --ru | --r)
1247     ac_prev=runstatedir ;;
1248   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1249   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1250   | --run=* | --ru=* | --r=*)
1251     runstatedir=$ac_optarg ;;
1252
1253   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254     ac_prev=sbindir ;;
1255   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256   | --sbi=* | --sb=*)
1257     sbindir=$ac_optarg ;;
1258
1259   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261   | --sharedst | --shareds | --shared | --share | --shar \
1262   | --sha | --sh)
1263     ac_prev=sharedstatedir ;;
1264   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267   | --sha=* | --sh=*)
1268     sharedstatedir=$ac_optarg ;;
1269
1270   -site | --site | --sit)
1271     ac_prev=site ;;
1272   -site=* | --site=* | --sit=*)
1273     site=$ac_optarg ;;
1274
1275   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276     ac_prev=srcdir ;;
1277   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278     srcdir=$ac_optarg ;;
1279
1280   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281   | --syscon | --sysco | --sysc | --sys | --sy)
1282     ac_prev=sysconfdir ;;
1283   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285     sysconfdir=$ac_optarg ;;
1286
1287   -target | --target | --targe | --targ | --tar | --ta | --t)
1288     ac_prev=target_alias ;;
1289   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290     target_alias=$ac_optarg ;;
1291
1292   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293     verbose=yes ;;
1294
1295   -version | --version | --versio | --versi | --vers | -V)
1296     ac_init_version=: ;;
1297
1298   -with-* | --with-*)
1299     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302       as_fn_error $? "invalid package name: $ac_useropt"
1303     ac_useropt_orig=$ac_useropt
1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306       *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310          ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=\$ac_optarg ;;
1313
1314   -without-* | --without-*)
1315     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316     # Reject names that are not valid shell variable names.
1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318       as_fn_error $? "invalid package name: $ac_useropt"
1319     ac_useropt_orig=$ac_useropt
1320     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321     case $ac_user_opts in
1322       *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326          ac_unrecognized_sep=', ';;
1327     esac
1328     eval with_$ac_useropt=no ;;
1329
1330   --x)
1331     # Obsolete; use --with-x.
1332     with_x=yes ;;
1333
1334   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335   | --x-incl | --x-inc | --x-in | --x-i)
1336     ac_prev=x_includes ;;
1337   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339     x_includes=$ac_optarg ;;
1340
1341   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343     ac_prev=x_libraries ;;
1344   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346     x_libraries=$ac_optarg ;;
1347
1348   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1349 Try \`$0 --help' for more information"
1350     ;;
1351
1352   *=*)
1353     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354     # Reject names that are not valid shell variable names.
1355     case $ac_envvar in #(
1356       '' | [0-9]* | *[!_$as_cr_alnum]* )
1357       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1358     esac
1359     eval $ac_envvar=\$ac_optarg
1360     export $ac_envvar ;;
1361
1362   *)
1363     # FIXME: should be removed in autoconf 3.0.
1364     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1368     ;;
1369
1370   esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375   as_fn_error $? "missing argument to $ac_option"
1376 fi
1377
1378 if test -n "$ac_unrecognized_opts"; then
1379   case $enable_option_checking in
1380     no) ;;
1381     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1382     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383   esac
1384 fi
1385
1386 # Check all directory arguments for consistency.
1387 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388                 datadir sysconfdir sharedstatedir localstatedir includedir \
1389                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390                 libdir localedir mandir runstatedir
1391 do
1392   eval ac_val=\$$ac_var
1393   # Remove trailing slashes.
1394   case $ac_val in
1395     */ )
1396       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1397       eval $ac_var=\$ac_val;;
1398   esac
1399   # Be sure to have absolute directory names.
1400   case $ac_val in
1401     [\\/$]* | ?:[\\/]* )  continue;;
1402     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1403   esac
1404   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1405 done
1406
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1410 build=$build_alias
1411 host=$host_alias
1412 target=$target_alias
1413
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416   if test "x$build_alias" = x; then
1417     cross_compiling=maybe
1418   elif test "x$build_alias" != "x$host_alias"; then
1419     cross_compiling=yes
1420   fi
1421 fi
1422
1423 ac_tool_prefix=
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425
1426 test "$silent" = yes && exec 6>/dev/null
1427
1428
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432   as_fn_error $? "working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434   as_fn_error $? "pwd does not report name of working directory"
1435
1436
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439   ac_srcdir_defaulted=yes
1440   # Try the directory containing this script, then the parent directory.
1441   ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443          X"$as_myself" : 'X\(//\)[^/]' \| \
1444          X"$as_myself" : 'X\(//\)$' \| \
1445          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448             s//\1/
1449             q
1450           }
1451           /^X\(\/\/\)[^/].*/{
1452             s//\1/
1453             q
1454           }
1455           /^X\(\/\/\)$/{
1456             s//\1/
1457             q
1458           }
1459           /^X\(\/\).*/{
1460             s//\1/
1461             q
1462           }
1463           s/.*/./; q'`
1464   srcdir=$ac_confdir
1465   if test ! -r "$srcdir/$ac_unique_file"; then
1466     srcdir=..
1467   fi
1468 else
1469   ac_srcdir_defaulted=no
1470 fi
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1474 fi
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476 ac_abs_confdir=`(
1477         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1478         pwd)`
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481   srcdir=.
1482 fi
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1486 case $srcdir in
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488 esac
1489 for ac_var in $ac_precious_vars; do
1490   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491   eval ac_env_${ac_var}_value=\$${ac_var}
1492   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 done
1495
1496 #
1497 # Report the --help message.
1498 #
1499 if test "$ac_init_help" = "long"; then
1500   # Omit some internal or obsolete options to make the list less imposing.
1501   # This message is too long to be a string in the A/UX 3.1 sh.
1502   cat <<_ACEOF
1503 \`configure' configures HarfBuzz 8.2.2 to adapt to many kinds of systems.
1504
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1506
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE.  See below for descriptions of some of the useful variables.
1509
1510 Defaults for the options are specified in brackets.
1511
1512 Configuration:
1513   -h, --help              display this help and exit
1514       --help=short        display options specific to this package
1515       --help=recursive    display the short help of all the included packages
1516   -V, --version           display version information and exit
1517   -q, --quiet, --silent   do not print \`checking ...' messages
1518       --cache-file=FILE   cache test results in FILE [disabled]
1519   -C, --config-cache      alias for \`--cache-file=config.cache'
1520   -n, --no-create         do not create output files
1521       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1522
1523 Installation directories:
1524   --prefix=PREFIX         install architecture-independent files in PREFIX
1525                           [$ac_default_prefix]
1526   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1527                           [PREFIX]
1528
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1533
1534 For better control, use the options below.
1535
1536 Fine tuning of the installation directories:
1537   --bindir=DIR            user executables [EPREFIX/bin]
1538   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1539   --libexecdir=DIR        program executables [EPREFIX/libexec]
1540   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1541   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1542   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1543   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1544   --libdir=DIR            object code libraries [EPREFIX/lib]
1545   --includedir=DIR        C header files [PREFIX/include]
1546   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1547   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1548   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1549   --infodir=DIR           info documentation [DATAROOTDIR/info]
1550   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1551   --mandir=DIR            man documentation [DATAROOTDIR/man]
1552   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1553   --htmldir=DIR           html documentation [DOCDIR]
1554   --dvidir=DIR            dvi documentation [DOCDIR]
1555   --pdfdir=DIR            pdf documentation [DOCDIR]
1556   --psdir=DIR             ps documentation [DOCDIR]
1557 _ACEOF
1558
1559   cat <<\_ACEOF
1560
1561 Program names:
1562   --program-prefix=PREFIX            prepend PREFIX to installed program names
1563   --program-suffix=SUFFIX            append SUFFIX to installed program names
1564   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1565
1566 System types:
1567   --build=BUILD     configure for building on BUILD [guessed]
1568   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1569 _ACEOF
1570 fi
1571
1572 if test -n "$ac_init_help"; then
1573   case $ac_init_help in
1574      short | recursive ) echo "Configuration of HarfBuzz 8.2.2:";;
1575    esac
1576   cat <<\_ACEOF
1577
1578 Optional Features:
1579   --disable-option-checking  ignore unrecognized --enable/--with options
1580   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1581   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1582   --enable-silent-rules   less verbose build output (undo: "make V=1")
1583   --disable-silent-rules  verbose build output (undo: "make V=0")
1584   --enable-code-coverage  Whether to enable code coverage support
1585   --enable-dependency-tracking
1586                           do not reject slow dependency extractors
1587   --disable-dependency-tracking
1588                           speeds up one-time build
1589   --enable-static[=PKGS]  build static libraries [default=no]
1590   --enable-shared[=PKGS]  build shared libraries [default=yes]
1591   --enable-fast-install[=PKGS]
1592                           optimize for fast installation [default=yes]
1593   --disable-libtool-lock  avoid locking (might break parallel builds)
1594   --disable-largefile     omit support for large files
1595   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1596   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1597   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1598   --enable-introspection=[no/auto/yes]
1599                           Enable introspection for this build
1600
1601 Optional Packages:
1602   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1603   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1604   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1605   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1606                           both]
1607   --with-aix-soname=aix|svr4|both
1608                           shared library versioning (aka "SONAME") variant to
1609                           provide on AIX, [default=aix].
1610   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1611   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1612                           compiler's sysroot if not specified).
1613   --with-libstdc++=[yes/no]
1614                           Allow linking with libstdc++ [default=no]
1615   --with-html-dir=PATH    path to installed docs
1616   --with-glib=[yes/no/auto]
1617                           Use glib [default=auto]
1618   --with-gobject=[yes/no/auto]
1619                           Use gobject [default=no]
1620   --with-cairo=[yes/no/auto]
1621                           Use cairo [default=auto]
1622   --with-chafa=[yes/no/auto]
1623                           Use chafa [default=auto]
1624   --with-icu=[yes/no/builtin/auto]
1625                           Use ICU [default=auto]
1626   --with-graphite2=[yes/no/auto]
1627                           Use the graphite2 library [default=no]
1628   --with-freetype=[yes/no/auto]
1629                           Use the FreeType library [default=auto]
1630   --with-uniscribe=[yes/no/auto]
1631                           Use the Uniscribe library [default=no]
1632   --with-gdi=[yes/no/auto]
1633                           Provide GDI integration helpers [default=no]
1634   --with-directwrite=[yes/no/auto]
1635                           Use the DirectWrite library (experimental)
1636                           [default=no]
1637   --with-coretext=[yes/no/auto]
1638                           Use CoreText [default=no]
1639   --with-wasm=[yes/no/auto]
1640                           Use the wasm-micro-runtime library [default=no]
1641
1642 Some influential environment variables:
1643   CC          C compiler command
1644   CFLAGS      C compiler flags
1645   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1646               nonstandard directory <lib dir>
1647   LIBS        libraries to pass to the linker, e.g. -l<library>
1648   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649               you have headers in a nonstandard directory <include dir>
1650   LT_SYS_LIBRARY_PATH
1651               User-defined run-time library search path.
1652   CPP         C preprocessor
1653   CXX         C++ compiler command
1654   CXXFLAGS    C++ compiler flags
1655   CXXCPP      C++ preprocessor
1656   PKG_CONFIG  path to pkg-config utility
1657   PKG_CONFIG_PATH
1658               directories to add to pkg-config's search path
1659   PKG_CONFIG_LIBDIR
1660               path overriding pkg-config's built-in search path
1661   GTKDOC_DEPS_CFLAGS
1662               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1663   GTKDOC_DEPS_LIBS
1664               linker flags for GTKDOC_DEPS, overriding pkg-config
1665   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1666   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1667   GOBJECT_CFLAGS
1668               C compiler flags for GOBJECT, overriding pkg-config
1669   GOBJECT_LIBS
1670               linker flags for GOBJECT, overriding pkg-config
1671   CAIRO_CFLAGS
1672               C compiler flags for CAIRO, overriding pkg-config
1673   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1674   CAIRO_FT_CFLAGS
1675               C compiler flags for CAIRO_FT, overriding pkg-config
1676   CAIRO_FT_LIBS
1677               linker flags for CAIRO_FT, overriding pkg-config
1678   CHAFA_CFLAGS
1679               C compiler flags for CHAFA, overriding pkg-config
1680   CHAFA_LIBS  linker flags for CHAFA, overriding pkg-config
1681   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1682   ICU_LIBS    linker flags for ICU, overriding pkg-config
1683   GRAPHITE2_CFLAGS
1684               C compiler flags for GRAPHITE2, overriding pkg-config
1685   GRAPHITE2_LIBS
1686               linker flags for GRAPHITE2, overriding pkg-config
1687   FREETYPE_CFLAGS
1688               C compiler flags for FREETYPE, overriding pkg-config
1689   FREETYPE_LIBS
1690               linker flags for FREETYPE, overriding pkg-config
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1696 HarfBuzz home page: <http://harfbuzz.org/>.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702   # If there are subdirs, report their specific --help.
1703   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704     test -d "$ac_dir" ||
1705       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706       continue
1707     ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713   # A ".." for each directory in $ac_dir_suffix.
1714   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715   case $ac_top_builddir_sub in
1716   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718   esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726   .)  # We are building in place.
1727     ac_srcdir=.
1728     ac_top_srcdir=$ac_top_builddir_sub
1729     ac_abs_top_srcdir=$ac_pwd ;;
1730   [\\/]* | ?:[\\/]* )  # Absolute name.
1731     ac_srcdir=$srcdir$ac_dir_suffix;
1732     ac_top_srcdir=$srcdir
1733     ac_abs_top_srcdir=$srcdir ;;
1734   *) # Relative name.
1735     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736     ac_top_srcdir=$ac_top_build_prefix$srcdir
1737     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741     cd "$ac_dir" || { ac_status=$?; continue; }
1742     # Check for guested configure.
1743     if test -f "$ac_srcdir/configure.gnu"; then
1744       echo &&
1745       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746     elif test -f "$ac_srcdir/configure"; then
1747       echo &&
1748       $SHELL "$ac_srcdir/configure" --help=recursive
1749     else
1750       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751     fi || ac_status=$?
1752     cd "$ac_pwd" || { ac_status=$?; break; }
1753   done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758   cat <<\_ACEOF
1759 HarfBuzz configure 8.2.2
1760 generated by GNU Autoconf 2.69
1761
1762 Copyright (C) 2012 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766   exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   rm -f conftest.$ac_objext
1780   if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_compile") 2>conftest.err
1788   ac_status=$?
1789   if test -s conftest.err; then
1790     grep -v '^ *+' conftest.err >conftest.er1
1791     cat conftest.er1 >&5
1792     mv -f conftest.er1 conftest.err
1793   fi
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; } && {
1796          test -z "$ac_c_werror_flag" ||
1797          test ! -s conftest.err
1798        } && test -s conftest.$ac_objext; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804         ac_retval=1
1805 fi
1806   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807   as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_c_try_link LINENO
1812 # -----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_link ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   rm -f conftest.$ac_objext conftest$ac_exeext
1818   if { { ac_try="$ac_link"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_link") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && {
1834          test -z "$ac_c_werror_flag" ||
1835          test ! -s conftest.err
1836        } && test -s conftest$ac_exeext && {
1837          test "$cross_compiling" = yes ||
1838          test -x conftest$ac_exeext
1839        }; then :
1840   ac_retval=0
1841 else
1842   $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845         ac_retval=1
1846 fi
1847   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849   # interfere with the next link command; also delete a directory that is
1850   # left behind by Apple's compiler.  We do this before executing the actions.
1851   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853   as_fn_set_status $ac_retval
1854
1855 } # ac_fn_c_try_link
1856
1857 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1858 # -------------------------------------------------------
1859 # Tests whether HEADER exists and can be compiled using the include files in
1860 # INCLUDES, setting the cache variable VAR accordingly.
1861 ac_fn_c_check_header_compile ()
1862 {
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867   $as_echo_n "(cached) " >&6
1868 else
1869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h.  */
1871 $4
1872 #include <$2>
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1875   eval "$3=yes"
1876 else
1877   eval "$3=no"
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 fi
1881 eval ac_res=\$$3
1882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_header_compile
1887
1888 # ac_fn_c_try_cpp LINENO
1889 # ----------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_c_try_cpp ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 case "(($ac_try" in
1896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897   *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902   ac_status=$?
1903   if test -s conftest.err; then
1904     grep -v '^ *+' conftest.err >conftest.er1
1905     cat conftest.er1 >&5
1906     mv -f conftest.er1 conftest.err
1907   fi
1908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909   test $ac_status = 0; } > conftest.i && {
1910          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911          test ! -s conftest.err
1912        }; then :
1913   ac_retval=0
1914 else
1915   $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918     ac_retval=1
1919 fi
1920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921   as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_cpp
1924
1925 # ac_fn_c_try_run LINENO
1926 # ----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1928 # that executables *can* be run.
1929 ac_fn_c_try_run ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_link") 2>&5
1940   ac_status=$?
1941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1943   { { case "(($ac_try" in
1944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945   *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949   (eval "$ac_try") 2>&5
1950   ac_status=$?
1951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952   test $ac_status = 0; }; }; then :
1953   ac_retval=0
1954 else
1955   $as_echo "$as_me: program exited with status $ac_status" >&5
1956        $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959        ac_retval=$ac_status
1960 fi
1961   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963   as_fn_set_status $ac_retval
1964
1965 } # ac_fn_c_try_run
1966
1967 # ac_fn_c_check_func LINENO FUNC VAR
1968 # ----------------------------------
1969 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1970 ac_fn_c_check_func ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976   $as_echo_n "(cached) " >&6
1977 else
1978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1982 #define $2 innocuous_$2
1983
1984 /* System header to define __stub macros and hopefully few prototypes,
1985     which can conflict with char $2 (); below.
1986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1987     <limits.h> exists even on freestanding compilers.  */
1988
1989 #ifdef __STDC__
1990 # include <limits.h>
1991 #else
1992 # include <assert.h>
1993 #endif
1994
1995 #undef $2
1996
1997 /* Override any GCC internal prototype to avoid an error.
1998    Use char because int might match the return type of a GCC
1999    builtin and then its argument prototype would still apply.  */
2000 #ifdef __cplusplus
2001 extern "C"
2002 #endif
2003 char $2 ();
2004 /* The GNU C library defines this for functions which it implements
2005     to always fail with ENOSYS.  Some functions are actually named
2006     something starting with __ and the normal name is an alias.  */
2007 #if defined __stub_$2 || defined __stub___$2
2008 choke me
2009 #endif
2010
2011 int
2012 main ()
2013 {
2014 return $2 ();
2015   ;
2016   return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_link "$LINENO"; then :
2020   eval "$3=yes"
2021 else
2022   eval "$3=no"
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext \
2025     conftest$ac_exeext conftest.$ac_ext
2026 fi
2027 eval ac_res=\$$3
2028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032 } # ac_fn_c_check_func
2033
2034 # ac_fn_cxx_try_compile LINENO
2035 # ----------------------------
2036 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2037 ac_fn_cxx_try_compile ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   rm -f conftest.$ac_objext
2041   if { { ac_try="$ac_compile"
2042 case "(($ac_try" in
2043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044   *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048   (eval "$ac_compile") 2>conftest.err
2049   ac_status=$?
2050   if test -s conftest.err; then
2051     grep -v '^ *+' conftest.err >conftest.er1
2052     cat conftest.er1 >&5
2053     mv -f conftest.er1 conftest.err
2054   fi
2055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056   test $ac_status = 0; } && {
2057          test -z "$ac_cxx_werror_flag" ||
2058          test ! -s conftest.err
2059        } && test -s conftest.$ac_objext; then :
2060   ac_retval=0
2061 else
2062   $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065         ac_retval=1
2066 fi
2067   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068   as_fn_set_status $ac_retval
2069
2070 } # ac_fn_cxx_try_compile
2071
2072 # ac_fn_cxx_try_cpp LINENO
2073 # ------------------------
2074 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2075 ac_fn_cxx_try_cpp ()
2076 {
2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078   if { { ac_try="$ac_cpp conftest.$ac_ext"
2079 case "(($ac_try" in
2080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081   *) ac_try_echo=$ac_try;;
2082 esac
2083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2084 $as_echo "$ac_try_echo"; } >&5
2085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2086   ac_status=$?
2087   if test -s conftest.err; then
2088     grep -v '^ *+' conftest.err >conftest.er1
2089     cat conftest.er1 >&5
2090     mv -f conftest.er1 conftest.err
2091   fi
2092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2093   test $ac_status = 0; } > conftest.i && {
2094          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2095          test ! -s conftest.err
2096        }; then :
2097   ac_retval=0
2098 else
2099   $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102     ac_retval=1
2103 fi
2104   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105   as_fn_set_status $ac_retval
2106
2107 } # ac_fn_cxx_try_cpp
2108
2109 # ac_fn_cxx_try_link LINENO
2110 # -------------------------
2111 # Try to link conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_cxx_try_link ()
2113 {
2114   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115   rm -f conftest.$ac_objext conftest$ac_exeext
2116   if { { ac_try="$ac_link"
2117 case "(($ac_try" in
2118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119   *) ac_try_echo=$ac_try;;
2120 esac
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123   (eval "$ac_link") 2>conftest.err
2124   ac_status=$?
2125   if test -s conftest.err; then
2126     grep -v '^ *+' conftest.err >conftest.er1
2127     cat conftest.er1 >&5
2128     mv -f conftest.er1 conftest.err
2129   fi
2130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131   test $ac_status = 0; } && {
2132          test -z "$ac_cxx_werror_flag" ||
2133          test ! -s conftest.err
2134        } && test -s conftest$ac_exeext && {
2135          test "$cross_compiling" = yes ||
2136          test -x conftest$ac_exeext
2137        }; then :
2138   ac_retval=0
2139 else
2140   $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143         ac_retval=1
2144 fi
2145   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2146   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2147   # interfere with the next link command; also delete a directory that is
2148   # left behind by Apple's compiler.  We do this before executing the actions.
2149   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2150   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151   as_fn_set_status $ac_retval
2152
2153 } # ac_fn_cxx_try_link
2154
2155 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2156 # -------------------------------------------------------
2157 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2158 # the include files in INCLUDES and setting the cache variable VAR
2159 # accordingly.
2160 ac_fn_c_check_header_mongrel ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   if eval \${$3+:} false; then :
2164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165 $as_echo_n "checking for $2... " >&6; }
2166 if eval \${$3+:} false; then :
2167   $as_echo_n "(cached) " >&6
2168 fi
2169 eval ac_res=\$$3
2170                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 else
2173   # Is the header compilable?
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2175 $as_echo_n "checking $2 usability... " >&6; }
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h.  */
2178 $4
2179 #include <$2>
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182   ac_header_compiler=yes
2183 else
2184   ac_header_compiler=no
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2188 $as_echo "$ac_header_compiler" >&6; }
2189
2190 # Is the header present?
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2192 $as_echo_n "checking $2 presence... " >&6; }
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h.  */
2195 #include <$2>
2196 _ACEOF
2197 if ac_fn_c_try_cpp "$LINENO"; then :
2198   ac_header_preproc=yes
2199 else
2200   ac_header_preproc=no
2201 fi
2202 rm -f conftest.err conftest.i conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2204 $as_echo "$ac_header_preproc" >&6; }
2205
2206 # So?  What about this header?
2207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2208   yes:no: )
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2210 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2211     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2212 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213     ;;
2214   no:yes:* )
2215     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2216 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2217     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2218 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2220 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2221     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2222 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2223     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2225 ( $as_echo "## -------------------------------------------------------------- ##
2226 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2227 ## -------------------------------------------------------------- ##"
2228      ) | sed "s/^/$as_me: WARNING:     /" >&2
2229     ;;
2230 esac
2231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if eval \${$3+:} false; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   eval "$3=\$ac_header_compiler"
2237 fi
2238 eval ac_res=\$$3
2239                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 fi
2242   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243
2244 } # ac_fn_c_check_header_mongrel
2245
2246 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2247 # --------------------------------------------
2248 # Tries to find the compile-time value of EXPR in a program that includes
2249 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2250 # computed
2251 ac_fn_c_compute_int ()
2252 {
2253   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254   if test "$cross_compiling" = yes; then
2255     # Depending upon the size, compute the lo and hi bounds.
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h.  */
2258 $4
2259 int
2260 main ()
2261 {
2262 static int test_array [1 - 2 * !(($2) >= 0)];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_lo=0 ac_mid=0
2272   while :; do
2273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $4
2276 int
2277 main ()
2278 {
2279 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2280 test_array [0] = 0;
2281 return test_array [0];
2282
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288   ac_hi=$ac_mid; break
2289 else
2290   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2291                         if test $ac_lo -le $ac_mid; then
2292                           ac_lo= ac_hi=
2293                           break
2294                         fi
2295                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298   done
2299 else
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $4
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($2) < 0)];
2307 test_array [0] = 0;
2308 return test_array [0];
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315   ac_hi=-1 ac_mid=-1
2316   while :; do
2317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h.  */
2319 $4
2320 int
2321 main ()
2322 {
2323 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2324 test_array [0] = 0;
2325 return test_array [0];
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332   ac_lo=$ac_mid; break
2333 else
2334   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2335                         if test $ac_mid -le $ac_hi; then
2336                           ac_lo= ac_hi=
2337                           break
2338                         fi
2339                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2340 fi
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342   done
2343 else
2344   ac_lo= ac_hi=
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 # Binary search between lo and hi bounds.
2350 while test "x$ac_lo" != "x$ac_hi"; do
2351   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h.  */
2354 $4
2355 int
2356 main ()
2357 {
2358 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2359 test_array [0] = 0;
2360 return test_array [0];
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367   ac_hi=$ac_mid
2368 else
2369   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 done
2373 case $ac_lo in #((
2374 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2375 '') ac_retval=1 ;;
2376 esac
2377   else
2378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h.  */
2380 $4
2381 static long int longval () { return $2; }
2382 static unsigned long int ulongval () { return $2; }
2383 #include <stdio.h>
2384 #include <stdlib.h>
2385 int
2386 main ()
2387 {
2388
2389   FILE *f = fopen ("conftest.val", "w");
2390   if (! f)
2391     return 1;
2392   if (($2) < 0)
2393     {
2394       long int i = longval ();
2395       if (i != ($2))
2396         return 1;
2397       fprintf (f, "%ld", i);
2398     }
2399   else
2400     {
2401       unsigned long int i = ulongval ();
2402       if (i != ($2))
2403         return 1;
2404       fprintf (f, "%lu", i);
2405     }
2406   /* Do not output a trailing newline, as this causes \r\n confusion
2407      on some platforms.  */
2408   return ferror (f) || fclose (f) != 0;
2409
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 if ac_fn_c_try_run "$LINENO"; then :
2415   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2416 else
2417   ac_retval=1
2418 fi
2419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2420   conftest.$ac_objext conftest.beam conftest.$ac_ext
2421 rm -f conftest.val
2422
2423   fi
2424   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425   as_fn_set_status $ac_retval
2426
2427 } # ac_fn_c_compute_int
2428
2429 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2430 # ---------------------------------------------------------
2431 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2432 # the include files in INCLUDES and setting the cache variable VAR
2433 # accordingly.
2434 ac_fn_cxx_check_header_mongrel ()
2435 {
2436   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437   if eval \${$3+:} false; then :
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if eval \${$3+:} false; then :
2441   $as_echo_n "(cached) " >&6
2442 fi
2443 eval ac_res=\$$3
2444                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 else
2447   # Is the header compilable?
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2449 $as_echo_n "checking $2 usability... " >&6; }
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h.  */
2452 $4
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2456   ac_header_compiler=yes
2457 else
2458   ac_header_compiler=no
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2462 $as_echo "$ac_header_compiler" >&6; }
2463
2464 # Is the header present?
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2466 $as_echo_n "checking $2 presence... " >&6; }
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h.  */
2469 #include <$2>
2470 _ACEOF
2471 if ac_fn_cxx_try_cpp "$LINENO"; then :
2472   ac_header_preproc=yes
2473 else
2474   ac_header_preproc=no
2475 fi
2476 rm -f conftest.err conftest.i conftest.$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2478 $as_echo "$ac_header_preproc" >&6; }
2479
2480 # So?  What about this header?
2481 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2482   yes:no: )
2483     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2484 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2485     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2486 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2487     ;;
2488   no:yes:* )
2489     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2490 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2491     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2492 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2493     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2494 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2495     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2496 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2497     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2498 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2499 ( $as_echo "## -------------------------------------------------------------- ##
2500 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2501 ## -------------------------------------------------------------- ##"
2502      ) | sed "s/^/$as_me: WARNING:     /" >&2
2503     ;;
2504 esac
2505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if eval \${$3+:} false; then :
2508   $as_echo_n "(cached) " >&6
2509 else
2510   eval "$3=\$ac_header_compiler"
2511 fi
2512 eval ac_res=\$$3
2513                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514 $as_echo "$ac_res" >&6; }
2515 fi
2516   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517
2518 } # ac_fn_cxx_check_header_mongrel
2519
2520 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2521 # -------------------------------------------
2522 # Tests whether TYPE exists after having included INCLUDES, setting cache
2523 # variable VAR accordingly.
2524 ac_fn_c_check_type ()
2525 {
2526   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if eval \${$3+:} false; then :
2530   $as_echo_n "(cached) " >&6
2531 else
2532   eval "$3=no"
2533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h.  */
2535 $4
2536 int
2537 main ()
2538 {
2539 if (sizeof ($2))
2540          return 0;
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"; then :
2546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548 $4
2549 int
2550 main ()
2551 {
2552 if (sizeof (($2)))
2553             return 0;
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_c_try_compile "$LINENO"; then :
2559
2560 else
2561   eval "$3=yes"
2562 fi
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 fi
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 fi
2567 eval ac_res=\$$3
2568                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571
2572 } # ac_fn_c_check_type
2573 cat >config.log <<_ACEOF
2574 This file contains any messages produced by compilers while
2575 running configure, to aid debugging if configure makes a mistake.
2576
2577 It was created by HarfBuzz $as_me 8.2.2, which was
2578 generated by GNU Autoconf 2.69.  Invocation command line was
2579
2580   $ $0 $@
2581
2582 _ACEOF
2583 exec 5>>config.log
2584 {
2585 cat <<_ASUNAME
2586 ## --------- ##
2587 ## Platform. ##
2588 ## --------- ##
2589
2590 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2591 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2592 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2593 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2594 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2595
2596 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2597 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2598
2599 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2600 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2601 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2602 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2603 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2604 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2605 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2606
2607 _ASUNAME
2608
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614     $as_echo "PATH: $as_dir"
2615   done
2616 IFS=$as_save_IFS
2617
2618 } >&5
2619
2620 cat >&5 <<_ACEOF
2621
2622
2623 ## ----------- ##
2624 ## Core tests. ##
2625 ## ----------- ##
2626
2627 _ACEOF
2628
2629
2630 # Keep a trace of the command line.
2631 # Strip out --no-create and --no-recursion so they do not pile up.
2632 # Strip out --silent because we don't want to record it for future runs.
2633 # Also quote any args containing shell meta-characters.
2634 # Make two passes to allow for proper duplicate-argument suppression.
2635 ac_configure_args=
2636 ac_configure_args0=
2637 ac_configure_args1=
2638 ac_must_keep_next=false
2639 for ac_pass in 1 2
2640 do
2641   for ac_arg
2642   do
2643     case $ac_arg in
2644     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2645     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2646     | -silent | --silent | --silen | --sile | --sil)
2647       continue ;;
2648     *\'*)
2649       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2650     esac
2651     case $ac_pass in
2652     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2653     2)
2654       as_fn_append ac_configure_args1 " '$ac_arg'"
2655       if test $ac_must_keep_next = true; then
2656         ac_must_keep_next=false # Got value, back to normal.
2657       else
2658         case $ac_arg in
2659           *=* | --config-cache | -C | -disable-* | --disable-* \
2660           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2661           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2662           | -with-* | --with-* | -without-* | --without-* | --x)
2663             case "$ac_configure_args0 " in
2664               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2665             esac
2666             ;;
2667           -* ) ac_must_keep_next=true ;;
2668         esac
2669       fi
2670       as_fn_append ac_configure_args " '$ac_arg'"
2671       ;;
2672     esac
2673   done
2674 done
2675 { ac_configure_args0=; unset ac_configure_args0;}
2676 { ac_configure_args1=; unset ac_configure_args1;}
2677
2678 # When interrupted or exit'd, cleanup temporary files, and complete
2679 # config.log.  We remove comments because anyway the quotes in there
2680 # would cause problems or look ugly.
2681 # WARNING: Use '\'' to represent an apostrophe within the trap.
2682 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2683 trap 'exit_status=$?
2684   # Save into config.log some information that might help in debugging.
2685   {
2686     echo
2687
2688     $as_echo "## ---------------- ##
2689 ## Cache variables. ##
2690 ## ---------------- ##"
2691     echo
2692     # The following way of writing the cache mishandles newlines in values,
2693 (
2694   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2695     eval ac_val=\$$ac_var
2696     case $ac_val in #(
2697     *${as_nl}*)
2698       case $ac_var in #(
2699       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2701       esac
2702       case $ac_var in #(
2703       _ | IFS | as_nl) ;; #(
2704       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2705       *) { eval $ac_var=; unset $ac_var;} ;;
2706       esac ;;
2707     esac
2708   done
2709   (set) 2>&1 |
2710     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2711     *${as_nl}ac_space=\ *)
2712       sed -n \
2713         "s/'\''/'\''\\\\'\'''\''/g;
2714           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2715       ;; #(
2716     *)
2717       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2718       ;;
2719     esac |
2720     sort
2721 )
2722     echo
2723
2724     $as_echo "## ----------------- ##
2725 ## Output variables. ##
2726 ## ----------------- ##"
2727     echo
2728     for ac_var in $ac_subst_vars
2729     do
2730       eval ac_val=\$$ac_var
2731       case $ac_val in
2732       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2733       esac
2734       $as_echo "$ac_var='\''$ac_val'\''"
2735     done | sort
2736     echo
2737
2738     if test -n "$ac_subst_files"; then
2739       $as_echo "## ------------------- ##
2740 ## File substitutions. ##
2741 ## ------------------- ##"
2742       echo
2743       for ac_var in $ac_subst_files
2744       do
2745         eval ac_val=\$$ac_var
2746         case $ac_val in
2747         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2748         esac
2749         $as_echo "$ac_var='\''$ac_val'\''"
2750       done | sort
2751       echo
2752     fi
2753
2754     if test -s confdefs.h; then
2755       $as_echo "## ----------- ##
2756 ## confdefs.h. ##
2757 ## ----------- ##"
2758       echo
2759       cat confdefs.h
2760       echo
2761     fi
2762     test "$ac_signal" != 0 &&
2763       $as_echo "$as_me: caught signal $ac_signal"
2764     $as_echo "$as_me: exit $exit_status"
2765   } >&5
2766   rm -f core *.core core.conftest.* &&
2767     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2768     exit $exit_status
2769 ' 0
2770 for ac_signal in 1 2 13 15; do
2771   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2772 done
2773 ac_signal=0
2774
2775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2776 rm -f -r conftest* confdefs.h
2777
2778 $as_echo "/* confdefs.h */" > confdefs.h
2779
2780 # Predefined preprocessor variables.
2781
2782 cat >>confdefs.h <<_ACEOF
2783 #define PACKAGE_NAME "$PACKAGE_NAME"
2784 _ACEOF
2785
2786 cat >>confdefs.h <<_ACEOF
2787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2788 _ACEOF
2789
2790 cat >>confdefs.h <<_ACEOF
2791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2792 _ACEOF
2793
2794 cat >>confdefs.h <<_ACEOF
2795 #define PACKAGE_STRING "$PACKAGE_STRING"
2796 _ACEOF
2797
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2800 _ACEOF
2801
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_URL "$PACKAGE_URL"
2804 _ACEOF
2805
2806
2807 # Let the site file select an alternate cache file if it wants to.
2808 # Prefer an explicitly selected file to automatically selected ones.
2809 ac_site_file1=NONE
2810 ac_site_file2=NONE
2811 if test -n "$CONFIG_SITE"; then
2812   # We do not want a PATH search for config.site.
2813   case $CONFIG_SITE in #((
2814     -*)  ac_site_file1=./$CONFIG_SITE;;
2815     */*) ac_site_file1=$CONFIG_SITE;;
2816     *)   ac_site_file1=./$CONFIG_SITE;;
2817   esac
2818 elif test "x$prefix" != xNONE; then
2819   ac_site_file1=$prefix/share/config.site
2820   ac_site_file2=$prefix/etc/config.site
2821 else
2822   ac_site_file1=$ac_default_prefix/share/config.site
2823   ac_site_file2=$ac_default_prefix/etc/config.site
2824 fi
2825 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2826 do
2827   test "x$ac_site_file" = xNONE && continue
2828   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2829     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2830 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2831     sed 's/^/| /' "$ac_site_file" >&5
2832     . "$ac_site_file" \
2833       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 as_fn_error $? "failed to load site script $ac_site_file
2836 See \`config.log' for more details" "$LINENO" 5; }
2837   fi
2838 done
2839
2840 if test -r "$cache_file"; then
2841   # Some versions of bash will fail to source /dev/null (special files
2842   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2843   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2844     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2845 $as_echo "$as_me: loading cache $cache_file" >&6;}
2846     case $cache_file in
2847       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2848       *)                      . "./$cache_file";;
2849     esac
2850   fi
2851 else
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2853 $as_echo "$as_me: creating cache $cache_file" >&6;}
2854   >$cache_file
2855 fi
2856
2857 # Check that the precious variables saved in the cache have kept the same
2858 # value.
2859 ac_cache_corrupted=false
2860 for ac_var in $ac_precious_vars; do
2861   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2862   eval ac_new_set=\$ac_env_${ac_var}_set
2863   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2864   eval ac_new_val=\$ac_env_${ac_var}_value
2865   case $ac_old_set,$ac_new_set in
2866     set,)
2867       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2868 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2869       ac_cache_corrupted=: ;;
2870     ,set)
2871       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2872 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2873       ac_cache_corrupted=: ;;
2874     ,);;
2875     *)
2876       if test "x$ac_old_val" != "x$ac_new_val"; then
2877         # differences in whitespace do not lead to failure.
2878         ac_old_val_w=`echo x $ac_old_val`
2879         ac_new_val_w=`echo x $ac_new_val`
2880         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2881           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2882 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2883           ac_cache_corrupted=:
2884         else
2885           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2886 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2887           eval $ac_var=\$ac_old_val
2888         fi
2889         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2890 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2891         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2892 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2893       fi;;
2894   esac
2895   # Pass precious variables to config.status.
2896   if test "$ac_new_set" = set; then
2897     case $ac_new_val in
2898     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2899     *) ac_arg=$ac_var=$ac_new_val ;;
2900     esac
2901     case " $ac_configure_args " in
2902       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2903       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2904     esac
2905   fi
2906 done
2907 if $ac_cache_corrupted; then
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2911 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2912   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2913 fi
2914 ## -------------------- ##
2915 ## Main body of script. ##
2916 ## -------------------- ##
2917
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924
2925
2926
2927
2928 ac_config_headers="$ac_config_headers config.h"
2929
2930
2931 am__api_version='1.16'
2932
2933 ac_aux_dir=
2934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2935   if test -f "$ac_dir/install-sh"; then
2936     ac_aux_dir=$ac_dir
2937     ac_install_sh="$ac_aux_dir/install-sh -c"
2938     break
2939   elif test -f "$ac_dir/install.sh"; then
2940     ac_aux_dir=$ac_dir
2941     ac_install_sh="$ac_aux_dir/install.sh -c"
2942     break
2943   elif test -f "$ac_dir/shtool"; then
2944     ac_aux_dir=$ac_dir
2945     ac_install_sh="$ac_aux_dir/shtool install -c"
2946     break
2947   fi
2948 done
2949 if test -z "$ac_aux_dir"; then
2950   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2951 fi
2952
2953 # These three variables are undocumented and unsupported,
2954 # and are intended to be withdrawn in a future Autoconf release.
2955 # They can cause serious problems if a builder's source tree is in a directory
2956 # whose full name contains unusual characters.
2957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2960
2961
2962 # Find a good install program.  We prefer a C program (faster),
2963 # so one script is as good as another.  But avoid the broken or
2964 # incompatible versions:
2965 # SysV /etc/install, /usr/sbin/install
2966 # SunOS /usr/etc/install
2967 # IRIX /sbin/install
2968 # AIX /bin/install
2969 # AmigaOS /C/install, which installs bootblocks on floppy discs
2970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2973 # OS/2's system install, which has a completely different semantic
2974 # ./install, which can be erroneously created by make from ./install.sh.
2975 # Reject install programs that cannot install multiple files.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2977 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2978 if test -z "$INSTALL"; then
2979 if ${ac_cv_path_install+:} false; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987     # Account for people who put trailing slashes in PATH elements.
2988 case $as_dir/ in #((
2989   ./ | .// | /[cC]/* | \
2990   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2991   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2992   /usr/ucb/* ) ;;
2993   *)
2994     # OSF1 and SCO ODT 3.0 have their own names for install.
2995     # Don't use installbsd from OSF since it installs stuff as root
2996     # by default.
2997     for ac_prog in ginstall scoinst install; do
2998       for ac_exec_ext in '' $ac_executable_extensions; do
2999         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3000           if test $ac_prog = install &&
3001             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3002             # AIX install.  It has an incompatible calling convention.
3003             :
3004           elif test $ac_prog = install &&
3005             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3006             # program-specific install script used by HP pwplus--don't use.
3007             :
3008           else
3009             rm -rf conftest.one conftest.two conftest.dir
3010             echo one > conftest.one
3011             echo two > conftest.two
3012             mkdir conftest.dir
3013             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3014               test -s conftest.one && test -s conftest.two &&
3015               test -s conftest.dir/conftest.one &&
3016               test -s conftest.dir/conftest.two
3017             then
3018               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3019               break 3
3020             fi
3021           fi
3022         fi
3023       done
3024     done
3025     ;;
3026 esac
3027
3028   done
3029 IFS=$as_save_IFS
3030
3031 rm -rf conftest.one conftest.two conftest.dir
3032
3033 fi
3034   if test "${ac_cv_path_install+set}" = set; then
3035     INSTALL=$ac_cv_path_install
3036   else
3037     # As a last resort, use the slow shell script.  Don't cache a
3038     # value for INSTALL within a source directory, because that will
3039     # break other packages using the cache if that directory is
3040     # removed, or if the value is a relative name.
3041     INSTALL=$ac_install_sh
3042   fi
3043 fi
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3045 $as_echo "$INSTALL" >&6; }
3046
3047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048 # It thinks the first close brace ends the variable substitution.
3049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3050
3051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052
3053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3056 $as_echo_n "checking whether build environment is sane... " >&6; }
3057 # Reject unsafe characters in $srcdir or the absolute working directory
3058 # name.  Accept space and tab only in the latter.
3059 am_lf='
3060 '
3061 case `pwd` in
3062   *[\\\"\#\$\&\'\`$am_lf]*)
3063     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3064 esac
3065 case $srcdir in
3066   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3067     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3068 esac
3069
3070 # Do 'set' in a subshell so we don't clobber the current shell's
3071 # arguments.  Must try -L first in case configure is actually a
3072 # symlink; some systems play weird games with the mod time of symlinks
3073 # (eg FreeBSD returns the mod time of the symlink's containing
3074 # directory).
3075 if (
3076    am_has_slept=no
3077    for am_try in 1 2; do
3078      echo "timestamp, slept: $am_has_slept" > conftest.file
3079      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3080      if test "$*" = "X"; then
3081         # -L didn't work.
3082         set X `ls -t "$srcdir/configure" conftest.file`
3083      fi
3084      if test "$*" != "X $srcdir/configure conftest.file" \
3085         && test "$*" != "X conftest.file $srcdir/configure"; then
3086
3087         # If neither matched, then we have a broken ls.  This can happen
3088         # if, for instance, CONFIG_SHELL is bash and it inherits a
3089         # broken ls alias from the environment.  This has actually
3090         # happened.  Such a system could not be considered "sane".
3091         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3092   alias in your environment" "$LINENO" 5
3093      fi
3094      if test "$2" = conftest.file || test $am_try -eq 2; then
3095        break
3096      fi
3097      # Just in case.
3098      sleep 1
3099      am_has_slept=yes
3100    done
3101    test "$2" = conftest.file
3102    )
3103 then
3104    # Ok.
3105    :
3106 else
3107    as_fn_error $? "newly created file is older than distributed files!
3108 Check your system clock" "$LINENO" 5
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111 $as_echo "yes" >&6; }
3112 # If we didn't sleep, we still need to ensure time stamps of config.status and
3113 # generated files are strictly newer.
3114 am_sleep_pid=
3115 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3116   ( sleep 1 ) &
3117   am_sleep_pid=$!
3118 fi
3119
3120 rm -f conftest.file
3121
3122 test "$program_prefix" != NONE &&
3123   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3124 # Use a double $ so make ignores it.
3125 test "$program_suffix" != NONE &&
3126   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3127 # Double any \ or $.
3128 # By default was `s,x,x', remove it if useless.
3129 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3130 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3131
3132 # Expand $ac_aux_dir to an absolute path.
3133 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3134
3135 if test x"${MISSING+set}" != xset; then
3136   case $am_aux_dir in
3137   *\ * | *\     *)
3138     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3139   *)
3140     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3141   esac
3142 fi
3143 # Use eval to expand $SHELL
3144 if eval "$MISSING --is-lightweight"; then
3145   am_missing_run="$MISSING "
3146 else
3147   am_missing_run=
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3149 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3150 fi
3151
3152 if test x"${install_sh+set}" != xset; then
3153   case $am_aux_dir in
3154   *\ * | *\     *)
3155     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3156   *)
3157     install_sh="\${SHELL} $am_aux_dir/install-sh"
3158   esac
3159 fi
3160
3161 # Installed binaries are usually stripped using 'strip' when the user
3162 # run "make install-strip".  However 'strip' might not be the right
3163 # tool to use in cross-compilation environments, therefore Automake
3164 # will honor the 'STRIP' environment variable to overrule this program.
3165 if test "$cross_compiling" != no; then
3166   if test -n "$ac_tool_prefix"; then
3167   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}strip; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_STRIP+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   if test -n "$STRIP"; then
3175   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182     for ac_exec_ext in '' $ac_executable_extensions; do
3183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189   done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 STRIP=$ac_cv_prog_STRIP
3195 if test -n "$STRIP"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3197 $as_echo "$STRIP" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 fi
3205 if test -z "$ac_cv_prog_STRIP"; then
3206   ac_ct_STRIP=$STRIP
3207   # Extract the first word of "strip", so it can be a program name with args.
3208 set dummy strip; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   if test -n "$ac_ct_STRIP"; then
3215   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222     for ac_exec_ext in '' $ac_executable_extensions; do
3223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224     ac_cv_prog_ac_ct_STRIP="strip"
3225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226     break 2
3227   fi
3228 done
3229   done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3235 if test -n "$ac_ct_STRIP"; then
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3237 $as_echo "$ac_ct_STRIP" >&6; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243   if test "x$ac_ct_STRIP" = x; then
3244     STRIP=":"
3245   else
3246     case $cross_compiling:$ac_tool_warned in
3247 yes:)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3251 esac
3252     STRIP=$ac_ct_STRIP
3253   fi
3254 else
3255   STRIP="$ac_cv_prog_STRIP"
3256 fi
3257
3258 fi
3259 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3260
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3262 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3263 if test -z "$MKDIR_P"; then
3264   if ${ac_cv_path_mkdir+:} false; then :
3265   $as_echo_n "(cached) " >&6
3266 else
3267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272     for ac_prog in mkdir gmkdir; do
3273          for ac_exec_ext in '' $ac_executable_extensions; do
3274            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3275            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3276              'mkdir (GNU coreutils) '* | \
3277              'mkdir (coreutils) '* | \
3278              'mkdir (fileutils) '4.1*)
3279                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3280                break 3;;
3281            esac
3282          done
3283        done
3284   done
3285 IFS=$as_save_IFS
3286
3287 fi
3288
3289   test -d ./--version && rmdir ./--version
3290   if test "${ac_cv_path_mkdir+set}" = set; then
3291     MKDIR_P="$ac_cv_path_mkdir -p"
3292   else
3293     # As a last resort, use the slow shell script.  Don't cache a
3294     # value for MKDIR_P within a source directory, because that will
3295     # break other packages using the cache if that directory is
3296     # removed, or if the value is a relative name.
3297     MKDIR_P="$ac_install_sh -d"
3298   fi
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3301 $as_echo "$MKDIR_P" >&6; }
3302
3303 for ac_prog in gawk mawk nawk awk
3304 do
3305   # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy $ac_prog; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_AWK+:} false; then :
3310   $as_echo_n "(cached) " >&6
3311 else
3312   if test -n "$AWK"; then
3313   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318   IFS=$as_save_IFS
3319   test -z "$as_dir" && as_dir=.
3320     for ac_exec_ext in '' $ac_executable_extensions; do
3321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322     ac_cv_prog_AWK="$ac_prog"
3323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324     break 2
3325   fi
3326 done
3327   done
3328 IFS=$as_save_IFS
3329
3330 fi
3331 fi
3332 AWK=$ac_cv_prog_AWK
3333 if test -n "$AWK"; then
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3335 $as_echo "$AWK" >&6; }
3336 else
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 fi
3340
3341
3342   test -n "$AWK" && break
3343 done
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3346 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3347 set x ${MAKE-make}
3348 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3349 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   cat >conftest.make <<\_ACEOF
3353 SHELL = /bin/sh
3354 all:
3355         @echo '@@@%%%=$(MAKE)=@@@%%%'
3356 _ACEOF
3357 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3358 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3359   *@@@%%%=?*=@@@%%%*)
3360     eval ac_cv_prog_make_${ac_make}_set=yes;;
3361   *)
3362     eval ac_cv_prog_make_${ac_make}_set=no;;
3363 esac
3364 rm -f conftest.make
3365 fi
3366 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3369   SET_MAKE=
3370 else
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373   SET_MAKE="MAKE=${MAKE-make}"
3374 fi
3375
3376 rm -rf .tst 2>/dev/null
3377 mkdir .tst 2>/dev/null
3378 if test -d .tst; then
3379   am__leading_dot=.
3380 else
3381   am__leading_dot=_
3382 fi
3383 rmdir .tst 2>/dev/null
3384
3385 # Check whether --enable-silent-rules was given.
3386 if test "${enable_silent_rules+set}" = set; then :
3387   enableval=$enable_silent_rules;
3388 fi
3389
3390 case $enable_silent_rules in # (((
3391   yes) AM_DEFAULT_VERBOSITY=0;;
3392    no) AM_DEFAULT_VERBOSITY=1;;
3393     *) AM_DEFAULT_VERBOSITY=1;;
3394 esac
3395 am_make=${MAKE-make}
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3397 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3398 if ${am_cv_make_support_nested_variables+:} false; then :
3399   $as_echo_n "(cached) " >&6
3400 else
3401   if $as_echo 'TRUE=$(BAR$(V))
3402 BAR0=false
3403 BAR1=true
3404 V=1
3405 am__doit:
3406         @$(TRUE)
3407 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3408   am_cv_make_support_nested_variables=yes
3409 else
3410   am_cv_make_support_nested_variables=no
3411 fi
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3414 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3415 if test $am_cv_make_support_nested_variables = yes; then
3416     AM_V='$(V)'
3417   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3418 else
3419   AM_V=$AM_DEFAULT_VERBOSITY
3420   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3421 fi
3422 AM_BACKSLASH='\'
3423
3424 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3425   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3426   # is not polluted with repeated "-I."
3427   am__isrc=' -I$(srcdir)'
3428   # test to see if srcdir already configured
3429   if test -f $srcdir/config.status; then
3430     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3431   fi
3432 fi
3433
3434 # test whether we have cygpath
3435 if test -z "$CYGPATH_W"; then
3436   if (cygpath --version) >/dev/null 2>/dev/null; then
3437     CYGPATH_W='cygpath -w'
3438   else
3439     CYGPATH_W=echo
3440   fi
3441 fi
3442
3443
3444 # Define the identity of the package.
3445  PACKAGE='harfbuzz'
3446  VERSION='8.2.2'
3447
3448
3449 # Some tools Automake needs.
3450
3451 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3452
3453
3454 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3455
3456
3457 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3458
3459
3460 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3461
3462
3463 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3464
3465 # For better backward compatibility.  To be removed once Automake 1.9.x
3466 # dies out for good.  For more background, see:
3467 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3468 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3469 mkdir_p='$(MKDIR_P)'
3470
3471 # We need awk for the "check" target (and possibly the TAP driver).  The
3472 # system "awk" is bad on some platforms.
3473 # Always define AMTAR for backward compatibility.  Yes, it's still used
3474 # in the wild :-(  We should find a proper way to deprecate it ...
3475 AMTAR='$${TAR-tar}'
3476
3477
3478 # We'll loop over all known methods to create a tar archive until one works.
3479 _am_tools='gnutar plaintar pax cpio none'
3480
3481 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3482       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3483       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3484       # and bug#13588).
3485       am_max_uid=2097151 # 2^21 - 1
3486       am_max_gid=$am_max_uid
3487       # The $UID and $GID variables are not portable, so we need to resort
3488       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3489       # below are definitely unexpected, so allow the users to see them
3490       # (that is, avoid stderr redirection).
3491       am_uid=`id -u || echo unknown`
3492       am_gid=`id -g || echo unknown`
3493       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3494 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3495       if test $am_uid -le $am_max_uid; then
3496          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3498       else
3499          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501          _am_tools=none
3502       fi
3503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3504 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3505       if test $am_gid -le $am_max_gid; then
3506          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507 $as_echo "yes" >&6; }
3508       else
3509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511         _am_tools=none
3512       fi
3513
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3515 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3516
3517   # Go ahead even if we have the value already cached.  We do so because we
3518   # need to set the values for the 'am__tar' and 'am__untar' variables.
3519   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3520
3521   for _am_tool in $_am_tools; do
3522     case $_am_tool in
3523     gnutar)
3524       for _am_tar in tar gnutar gtar; do
3525         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3526    ($_am_tar --version) >&5 2>&5
3527    ac_status=$?
3528    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529    (exit $ac_status); } && break
3530       done
3531       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3532       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3533       am__untar="$_am_tar -xf -"
3534       ;;
3535     plaintar)
3536       # Must skip GNU tar: if it does not support --format= it doesn't create
3537       # ustar tarball either.
3538       (tar --version) >/dev/null 2>&1 && continue
3539       am__tar='tar chf - "$$tardir"'
3540       am__tar_='tar chf - "$tardir"'
3541       am__untar='tar xf -'
3542       ;;
3543     pax)
3544       am__tar='pax -L -x ustar -w "$$tardir"'
3545       am__tar_='pax -L -x ustar -w "$tardir"'
3546       am__untar='pax -r'
3547       ;;
3548     cpio)
3549       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3550       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3551       am__untar='cpio -i -H ustar -d'
3552       ;;
3553     none)
3554       am__tar=false
3555       am__tar_=false
3556       am__untar=false
3557       ;;
3558     esac
3559
3560     # If the value was cached, stop now.  We just wanted to have am__tar
3561     # and am__untar set.
3562     test -n "${am_cv_prog_tar_ustar}" && break
3563
3564     # tar/untar a dummy directory, and stop if the command works.
3565     rm -rf conftest.dir
3566     mkdir conftest.dir
3567     echo GrepMe > conftest.dir/file
3568     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3569    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3570    ac_status=$?
3571    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572    (exit $ac_status); }
3573     rm -rf conftest.dir
3574     if test -s conftest.tar; then
3575       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3576    ($am__untar <conftest.tar) >&5 2>&5
3577    ac_status=$?
3578    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579    (exit $ac_status); }
3580       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3581    (cat conftest.dir/file) >&5 2>&5
3582    ac_status=$?
3583    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584    (exit $ac_status); }
3585       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3586     fi
3587   done
3588   rm -rf conftest.dir
3589
3590   if ${am_cv_prog_tar_ustar+:} false; then :
3591   $as_echo_n "(cached) " >&6
3592 else
3593   am_cv_prog_tar_ustar=$_am_tool
3594 fi
3595
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3597 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3598
3599
3600
3601
3602
3603
3604 # POSIX will say in a future version that running "rm -f" with no argument
3605 # is OK; and we want to be able to make that assumption in our Makefile
3606 # recipes.  So use an aggressive probe to check that the usage we want is
3607 # actually supported "in the wild" to an acceptable degree.
3608 # See automake bug#10828.
3609 # To make any issue more visible, cause the running configure to be aborted
3610 # by default if the 'rm' program in use doesn't match our expectations; the
3611 # user can still override this though.
3612 if rm -f && rm -fr && rm -rf; then : OK; else
3613   cat >&2 <<'END'
3614 Oops!
3615
3616 Your 'rm' program seems unable to run without file operands specified
3617 on the command line, even when the '-f' option is present.  This is contrary
3618 to the behaviour of most rm programs out there, and not conforming with
3619 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3620
3621 Please tell bug-automake@gnu.org about your system, including the value
3622 of your $PATH and any error possibly output before this message.  This
3623 can help us improve future automake versions.
3624
3625 END
3626   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3627     echo 'Configuration will proceed anyway, since you have set the' >&2
3628     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3629     echo >&2
3630   else
3631     cat >&2 <<'END'
3632 Aborting the configuration process, to ensure you take notice of the issue.
3633
3634 You can download and install GNU coreutils to get an 'rm' implementation
3635 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3636
3637 If you want to complete the configuration process using your problematic
3638 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3639 to "yes", and re-run configure.
3640
3641 END
3642     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3643   fi
3644 fi
3645
3646 # Check whether --enable-silent-rules was given.
3647 if test "${enable_silent_rules+set}" = set; then :
3648   enableval=$enable_silent_rules;
3649 fi
3650
3651 case $enable_silent_rules in # (((
3652   yes) AM_DEFAULT_VERBOSITY=0;;
3653    no) AM_DEFAULT_VERBOSITY=1;;
3654     *) AM_DEFAULT_VERBOSITY=0;;
3655 esac
3656 am_make=${MAKE-make}
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3658 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3659 if ${am_cv_make_support_nested_variables+:} false; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662   if $as_echo 'TRUE=$(BAR$(V))
3663 BAR0=false
3664 BAR1=true
3665 V=1
3666 am__doit:
3667         @$(TRUE)
3668 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3669   am_cv_make_support_nested_variables=yes
3670 else
3671   am_cv_make_support_nested_variables=no
3672 fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3675 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3676 if test $am_cv_make_support_nested_variables = yes; then
3677     AM_V='$(V)'
3678   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3679 else
3680   AM_V=$AM_DEFAULT_VERBOSITY
3681   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3682 fi
3683 AM_BACKSLASH='\'
3684
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3686 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3687 if ${ac_cv_path_SED+:} false; then :
3688   $as_echo_n "(cached) " >&6
3689 else
3690             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3691      for ac_i in 1 2 3 4 5 6 7; do
3692        ac_script="$ac_script$as_nl$ac_script"
3693      done
3694      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3695      { ac_script=; unset ac_script;}
3696      if test -z "$SED"; then
3697   ac_path_SED_found=false
3698   # Loop through the user's path and test for each of PROGNAME-LIST
3699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704     for ac_prog in sed gsed; do
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3707       as_fn_executable_p "$ac_path_SED" || continue
3708 # Check for GNU ac_path_SED and select it if it is found.
3709   # Check for GNU $ac_path_SED
3710 case `"$ac_path_SED" --version 2>&1` in
3711 *GNU*)
3712   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3713 *)
3714   ac_count=0
3715   $as_echo_n 0123456789 >"conftest.in"
3716   while :
3717   do
3718     cat "conftest.in" "conftest.in" >"conftest.tmp"
3719     mv "conftest.tmp" "conftest.in"
3720     cp "conftest.in" "conftest.nl"
3721     $as_echo '' >> "conftest.nl"
3722     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724     as_fn_arith $ac_count + 1 && ac_count=$as_val
3725     if test $ac_count -gt ${ac_path_SED_max-0}; then
3726       # Best one so far, save it but keep looking for a better one
3727       ac_cv_path_SED="$ac_path_SED"
3728       ac_path_SED_max=$ac_count
3729     fi
3730     # 10*(2^10) chars as input seems more than enough
3731     test $ac_count -gt 10 && break
3732   done
3733   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 esac
3735
3736       $ac_path_SED_found && break 3
3737     done
3738   done
3739   done
3740 IFS=$as_save_IFS
3741   if test -z "$ac_cv_path_SED"; then
3742     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3743   fi
3744 else
3745   ac_cv_path_SED=$SED
3746 fi
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3750 $as_echo "$ac_cv_path_SED" >&6; }
3751  SED="$ac_cv_path_SED"
3752   rm -f conftest.sed
3753
3754
3755
3756
3757         # allow to override gcov location
3758
3759 # Check whether --with-gcov was given.
3760 if test "${with_gcov+set}" = set; then :
3761   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3762 else
3763   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3764 fi
3765
3766
3767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3768 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3769         # Check whether --enable-code-coverage was given.
3770 if test "${enable_code_coverage+set}" = set; then :
3771   enableval=$enable_code_coverage;
3772 else
3773   enable_code_coverage=no
3774 fi
3775
3776
3777          if test x$enable_code_coverage = xyes; then
3778   CODE_COVERAGE_ENABLED_TRUE=
3779   CODE_COVERAGE_ENABLED_FALSE='#'
3780 else
3781   CODE_COVERAGE_ENABLED_TRUE='#'
3782   CODE_COVERAGE_ENABLED_FALSE=
3783 fi
3784
3785         CODE_COVERAGE_ENABLED=$enable_code_coverage
3786
3787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3788 $as_echo "$enable_code_coverage" >&6; }
3789
3790         if  test "$enable_code_coverage" = "yes" ; then :
3791
3792                 # check for gcov
3793                 if test -n "$ac_tool_prefix"; then
3794   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_GCOV+:} false; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   if test -n "$GCOV"; then
3802   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809     for ac_exec_ext in '' $ac_executable_extensions; do
3810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816   done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 GCOV=$ac_cv_prog_GCOV
3822 if test -n "$GCOV"; then
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3824 $as_echo "$GCOV" >&6; }
3825 else
3826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830
3831 fi
3832 if test -z "$ac_cv_prog_GCOV"; then
3833   ac_ct_GCOV=$GCOV
3834   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3835 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   if test -n "$ac_ct_GCOV"; then
3842   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853     break 2
3854   fi
3855 done
3856   done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3862 if test -n "$ac_ct_GCOV"; then
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3864 $as_echo "$ac_ct_GCOV" >&6; }
3865 else
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870   if test "x$ac_ct_GCOV" = x; then
3871     GCOV=":"
3872   else
3873     case $cross_compiling:$ac_tool_warned in
3874 yes:)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3877 ac_tool_warned=yes ;;
3878 esac
3879     GCOV=$ac_ct_GCOV
3880   fi
3881 else
3882   GCOV="$ac_cv_prog_GCOV"
3883 fi
3884
3885                 if test "X$GCOV" = "X:"; then :
3886   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3887 fi
3888
3889
3890                                 if  test "$GCC" = "no" ; then :
3891
3892                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3893
3894 fi
3895
3896                 # Extract the first word of "lcov", so it can be a program name with args.
3897 set dummy lcov; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if ${ac_cv_prog_LCOV+:} false; then :
3901   $as_echo_n "(cached) " >&6
3902 else
3903   if test -n "$LCOV"; then
3904   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911     for ac_exec_ext in '' $ac_executable_extensions; do
3912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913     ac_cv_prog_LCOV="lcov"
3914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918   done
3919 IFS=$as_save_IFS
3920
3921 fi
3922 fi
3923 LCOV=$ac_cv_prog_LCOV
3924 if test -n "$LCOV"; then
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3926 $as_echo "$LCOV" >&6; }
3927 else
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3930 fi
3931
3932
3933                 # Extract the first word of "genhtml", so it can be a program name with args.
3934 set dummy genhtml; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_GENHTML+:} false; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -n "$GENHTML"; then
3941   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950     ac_cv_prog_GENHTML="genhtml"
3951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955   done
3956 IFS=$as_save_IFS
3957
3958 fi
3959 fi
3960 GENHTML=$ac_cv_prog_GENHTML
3961 if test -n "$GENHTML"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3963 $as_echo "$GENHTML" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970
3971                 if  test -z "$LCOV" ; then :
3972
3973                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3974
3975 fi
3976
3977                 if  test -z "$GENHTML" ; then :
3978
3979                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3980
3981 fi
3982
3983                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3984                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3985                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3986                 CODE_COVERAGE_LIBS="-lgcov"
3987                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3988
3989
3990
3991
3992
3993
3994
3995                 CODE_COVERAGE_RULES_CHECK='
3996         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3997         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3998 '
3999                 CODE_COVERAGE_RULES_CAPTURE='
4000         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
4001         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
4002         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4003         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
4004         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4005 '
4006                 CODE_COVERAGE_RULES_CLEAN='
4007 clean: code-coverage-clean
4008 distclean: code-coverage-clean
4009 code-coverage-clean:
4010         -$(LCOV) --directory $(top_builddir) -z
4011         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4012         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4013 '
4014
4015 else
4016
4017                 CODE_COVERAGE_RULES_CHECK='
4018         @echo "Need to reconfigure with --enable-code-coverage"
4019 '
4020                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4021                 CODE_COVERAGE_RULES_CLEAN=''
4022
4023 fi
4024
4025 CODE_COVERAGE_RULES='
4026 # Code coverage
4027 #
4028 # Optional:
4029 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4030 #    Multiple directories may be specified, separated by whitespace.
4031 #    (Default: $(top_builddir))
4032 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4033 #    by lcov for code coverage. (Default:
4034 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4035 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4036 #    reports to be created. (Default:
4037 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4038 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4039 #    set to 0 to disable it and leave empty to stay with the default.
4040 #    (Default: empty)
4041 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4042 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4043 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4044 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4045 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4046 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4047 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4048 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4049 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4050 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4051 #    lcov instance. (Default: empty)
4052 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4053 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4054 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4055 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4056 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4057 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4058 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4059 #
4060 # The generated report will be titled using the $(PACKAGE_NAME) and
4061 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4062 # use the git-version-gen script, available online.
4063
4064 # Optional variables
4065 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4066 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4067 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4068 CODE_COVERAGE_BRANCH_COVERAGE ?=
4069 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4070 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4071 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4072 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4073 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4074 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4075 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4076 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4077 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4078 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4079 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4080 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4081 CODE_COVERAGE_IGNORE_PATTERN ?=
4082
4083 GITIGNOREFILES ?=
4084 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4085
4086 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4087 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4088 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4089  $(CODE_COVERAGE_OUTPUT_FILE);
4090 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4091 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4092 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4093  $(CODE_COVERAGE_IGNORE_PATTERN);
4094 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4095 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4096 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4097 code_coverage_quiet = $(code_coverage_quiet_$(V))
4098 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4099 code_coverage_quiet_0 = --quiet
4100
4101 # sanitizes the test-name: replaces with underscores: dashes and dots
4102 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4103
4104 # Use recursive makes in order to ignore errors during check
4105 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4106
4107 # Capture code coverage data
4108 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4109
4110 # Hook rule executed before code-coverage-capture, overridable by the user
4111 code-coverage-capture-hook:
4112
4113 '"$CODE_COVERAGE_RULES_CLEAN"'
4114
4115 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4116 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4117
4118 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4119 '
4120
4121
4122
4123
4124
4125 # Initialize libtool
4126 DEPDIR="${am__leading_dot}deps"
4127
4128 ac_config_commands="$ac_config_commands depfiles"
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4131 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4132 cat > confinc.mk << 'END'
4133 am__doit:
4134         @echo this is the am__doit target >confinc.out
4135 .PHONY: am__doit
4136 END
4137 am__include="#"
4138 am__quote=
4139 # BSD make does it like this.
4140 echo '.include "confinc.mk" # ignored' > confmf.BSD
4141 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4142 echo 'include confinc.mk # ignored' > confmf.GNU
4143 _am_result=no
4144 for s in GNU BSD; do
4145   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4146    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4147    ac_status=$?
4148    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149    (exit $ac_status); }
4150   case $?:`cat confinc.out 2>/dev/null` in #(
4151   '0:this is the am__doit target') :
4152     case $s in #(
4153   BSD) :
4154     am__include='.include' am__quote='"' ;; #(
4155   *) :
4156     am__include='include' am__quote='' ;;
4157 esac ;; #(
4158   *) :
4159      ;;
4160 esac
4161   if test "$am__include" != "#"; then
4162     _am_result="yes ($s style)"
4163     break
4164   fi
4165 done
4166 rm -f confinc.* confmf.*
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4168 $as_echo "${_am_result}" >&6; }
4169
4170 # Check whether --enable-dependency-tracking was given.
4171 if test "${enable_dependency_tracking+set}" = set; then :
4172   enableval=$enable_dependency_tracking;
4173 fi
4174
4175 if test "x$enable_dependency_tracking" != xno; then
4176   am_depcomp="$ac_aux_dir/depcomp"
4177   AMDEPBACKSLASH='\'
4178   am__nodep='_no'
4179 fi
4180  if test "x$enable_dependency_tracking" != xno; then
4181   AMDEP_TRUE=
4182   AMDEP_FALSE='#'
4183 else
4184   AMDEP_TRUE='#'
4185   AMDEP_FALSE=
4186 fi
4187
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 if test -n "$ac_tool_prefix"; then
4195   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_CC+:} false; then :
4200   $as_echo_n "(cached) " >&6
4201 else
4202   if test -n "$CC"; then
4203   ac_cv_prog_CC="$CC" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210     for ac_exec_ext in '' $ac_executable_extensions; do
4211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217   done
4218 IFS=$as_save_IFS
4219
4220 fi
4221 fi
4222 CC=$ac_cv_prog_CC
4223 if test -n "$CC"; then
4224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4225 $as_echo "$CC" >&6; }
4226 else
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4229 fi
4230
4231
4232 fi
4233 if test -z "$ac_cv_prog_CC"; then
4234   ac_ct_CC=$CC
4235   # Extract the first word of "gcc", so it can be a program name with args.
4236 set dummy gcc; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   if test -n "$ac_ct_CC"; then
4243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250     for ac_exec_ext in '' $ac_executable_extensions; do
4251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252     ac_cv_prog_ac_ct_CC="gcc"
4253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257   done
4258 IFS=$as_save_IFS
4259
4260 fi
4261 fi
4262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4263 if test -n "$ac_ct_CC"; then
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4265 $as_echo "$ac_ct_CC" >&6; }
4266 else
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4269 fi
4270
4271   if test "x$ac_ct_CC" = x; then
4272     CC=""
4273   else
4274     case $cross_compiling:$ac_tool_warned in
4275 yes:)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4278 ac_tool_warned=yes ;;
4279 esac
4280     CC=$ac_ct_CC
4281   fi
4282 else
4283   CC="$ac_cv_prog_CC"
4284 fi
4285
4286 if test -z "$CC"; then
4287           if test -n "$ac_tool_prefix"; then
4288     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}cc; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   if test -n "$CC"; then
4296   ac_cv_prog_CC="$CC" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303     for ac_exec_ext in '' $ac_executable_extensions; do
4304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305     ac_cv_prog_CC="${ac_tool_prefix}cc"
4306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310   done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4319 else
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325   fi
4326 fi
4327 if test -z "$CC"; then
4328   # Extract the first word of "cc", so it can be a program name with args.
4329 set dummy cc; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_CC+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$CC"; then
4336   ac_cv_prog_CC="$CC" # Let the user override the test.
4337 else
4338   ac_prog_rejected=no
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344     for ac_exec_ext in '' $ac_executable_extensions; do
4345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4347        ac_prog_rejected=yes
4348        continue
4349      fi
4350     ac_cv_prog_CC="cc"
4351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355   done
4356 IFS=$as_save_IFS
4357
4358 if test $ac_prog_rejected = yes; then
4359   # We found a bogon in the path, so make sure we never use it.
4360   set dummy $ac_cv_prog_CC
4361   shift
4362   if test $# != 0; then
4363     # We chose a different compiler from the bogus one.
4364     # However, it has the same basename, so the bogon will be chosen
4365     # first if we set CC to just the basename; use the full file name.
4366     shift
4367     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4368   fi
4369 fi
4370 fi
4371 fi
4372 CC=$ac_cv_prog_CC
4373 if test -n "$CC"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4375 $as_echo "$CC" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382 fi
4383 if test -z "$CC"; then
4384   if test -n "$ac_tool_prefix"; then
4385   for ac_prog in cl.exe
4386   do
4387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_CC+:} false; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   if test -n "$CC"; then
4395   ac_cv_prog_CC="$CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_exec_ext in '' $ac_executable_extensions; do
4403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409   done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 CC=$ac_cv_prog_CC
4415 if test -n "$CC"; then
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4417 $as_echo "$CC" >&6; }
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422
4423
4424     test -n "$CC" && break
4425   done
4426 fi
4427 if test -z "$CC"; then
4428   ac_ct_CC=$CC
4429   for ac_prog in cl.exe
4430 do
4431   # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if test -n "$ac_ct_CC"; then
4439   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446     for ac_exec_ext in '' $ac_executable_extensions; do
4447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448     ac_cv_prog_ac_ct_CC="$ac_prog"
4449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453   done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4459 if test -n "$ac_ct_CC"; then
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4461 $as_echo "$ac_ct_CC" >&6; }
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466
4467
4468   test -n "$ac_ct_CC" && break
4469 done
4470
4471   if test "x$ac_ct_CC" = x; then
4472     CC=""
4473   else
4474     case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480     CC=$ac_ct_CC
4481   fi
4482 fi
4483
4484 fi
4485
4486
4487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $? "no acceptable C compiler found in \$PATH
4490 See \`config.log' for more details" "$LINENO" 5; }
4491
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4494 set X $ac_compile
4495 ac_compiler=$2
4496 for ac_option in --version -v -V -qversion; do
4497   { { ac_try="$ac_compiler $ac_option >&5"
4498 case "(($ac_try" in
4499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500   *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505   ac_status=$?
4506   if test -s conftest.err; then
4507     sed '10a\
4508 ... rest of stderr output deleted ...
4509          10q' conftest.err >conftest.er1
4510     cat conftest.er1 >&5
4511   fi
4512   rm -f conftest.er1 conftest.err
4513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514   test $ac_status = 0; }
4515 done
4516
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 ac_clean_files_save=$ac_clean_files
4529 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4530 # Try to create an executable without -o first, disregard a.out.
4531 # It will help us diagnose broken compilers, and finding out an intuition
4532 # of exeext.
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4534 $as_echo_n "checking whether the C compiler works... " >&6; }
4535 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4536
4537 # The possible output files:
4538 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4539
4540 ac_rmfiles=
4541 for ac_file in $ac_files
4542 do
4543   case $ac_file in
4544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4545     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4546   esac
4547 done
4548 rm -f $ac_rmfiles
4549
4550 if { { ac_try="$ac_link_default"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557   (eval "$ac_link_default") 2>&5
4558   ac_status=$?
4559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560   test $ac_status = 0; }; then :
4561   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4562 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4563 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4564 # so that the user can short-circuit this test for compilers unknown to
4565 # Autoconf.
4566 for ac_file in $ac_files ''
4567 do
4568   test -f "$ac_file" || continue
4569   case $ac_file in
4570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4571         ;;
4572     [ab].out )
4573         # We found the default executable, but exeext='' is most
4574         # certainly right.
4575         break;;
4576     *.* )
4577         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4578         then :; else
4579            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4580         fi
4581         # We set ac_cv_exeext here because the later test for it is not
4582         # safe: cross compilers may not add the suffix if given an `-o'
4583         # argument, so we may need to know it at that point already.
4584         # Even if this section looks crufty: it has the advantage of
4585         # actually working.
4586         break;;
4587     * )
4588         break;;
4589   esac
4590 done
4591 test "$ac_cv_exeext" = no && ac_cv_exeext=
4592
4593 else
4594   ac_file=''
4595 fi
4596 if test -z "$ac_file"; then :
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error 77 "C compiler cannot create executables
4605 See \`config.log' for more details" "$LINENO" 5; }
4606 else
4607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4608 $as_echo "yes" >&6; }
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4611 $as_echo_n "checking for C compiler default output file name... " >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4613 $as_echo "$ac_file" >&6; }
4614 ac_exeext=$ac_cv_exeext
4615
4616 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4617 ac_clean_files=$ac_clean_files_save
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4619 $as_echo_n "checking for suffix of executables... " >&6; }
4620 if { { ac_try="$ac_link"
4621 case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627   (eval "$ac_link") 2>&5
4628   ac_status=$?
4629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630   test $ac_status = 0; }; then :
4631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4633 # work properly (i.e., refer to `conftest.exe'), while it won't with
4634 # `rm'.
4635 for ac_file in conftest.exe conftest conftest.*; do
4636   test -f "$ac_file" || continue
4637   case $ac_file in
4638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4640           break;;
4641     * ) break;;
4642   esac
4643 done
4644 else
4645   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4648 See \`config.log' for more details" "$LINENO" 5; }
4649 fi
4650 rm -f conftest conftest$ac_cv_exeext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4652 $as_echo "$ac_cv_exeext" >&6; }
4653
4654 rm -f conftest.$ac_ext
4655 EXEEXT=$ac_cv_exeext
4656 ac_exeext=$EXEEXT
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h.  */
4659 #include <stdio.h>
4660 int
4661 main ()
4662 {
4663 FILE *f = fopen ("conftest.out", "w");
4664  return ferror (f) || fclose (f) != 0;
4665
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 ac_clean_files="$ac_clean_files conftest.out"
4671 # Check that the compiler produces executables we can run.  If not, either
4672 # the compiler is broken, or we cross compile.
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4674 $as_echo_n "checking whether we are cross compiling... " >&6; }
4675 if test "$cross_compiling" != yes; then
4676   { { ac_try="$ac_link"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683   (eval "$ac_link") 2>&5
4684   ac_status=$?
4685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686   test $ac_status = 0; }
4687   if { ac_try='./conftest$ac_cv_exeext'
4688   { { case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4693 $as_echo "$ac_try_echo"; } >&5
4694   (eval "$ac_try") 2>&5
4695   ac_status=$?
4696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4697   test $ac_status = 0; }; }; then
4698     cross_compiling=no
4699   else
4700     if test "$cross_compiling" = maybe; then
4701         cross_compiling=yes
4702     else
4703         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "cannot run C compiled programs.
4706 If you meant to cross compile, use \`--host'.
4707 See \`config.log' for more details" "$LINENO" 5; }
4708     fi
4709   fi
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4712 $as_echo "$cross_compiling" >&6; }
4713
4714 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4715 ac_clean_files=$ac_clean_files_save
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4717 $as_echo_n "checking for suffix of object files... " >&6; }
4718 if ${ac_cv_objext+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723
4724 int
4725 main ()
4726 {
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.o conftest.obj
4733 if { { ac_try="$ac_compile"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739 $as_echo "$ac_try_echo"; } >&5
4740   (eval "$ac_compile") 2>&5
4741   ac_status=$?
4742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743   test $ac_status = 0; }; then :
4744   for ac_file in conftest.o conftest.obj conftest.*; do
4745   test -f "$ac_file" || continue;
4746   case $ac_file in
4747     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4748     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4749        break;;
4750   esac
4751 done
4752 else
4753   $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "cannot compute suffix of object files: cannot compile
4759 See \`config.log' for more details" "$LINENO" 5; }
4760 fi
4761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4764 $as_echo "$ac_cv_objext" >&6; }
4765 OBJEXT=$ac_cv_objext
4766 ac_objext=$OBJEXT
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4768 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4769 if ${ac_cv_c_compiler_gnu+:} false; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h.  */
4774
4775 int
4776 main ()
4777 {
4778 #ifndef __GNUC__
4779        choke me
4780 #endif
4781
4782   ;
4783   return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787   ac_compiler_gnu=yes
4788 else
4789   ac_compiler_gnu=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4793
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4796 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4797 if test $ac_compiler_gnu = yes; then
4798   GCC=yes
4799 else
4800   GCC=
4801 fi
4802 ac_test_CFLAGS=${CFLAGS+set}
4803 ac_save_CFLAGS=$CFLAGS
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4805 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4806 if ${ac_cv_prog_cc_g+:} false; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   ac_save_c_werror_flag=$ac_c_werror_flag
4810    ac_c_werror_flag=yes
4811    ac_cv_prog_cc_g=no
4812    CFLAGS="-g"
4813    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h.  */
4815
4816 int
4817 main ()
4818 {
4819
4820   ;
4821   return 0;
4822 }
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825   ac_cv_prog_cc_g=yes
4826 else
4827   CFLAGS=""
4828       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h.  */
4830
4831 int
4832 main ()
4833 {
4834
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840
4841 else
4842   ac_c_werror_flag=$ac_save_c_werror_flag
4843          CFLAGS="-g"
4844          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h.  */
4846
4847 int
4848 main ()
4849 {
4850
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856   ac_cv_prog_cc_g=yes
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 fi
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863    ac_c_werror_flag=$ac_save_c_werror_flag
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4866 $as_echo "$ac_cv_prog_cc_g" >&6; }
4867 if test "$ac_test_CFLAGS" = set; then
4868   CFLAGS=$ac_save_CFLAGS
4869 elif test $ac_cv_prog_cc_g = yes; then
4870   if test "$GCC" = yes; then
4871     CFLAGS="-g -O2"
4872   else
4873     CFLAGS="-g"
4874   fi
4875 else
4876   if test "$GCC" = yes; then
4877     CFLAGS="-O2"
4878   else
4879     CFLAGS=
4880   fi
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4883 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4884 if ${ac_cv_prog_cc_c89+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   ac_cv_prog_cc_c89=no
4888 ac_save_CC=$CC
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h.  */
4891 #include <stdarg.h>
4892 #include <stdio.h>
4893 struct stat;
4894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4895 struct buf { int x; };
4896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4897 static char *e (p, i)
4898      char **p;
4899      int i;
4900 {
4901   return p[i];
4902 }
4903 static char *f (char * (*g) (char **, int), char **p, ...)
4904 {
4905   char *s;
4906   va_list v;
4907   va_start (v,p);
4908   s = g (p, va_arg (v,int));
4909   va_end (v);
4910   return s;
4911 }
4912
4913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4914    function prototypes and stuff, but not '\xHH' hex character constants.
4915    These don't provoke an error unfortunately, instead are silently treated
4916    as 'x'.  The following induces an error, until -std is added to get
4917    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4918    array size at least.  It's necessary to write '\x00'==0 to get something
4919    that's true only with -std.  */
4920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4921
4922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4923    inside strings and character constants.  */
4924 #define FOO(x) 'x'
4925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4926
4927 int test (int i, double x);
4928 struct s1 {int (*f) (int a);};
4929 struct s2 {int (*f) (double a);};
4930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4931 int argc;
4932 char **argv;
4933 int
4934 main ()
4935 {
4936 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4937   ;
4938   return 0;
4939 }
4940 _ACEOF
4941 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4942         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943 do
4944   CC="$ac_save_CC $ac_arg"
4945   if ac_fn_c_try_compile "$LINENO"; then :
4946   ac_cv_prog_cc_c89=$ac_arg
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext
4949   test "x$ac_cv_prog_cc_c89" != "xno" && break
4950 done
4951 rm -f conftest.$ac_ext
4952 CC=$ac_save_CC
4953
4954 fi
4955 # AC_CACHE_VAL
4956 case "x$ac_cv_prog_cc_c89" in
4957   x)
4958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4959 $as_echo "none needed" >&6; } ;;
4960   xno)
4961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4962 $as_echo "unsupported" >&6; } ;;
4963   *)
4964     CC="$CC $ac_cv_prog_cc_c89"
4965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4967 esac
4968 if test "x$ac_cv_prog_cc_c89" != xno; then :
4969
4970 fi
4971
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4984 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4985 if ${am_cv_prog_cc_c_o+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h.  */
4990
4991 int
4992 main ()
4993 {
4994
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999   # Make sure it works both with $CC and with simple cc.
5000   # Following AC_PROG_CC_C_O, we do the test twice because some
5001   # compilers refuse to overwrite an existing .o file with -o,
5002   # though they will create one.
5003   am_cv_prog_cc_c_o=yes
5004   for am_i in 1 2; do
5005     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5006    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5007    ac_status=$?
5008    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009    (exit $ac_status); } \
5010          && test -f conftest2.$ac_objext; then
5011       : OK
5012     else
5013       am_cv_prog_cc_c_o=no
5014       break
5015     fi
5016   done
5017   rm -f core conftest*
5018   unset am_i
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5021 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5022 if test "$am_cv_prog_cc_c_o" != yes; then
5023    # Losing compiler, so override with the script.
5024    # FIXME: It is wrong to rewrite CC.
5025    # But if we don't then we get into trouble of one sort or another.
5026    # A longer-term fix would be to have automake use am__CC in this case,
5027    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5028    CC="$am_aux_dir/compile $CC"
5029 fi
5030 ac_ext=c
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035
5036
5037 depcc="$CC"   am_compiler_list=
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5040 $as_echo_n "checking dependency style of $depcc... " >&6; }
5041 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5045   # We make a subdir and do the tests there.  Otherwise we can end up
5046   # making bogus files that we don't know about and never remove.  For
5047   # instance it was reported that on HP-UX the gcc test will end up
5048   # making a dummy file named 'D' -- because '-MD' means "put the output
5049   # in D".
5050   rm -rf conftest.dir
5051   mkdir conftest.dir
5052   # Copy depcomp to subdir because otherwise we won't find it if we're
5053   # using a relative directory.
5054   cp "$am_depcomp" conftest.dir
5055   cd conftest.dir
5056   # We will build objects and dependencies in a subdirectory because
5057   # it helps to detect inapplicable dependency modes.  For instance
5058   # both Tru64's cc and ICC support -MD to output dependencies as a
5059   # side effect of compilation, but ICC will put the dependencies in
5060   # the current directory while Tru64 will put them in the object
5061   # directory.
5062   mkdir sub
5063
5064   am_cv_CC_dependencies_compiler_type=none
5065   if test "$am_compiler_list" = ""; then
5066      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5067   fi
5068   am__universal=false
5069   case " $depcc " in #(
5070      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5071      esac
5072
5073   for depmode in $am_compiler_list; do
5074     # Setup a source with many dependencies, because some compilers
5075     # like to wrap large dependency lists on column 80 (with \), and
5076     # we should not choose a depcomp mode which is confused by this.
5077     #
5078     # We need to recreate these files for each test, as the compiler may
5079     # overwrite some of them when testing with obscure command lines.
5080     # This happens at least with the AIX C compiler.
5081     : > sub/conftest.c
5082     for i in 1 2 3 4 5 6; do
5083       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5084       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5085       # Solaris 10 /bin/sh.
5086       echo '/* dummy */' > sub/conftst$i.h
5087     done
5088     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5089
5090     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5091     # mode.  It turns out that the SunPro C++ compiler does not properly
5092     # handle '-M -o', and we need to detect this.  Also, some Intel
5093     # versions had trouble with output in subdirs.
5094     am__obj=sub/conftest.${OBJEXT-o}
5095     am__minus_obj="-o $am__obj"
5096     case $depmode in
5097     gcc)
5098       # This depmode causes a compiler race in universal mode.
5099       test "$am__universal" = false || continue
5100       ;;
5101     nosideeffect)
5102       # After this tag, mechanisms are not by side-effect, so they'll
5103       # only be used when explicitly requested.
5104       if test "x$enable_dependency_tracking" = xyes; then
5105         continue
5106       else
5107         break
5108       fi
5109       ;;
5110     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5111       # This compiler won't grok '-c -o', but also, the minuso test has
5112       # not run yet.  These depmodes are late enough in the game, and
5113       # so weak that their functioning should not be impacted.
5114       am__obj=conftest.${OBJEXT-o}
5115       am__minus_obj=
5116       ;;
5117     none) break ;;
5118     esac
5119     if depmode=$depmode \
5120        source=sub/conftest.c object=$am__obj \
5121        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5122        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5123          >/dev/null 2>conftest.err &&
5124        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5125        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5126        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5127        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5128       # icc doesn't choke on unknown options, it will just issue warnings
5129       # or remarks (even with -Werror).  So we grep stderr for any message
5130       # that says an option was ignored or not supported.
5131       # When given -MP, icc 7.0 and 7.1 complain thusly:
5132       #   icc: Command line warning: ignoring option '-M'; no argument required
5133       # The diagnosis changed in icc 8.0:
5134       #   icc: Command line remark: option '-MP' not supported
5135       if (grep 'ignoring option' conftest.err ||
5136           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5137         am_cv_CC_dependencies_compiler_type=$depmode
5138         break
5139       fi
5140     fi
5141   done
5142
5143   cd ..
5144   rm -rf conftest.dir
5145 else
5146   am_cv_CC_dependencies_compiler_type=none
5147 fi
5148
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5151 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5152 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5153
5154  if
5155   test "x$enable_dependency_tracking" != xno \
5156   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5157   am__fastdepCC_TRUE=
5158   am__fastdepCC_FALSE='#'
5159 else
5160   am__fastdepCC_TRUE='#'
5161   am__fastdepCC_FALSE=
5162 fi
5163
5164
5165
5166 if test -n "$ac_tool_prefix"; then
5167   for ac_prog in ar lib "link -lib"
5168   do
5169     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_AR+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if test -n "$AR"; then
5177   ac_cv_prog_AR="$AR" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191   done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 AR=$ac_cv_prog_AR
5197 if test -n "$AR"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5199 $as_echo "$AR" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206     test -n "$AR" && break
5207   done
5208 fi
5209 if test -z "$AR"; then
5210   ac_ct_AR=$AR
5211   for ac_prog in ar lib "link -lib"
5212 do
5213   # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   if test -n "$ac_ct_AR"; then
5221   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228     for ac_exec_ext in '' $ac_executable_extensions; do
5229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230     ac_cv_prog_ac_ct_AR="$ac_prog"
5231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235   done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5241 if test -n "$ac_ct_AR"; then
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5243 $as_echo "$ac_ct_AR" >&6; }
5244 else
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249
5250   test -n "$ac_ct_AR" && break
5251 done
5252
5253   if test "x$ac_ct_AR" = x; then
5254     AR="false"
5255   else
5256     case $cross_compiling:$ac_tool_warned in
5257 yes:)
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260 ac_tool_warned=yes ;;
5261 esac
5262     AR=$ac_ct_AR
5263   fi
5264 fi
5265
5266 : ${AR=ar}
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5269 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5270 if ${am_cv_ar_interface+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   ac_ext=c
5274 ac_cpp='$CPP $CPPFLAGS'
5275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278
5279    am_cv_ar_interface=ar
5280    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h.  */
5282 int some_variable = 0;
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5286       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5287   (eval $am_ar_try) 2>&5
5288   ac_status=$?
5289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5290   test $ac_status = 0; }
5291       if test "$ac_status" -eq 0; then
5292         am_cv_ar_interface=ar
5293       else
5294         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5295         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5296   (eval $am_ar_try) 2>&5
5297   ac_status=$?
5298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5299   test $ac_status = 0; }
5300         if test "$ac_status" -eq 0; then
5301           am_cv_ar_interface=lib
5302         else
5303           am_cv_ar_interface=unknown
5304         fi
5305       fi
5306       rm -f conftest.lib libconftest.a
5307
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310    ac_ext=c
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5318 $as_echo "$am_cv_ar_interface" >&6; }
5319
5320 case $am_cv_ar_interface in
5321 ar)
5322   ;;
5323 lib)
5324   # Microsoft lib, so override with the ar-lib wrapper script.
5325   # FIXME: It is wrong to rewrite AR.
5326   # But if we don't then we get into trouble of one sort or another.
5327   # A longer-term fix would be to have automake use am__AR in this case,
5328   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5329   # similar.
5330   AR="$am_aux_dir/ar-lib $AR"
5331   ;;
5332 unknown)
5333   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5334   ;;
5335 esac
5336
5337
5338 case `pwd` in
5339   *\ * | *\     *)
5340     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5341 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5342 esac
5343
5344
5345
5346 macro_version='2.4.6'
5347 macro_revision='2.4.6'
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361 ltmain=$ac_aux_dir/ltmain.sh
5362
5363 # Make sure we can run config.sub.
5364 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5365   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5366
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5368 $as_echo_n "checking build system type... " >&6; }
5369 if ${ac_cv_build+:} false; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   ac_build_alias=$build_alias
5373 test "x$ac_build_alias" = x &&
5374   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5375 test "x$ac_build_alias" = x &&
5376   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5378   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5379
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5382 $as_echo "$ac_cv_build" >&6; }
5383 case $ac_cv_build in
5384 *-*-*) ;;
5385 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5386 esac
5387 build=$ac_cv_build
5388 ac_save_IFS=$IFS; IFS='-'
5389 set x $ac_cv_build
5390 shift
5391 build_cpu=$1
5392 build_vendor=$2
5393 shift; shift
5394 # Remember, the first character of IFS is used to create $*,
5395 # except with old shells:
5396 build_os=$*
5397 IFS=$ac_save_IFS
5398 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5402 $as_echo_n "checking host system type... " >&6; }
5403 if ${ac_cv_host+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   if test "x$host_alias" = x; then
5407   ac_cv_host=$ac_cv_build
5408 else
5409   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5410     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5411 fi
5412
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5415 $as_echo "$ac_cv_host" >&6; }
5416 case $ac_cv_host in
5417 *-*-*) ;;
5418 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5419 esac
5420 host=$ac_cv_host
5421 ac_save_IFS=$IFS; IFS='-'
5422 set x $ac_cv_host
5423 shift
5424 host_cpu=$1
5425 host_vendor=$2
5426 shift; shift
5427 # Remember, the first character of IFS is used to create $*,
5428 # except with old shells:
5429 host_os=$*
5430 IFS=$ac_save_IFS
5431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5432
5433
5434 # Backslashify metacharacters that are still active within
5435 # double-quoted strings.
5436 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5437
5438 # Same as above, but do not quote variable references.
5439 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5440
5441 # Sed substitution to delay expansion of an escaped shell variable in a
5442 # double_quote_subst'ed string.
5443 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5444
5445 # Sed substitution to delay expansion of an escaped single quote.
5446 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5447
5448 # Sed substitution to avoid accidental globbing in evaled expressions
5449 no_glob_subst='s/\*/\\\*/g'
5450
5451 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5452 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5456 $as_echo_n "checking how to print strings... " >&6; }
5457 # Test print first, because it will be a builtin if present.
5458 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5459    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5460   ECHO='print -r --'
5461 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5462   ECHO='printf %s\n'
5463 else
5464   # Use this function as a fallback that always works.
5465   func_fallback_echo ()
5466   {
5467     eval 'cat <<_LTECHO_EOF
5468 $1
5469 _LTECHO_EOF'
5470   }
5471   ECHO='func_fallback_echo'
5472 fi
5473
5474 # func_echo_all arg...
5475 # Invoke $ECHO with all args, space-separated.
5476 func_echo_all ()
5477 {
5478     $ECHO ""
5479 }
5480
5481 case $ECHO in
5482   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5483 $as_echo "printf" >&6; } ;;
5484   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5485 $as_echo "print -r" >&6; } ;;
5486   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5487 $as_echo "cat" >&6; } ;;
5488 esac
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5504 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5505 if ${ac_cv_path_SED+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5509      for ac_i in 1 2 3 4 5 6 7; do
5510        ac_script="$ac_script$as_nl$ac_script"
5511      done
5512      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5513      { ac_script=; unset ac_script;}
5514      if test -z "$SED"; then
5515   ac_path_SED_found=false
5516   # Loop through the user's path and test for each of PROGNAME-LIST
5517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522     for ac_prog in sed gsed; do
5523     for ac_exec_ext in '' $ac_executable_extensions; do
5524       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5525       as_fn_executable_p "$ac_path_SED" || continue
5526 # Check for GNU ac_path_SED and select it if it is found.
5527   # Check for GNU $ac_path_SED
5528 case `"$ac_path_SED" --version 2>&1` in
5529 *GNU*)
5530   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5531 *)
5532   ac_count=0
5533   $as_echo_n 0123456789 >"conftest.in"
5534   while :
5535   do
5536     cat "conftest.in" "conftest.in" >"conftest.tmp"
5537     mv "conftest.tmp" "conftest.in"
5538     cp "conftest.in" "conftest.nl"
5539     $as_echo '' >> "conftest.nl"
5540     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5541     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5542     as_fn_arith $ac_count + 1 && ac_count=$as_val
5543     if test $ac_count -gt ${ac_path_SED_max-0}; then
5544       # Best one so far, save it but keep looking for a better one
5545       ac_cv_path_SED="$ac_path_SED"
5546       ac_path_SED_max=$ac_count
5547     fi
5548     # 10*(2^10) chars as input seems more than enough
5549     test $ac_count -gt 10 && break
5550   done
5551   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5552 esac
5553
5554       $ac_path_SED_found && break 3
5555     done
5556   done
5557   done
5558 IFS=$as_save_IFS
5559   if test -z "$ac_cv_path_SED"; then
5560     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5561   fi
5562 else
5563   ac_cv_path_SED=$SED
5564 fi
5565
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5568 $as_echo "$ac_cv_path_SED" >&6; }
5569  SED="$ac_cv_path_SED"
5570   rm -f conftest.sed
5571
5572 test -z "$SED" && SED=sed
5573 Xsed="$SED -e 1s/^X//"
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5587 if ${ac_cv_path_GREP+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   if test -z "$GREP"; then
5591   ac_path_GREP_found=false
5592   # Loop through the user's path and test for each of PROGNAME-LIST
5593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598     for ac_prog in grep ggrep; do
5599     for ac_exec_ext in '' $ac_executable_extensions; do
5600       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5601       as_fn_executable_p "$ac_path_GREP" || continue
5602 # Check for GNU ac_path_GREP and select it if it is found.
5603   # Check for GNU $ac_path_GREP
5604 case `"$ac_path_GREP" --version 2>&1` in
5605 *GNU*)
5606   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5607 *)
5608   ac_count=0
5609   $as_echo_n 0123456789 >"conftest.in"
5610   while :
5611   do
5612     cat "conftest.in" "conftest.in" >"conftest.tmp"
5613     mv "conftest.tmp" "conftest.in"
5614     cp "conftest.in" "conftest.nl"
5615     $as_echo 'GREP' >> "conftest.nl"
5616     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5617     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5618     as_fn_arith $ac_count + 1 && ac_count=$as_val
5619     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5620       # Best one so far, save it but keep looking for a better one
5621       ac_cv_path_GREP="$ac_path_GREP"
5622       ac_path_GREP_max=$ac_count
5623     fi
5624     # 10*(2^10) chars as input seems more than enough
5625     test $ac_count -gt 10 && break
5626   done
5627   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5628 esac
5629
5630       $ac_path_GREP_found && break 3
5631     done
5632   done
5633   done
5634 IFS=$as_save_IFS
5635   if test -z "$ac_cv_path_GREP"; then
5636     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5637   fi
5638 else
5639   ac_cv_path_GREP=$GREP
5640 fi
5641
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5644 $as_echo "$ac_cv_path_GREP" >&6; }
5645  GREP="$ac_cv_path_GREP"
5646
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5649 $as_echo_n "checking for egrep... " >&6; }
5650 if ${ac_cv_path_EGREP+:} false; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5654    then ac_cv_path_EGREP="$GREP -E"
5655    else
5656      if test -z "$EGREP"; then
5657   ac_path_EGREP_found=false
5658   # Loop through the user's path and test for each of PROGNAME-LIST
5659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5661 do
5662   IFS=$as_save_IFS
5663   test -z "$as_dir" && as_dir=.
5664     for ac_prog in egrep; do
5665     for ac_exec_ext in '' $ac_executable_extensions; do
5666       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5667       as_fn_executable_p "$ac_path_EGREP" || continue
5668 # Check for GNU ac_path_EGREP and select it if it is found.
5669   # Check for GNU $ac_path_EGREP
5670 case `"$ac_path_EGREP" --version 2>&1` in
5671 *GNU*)
5672   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5673 *)
5674   ac_count=0
5675   $as_echo_n 0123456789 >"conftest.in"
5676   while :
5677   do
5678     cat "conftest.in" "conftest.in" >"conftest.tmp"
5679     mv "conftest.tmp" "conftest.in"
5680     cp "conftest.in" "conftest.nl"
5681     $as_echo 'EGREP' >> "conftest.nl"
5682     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5684     as_fn_arith $ac_count + 1 && ac_count=$as_val
5685     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5686       # Best one so far, save it but keep looking for a better one
5687       ac_cv_path_EGREP="$ac_path_EGREP"
5688       ac_path_EGREP_max=$ac_count
5689     fi
5690     # 10*(2^10) chars as input seems more than enough
5691     test $ac_count -gt 10 && break
5692   done
5693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5694 esac
5695
5696       $ac_path_EGREP_found && break 3
5697     done
5698   done
5699   done
5700 IFS=$as_save_IFS
5701   if test -z "$ac_cv_path_EGREP"; then
5702     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5703   fi
5704 else
5705   ac_cv_path_EGREP=$EGREP
5706 fi
5707
5708    fi
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5711 $as_echo "$ac_cv_path_EGREP" >&6; }
5712  EGREP="$ac_cv_path_EGREP"
5713
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5716 $as_echo_n "checking for fgrep... " >&6; }
5717 if ${ac_cv_path_FGREP+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5721    then ac_cv_path_FGREP="$GREP -F"
5722    else
5723      if test -z "$FGREP"; then
5724   ac_path_FGREP_found=false
5725   # Loop through the user's path and test for each of PROGNAME-LIST
5726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_prog in fgrep; do
5732     for ac_exec_ext in '' $ac_executable_extensions; do
5733       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5734       as_fn_executable_p "$ac_path_FGREP" || continue
5735 # Check for GNU ac_path_FGREP and select it if it is found.
5736   # Check for GNU $ac_path_FGREP
5737 case `"$ac_path_FGREP" --version 2>&1` in
5738 *GNU*)
5739   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5740 *)
5741   ac_count=0
5742   $as_echo_n 0123456789 >"conftest.in"
5743   while :
5744   do
5745     cat "conftest.in" "conftest.in" >"conftest.tmp"
5746     mv "conftest.tmp" "conftest.in"
5747     cp "conftest.in" "conftest.nl"
5748     $as_echo 'FGREP' >> "conftest.nl"
5749     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5750     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5751     as_fn_arith $ac_count + 1 && ac_count=$as_val
5752     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5753       # Best one so far, save it but keep looking for a better one
5754       ac_cv_path_FGREP="$ac_path_FGREP"
5755       ac_path_FGREP_max=$ac_count
5756     fi
5757     # 10*(2^10) chars as input seems more than enough
5758     test $ac_count -gt 10 && break
5759   done
5760   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5761 esac
5762
5763       $ac_path_FGREP_found && break 3
5764     done
5765   done
5766   done
5767 IFS=$as_save_IFS
5768   if test -z "$ac_cv_path_FGREP"; then
5769     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5770   fi
5771 else
5772   ac_cv_path_FGREP=$FGREP
5773 fi
5774
5775    fi
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5778 $as_echo "$ac_cv_path_FGREP" >&6; }
5779  FGREP="$ac_cv_path_FGREP"
5780
5781
5782 test -z "$GREP" && GREP=grep
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 # Check whether --with-gnu-ld was given.
5803 if test "${with_gnu_ld+set}" = set; then :
5804   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5805 else
5806   with_gnu_ld=no
5807 fi
5808
5809 ac_prog=ld
5810 if test yes = "$GCC"; then
5811   # Check if gcc -print-prog-name=ld gives a path.
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5813 $as_echo_n "checking for ld used by $CC... " >&6; }
5814   case $host in
5815   *-*-mingw*)
5816     # gcc leaves a trailing carriage return, which upsets mingw
5817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5818   *)
5819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5820   esac
5821   case $ac_prog in
5822     # Accept absolute paths.
5823     [\\/]* | ?:[\\/]*)
5824       re_direlt='/[^/][^/]*/\.\./'
5825       # Canonicalize the pathname of ld
5826       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5827       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5828         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5829       done
5830       test -z "$LD" && LD=$ac_prog
5831       ;;
5832   "")
5833     # If it fails, then pretend we aren't using GCC.
5834     ac_prog=ld
5835     ;;
5836   *)
5837     # If it is relative, then search for the first ld in PATH.
5838     with_gnu_ld=unknown
5839     ;;
5840   esac
5841 elif test yes = "$with_gnu_ld"; then
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5843 $as_echo_n "checking for GNU ld... " >&6; }
5844 else
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5846 $as_echo_n "checking for non-GNU ld... " >&6; }
5847 fi
5848 if ${lt_cv_path_LD+:} false; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   if test -z "$LD"; then
5852   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5853   for ac_dir in $PATH; do
5854     IFS=$lt_save_ifs
5855     test -z "$ac_dir" && ac_dir=.
5856     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5857       lt_cv_path_LD=$ac_dir/$ac_prog
5858       # Check to see if the program is GNU ld.  I'd rather use --version,
5859       # but apparently some variants of GNU ld only accept -v.
5860       # Break only if it was the GNU/non-GNU ld that we prefer.
5861       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5862       *GNU* | *'with BFD'*)
5863         test no != "$with_gnu_ld" && break
5864         ;;
5865       *)
5866         test yes != "$with_gnu_ld" && break
5867         ;;
5868       esac
5869     fi
5870   done
5871   IFS=$lt_save_ifs
5872 else
5873   lt_cv_path_LD=$LD # Let the user override the test with a path.
5874 fi
5875 fi
5876
5877 LD=$lt_cv_path_LD
5878 if test -n "$LD"; then
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5880 $as_echo "$LD" >&6; }
5881 else
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5888 if ${lt_cv_prog_gnu_ld+:} false; then :
5889   $as_echo_n "(cached) " >&6
5890 else
5891   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5892 case `$LD -v 2>&1 </dev/null` in
5893 *GNU* | *'with BFD'*)
5894   lt_cv_prog_gnu_ld=yes
5895   ;;
5896 *)
5897   lt_cv_prog_gnu_ld=no
5898   ;;
5899 esac
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5902 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5903 with_gnu_ld=$lt_cv_prog_gnu_ld
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5914 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5915 if ${lt_cv_path_NM+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   if test -n "$NM"; then
5919   # Let the user override the test.
5920   lt_cv_path_NM=$NM
5921 else
5922   lt_nm_to_check=${ac_tool_prefix}nm
5923   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5924     lt_nm_to_check="$lt_nm_to_check nm"
5925   fi
5926   for lt_tmp_nm in $lt_nm_to_check; do
5927     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5928     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5929       IFS=$lt_save_ifs
5930       test -z "$ac_dir" && ac_dir=.
5931       tmp_nm=$ac_dir/$lt_tmp_nm
5932       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5933         # Check to see if the nm accepts a BSD-compat flag.
5934         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5935         #   nm: unknown option "B" ignored
5936         # Tru64's nm complains that /dev/null is an invalid object file
5937         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5938         case $build_os in
5939         mingw*) lt_bad_file=conftest.nm/nofile ;;
5940         *) lt_bad_file=/dev/null ;;
5941         esac
5942         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5943         *$lt_bad_file* | *'Invalid file or object type'*)
5944           lt_cv_path_NM="$tmp_nm -B"
5945           break 2
5946           ;;
5947         *)
5948           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5949           */dev/null*)
5950             lt_cv_path_NM="$tmp_nm -p"
5951             break 2
5952             ;;
5953           *)
5954             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5955             continue # so that we can try to find one that supports BSD flags
5956             ;;
5957           esac
5958           ;;
5959         esac
5960       fi
5961     done
5962     IFS=$lt_save_ifs
5963   done
5964   : ${lt_cv_path_NM=no}
5965 fi
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5968 $as_echo "$lt_cv_path_NM" >&6; }
5969 if test no != "$lt_cv_path_NM"; then
5970   NM=$lt_cv_path_NM
5971 else
5972   # Didn't find any BSD compatible name lister, look for dumpbin.
5973   if test -n "$DUMPBIN"; then :
5974     # Let the user override the test.
5975   else
5976     if test -n "$ac_tool_prefix"; then
5977   for ac_prog in dumpbin "link -dump"
5978   do
5979     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_prog_DUMPBIN+:} false; then :
5984   $as_echo_n "(cached) " >&6
5985 else
5986   if test -n "$DUMPBIN"; then
5987   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992   IFS=$as_save_IFS
5993   test -z "$as_dir" && as_dir=.
5994     for ac_exec_ext in '' $ac_executable_extensions; do
5995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998     break 2
5999   fi
6000 done
6001   done
6002 IFS=$as_save_IFS
6003
6004 fi
6005 fi
6006 DUMPBIN=$ac_cv_prog_DUMPBIN
6007 if test -n "$DUMPBIN"; then
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6009 $as_echo "$DUMPBIN" >&6; }
6010 else
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 fi
6014
6015
6016     test -n "$DUMPBIN" && break
6017   done
6018 fi
6019 if test -z "$DUMPBIN"; then
6020   ac_ct_DUMPBIN=$DUMPBIN
6021   for ac_prog in dumpbin "link -dump"
6022 do
6023   # Extract the first word of "$ac_prog", so it can be a program name with args.
6024 set dummy $ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$ac_ct_DUMPBIN"; then
6031   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6051 if test -n "$ac_ct_DUMPBIN"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6053 $as_echo "$ac_ct_DUMPBIN" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060   test -n "$ac_ct_DUMPBIN" && break
6061 done
6062
6063   if test "x$ac_ct_DUMPBIN" = x; then
6064     DUMPBIN=":"
6065   else
6066     case $cross_compiling:$ac_tool_warned in
6067 yes:)
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6071 esac
6072     DUMPBIN=$ac_ct_DUMPBIN
6073   fi
6074 fi
6075
6076     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6077     *COFF*)
6078       DUMPBIN="$DUMPBIN -symbols -headers"
6079       ;;
6080     *)
6081       DUMPBIN=:
6082       ;;
6083     esac
6084   fi
6085
6086   if test : != "$DUMPBIN"; then
6087     NM=$DUMPBIN
6088   fi
6089 fi
6090 test -z "$NM" && NM=nm
6091
6092
6093
6094
6095
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6098 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6099 if ${lt_cv_nm_interface+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102   lt_cv_nm_interface="BSD nm"
6103   echo "int some_variable = 0;" > conftest.$ac_ext
6104   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6105   (eval "$ac_compile" 2>conftest.err)
6106   cat conftest.err >&5
6107   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6108   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6109   cat conftest.err >&5
6110   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6111   cat conftest.out >&5
6112   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6113     lt_cv_nm_interface="MS dumpbin"
6114   fi
6115   rm -f conftest*
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6118 $as_echo "$lt_cv_nm_interface" >&6; }
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6121 $as_echo_n "checking whether ln -s works... " >&6; }
6122 LN_S=$as_ln_s
6123 if test "$LN_S" = "ln -s"; then
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6125 $as_echo "yes" >&6; }
6126 else
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6128 $as_echo "no, using $LN_S" >&6; }
6129 fi
6130
6131 # find the maximum length of command line arguments
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6133 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6134 if ${lt_cv_sys_max_cmd_len+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137     i=0
6138   teststring=ABCD
6139
6140   case $build_os in
6141   msdosdjgpp*)
6142     # On DJGPP, this test can blow up pretty badly due to problems in libc
6143     # (any single argument exceeding 2000 bytes causes a buffer overrun
6144     # during glob expansion).  Even if it were fixed, the result of this
6145     # check would be larger than it should be.
6146     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6147     ;;
6148
6149   gnu*)
6150     # Under GNU Hurd, this test is not required because there is
6151     # no limit to the length of command line arguments.
6152     # Libtool will interpret -1 as no limit whatsoever
6153     lt_cv_sys_max_cmd_len=-1;
6154     ;;
6155
6156   cygwin* | mingw* | cegcc*)
6157     # On Win9x/ME, this test blows up -- it succeeds, but takes
6158     # about 5 minutes as the teststring grows exponentially.
6159     # Worse, since 9x/ME are not pre-emptively multitasking,
6160     # you end up with a "frozen" computer, even though with patience
6161     # the test eventually succeeds (with a max line length of 256k).
6162     # Instead, let's just punt: use the minimum linelength reported by
6163     # all of the supported platforms: 8192 (on NT/2K/XP).
6164     lt_cv_sys_max_cmd_len=8192;
6165     ;;
6166
6167   mint*)
6168     # On MiNT this can take a long time and run out of memory.
6169     lt_cv_sys_max_cmd_len=8192;
6170     ;;
6171
6172   amigaos*)
6173     # On AmigaOS with pdksh, this test takes hours, literally.
6174     # So we just punt and use a minimum line length of 8192.
6175     lt_cv_sys_max_cmd_len=8192;
6176     ;;
6177
6178   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6179     # This has been around since 386BSD, at least.  Likely further.
6180     if test -x /sbin/sysctl; then
6181       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6182     elif test -x /usr/sbin/sysctl; then
6183       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6184     else
6185       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6186     fi
6187     # And add a safety zone
6188     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6189     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6190     ;;
6191
6192   interix*)
6193     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6194     lt_cv_sys_max_cmd_len=196608
6195     ;;
6196
6197   os2*)
6198     # The test takes a long time on OS/2.
6199     lt_cv_sys_max_cmd_len=8192
6200     ;;
6201
6202   osf*)
6203     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6204     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6205     # nice to cause kernel panics so lets avoid the loop below.
6206     # First set a reasonable default.
6207     lt_cv_sys_max_cmd_len=16384
6208     #
6209     if test -x /sbin/sysconfig; then
6210       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6211         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6212       esac
6213     fi
6214     ;;
6215   sco3.2v5*)
6216     lt_cv_sys_max_cmd_len=102400
6217     ;;
6218   sysv5* | sco5v6* | sysv4.2uw2*)
6219     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6220     if test -n "$kargmax"; then
6221       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6222     else
6223       lt_cv_sys_max_cmd_len=32768
6224     fi
6225     ;;
6226   *)
6227     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6228     if test -n "$lt_cv_sys_max_cmd_len" && \
6229        test undefined != "$lt_cv_sys_max_cmd_len"; then
6230       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6231       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6232     else
6233       # Make teststring a little bigger before we do anything with it.
6234       # a 1K string should be a reasonable start.
6235       for i in 1 2 3 4 5 6 7 8; do
6236         teststring=$teststring$teststring
6237       done
6238       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6239       # If test is not a shell built-in, we'll probably end up computing a
6240       # maximum length that is only half of the actual maximum length, but
6241       # we can't tell.
6242       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6243                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6244               test 17 != "$i" # 1/2 MB should be enough
6245       do
6246         i=`expr $i + 1`
6247         teststring=$teststring$teststring
6248       done
6249       # Only check the string length outside the loop.
6250       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6251       teststring=
6252       # Add a significant safety factor because C++ compilers can tack on
6253       # massive amounts of additional arguments before passing them to the
6254       # linker.  It appears as though 1/2 is a usable value.
6255       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6256     fi
6257     ;;
6258   esac
6259
6260 fi
6261
6262 if test -n "$lt_cv_sys_max_cmd_len"; then
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6264 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6265 else
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6267 $as_echo "none" >&6; }
6268 fi
6269 max_cmd_len=$lt_cv_sys_max_cmd_len
6270
6271
6272
6273
6274
6275
6276 : ${CP="cp -f"}
6277 : ${MV="mv -f"}
6278 : ${RM="rm -f"}
6279
6280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6281   lt_unset=unset
6282 else
6283   lt_unset=false
6284 fi
6285
6286
6287
6288
6289
6290 # test EBCDIC or ASCII
6291 case `echo X|tr X '\101'` in
6292  A) # ASCII based system
6293     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6294   lt_SP2NL='tr \040 \012'
6295   lt_NL2SP='tr \015\012 \040\040'
6296   ;;
6297  *) # EBCDIC based system
6298   lt_SP2NL='tr \100 \n'
6299   lt_NL2SP='tr \r\n \100\100'
6300   ;;
6301 esac
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6312 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6313 if ${lt_cv_to_host_file_cmd+:} false; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316   case $host in
6317   *-*-mingw* )
6318     case $build in
6319       *-*-mingw* ) # actually msys
6320         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6321         ;;
6322       *-*-cygwin* )
6323         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6324         ;;
6325       * ) # otherwise, assume *nix
6326         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6327         ;;
6328     esac
6329     ;;
6330   *-*-cygwin* )
6331     case $build in
6332       *-*-mingw* ) # actually msys
6333         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6334         ;;
6335       *-*-cygwin* )
6336         lt_cv_to_host_file_cmd=func_convert_file_noop
6337         ;;
6338       * ) # otherwise, assume *nix
6339         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6340         ;;
6341     esac
6342     ;;
6343   * ) # unhandled hosts (and "normal" native builds)
6344     lt_cv_to_host_file_cmd=func_convert_file_noop
6345     ;;
6346 esac
6347
6348 fi
6349
6350 to_host_file_cmd=$lt_cv_to_host_file_cmd
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6352 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6353
6354
6355
6356
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6359 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6360 if ${lt_cv_to_tool_file_cmd+:} false; then :
6361   $as_echo_n "(cached) " >&6
6362 else
6363   #assume ordinary cross tools, or native build.
6364 lt_cv_to_tool_file_cmd=func_convert_file_noop
6365 case $host in
6366   *-*-mingw* )
6367     case $build in
6368       *-*-mingw* ) # actually msys
6369         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6370         ;;
6371     esac
6372     ;;
6373 esac
6374
6375 fi
6376
6377 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6379 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6380
6381
6382
6383
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6386 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6387 if ${lt_cv_ld_reload_flag+:} false; then :
6388   $as_echo_n "(cached) " >&6
6389 else
6390   lt_cv_ld_reload_flag='-r'
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6393 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6394 reload_flag=$lt_cv_ld_reload_flag
6395 case $reload_flag in
6396 "" | " "*) ;;
6397 *) reload_flag=" $reload_flag" ;;
6398 esac
6399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6400 case $host_os in
6401   cygwin* | mingw* | pw32* | cegcc*)
6402     if test yes != "$GCC"; then
6403       reload_cmds=false
6404     fi
6405     ;;
6406   darwin*)
6407     if test yes = "$GCC"; then
6408       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6409     else
6410       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6411     fi
6412     ;;
6413 esac
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 if test -n "$ac_tool_prefix"; then
6424   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6425 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_OBJDUMP+:} false; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   if test -n "$OBJDUMP"; then
6432   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439     for ac_exec_ext in '' $ac_executable_extensions; do
6440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446   done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 OBJDUMP=$ac_cv_prog_OBJDUMP
6452 if test -n "$OBJDUMP"; then
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6454 $as_echo "$OBJDUMP" >&6; }
6455 else
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460
6461 fi
6462 if test -z "$ac_cv_prog_OBJDUMP"; then
6463   ac_ct_OBJDUMP=$OBJDUMP
6464   # Extract the first word of "objdump", so it can be a program name with args.
6465 set dummy objdump; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   if test -n "$ac_ct_OBJDUMP"; then
6472   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477   IFS=$as_save_IFS
6478   test -z "$as_dir" && as_dir=.
6479     for ac_exec_ext in '' $ac_executable_extensions; do
6480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483     break 2
6484   fi
6485 done
6486   done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6492 if test -n "$ac_ct_OBJDUMP"; then
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6494 $as_echo "$ac_ct_OBJDUMP" >&6; }
6495 else
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500   if test "x$ac_ct_OBJDUMP" = x; then
6501     OBJDUMP="false"
6502   else
6503     case $cross_compiling:$ac_tool_warned in
6504 yes:)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned=yes ;;
6508 esac
6509     OBJDUMP=$ac_ct_OBJDUMP
6510   fi
6511 else
6512   OBJDUMP="$ac_cv_prog_OBJDUMP"
6513 fi
6514
6515 test -z "$OBJDUMP" && OBJDUMP=objdump
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6526 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6527 if ${lt_cv_deplibs_check_method+:} false; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   lt_cv_file_magic_cmd='$MAGIC_CMD'
6531 lt_cv_file_magic_test_file=
6532 lt_cv_deplibs_check_method='unknown'
6533 # Need to set the preceding variable on all platforms that support
6534 # interlibrary dependencies.
6535 # 'none' -- dependencies not supported.
6536 # 'unknown' -- same as none, but documents that we really don't know.
6537 # 'pass_all' -- all dependencies passed with no checks.
6538 # 'test_compile' -- check by making test program.
6539 # 'file_magic [[regex]]' -- check by looking for files in library path
6540 # that responds to the $file_magic_cmd with a given extended regex.
6541 # If you have 'file' or equivalent on your system and you're not sure
6542 # whether 'pass_all' will *always* work, you probably want this one.
6543
6544 case $host_os in
6545 aix[4-9]*)
6546   lt_cv_deplibs_check_method=pass_all
6547   ;;
6548
6549 beos*)
6550   lt_cv_deplibs_check_method=pass_all
6551   ;;
6552
6553 bsdi[45]*)
6554   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6555   lt_cv_file_magic_cmd='/usr/bin/file -L'
6556   lt_cv_file_magic_test_file=/shlib/libc.so
6557   ;;
6558
6559 cygwin*)
6560   # func_win32_libid is a shell function defined in ltmain.sh
6561   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6562   lt_cv_file_magic_cmd='func_win32_libid'
6563   ;;
6564
6565 mingw* | pw32*)
6566   # Base MSYS/MinGW do not provide the 'file' command needed by
6567   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6568   # unless we find 'file', for example because we are cross-compiling.
6569   if ( file / ) >/dev/null 2>&1; then
6570     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6571     lt_cv_file_magic_cmd='func_win32_libid'
6572   else
6573     # Keep this pattern in sync with the one in func_win32_libid.
6574     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6575     lt_cv_file_magic_cmd='$OBJDUMP -f'
6576   fi
6577   ;;
6578
6579 cegcc*)
6580   # use the weaker test based on 'objdump'. See mingw*.
6581   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6582   lt_cv_file_magic_cmd='$OBJDUMP -f'
6583   ;;
6584
6585 darwin* | rhapsody*)
6586   lt_cv_deplibs_check_method=pass_all
6587   ;;
6588
6589 freebsd* | dragonfly*)
6590   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6591     case $host_cpu in
6592     i*86 )
6593       # Not sure whether the presence of OpenBSD here was a mistake.
6594       # Let's accept both of them until this is cleared up.
6595       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6596       lt_cv_file_magic_cmd=/usr/bin/file
6597       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6598       ;;
6599     esac
6600   else
6601     lt_cv_deplibs_check_method=pass_all
6602   fi
6603   ;;
6604
6605 haiku*)
6606   lt_cv_deplibs_check_method=pass_all
6607   ;;
6608
6609 hpux10.20* | hpux11*)
6610   lt_cv_file_magic_cmd=/usr/bin/file
6611   case $host_cpu in
6612   ia64*)
6613     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6614     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6615     ;;
6616   hppa*64*)
6617     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]'
6618     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6619     ;;
6620   *)
6621     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6622     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6623     ;;
6624   esac
6625   ;;
6626
6627 interix[3-9]*)
6628   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6629   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6630   ;;
6631
6632 irix5* | irix6* | nonstopux*)
6633   case $LD in
6634   *-32|*"-32 ") libmagic=32-bit;;
6635   *-n32|*"-n32 ") libmagic=N32;;
6636   *-64|*"-64 ") libmagic=64-bit;;
6637   *) libmagic=never-match;;
6638   esac
6639   lt_cv_deplibs_check_method=pass_all
6640   ;;
6641
6642 # This must be glibc/ELF.
6643 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6644   lt_cv_deplibs_check_method=pass_all
6645   ;;
6646
6647 netbsd* | netbsdelf*-gnu)
6648   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6650   else
6651     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6652   fi
6653   ;;
6654
6655 newos6*)
6656   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6657   lt_cv_file_magic_cmd=/usr/bin/file
6658   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6659   ;;
6660
6661 *nto* | *qnx*)
6662   lt_cv_deplibs_check_method=pass_all
6663   ;;
6664
6665 openbsd* | bitrig*)
6666   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6668   else
6669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6670   fi
6671   ;;
6672
6673 osf3* | osf4* | osf5*)
6674   lt_cv_deplibs_check_method=pass_all
6675   ;;
6676
6677 rdos*)
6678   lt_cv_deplibs_check_method=pass_all
6679   ;;
6680
6681 solaris*)
6682   lt_cv_deplibs_check_method=pass_all
6683   ;;
6684
6685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6686   lt_cv_deplibs_check_method=pass_all
6687   ;;
6688
6689 sysv4 | sysv4.3*)
6690   case $host_vendor in
6691   motorola)
6692     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]'
6693     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6694     ;;
6695   ncr)
6696     lt_cv_deplibs_check_method=pass_all
6697     ;;
6698   sequent)
6699     lt_cv_file_magic_cmd='/bin/file'
6700     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6701     ;;
6702   sni)
6703     lt_cv_file_magic_cmd='/bin/file'
6704     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6705     lt_cv_file_magic_test_file=/lib/libc.so
6706     ;;
6707   siemens)
6708     lt_cv_deplibs_check_method=pass_all
6709     ;;
6710   pc)
6711     lt_cv_deplibs_check_method=pass_all
6712     ;;
6713   esac
6714   ;;
6715
6716 tpf*)
6717   lt_cv_deplibs_check_method=pass_all
6718   ;;
6719 os2*)
6720   lt_cv_deplibs_check_method=pass_all
6721   ;;
6722 esac
6723
6724 fi
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6726 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6727
6728 file_magic_glob=
6729 want_nocaseglob=no
6730 if test "$build" = "$host"; then
6731   case $host_os in
6732   mingw* | pw32*)
6733     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6734       want_nocaseglob=yes
6735     else
6736       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6737     fi
6738     ;;
6739   esac
6740 fi
6741
6742 file_magic_cmd=$lt_cv_file_magic_cmd
6743 deplibs_check_method=$lt_cv_deplibs_check_method
6744 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767 if test -n "$ac_tool_prefix"; then
6768   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_DLLTOOL+:} false; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   if test -n "$DLLTOOL"; then
6776   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783     for ac_exec_ext in '' $ac_executable_extensions; do
6784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790   done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 DLLTOOL=$ac_cv_prog_DLLTOOL
6796 if test -n "$DLLTOOL"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6798 $as_echo "$DLLTOOL" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_DLLTOOL"; then
6807   ac_ct_DLLTOOL=$DLLTOOL
6808   # Extract the first word of "dlltool", so it can be a program name with args.
6809 set dummy dlltool; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$ac_ct_DLLTOOL"; then
6816   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6836 if test -n "$ac_ct_DLLTOOL"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6838 $as_echo "$ac_ct_DLLTOOL" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_DLLTOOL" = x; then
6845     DLLTOOL="false"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853     DLLTOOL=$ac_ct_DLLTOOL
6854   fi
6855 else
6856   DLLTOOL="$ac_cv_prog_DLLTOOL"
6857 fi
6858
6859 test -z "$DLLTOOL" && DLLTOOL=dlltool
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6871 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6872 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   lt_cv_sharedlib_from_linklib_cmd='unknown'
6876
6877 case $host_os in
6878 cygwin* | mingw* | pw32* | cegcc*)
6879   # two different shell functions defined in ltmain.sh;
6880   # decide which one to use based on capabilities of $DLLTOOL
6881   case `$DLLTOOL --help 2>&1` in
6882   *--identify-strict*)
6883     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6884     ;;
6885   *)
6886     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6887     ;;
6888   esac
6889   ;;
6890 *)
6891   # fallback: assume linklib IS sharedlib
6892   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6893   ;;
6894 esac
6895
6896 fi
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6898 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6899 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6900 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6901
6902
6903
6904
6905
6906
6907
6908 if test -n "$ac_tool_prefix"; then
6909   for ac_prog in ar
6910   do
6911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_AR+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$AR"; then
6919   ac_cv_prog_AR="$AR" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 AR=$ac_cv_prog_AR
6939 if test -n "$AR"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6941 $as_echo "$AR" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947
6948     test -n "$AR" && break
6949   done
6950 fi
6951 if test -z "$AR"; then
6952   ac_ct_AR=$AR
6953   for ac_prog in ar
6954 do
6955   # Extract the first word of "$ac_prog", so it can be a program name with args.
6956 set dummy $ac_prog; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   if test -n "$ac_ct_AR"; then
6963   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970     for ac_exec_ext in '' $ac_executable_extensions; do
6971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972     ac_cv_prog_ac_ct_AR="$ac_prog"
6973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974     break 2
6975   fi
6976 done
6977   done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6983 if test -n "$ac_ct_AR"; then
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6985 $as_echo "$ac_ct_AR" >&6; }
6986 else
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991
6992   test -n "$ac_ct_AR" && break
6993 done
6994
6995   if test "x$ac_ct_AR" = x; then
6996     AR="false"
6997   else
6998     case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004     AR=$ac_ct_AR
7005   fi
7006 fi
7007
7008 : ${AR=ar}
7009 : ${AR_FLAGS=cr}
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7022 $as_echo_n "checking for archiver @FILE support... " >&6; }
7023 if ${lt_cv_ar_at_file+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   lt_cv_ar_at_file=no
7027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029
7030 int
7031 main ()
7032 {
7033
7034   ;
7035   return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039   echo conftest.$ac_objext > conftest.lst
7040       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7041       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7042   (eval $lt_ar_try) 2>&5
7043   ac_status=$?
7044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045   test $ac_status = 0; }
7046       if test 0 -eq "$ac_status"; then
7047         # Ensure the archiver fails upon bogus file names.
7048         rm -f conftest.$ac_objext libconftest.a
7049         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7050   (eval $lt_ar_try) 2>&5
7051   ac_status=$?
7052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053   test $ac_status = 0; }
7054         if test 0 -ne "$ac_status"; then
7055           lt_cv_ar_at_file=@
7056         fi
7057       fi
7058       rm -f conftest.* libconftest.a
7059
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7065 $as_echo "$lt_cv_ar_at_file" >&6; }
7066
7067 if test no = "$lt_cv_ar_at_file"; then
7068   archiver_list_spec=
7069 else
7070   archiver_list_spec=$lt_cv_ar_at_file
7071 fi
7072
7073
7074
7075
7076
7077
7078
7079 if test -n "$ac_tool_prefix"; then
7080   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}strip; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_STRIP+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   if test -n "$STRIP"; then
7088   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095     for ac_exec_ext in '' $ac_executable_extensions; do
7096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102   done
7103 IFS=$as_save_IFS
7104
7105 fi
7106 fi
7107 STRIP=$ac_cv_prog_STRIP
7108 if test -n "$STRIP"; then
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7110 $as_echo "$STRIP" >&6; }
7111 else
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115
7116
7117 fi
7118 if test -z "$ac_cv_prog_STRIP"; then
7119   ac_ct_STRIP=$STRIP
7120   # Extract the first word of "strip", so it can be a program name with args.
7121 set dummy strip; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   if test -n "$ac_ct_STRIP"; then
7128   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135     for ac_exec_ext in '' $ac_executable_extensions; do
7136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137     ac_cv_prog_ac_ct_STRIP="strip"
7138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142   done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7148 if test -n "$ac_ct_STRIP"; then
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7150 $as_echo "$ac_ct_STRIP" >&6; }
7151 else
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156   if test "x$ac_ct_STRIP" = x; then
7157     STRIP=":"
7158   else
7159     case $cross_compiling:$ac_tool_warned in
7160 yes:)
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163 ac_tool_warned=yes ;;
7164 esac
7165     STRIP=$ac_ct_STRIP
7166   fi
7167 else
7168   STRIP="$ac_cv_prog_STRIP"
7169 fi
7170
7171 test -z "$STRIP" && STRIP=:
7172
7173
7174
7175
7176
7177
7178 if test -n "$ac_tool_prefix"; then
7179   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_RANLIB+:} false; then :
7184   $as_echo_n "(cached) " >&6
7185 else
7186   if test -n "$RANLIB"; then
7187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192   IFS=$as_save_IFS
7193   test -z "$as_dir" && as_dir=.
7194     for ac_exec_ext in '' $ac_executable_extensions; do
7195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198     break 2
7199   fi
7200 done
7201   done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 RANLIB=$ac_cv_prog_RANLIB
7207 if test -n "$RANLIB"; then
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7209 $as_echo "$RANLIB" >&6; }
7210 else
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_RANLIB"; then
7218   ac_ct_RANLIB=$RANLIB
7219   # Extract the first word of "ranlib", so it can be a program name with args.
7220 set dummy ranlib; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   if test -n "$ac_ct_RANLIB"; then
7227   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234     for ac_exec_ext in '' $ac_executable_extensions; do
7235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236     ac_cv_prog_ac_ct_RANLIB="ranlib"
7237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241   done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7247 if test -n "$ac_ct_RANLIB"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7249 $as_echo "$ac_ct_RANLIB" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255   if test "x$ac_ct_RANLIB" = x; then
7256     RANLIB=":"
7257   else
7258     case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264     RANLIB=$ac_ct_RANLIB
7265   fi
7266 else
7267   RANLIB="$ac_cv_prog_RANLIB"
7268 fi
7269
7270 test -z "$RANLIB" && RANLIB=:
7271
7272
7273
7274
7275
7276
7277 # Determine commands to create old-style static archives.
7278 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7279 old_postinstall_cmds='chmod 644 $oldlib'
7280 old_postuninstall_cmds=
7281
7282 if test -n "$RANLIB"; then
7283   case $host_os in
7284   bitrig* | openbsd*)
7285     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7286     ;;
7287   *)
7288     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7289     ;;
7290   esac
7291   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7292 fi
7293
7294 case $host_os in
7295   darwin*)
7296     lock_old_archive_extraction=yes ;;
7297   *)
7298     lock_old_archive_extraction=no ;;
7299 esac
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339 # If no C compiler was specified, use CC.
7340 LTCC=${LTCC-"$CC"}
7341
7342 # If no C compiler flags were specified, use CFLAGS.
7343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7344
7345 # Allow CC to be a program name with arguments.
7346 compiler=$CC
7347
7348
7349 # Check for command to grab the raw symbol name followed by C symbol from nm.
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7351 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7352 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355
7356 # These are sane defaults that work on at least a few old systems.
7357 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7358
7359 # Character class describing NM global symbol codes.
7360 symcode='[BCDEGRST]'
7361
7362 # Regexp to match symbols that can be accessed directly from C.
7363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7364
7365 # Define system-specific variables.
7366 case $host_os in
7367 aix*)
7368   symcode='[BCDT]'
7369   ;;
7370 cygwin* | mingw* | pw32* | cegcc*)
7371   symcode='[ABCDGISTW]'
7372   ;;
7373 hpux*)
7374   if test ia64 = "$host_cpu"; then
7375     symcode='[ABCDEGRST]'
7376   fi
7377   ;;
7378 irix* | nonstopux*)
7379   symcode='[BCDEGRST]'
7380   ;;
7381 osf*)
7382   symcode='[BCDEGQRST]'
7383   ;;
7384 solaris*)
7385   symcode='[BDRT]'
7386   ;;
7387 sco3.2v5*)
7388   symcode='[DT]'
7389   ;;
7390 sysv4.2uw2*)
7391   symcode='[DT]'
7392   ;;
7393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7394   symcode='[ABDT]'
7395   ;;
7396 sysv4)
7397   symcode='[DFNSTU]'
7398   ;;
7399 esac
7400
7401 # If we're using GNU nm, then use its standard symbol codes.
7402 case `$NM -V 2>&1` in
7403 *GNU* | *'with BFD'*)
7404   symcode='[ABCDGIRSTW]' ;;
7405 esac
7406
7407 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7408   # Gets list of data symbols to import.
7409   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7410   # Adjust the below global symbol transforms to fixup imported variables.
7411   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7412   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7413   lt_c_name_lib_hook="\
7414   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7415   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7416 else
7417   # Disable hooks by default.
7418   lt_cv_sys_global_symbol_to_import=
7419   lt_cdecl_hook=
7420   lt_c_name_hook=
7421   lt_c_name_lib_hook=
7422 fi
7423
7424 # Transform an extracted symbol line into a proper C declaration.
7425 # Some systems (esp. on ia64) link data and code symbols differently,
7426 # so use this general approach.
7427 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7428 $lt_cdecl_hook\
7429 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7430 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7431
7432 # Transform an extracted symbol line into symbol name and symbol address
7433 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7434 $lt_c_name_hook\
7435 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7436 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7437
7438 # Transform an extracted symbol line into symbol name with lib prefix and
7439 # symbol address.
7440 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7441 $lt_c_name_lib_hook\
7442 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7443 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7444 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7445
7446 # Handle CRLF in mingw tool chain
7447 opt_cr=
7448 case $build_os in
7449 mingw*)
7450   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7451   ;;
7452 esac
7453
7454 # Try without a prefix underscore, then with it.
7455 for ac_symprfx in "" "_"; do
7456
7457   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7458   symxfrm="\\1 $ac_symprfx\\2 \\2"
7459
7460   # Write the raw and C identifiers.
7461   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7462     # Fake it for dumpbin and say T for any non-static function,
7463     # D for any global variable and I for any imported variable.
7464     # Also find C++ and __fastcall symbols from MSVC++,
7465     # which start with @ or ?.
7466     lt_cv_sys_global_symbol_pipe="$AWK '"\
7467 "     {last_section=section; section=\$ 3};"\
7468 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7469 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7470 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7471 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7472 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7473 "     \$ 0!~/External *\|/{next};"\
7474 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7475 "     {if(hide[section]) next};"\
7476 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7477 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7478 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7479 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7480 "     ' prfx=^$ac_symprfx"
7481   else
7482     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7483   fi
7484   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7485
7486   # Check to see that the pipe works correctly.
7487   pipe_works=no
7488
7489   rm -f conftest*
7490   cat > conftest.$ac_ext <<_LT_EOF
7491 #ifdef __cplusplus
7492 extern "C" {
7493 #endif
7494 char nm_test_var;
7495 void nm_test_func(void);
7496 void nm_test_func(void){}
7497 #ifdef __cplusplus
7498 }
7499 #endif
7500 int main(){nm_test_var='a';nm_test_func();return(0);}
7501 _LT_EOF
7502
7503   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504   (eval $ac_compile) 2>&5
7505   ac_status=$?
7506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507   test $ac_status = 0; }; then
7508     # Now try to grab the symbols.
7509     nlist=conftest.nm
7510     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7511     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7512       # Try sorting and uniquifying the output.
7513       if sort "$nlist" | uniq > "$nlist"T; then
7514         mv -f "$nlist"T "$nlist"
7515       else
7516         rm -f "$nlist"T
7517       fi
7518
7519       # Make sure that we snagged all the symbols we need.
7520       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7521         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7522           cat <<_LT_EOF > conftest.$ac_ext
7523 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7524 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7525 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7526    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7527 # define LT_DLSYM_CONST
7528 #elif defined __osf__
7529 /* This system does not cope well with relocations in const data.  */
7530 # define LT_DLSYM_CONST
7531 #else
7532 # define LT_DLSYM_CONST const
7533 #endif
7534
7535 #ifdef __cplusplus
7536 extern "C" {
7537 #endif
7538
7539 _LT_EOF
7540           # Now generate the symbol file.
7541           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7542
7543           cat <<_LT_EOF >> conftest.$ac_ext
7544
7545 /* The mapping between symbol names and symbols.  */
7546 LT_DLSYM_CONST struct {
7547   const char *name;
7548   void       *address;
7549 }
7550 lt__PROGRAM__LTX_preloaded_symbols[] =
7551 {
7552   { "@PROGRAM@", (void *) 0 },
7553 _LT_EOF
7554           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7555           cat <<\_LT_EOF >> conftest.$ac_ext
7556   {0, (void *) 0}
7557 };
7558
7559 /* This works around a problem in FreeBSD linker */
7560 #ifdef FREEBSD_WORKAROUND
7561 static const void *lt_preloaded_setup() {
7562   return lt__PROGRAM__LTX_preloaded_symbols;
7563 }
7564 #endif
7565
7566 #ifdef __cplusplus
7567 }
7568 #endif
7569 _LT_EOF
7570           # Now try linking the two files.
7571           mv conftest.$ac_objext conftstm.$ac_objext
7572           lt_globsym_save_LIBS=$LIBS
7573           lt_globsym_save_CFLAGS=$CFLAGS
7574           LIBS=conftstm.$ac_objext
7575           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7576           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7577   (eval $ac_link) 2>&5
7578   ac_status=$?
7579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7581             pipe_works=yes
7582           fi
7583           LIBS=$lt_globsym_save_LIBS
7584           CFLAGS=$lt_globsym_save_CFLAGS
7585         else
7586           echo "cannot find nm_test_func in $nlist" >&5
7587         fi
7588       else
7589         echo "cannot find nm_test_var in $nlist" >&5
7590       fi
7591     else
7592       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7593     fi
7594   else
7595     echo "$progname: failed program was:" >&5
7596     cat conftest.$ac_ext >&5
7597   fi
7598   rm -rf conftest* conftst*
7599
7600   # Do not use the global_symbol_pipe unless it works.
7601   if test yes = "$pipe_works"; then
7602     break
7603   else
7604     lt_cv_sys_global_symbol_pipe=
7605   fi
7606 done
7607
7608 fi
7609
7610 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7611   lt_cv_sys_global_symbol_to_cdecl=
7612 fi
7613 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7615 $as_echo "failed" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7618 $as_echo "ok" >&6; }
7619 fi
7620
7621 # Response file support.
7622 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7623   nm_file_list_spec='@'
7624 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7625   nm_file_list_spec='@'
7626 fi
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7665 $as_echo_n "checking for sysroot... " >&6; }
7666
7667 # Check whether --with-sysroot was given.
7668 if test "${with_sysroot+set}" = set; then :
7669   withval=$with_sysroot;
7670 else
7671   with_sysroot=no
7672 fi
7673
7674
7675 lt_sysroot=
7676 case $with_sysroot in #(
7677  yes)
7678    if test yes = "$GCC"; then
7679      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7680    fi
7681    ;; #(
7682  /*)
7683    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7684    ;; #(
7685  no|'')
7686    ;; #(
7687  *)
7688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7689 $as_echo "$with_sysroot" >&6; }
7690    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7691    ;;
7692 esac
7693
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7695 $as_echo "${lt_sysroot:-no}" >&6; }
7696
7697
7698
7699
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7702 $as_echo_n "checking for a working dd... " >&6; }
7703 if ${ac_cv_path_lt_DD+:} false; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   printf 0123456789abcdef0123456789abcdef >conftest.i
7707 cat conftest.i conftest.i >conftest2.i
7708 : ${lt_DD:=$DD}
7709 if test -z "$lt_DD"; then
7710   ac_path_lt_DD_found=false
7711   # Loop through the user's path and test for each of PROGNAME-LIST
7712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717     for ac_prog in dd; do
7718     for ac_exec_ext in '' $ac_executable_extensions; do
7719       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7720       as_fn_executable_p "$ac_path_lt_DD" || continue
7721 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7722   cmp -s conftest.i conftest.out \
7723   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7724 fi
7725       $ac_path_lt_DD_found && break 3
7726     done
7727   done
7728   done
7729 IFS=$as_save_IFS
7730   if test -z "$ac_cv_path_lt_DD"; then
7731     :
7732   fi
7733 else
7734   ac_cv_path_lt_DD=$lt_DD
7735 fi
7736
7737 rm -f conftest.i conftest2.i conftest.out
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7740 $as_echo "$ac_cv_path_lt_DD" >&6; }
7741
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7744 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7745 if ${lt_cv_truncate_bin+:} false; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   printf 0123456789abcdef0123456789abcdef >conftest.i
7749 cat conftest.i conftest.i >conftest2.i
7750 lt_cv_truncate_bin=
7751 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7752   cmp -s conftest.i conftest.out \
7753   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7754 fi
7755 rm -f conftest.i conftest2.i conftest.out
7756 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7759 $as_echo "$lt_cv_truncate_bin" >&6; }
7760
7761
7762
7763
7764
7765
7766
7767 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7768 func_cc_basename ()
7769 {
7770     for cc_temp in $*""; do
7771       case $cc_temp in
7772         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7773         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7774         \-*) ;;
7775         *) break;;
7776       esac
7777     done
7778     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7779 }
7780
7781 # Check whether --enable-libtool-lock was given.
7782 if test "${enable_libtool_lock+set}" = set; then :
7783   enableval=$enable_libtool_lock;
7784 fi
7785
7786 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7787
7788 # Some flags need to be propagated to the compiler or linker for good
7789 # libtool support.
7790 case $host in
7791 ia64-*-hpux*)
7792   # Find out what ABI is being produced by ac_compile, and set mode
7793   # options accordingly.
7794   echo 'int i;' > conftest.$ac_ext
7795   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7796   (eval $ac_compile) 2>&5
7797   ac_status=$?
7798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7799   test $ac_status = 0; }; then
7800     case `/usr/bin/file conftest.$ac_objext` in
7801       *ELF-32*)
7802         HPUX_IA64_MODE=32
7803         ;;
7804       *ELF-64*)
7805         HPUX_IA64_MODE=64
7806         ;;
7807     esac
7808   fi
7809   rm -rf conftest*
7810   ;;
7811 *-*-irix6*)
7812   # Find out what ABI is being produced by ac_compile, and set linker
7813   # options accordingly.
7814   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7815   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7816   (eval $ac_compile) 2>&5
7817   ac_status=$?
7818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819   test $ac_status = 0; }; then
7820     if test yes = "$lt_cv_prog_gnu_ld"; then
7821       case `/usr/bin/file conftest.$ac_objext` in
7822         *32-bit*)
7823           LD="${LD-ld} -melf32bsmip"
7824           ;;
7825         *N32*)
7826           LD="${LD-ld} -melf32bmipn32"
7827           ;;
7828         *64-bit*)
7829           LD="${LD-ld} -melf64bmip"
7830         ;;
7831       esac
7832     else
7833       case `/usr/bin/file conftest.$ac_objext` in
7834         *32-bit*)
7835           LD="${LD-ld} -32"
7836           ;;
7837         *N32*)
7838           LD="${LD-ld} -n32"
7839           ;;
7840         *64-bit*)
7841           LD="${LD-ld} -64"
7842           ;;
7843       esac
7844     fi
7845   fi
7846   rm -rf conftest*
7847   ;;
7848
7849 mips64*-*linux*)
7850   # Find out what ABI is being produced by ac_compile, and set linker
7851   # options accordingly.
7852   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7853   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7854   (eval $ac_compile) 2>&5
7855   ac_status=$?
7856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857   test $ac_status = 0; }; then
7858     emul=elf
7859     case `/usr/bin/file conftest.$ac_objext` in
7860       *32-bit*)
7861         emul="${emul}32"
7862         ;;
7863       *64-bit*)
7864         emul="${emul}64"
7865         ;;
7866     esac
7867     case `/usr/bin/file conftest.$ac_objext` in
7868       *MSB*)
7869         emul="${emul}btsmip"
7870         ;;
7871       *LSB*)
7872         emul="${emul}ltsmip"
7873         ;;
7874     esac
7875     case `/usr/bin/file conftest.$ac_objext` in
7876       *N32*)
7877         emul="${emul}n32"
7878         ;;
7879     esac
7880     LD="${LD-ld} -m $emul"
7881   fi
7882   rm -rf conftest*
7883   ;;
7884
7885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7887   # Find out what ABI is being produced by ac_compile, and set linker
7888   # options accordingly.  Note that the listed cases only cover the
7889   # situations where additional linker options are needed (such as when
7890   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7891   # vice versa); the common cases where no linker options are needed do
7892   # not appear in the list.
7893   echo 'int i;' > conftest.$ac_ext
7894   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7895   (eval $ac_compile) 2>&5
7896   ac_status=$?
7897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898   test $ac_status = 0; }; then
7899     case `/usr/bin/file conftest.o` in
7900       *32-bit*)
7901         case $host in
7902           x86_64-*kfreebsd*-gnu)
7903             LD="${LD-ld} -m elf_i386_fbsd"
7904             ;;
7905           x86_64-*linux*)
7906             case `/usr/bin/file conftest.o` in
7907               *x86-64*)
7908                 LD="${LD-ld} -m elf32_x86_64"
7909                 ;;
7910               *)
7911                 LD="${LD-ld} -m elf_i386"
7912                 ;;
7913             esac
7914             ;;
7915           powerpc64le-*linux*)
7916             LD="${LD-ld} -m elf32lppclinux"
7917             ;;
7918           powerpc64-*linux*)
7919             LD="${LD-ld} -m elf32ppclinux"
7920             ;;
7921           s390x-*linux*)
7922             LD="${LD-ld} -m elf_s390"
7923             ;;
7924           sparc64-*linux*)
7925             LD="${LD-ld} -m elf32_sparc"
7926             ;;
7927         esac
7928         ;;
7929       *64-bit*)
7930         case $host in
7931           x86_64-*kfreebsd*-gnu)
7932             LD="${LD-ld} -m elf_x86_64_fbsd"
7933             ;;
7934           x86_64-*linux*)
7935             LD="${LD-ld} -m elf_x86_64"
7936             ;;
7937           powerpcle-*linux*)
7938             LD="${LD-ld} -m elf64lppc"
7939             ;;
7940           powerpc-*linux*)
7941             LD="${LD-ld} -m elf64ppc"
7942             ;;
7943           s390*-*linux*|s390*-*tpf*)
7944             LD="${LD-ld} -m elf64_s390"
7945             ;;
7946           sparc*-*linux*)
7947             LD="${LD-ld} -m elf64_sparc"
7948             ;;
7949         esac
7950         ;;
7951     esac
7952   fi
7953   rm -rf conftest*
7954   ;;
7955
7956 *-*-sco3.2v5*)
7957   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7958   SAVE_CFLAGS=$CFLAGS
7959   CFLAGS="$CFLAGS -belf"
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7962 if ${lt_cv_cc_needs_belf+:} false; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   ac_ext=c
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h.  */
7973
7974 int
7975 main ()
7976 {
7977
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983   lt_cv_cc_needs_belf=yes
7984 else
7985   lt_cv_cc_needs_belf=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988     conftest$ac_exeext conftest.$ac_ext
7989      ac_ext=c
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7998   if test yes != "$lt_cv_cc_needs_belf"; then
7999     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8000     CFLAGS=$SAVE_CFLAGS
8001   fi
8002   ;;
8003 *-*solaris*)
8004   # Find out what ABI is being produced by ac_compile, and set linker
8005   # options accordingly.
8006   echo 'int i;' > conftest.$ac_ext
8007   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8008   (eval $ac_compile) 2>&5
8009   ac_status=$?
8010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011   test $ac_status = 0; }; then
8012     case `/usr/bin/file conftest.o` in
8013     *64-bit*)
8014       case $lt_cv_prog_gnu_ld in
8015       yes*)
8016         case $host in
8017         i?86-*-solaris*|x86_64-*-solaris*)
8018           LD="${LD-ld} -m elf_x86_64"
8019           ;;
8020         sparc*-*-solaris*)
8021           LD="${LD-ld} -m elf64_sparc"
8022           ;;
8023         esac
8024         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8025         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8026           LD=${LD-ld}_sol2
8027         fi
8028         ;;
8029       *)
8030         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8031           LD="${LD-ld} -64"
8032         fi
8033         ;;
8034       esac
8035       ;;
8036     esac
8037   fi
8038   rm -rf conftest*
8039   ;;
8040 esac
8041
8042 need_locks=$enable_libtool_lock
8043
8044 if test -n "$ac_tool_prefix"; then
8045   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8046 set dummy ${ac_tool_prefix}mt; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   if test -n "$MANIFEST_TOOL"; then
8053   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8054 else
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $PATH
8057 do
8058   IFS=$as_save_IFS
8059   test -z "$as_dir" && as_dir=.
8060     for ac_exec_ext in '' $ac_executable_extensions; do
8061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064     break 2
8065   fi
8066 done
8067   done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8073 if test -n "$MANIFEST_TOOL"; then
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8075 $as_echo "$MANIFEST_TOOL" >&6; }
8076 else
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081
8082 fi
8083 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8084   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8085   # Extract the first word of "mt", so it can be a program name with args.
8086 set dummy mt; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   if test -n "$ac_ct_MANIFEST_TOOL"; then
8093   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100     for ac_exec_ext in '' $ac_executable_extensions; do
8101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107   done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8113 if test -n "$ac_ct_MANIFEST_TOOL"; then
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8115 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8116 else
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8122     MANIFEST_TOOL=":"
8123   else
8124     case $cross_compiling:$ac_tool_warned in
8125 yes:)
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8128 ac_tool_warned=yes ;;
8129 esac
8130     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8131   fi
8132 else
8133   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8134 fi
8135
8136 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8138 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8139 if ${lt_cv_path_mainfest_tool+:} false; then :
8140   $as_echo_n "(cached) " >&6
8141 else
8142   lt_cv_path_mainfest_tool=no
8143   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8144   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8145   cat conftest.err >&5
8146   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8147     lt_cv_path_mainfest_tool=yes
8148   fi
8149   rm -f conftest*
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8152 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8153 if test yes != "$lt_cv_path_mainfest_tool"; then
8154   MANIFEST_TOOL=:
8155 fi
8156
8157
8158
8159
8160
8161
8162   case $host_os in
8163     rhapsody* | darwin*)
8164     if test -n "$ac_tool_prefix"; then
8165   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   if test -n "$DSYMUTIL"; then
8173   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180     for ac_exec_ext in '' $ac_executable_extensions; do
8181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187   done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8193 if test -n "$DSYMUTIL"; then
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8195 $as_echo "$DSYMUTIL" >&6; }
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201
8202 fi
8203 if test -z "$ac_cv_prog_DSYMUTIL"; then
8204   ac_ct_DSYMUTIL=$DSYMUTIL
8205   # Extract the first word of "dsymutil", so it can be a program name with args.
8206 set dummy dsymutil; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   if test -n "$ac_ct_DSYMUTIL"; then
8213   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218   IFS=$as_save_IFS
8219   test -z "$as_dir" && as_dir=.
8220     for ac_exec_ext in '' $ac_executable_extensions; do
8221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227   done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8233 if test -n "$ac_ct_DSYMUTIL"; then
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8235 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8236 else
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240
8241   if test "x$ac_ct_DSYMUTIL" = x; then
8242     DSYMUTIL=":"
8243   else
8244     case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8249 esac
8250     DSYMUTIL=$ac_ct_DSYMUTIL
8251   fi
8252 else
8253   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8254 fi
8255
8256     if test -n "$ac_tool_prefix"; then
8257   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8258 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_prog_NMEDIT+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   if test -n "$NMEDIT"; then
8265   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270   IFS=$as_save_IFS
8271   test -z "$as_dir" && as_dir=.
8272     for ac_exec_ext in '' $ac_executable_extensions; do
8273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276     break 2
8277   fi
8278 done
8279   done
8280 IFS=$as_save_IFS
8281
8282 fi
8283 fi
8284 NMEDIT=$ac_cv_prog_NMEDIT
8285 if test -n "$NMEDIT"; then
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8287 $as_echo "$NMEDIT" >&6; }
8288 else
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294 fi
8295 if test -z "$ac_cv_prog_NMEDIT"; then
8296   ac_ct_NMEDIT=$NMEDIT
8297   # Extract the first word of "nmedit", so it can be a program name with args.
8298 set dummy nmedit; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   if test -n "$ac_ct_NMEDIT"; then
8305   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312     for ac_exec_ext in '' $ac_executable_extensions; do
8313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319   done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8325 if test -n "$ac_ct_NMEDIT"; then
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8327 $as_echo "$ac_ct_NMEDIT" >&6; }
8328 else
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8331 fi
8332
8333   if test "x$ac_ct_NMEDIT" = x; then
8334     NMEDIT=":"
8335   else
8336     case $cross_compiling:$ac_tool_warned in
8337 yes:)
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8341 esac
8342     NMEDIT=$ac_ct_NMEDIT
8343   fi
8344 else
8345   NMEDIT="$ac_cv_prog_NMEDIT"
8346 fi
8347
8348     if test -n "$ac_tool_prefix"; then
8349   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8350 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if ${ac_cv_prog_LIPO+:} false; then :
8354   $as_echo_n "(cached) " >&6
8355 else
8356   if test -n "$LIPO"; then
8357   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362   IFS=$as_save_IFS
8363   test -z "$as_dir" && as_dir=.
8364     for ac_exec_ext in '' $ac_executable_extensions; do
8365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368     break 2
8369   fi
8370 done
8371   done
8372 IFS=$as_save_IFS
8373
8374 fi
8375 fi
8376 LIPO=$ac_cv_prog_LIPO
8377 if test -n "$LIPO"; then
8378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8379 $as_echo "$LIPO" >&6; }
8380 else
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8384
8385
8386 fi
8387 if test -z "$ac_cv_prog_LIPO"; then
8388   ac_ct_LIPO=$LIPO
8389   # Extract the first word of "lipo", so it can be a program name with args.
8390 set dummy lipo; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   if test -n "$ac_ct_LIPO"; then
8397   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404     for ac_exec_ext in '' $ac_executable_extensions; do
8405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406     ac_cv_prog_ac_ct_LIPO="lipo"
8407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411   done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8417 if test -n "$ac_ct_LIPO"; then
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8419 $as_echo "$ac_ct_LIPO" >&6; }
8420 else
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424
8425   if test "x$ac_ct_LIPO" = x; then
8426     LIPO=":"
8427   else
8428     case $cross_compiling:$ac_tool_warned in
8429 yes:)
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8432 ac_tool_warned=yes ;;
8433 esac
8434     LIPO=$ac_ct_LIPO
8435   fi
8436 else
8437   LIPO="$ac_cv_prog_LIPO"
8438 fi
8439
8440     if test -n "$ac_tool_prefix"; then
8441   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8442 set dummy ${ac_tool_prefix}otool; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if ${ac_cv_prog_OTOOL+:} false; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   if test -n "$OTOOL"; then
8449   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454   IFS=$as_save_IFS
8455   test -z "$as_dir" && as_dir=.
8456     for ac_exec_ext in '' $ac_executable_extensions; do
8457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460     break 2
8461   fi
8462 done
8463   done
8464 IFS=$as_save_IFS
8465
8466 fi
8467 fi
8468 OTOOL=$ac_cv_prog_OTOOL
8469 if test -n "$OTOOL"; then
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8471 $as_echo "$OTOOL" >&6; }
8472 else
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8475 fi
8476
8477
8478 fi
8479 if test -z "$ac_cv_prog_OTOOL"; then
8480   ac_ct_OTOOL=$OTOOL
8481   # Extract the first word of "otool", so it can be a program name with args.
8482 set dummy otool; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   if test -n "$ac_ct_OTOOL"; then
8489   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494   IFS=$as_save_IFS
8495   test -z "$as_dir" && as_dir=.
8496     for ac_exec_ext in '' $ac_executable_extensions; do
8497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8498     ac_cv_prog_ac_ct_OTOOL="otool"
8499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500     break 2
8501   fi
8502 done
8503   done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8509 if test -n "$ac_ct_OTOOL"; then
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8511 $as_echo "$ac_ct_OTOOL" >&6; }
8512 else
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517   if test "x$ac_ct_OTOOL" = x; then
8518     OTOOL=":"
8519   else
8520     case $cross_compiling:$ac_tool_warned in
8521 yes:)
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8524 ac_tool_warned=yes ;;
8525 esac
8526     OTOOL=$ac_ct_OTOOL
8527   fi
8528 else
8529   OTOOL="$ac_cv_prog_OTOOL"
8530 fi
8531
8532     if test -n "$ac_tool_prefix"; then
8533   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8534 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 $as_echo_n "checking for $ac_word... " >&6; }
8537 if ${ac_cv_prog_OTOOL64+:} false; then :
8538   $as_echo_n "(cached) " >&6
8539 else
8540   if test -n "$OTOOL64"; then
8541   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8542 else
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8545 do
8546   IFS=$as_save_IFS
8547   test -z "$as_dir" && as_dir=.
8548     for ac_exec_ext in '' $ac_executable_extensions; do
8549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552     break 2
8553   fi
8554 done
8555   done
8556 IFS=$as_save_IFS
8557
8558 fi
8559 fi
8560 OTOOL64=$ac_cv_prog_OTOOL64
8561 if test -n "$OTOOL64"; then
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8563 $as_echo "$OTOOL64" >&6; }
8564 else
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 fi
8568
8569
8570 fi
8571 if test -z "$ac_cv_prog_OTOOL64"; then
8572   ac_ct_OTOOL64=$OTOOL64
8573   # Extract the first word of "otool64", so it can be a program name with args.
8574 set dummy otool64; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   if test -n "$ac_ct_OTOOL64"; then
8581   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8582 else
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8585 do
8586   IFS=$as_save_IFS
8587   test -z "$as_dir" && as_dir=.
8588     for ac_exec_ext in '' $ac_executable_extensions; do
8589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590     ac_cv_prog_ac_ct_OTOOL64="otool64"
8591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592     break 2
8593   fi
8594 done
8595   done
8596 IFS=$as_save_IFS
8597
8598 fi
8599 fi
8600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8601 if test -n "$ac_ct_OTOOL64"; then
8602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8603 $as_echo "$ac_ct_OTOOL64" >&6; }
8604 else
8605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8607 fi
8608
8609   if test "x$ac_ct_OTOOL64" = x; then
8610     OTOOL64=":"
8611   else
8612     case $cross_compiling:$ac_tool_warned in
8613 yes:)
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8616 ac_tool_warned=yes ;;
8617 esac
8618     OTOOL64=$ac_ct_OTOOL64
8619   fi
8620 else
8621   OTOOL64="$ac_cv_prog_OTOOL64"
8622 fi
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8651 $as_echo_n "checking for -single_module linker flag... " >&6; }
8652 if ${lt_cv_apple_cc_single_mod+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   lt_cv_apple_cc_single_mod=no
8656       if test -z "$LT_MULTI_MODULE"; then
8657         # By default we will add the -single_module flag. You can override
8658         # by either setting the environment variable LT_MULTI_MODULE
8659         # non-empty at configure time, or by adding -multi_module to the
8660         # link flags.
8661         rm -rf libconftest.dylib*
8662         echo "int foo(void){return 1;}" > conftest.c
8663         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8664 -dynamiclib -Wl,-single_module conftest.c" >&5
8665         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8666           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8667         _lt_result=$?
8668         # If there is a non-empty error log, and "single_module"
8669         # appears in it, assume the flag caused a linker warning
8670         if test -s conftest.err && $GREP single_module conftest.err; then
8671           cat conftest.err >&5
8672         # Otherwise, if the output was created with a 0 exit code from
8673         # the compiler, it worked.
8674         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8675           lt_cv_apple_cc_single_mod=yes
8676         else
8677           cat conftest.err >&5
8678         fi
8679         rm -rf libconftest.dylib*
8680         rm -f conftest.*
8681       fi
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8684 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8685
8686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8687 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8688 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8689   $as_echo_n "(cached) " >&6
8690 else
8691   lt_cv_ld_exported_symbols_list=no
8692       save_LDFLAGS=$LDFLAGS
8693       echo "_main" > conftest.sym
8694       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8695       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h.  */
8697
8698 int
8699 main ()
8700 {
8701
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707   lt_cv_ld_exported_symbols_list=yes
8708 else
8709   lt_cv_ld_exported_symbols_list=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext \
8712     conftest$ac_exeext conftest.$ac_ext
8713         LDFLAGS=$save_LDFLAGS
8714
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8717 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8718
8719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8720 $as_echo_n "checking for -force_load linker flag... " >&6; }
8721 if ${lt_cv_ld_force_load+:} false; then :
8722   $as_echo_n "(cached) " >&6
8723 else
8724   lt_cv_ld_force_load=no
8725       cat > conftest.c << _LT_EOF
8726 int forced_loaded() { return 2;}
8727 _LT_EOF
8728       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8729       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8730       echo "$AR cr libconftest.a conftest.o" >&5
8731       $AR cr libconftest.a conftest.o 2>&5
8732       echo "$RANLIB libconftest.a" >&5
8733       $RANLIB libconftest.a 2>&5
8734       cat > conftest.c << _LT_EOF
8735 int main() { return 0;}
8736 _LT_EOF
8737       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8738       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8739       _lt_result=$?
8740       if test -s conftest.err && $GREP force_load conftest.err; then
8741         cat conftest.err >&5
8742       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8743         lt_cv_ld_force_load=yes
8744       else
8745         cat conftest.err >&5
8746       fi
8747         rm -f conftest.err libconftest.a conftest conftest.c
8748         rm -rf conftest.dSYM
8749
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8752 $as_echo "$lt_cv_ld_force_load" >&6; }
8753     case $host_os in
8754     rhapsody* | darwin1.[012])
8755       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8756     darwin1.*)
8757       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8758     darwin*) # darwin 5.x on
8759       # if running on 10.5 or later, the deployment target defaults
8760       # to the OS version, if on x86, and 10.4, the deployment
8761       # target defaults to 10.4. Don't you love it?
8762       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8763         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8764           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8765         10.[012][,.]*)
8766           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8767         10.*)
8768           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8769       esac
8770     ;;
8771   esac
8772     if test yes = "$lt_cv_apple_cc_single_mod"; then
8773       _lt_dar_single_mod='$single_module'
8774     fi
8775     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8776       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8777     else
8778       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8779     fi
8780     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8781       _lt_dsymutil='~$DSYMUTIL $lib || :'
8782     else
8783       _lt_dsymutil=
8784     fi
8785     ;;
8786   esac
8787
8788 # func_munge_path_list VARIABLE PATH
8789 # -----------------------------------
8790 # VARIABLE is name of variable containing _space_ separated list of
8791 # directories to be munged by the contents of PATH, which is string
8792 # having a format:
8793 # "DIR[:DIR]:"
8794 #       string "DIR[ DIR]" will be prepended to VARIABLE
8795 # ":DIR[:DIR]"
8796 #       string "DIR[ DIR]" will be appended to VARIABLE
8797 # "DIRP[:DIRP]::[DIRA:]DIRA"
8798 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8799 #       "DIRA[ DIRA]" will be appended to VARIABLE
8800 # "DIR[:DIR]"
8801 #       VARIABLE will be replaced by "DIR[ DIR]"
8802 func_munge_path_list ()
8803 {
8804     case x$2 in
8805     x)
8806         ;;
8807     *:)
8808         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8809         ;;
8810     x:*)
8811         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8812         ;;
8813     *::*)
8814         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8815         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8816         ;;
8817     *)
8818         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8819         ;;
8820     esac
8821 }
8822
8823 ac_ext=c
8824 ac_cpp='$CPP $CPPFLAGS'
8825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8829 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8830 # On Suns, sometimes $CPP names a directory.
8831 if test -n "$CPP" && test -d "$CPP"; then
8832   CPP=
8833 fi
8834 if test -z "$CPP"; then
8835   if ${ac_cv_prog_CPP+:} false; then :
8836   $as_echo_n "(cached) " >&6
8837 else
8838       # Double quotes because CPP needs to be expanded
8839     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8840     do
8841       ac_preproc_ok=false
8842 for ac_c_preproc_warn_flag in '' yes
8843 do
8844   # Use a header file that comes with gcc, so configuring glibc
8845   # with a fresh cross-compiler works.
8846   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8847   # <limits.h> exists even on freestanding compilers.
8848   # On the NeXT, cc -E runs the code through the compiler's parser,
8849   # not just through cpp. "Syntax error" is here to catch this case.
8850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h.  */
8852 #ifdef __STDC__
8853 # include <limits.h>
8854 #else
8855 # include <assert.h>
8856 #endif
8857                      Syntax error
8858 _ACEOF
8859 if ac_fn_c_try_cpp "$LINENO"; then :
8860
8861 else
8862   # Broken: fails on valid input.
8863 continue
8864 fi
8865 rm -f conftest.err conftest.i conftest.$ac_ext
8866
8867   # OK, works on sane cases.  Now check whether nonexistent headers
8868   # can be detected and how.
8869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h.  */
8871 #include <ac_nonexistent.h>
8872 _ACEOF
8873 if ac_fn_c_try_cpp "$LINENO"; then :
8874   # Broken: success on invalid input.
8875 continue
8876 else
8877   # Passes both tests.
8878 ac_preproc_ok=:
8879 break
8880 fi
8881 rm -f conftest.err conftest.i conftest.$ac_ext
8882
8883 done
8884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8885 rm -f conftest.i conftest.err conftest.$ac_ext
8886 if $ac_preproc_ok; then :
8887   break
8888 fi
8889
8890     done
8891     ac_cv_prog_CPP=$CPP
8892
8893 fi
8894   CPP=$ac_cv_prog_CPP
8895 else
8896   ac_cv_prog_CPP=$CPP
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8899 $as_echo "$CPP" >&6; }
8900 ac_preproc_ok=false
8901 for ac_c_preproc_warn_flag in '' yes
8902 do
8903   # Use a header file that comes with gcc, so configuring glibc
8904   # with a fresh cross-compiler works.
8905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906   # <limits.h> exists even on freestanding compilers.
8907   # On the NeXT, cc -E runs the code through the compiler's parser,
8908   # not just through cpp. "Syntax error" is here to catch this case.
8909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h.  */
8911 #ifdef __STDC__
8912 # include <limits.h>
8913 #else
8914 # include <assert.h>
8915 #endif
8916                      Syntax error
8917 _ACEOF
8918 if ac_fn_c_try_cpp "$LINENO"; then :
8919
8920 else
8921   # Broken: fails on valid input.
8922 continue
8923 fi
8924 rm -f conftest.err conftest.i conftest.$ac_ext
8925
8926   # OK, works on sane cases.  Now check whether nonexistent headers
8927   # can be detected and how.
8928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h.  */
8930 #include <ac_nonexistent.h>
8931 _ACEOF
8932 if ac_fn_c_try_cpp "$LINENO"; then :
8933   # Broken: success on invalid input.
8934 continue
8935 else
8936   # Passes both tests.
8937 ac_preproc_ok=:
8938 break
8939 fi
8940 rm -f conftest.err conftest.i conftest.$ac_ext
8941
8942 done
8943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8944 rm -f conftest.i conftest.err conftest.$ac_ext
8945 if $ac_preproc_ok; then :
8946
8947 else
8948   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8950 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8951 See \`config.log' for more details" "$LINENO" 5; }
8952 fi
8953
8954 ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8962 $as_echo_n "checking for ANSI C header files... " >&6; }
8963 if ${ac_cv_header_stdc+:} false; then :
8964   $as_echo_n "(cached) " >&6
8965 else
8966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h.  */
8968 #include <stdlib.h>
8969 #include <stdarg.h>
8970 #include <string.h>
8971 #include <float.h>
8972
8973 int
8974 main ()
8975 {
8976
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_compile "$LINENO"; then :
8982   ac_cv_header_stdc=yes
8983 else
8984   ac_cv_header_stdc=no
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987
8988 if test $ac_cv_header_stdc = yes; then
8989   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992 #include <string.h>
8993
8994 _ACEOF
8995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8996   $EGREP "memchr" >/dev/null 2>&1; then :
8997
8998 else
8999   ac_cv_header_stdc=no
9000 fi
9001 rm -f conftest*
9002
9003 fi
9004
9005 if test $ac_cv_header_stdc = yes; then
9006   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009 #include <stdlib.h>
9010
9011 _ACEOF
9012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9013   $EGREP "free" >/dev/null 2>&1; then :
9014
9015 else
9016   ac_cv_header_stdc=no
9017 fi
9018 rm -f conftest*
9019
9020 fi
9021
9022 if test $ac_cv_header_stdc = yes; then
9023   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9024   if test "$cross_compiling" = yes; then :
9025   :
9026 else
9027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h.  */
9029 #include <ctype.h>
9030 #include <stdlib.h>
9031 #if ((' ' & 0x0FF) == 0x020)
9032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9034 #else
9035 # define ISLOWER(c) \
9036                    (('a' <= (c) && (c) <= 'i') \
9037                      || ('j' <= (c) && (c) <= 'r') \
9038                      || ('s' <= (c) && (c) <= 'z'))
9039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9040 #endif
9041
9042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9043 int
9044 main ()
9045 {
9046   int i;
9047   for (i = 0; i < 256; i++)
9048     if (XOR (islower (i), ISLOWER (i))
9049         || toupper (i) != TOUPPER (i))
9050       return 2;
9051   return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_run "$LINENO"; then :
9055
9056 else
9057   ac_cv_header_stdc=no
9058 fi
9059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9060   conftest.$ac_objext conftest.beam conftest.$ac_ext
9061 fi
9062
9063 fi
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9066 $as_echo "$ac_cv_header_stdc" >&6; }
9067 if test $ac_cv_header_stdc = yes; then
9068
9069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9070
9071 fi
9072
9073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9075                   inttypes.h stdint.h unistd.h
9076 do :
9077   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9079 "
9080 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9081   cat >>confdefs.h <<_ACEOF
9082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083 _ACEOF
9084
9085 fi
9086
9087 done
9088
9089
9090 for ac_header in dlfcn.h
9091 do :
9092   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9093 "
9094 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9095   cat >>confdefs.h <<_ACEOF
9096 #define HAVE_DLFCN_H 1
9097 _ACEOF
9098
9099 fi
9100
9101 done
9102
9103
9104
9105
9106
9107 # Set options
9108 # Check whether --enable-static was given.
9109 if test "${enable_static+set}" = set; then :
9110   enableval=$enable_static; p=${PACKAGE-default}
9111     case $enableval in
9112     yes) enable_static=yes ;;
9113     no) enable_static=no ;;
9114     *)
9115      enable_static=no
9116       # Look at the argument we got.  We use all the common list separators.
9117       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9118       for pkg in $enableval; do
9119         IFS=$lt_save_ifs
9120         if test "X$pkg" = "X$p"; then
9121           enable_static=yes
9122         fi
9123       done
9124       IFS=$lt_save_ifs
9125       ;;
9126     esac
9127 else
9128   enable_static=no
9129 fi
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140         enable_dlopen=no
9141
9142
9143   enable_win32_dll=no
9144
9145
9146             # Check whether --enable-shared was given.
9147 if test "${enable_shared+set}" = set; then :
9148   enableval=$enable_shared; p=${PACKAGE-default}
9149     case $enableval in
9150     yes) enable_shared=yes ;;
9151     no) enable_shared=no ;;
9152     *)
9153       enable_shared=no
9154       # Look at the argument we got.  We use all the common list separators.
9155       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9156       for pkg in $enableval; do
9157         IFS=$lt_save_ifs
9158         if test "X$pkg" = "X$p"; then
9159           enable_shared=yes
9160         fi
9161       done
9162       IFS=$lt_save_ifs
9163       ;;
9164     esac
9165 else
9166   enable_shared=yes
9167 fi
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 # Check whether --with-pic was given.
9180 if test "${with_pic+set}" = set; then :
9181   withval=$with_pic; lt_p=${PACKAGE-default}
9182     case $withval in
9183     yes|no) pic_mode=$withval ;;
9184     *)
9185       pic_mode=default
9186       # Look at the argument we got.  We use all the common list separators.
9187       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9188       for lt_pkg in $withval; do
9189         IFS=$lt_save_ifs
9190         if test "X$lt_pkg" = "X$lt_p"; then
9191           pic_mode=yes
9192         fi
9193       done
9194       IFS=$lt_save_ifs
9195       ;;
9196     esac
9197 else
9198   pic_mode=default
9199 fi
9200
9201
9202
9203
9204
9205
9206
9207
9208   # Check whether --enable-fast-install was given.
9209 if test "${enable_fast_install+set}" = set; then :
9210   enableval=$enable_fast_install; p=${PACKAGE-default}
9211     case $enableval in
9212     yes) enable_fast_install=yes ;;
9213     no) enable_fast_install=no ;;
9214     *)
9215       enable_fast_install=no
9216       # Look at the argument we got.  We use all the common list separators.
9217       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9218       for pkg in $enableval; do
9219         IFS=$lt_save_ifs
9220         if test "X$pkg" = "X$p"; then
9221           enable_fast_install=yes
9222         fi
9223       done
9224       IFS=$lt_save_ifs
9225       ;;
9226     esac
9227 else
9228   enable_fast_install=yes
9229 fi
9230
9231
9232
9233
9234
9235
9236
9237
9238   shared_archive_member_spec=
9239 case $host,$enable_shared in
9240 power*-*-aix[5-9]*,yes)
9241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9242 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9243
9244 # Check whether --with-aix-soname was given.
9245 if test "${with_aix_soname+set}" = set; then :
9246   withval=$with_aix_soname; case $withval in
9247     aix|svr4|both)
9248       ;;
9249     *)
9250       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9251       ;;
9252     esac
9253     lt_cv_with_aix_soname=$with_aix_soname
9254 else
9255   if ${lt_cv_with_aix_soname+:} false; then :
9256   $as_echo_n "(cached) " >&6
9257 else
9258   lt_cv_with_aix_soname=aix
9259 fi
9260
9261     with_aix_soname=$lt_cv_with_aix_soname
9262 fi
9263
9264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9265 $as_echo "$with_aix_soname" >&6; }
9266   if test aix != "$with_aix_soname"; then
9267     # For the AIX way of multilib, we name the shared archive member
9268     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9269     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9270     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9271     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9272     if test 64 = "${OBJECT_MODE-32}"; then
9273       shared_archive_member_spec=shr_64
9274     else
9275       shared_archive_member_spec=shr
9276     fi
9277   fi
9278   ;;
9279 *)
9280   with_aix_soname=aix
9281   ;;
9282 esac
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293 # This can be used to rebuild libtool when needed
9294 LIBTOOL_DEPS=$ltmain
9295
9296 # Always use our own libtool.
9297 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328 test -z "$LN_S" && LN_S="ln -s"
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343 if test -n "${ZSH_VERSION+set}"; then
9344    setopt NO_GLOB_SUBST
9345 fi
9346
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9348 $as_echo_n "checking for objdir... " >&6; }
9349 if ${lt_cv_objdir+:} false; then :
9350   $as_echo_n "(cached) " >&6
9351 else
9352   rm -f .libs 2>/dev/null
9353 mkdir .libs 2>/dev/null
9354 if test -d .libs; then
9355   lt_cv_objdir=.libs
9356 else
9357   # MS-DOS does not allow filenames that begin with a dot.
9358   lt_cv_objdir=_libs
9359 fi
9360 rmdir .libs 2>/dev/null
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9363 $as_echo "$lt_cv_objdir" >&6; }
9364 objdir=$lt_cv_objdir
9365
9366
9367
9368
9369
9370 cat >>confdefs.h <<_ACEOF
9371 #define LT_OBJDIR "$lt_cv_objdir/"
9372 _ACEOF
9373
9374
9375
9376
9377 case $host_os in
9378 aix3*)
9379   # AIX sometimes has problems with the GCC collect2 program.  For some
9380   # reason, if we set the COLLECT_NAMES environment variable, the problems
9381   # vanish in a puff of smoke.
9382   if test set != "${COLLECT_NAMES+set}"; then
9383     COLLECT_NAMES=
9384     export COLLECT_NAMES
9385   fi
9386   ;;
9387 esac
9388
9389 # Global variables:
9390 ofile=libtool
9391 can_build_shared=yes
9392
9393 # All known linkers require a '.a' archive for static linking (except MSVC,
9394 # which needs '.lib').
9395 libext=a
9396
9397 with_gnu_ld=$lt_cv_prog_gnu_ld
9398
9399 old_CC=$CC
9400 old_CFLAGS=$CFLAGS
9401
9402 # Set sane defaults for various variables
9403 test -z "$CC" && CC=cc
9404 test -z "$LTCC" && LTCC=$CC
9405 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9406 test -z "$LD" && LD=ld
9407 test -z "$ac_objext" && ac_objext=o
9408
9409 func_cc_basename $compiler
9410 cc_basename=$func_cc_basename_result
9411
9412
9413 # Only perform the check for file, if the check method requires it
9414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9415 case $deplibs_check_method in
9416 file_magic*)
9417   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9419 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423   case $MAGIC_CMD in
9424 [\\/*] |  ?:[\\/]*)
9425   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9426   ;;
9427 *)
9428   lt_save_MAGIC_CMD=$MAGIC_CMD
9429   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9430   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9431   for ac_dir in $ac_dummy; do
9432     IFS=$lt_save_ifs
9433     test -z "$ac_dir" && ac_dir=.
9434     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9435       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9436       if test -n "$file_magic_test_file"; then
9437         case $deplibs_check_method in
9438         "file_magic "*)
9439           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9440           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9441           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9442             $EGREP "$file_magic_regex" > /dev/null; then
9443             :
9444           else
9445             cat <<_LT_EOF 1>&2
9446
9447 *** Warning: the command libtool uses to detect shared libraries,
9448 *** $file_magic_cmd, produces output that libtool cannot recognize.
9449 *** The result is that libtool may fail to recognize shared libraries
9450 *** as such.  This will affect the creation of libtool libraries that
9451 *** depend on shared libraries, but programs linked with such libtool
9452 *** libraries will work regardless of this problem.  Nevertheless, you
9453 *** may want to report the problem to your system manager and/or to
9454 *** bug-libtool@gnu.org
9455
9456 _LT_EOF
9457           fi ;;
9458         esac
9459       fi
9460       break
9461     fi
9462   done
9463   IFS=$lt_save_ifs
9464   MAGIC_CMD=$lt_save_MAGIC_CMD
9465   ;;
9466 esac
9467 fi
9468
9469 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9470 if test -n "$MAGIC_CMD"; then
9471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9472 $as_echo "$MAGIC_CMD" >&6; }
9473 else
9474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9476 fi
9477
9478
9479
9480
9481
9482 if test -z "$lt_cv_path_MAGIC_CMD"; then
9483   if test -n "$ac_tool_prefix"; then
9484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9485 $as_echo_n "checking for file... " >&6; }
9486 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9487   $as_echo_n "(cached) " >&6
9488 else
9489   case $MAGIC_CMD in
9490 [\\/*] |  ?:[\\/]*)
9491   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9492   ;;
9493 *)
9494   lt_save_MAGIC_CMD=$MAGIC_CMD
9495   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9496   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9497   for ac_dir in $ac_dummy; do
9498     IFS=$lt_save_ifs
9499     test -z "$ac_dir" && ac_dir=.
9500     if test -f "$ac_dir/file"; then
9501       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9502       if test -n "$file_magic_test_file"; then
9503         case $deplibs_check_method in
9504         "file_magic "*)
9505           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9506           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9507           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9508             $EGREP "$file_magic_regex" > /dev/null; then
9509             :
9510           else
9511             cat <<_LT_EOF 1>&2
9512
9513 *** Warning: the command libtool uses to detect shared libraries,
9514 *** $file_magic_cmd, produces output that libtool cannot recognize.
9515 *** The result is that libtool may fail to recognize shared libraries
9516 *** as such.  This will affect the creation of libtool libraries that
9517 *** depend on shared libraries, but programs linked with such libtool
9518 *** libraries will work regardless of this problem.  Nevertheless, you
9519 *** may want to report the problem to your system manager and/or to
9520 *** bug-libtool@gnu.org
9521
9522 _LT_EOF
9523           fi ;;
9524         esac
9525       fi
9526       break
9527     fi
9528   done
9529   IFS=$lt_save_ifs
9530   MAGIC_CMD=$lt_save_MAGIC_CMD
9531   ;;
9532 esac
9533 fi
9534
9535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9536 if test -n "$MAGIC_CMD"; then
9537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9538 $as_echo "$MAGIC_CMD" >&6; }
9539 else
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 fi
9543
9544
9545   else
9546     MAGIC_CMD=:
9547   fi
9548 fi
9549
9550   fi
9551   ;;
9552 esac
9553
9554 # Use C for the default configuration in the libtool script
9555
9556 lt_save_CC=$CC
9557 ac_ext=c
9558 ac_cpp='$CPP $CPPFLAGS'
9559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9562
9563
9564 # Source file extension for C test sources.
9565 ac_ext=c
9566
9567 # Object file extension for compiled C test sources.
9568 objext=o
9569 objext=$objext
9570
9571 # Code to be used in simple compile tests
9572 lt_simple_compile_test_code="int some_variable = 0;"
9573
9574 # Code to be used in simple link tests
9575 lt_simple_link_test_code='int main(){return(0);}'
9576
9577
9578
9579
9580
9581
9582
9583 # If no C compiler was specified, use CC.
9584 LTCC=${LTCC-"$CC"}
9585
9586 # If no C compiler flags were specified, use CFLAGS.
9587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9588
9589 # Allow CC to be a program name with arguments.
9590 compiler=$CC
9591
9592 # Save the default compiler, since it gets overwritten when the other
9593 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9594 compiler_DEFAULT=$CC
9595
9596 # save warnings/boilerplate of simple test code
9597 ac_outfile=conftest.$ac_objext
9598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9600 _lt_compiler_boilerplate=`cat conftest.err`
9601 $RM conftest*
9602
9603 ac_outfile=conftest.$ac_objext
9604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9606 _lt_linker_boilerplate=`cat conftest.err`
9607 $RM -r conftest*
9608
9609
9610 ## CAVEAT EMPTOR:
9611 ## There is no encapsulation within the following macros, do not change
9612 ## the running order or otherwise move them around unless you know exactly
9613 ## what you are doing...
9614 if test -n "$compiler"; then
9615
9616 lt_prog_compiler_no_builtin_flag=
9617
9618 if test yes = "$GCC"; then
9619   case $cc_basename in
9620   nvcc*)
9621     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9622   *)
9623     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9624   esac
9625
9626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9629   $as_echo_n "(cached) " >&6
9630 else
9631   lt_cv_prog_compiler_rtti_exceptions=no
9632    ac_outfile=conftest.$ac_objext
9633    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9634    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9635    # Insert the option either (1) after the last *FLAGS variable, or
9636    # (2) before a word containing "conftest.", or (3) at the end.
9637    # Note that $ac_compile itself does not contain backslashes and begins
9638    # with a dollar sign (not a hyphen), so the echo should work correctly.
9639    # The option is referenced via a variable to avoid confusing sed.
9640    lt_compile=`echo "$ac_compile" | $SED \
9641    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9642    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9643    -e 's:$: $lt_compiler_flag:'`
9644    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9645    (eval "$lt_compile" 2>conftest.err)
9646    ac_status=$?
9647    cat conftest.err >&5
9648    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649    if (exit $ac_status) && test -s "$ac_outfile"; then
9650      # The compiler can only warn and ignore the option if not recognized
9651      # So say no if there are warnings other than the usual output.
9652      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9653      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9655        lt_cv_prog_compiler_rtti_exceptions=yes
9656      fi
9657    fi
9658    $RM conftest*
9659
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9663
9664 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9665     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9666 else
9667     :
9668 fi
9669
9670 fi
9671
9672
9673
9674
9675
9676
9677   lt_prog_compiler_wl=
9678 lt_prog_compiler_pic=
9679 lt_prog_compiler_static=
9680
9681
9682   if test yes = "$GCC"; then
9683     lt_prog_compiler_wl='-Wl,'
9684     lt_prog_compiler_static='-static'
9685
9686     case $host_os in
9687       aix*)
9688       # All AIX code is PIC.
9689       if test ia64 = "$host_cpu"; then
9690         # AIX 5 now supports IA64 processor
9691         lt_prog_compiler_static='-Bstatic'
9692       fi
9693       lt_prog_compiler_pic='-fPIC'
9694       ;;
9695
9696     amigaos*)
9697       case $host_cpu in
9698       powerpc)
9699             # see comment about AmigaOS4 .so support
9700             lt_prog_compiler_pic='-fPIC'
9701         ;;
9702       m68k)
9703             # FIXME: we need at least 68020 code to build shared libraries, but
9704             # adding the '-m68020' flag to GCC prevents building anything better,
9705             # like '-m68040'.
9706             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9707         ;;
9708       esac
9709       ;;
9710
9711     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9712       # PIC is the default for these OSes.
9713       ;;
9714
9715     mingw* | cygwin* | pw32* | os2* | cegcc*)
9716       # This hack is so that the source file can tell whether it is being
9717       # built for inclusion in a dll (and should export symbols for example).
9718       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9719       # (--disable-auto-import) libraries
9720       lt_prog_compiler_pic='-DDLL_EXPORT'
9721       case $host_os in
9722       os2*)
9723         lt_prog_compiler_static='$wl-static'
9724         ;;
9725       esac
9726       ;;
9727
9728     darwin* | rhapsody*)
9729       # PIC is the default on this platform
9730       # Common symbols not allowed in MH_DYLIB files
9731       lt_prog_compiler_pic='-fno-common'
9732       ;;
9733
9734     haiku*)
9735       # PIC is the default for Haiku.
9736       # The "-static" flag exists, but is broken.
9737       lt_prog_compiler_static=
9738       ;;
9739
9740     hpux*)
9741       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9742       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9743       # sets the default TLS model and affects inlining.
9744       case $host_cpu in
9745       hppa*64*)
9746         # +Z the default
9747         ;;
9748       *)
9749         lt_prog_compiler_pic='-fPIC'
9750         ;;
9751       esac
9752       ;;
9753
9754     interix[3-9]*)
9755       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9756       # Instead, we relocate shared libraries at runtime.
9757       ;;
9758
9759     msdosdjgpp*)
9760       # Just because we use GCC doesn't mean we suddenly get shared libraries
9761       # on systems that don't support them.
9762       lt_prog_compiler_can_build_shared=no
9763       enable_shared=no
9764       ;;
9765
9766     *nto* | *qnx*)
9767       # QNX uses GNU C++, but need to define -shared option too, otherwise
9768       # it will coredump.
9769       lt_prog_compiler_pic='-fPIC -shared'
9770       ;;
9771
9772     sysv4*MP*)
9773       if test -d /usr/nec; then
9774         lt_prog_compiler_pic=-Kconform_pic
9775       fi
9776       ;;
9777
9778     *)
9779       lt_prog_compiler_pic='-fPIC'
9780       ;;
9781     esac
9782
9783     case $cc_basename in
9784     nvcc*) # Cuda Compiler Driver 2.2
9785       lt_prog_compiler_wl='-Xlinker '
9786       if test -n "$lt_prog_compiler_pic"; then
9787         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9788       fi
9789       ;;
9790     esac
9791   else
9792     # PORTME Check for flag to pass linker flags through the system compiler.
9793     case $host_os in
9794     aix*)
9795       lt_prog_compiler_wl='-Wl,'
9796       if test ia64 = "$host_cpu"; then
9797         # AIX 5 now supports IA64 processor
9798         lt_prog_compiler_static='-Bstatic'
9799       else
9800         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9801       fi
9802       ;;
9803
9804     darwin* | rhapsody*)
9805       # PIC is the default on this platform
9806       # Common symbols not allowed in MH_DYLIB files
9807       lt_prog_compiler_pic='-fno-common'
9808       case $cc_basename in
9809       nagfor*)
9810         # NAG Fortran compiler
9811         lt_prog_compiler_wl='-Wl,-Wl,,'
9812         lt_prog_compiler_pic='-PIC'
9813         lt_prog_compiler_static='-Bstatic'
9814         ;;
9815       esac
9816       ;;
9817
9818     mingw* | cygwin* | pw32* | os2* | cegcc*)
9819       # This hack is so that the source file can tell whether it is being
9820       # built for inclusion in a dll (and should export symbols for example).
9821       lt_prog_compiler_pic='-DDLL_EXPORT'
9822       case $host_os in
9823       os2*)
9824         lt_prog_compiler_static='$wl-static'
9825         ;;
9826       esac
9827       ;;
9828
9829     hpux9* | hpux10* | hpux11*)
9830       lt_prog_compiler_wl='-Wl,'
9831       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9832       # not for PA HP-UX.
9833       case $host_cpu in
9834       hppa*64*|ia64*)
9835         # +Z the default
9836         ;;
9837       *)
9838         lt_prog_compiler_pic='+Z'
9839         ;;
9840       esac
9841       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9842       lt_prog_compiler_static='$wl-a ${wl}archive'
9843       ;;
9844
9845     irix5* | irix6* | nonstopux*)
9846       lt_prog_compiler_wl='-Wl,'
9847       # PIC (with -KPIC) is the default.
9848       lt_prog_compiler_static='-non_shared'
9849       ;;
9850
9851     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9852       case $cc_basename in
9853       # old Intel for x86_64, which still supported -KPIC.
9854       ecc*)
9855         lt_prog_compiler_wl='-Wl,'
9856         lt_prog_compiler_pic='-KPIC'
9857         lt_prog_compiler_static='-static'
9858         ;;
9859       # flang / f18. f95 an alias for gfortran or flang on Debian
9860       flang* | f18* | f95*)
9861         lt_prog_compiler_wl='-Wl,'
9862         lt_prog_compiler_pic='-fPIC'
9863         lt_prog_compiler_static='-static'
9864         ;;
9865       # icc used to be incompatible with GCC.
9866       # ICC 10 doesn't accept -KPIC any more.
9867       icc* | ifort*)
9868         lt_prog_compiler_wl='-Wl,'
9869         lt_prog_compiler_pic='-fPIC'
9870         lt_prog_compiler_static='-static'
9871         ;;
9872       # Lahey Fortran 8.1.
9873       lf95*)
9874         lt_prog_compiler_wl='-Wl,'
9875         lt_prog_compiler_pic='--shared'
9876         lt_prog_compiler_static='--static'
9877         ;;
9878       nagfor*)
9879         # NAG Fortran compiler
9880         lt_prog_compiler_wl='-Wl,-Wl,,'
9881         lt_prog_compiler_pic='-PIC'
9882         lt_prog_compiler_static='-Bstatic'
9883         ;;
9884       tcc*)
9885         # Fabrice Bellard et al's Tiny C Compiler
9886         lt_prog_compiler_wl='-Wl,'
9887         lt_prog_compiler_pic='-fPIC'
9888         lt_prog_compiler_static='-static'
9889         ;;
9890       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9891         # Portland Group compilers (*not* the Pentium gcc compiler,
9892         # which looks to be a dead project)
9893         lt_prog_compiler_wl='-Wl,'
9894         lt_prog_compiler_pic='-fpic'
9895         lt_prog_compiler_static='-Bstatic'
9896         ;;
9897       ccc*)
9898         lt_prog_compiler_wl='-Wl,'
9899         # All Alpha code is PIC.
9900         lt_prog_compiler_static='-non_shared'
9901         ;;
9902       xl* | bgxl* | bgf* | mpixl*)
9903         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9904         lt_prog_compiler_wl='-Wl,'
9905         lt_prog_compiler_pic='-qpic'
9906         lt_prog_compiler_static='-qstaticlink'
9907         ;;
9908       *)
9909         case `$CC -V 2>&1 | sed 5q` in
9910         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9911           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9912           lt_prog_compiler_pic='-KPIC'
9913           lt_prog_compiler_static='-Bstatic'
9914           lt_prog_compiler_wl=''
9915           ;;
9916         *Sun\ F* | *Sun*Fortran*)
9917           lt_prog_compiler_pic='-KPIC'
9918           lt_prog_compiler_static='-Bstatic'
9919           lt_prog_compiler_wl='-Qoption ld '
9920           ;;
9921         *Sun\ C*)
9922           # Sun C 5.9
9923           lt_prog_compiler_pic='-KPIC'
9924           lt_prog_compiler_static='-Bstatic'
9925           lt_prog_compiler_wl='-Wl,'
9926           ;;
9927         *Intel*\ [CF]*Compiler*)
9928           lt_prog_compiler_wl='-Wl,'
9929           lt_prog_compiler_pic='-fPIC'
9930           lt_prog_compiler_static='-static'
9931           ;;
9932         *Portland\ Group*)
9933           lt_prog_compiler_wl='-Wl,'
9934           lt_prog_compiler_pic='-fpic'
9935           lt_prog_compiler_static='-Bstatic'
9936           ;;
9937         esac
9938         ;;
9939       esac
9940       ;;
9941
9942     newsos6)
9943       lt_prog_compiler_pic='-KPIC'
9944       lt_prog_compiler_static='-Bstatic'
9945       ;;
9946
9947     *nto* | *qnx*)
9948       # QNX uses GNU C++, but need to define -shared option too, otherwise
9949       # it will coredump.
9950       lt_prog_compiler_pic='-fPIC -shared'
9951       ;;
9952
9953     osf3* | osf4* | osf5*)
9954       lt_prog_compiler_wl='-Wl,'
9955       # All OSF/1 code is PIC.
9956       lt_prog_compiler_static='-non_shared'
9957       ;;
9958
9959     rdos*)
9960       lt_prog_compiler_static='-non_shared'
9961       ;;
9962
9963     solaris*)
9964       lt_prog_compiler_pic='-KPIC'
9965       lt_prog_compiler_static='-Bstatic'
9966       case $cc_basename in
9967       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9968         lt_prog_compiler_wl='-Qoption ld ';;
9969       *)
9970         lt_prog_compiler_wl='-Wl,';;
9971       esac
9972       ;;
9973
9974     sunos4*)
9975       lt_prog_compiler_wl='-Qoption ld '
9976       lt_prog_compiler_pic='-PIC'
9977       lt_prog_compiler_static='-Bstatic'
9978       ;;
9979
9980     sysv4 | sysv4.2uw2* | sysv4.3*)
9981       lt_prog_compiler_wl='-Wl,'
9982       lt_prog_compiler_pic='-KPIC'
9983       lt_prog_compiler_static='-Bstatic'
9984       ;;
9985
9986     sysv4*MP*)
9987       if test -d /usr/nec; then
9988         lt_prog_compiler_pic='-Kconform_pic'
9989         lt_prog_compiler_static='-Bstatic'
9990       fi
9991       ;;
9992
9993     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9994       lt_prog_compiler_wl='-Wl,'
9995       lt_prog_compiler_pic='-KPIC'
9996       lt_prog_compiler_static='-Bstatic'
9997       ;;
9998
9999     unicos*)
10000       lt_prog_compiler_wl='-Wl,'
10001       lt_prog_compiler_can_build_shared=no
10002       ;;
10003
10004     uts4*)
10005       lt_prog_compiler_pic='-pic'
10006       lt_prog_compiler_static='-Bstatic'
10007       ;;
10008
10009     *)
10010       lt_prog_compiler_can_build_shared=no
10011       ;;
10012     esac
10013   fi
10014
10015 case $host_os in
10016   # For platforms that do not support PIC, -DPIC is meaningless:
10017   *djgpp*)
10018     lt_prog_compiler_pic=
10019     ;;
10020   *)
10021     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10022     ;;
10023 esac
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10026 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10027 if ${lt_cv_prog_compiler_pic+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10031 fi
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10033 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10034 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10035
10036 #
10037 # Check to make sure the PIC flag actually works.
10038 #
10039 if test -n "$lt_prog_compiler_pic"; then
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10041 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10042 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   lt_cv_prog_compiler_pic_works=no
10046    ac_outfile=conftest.$ac_objext
10047    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10048    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10049    # Insert the option either (1) after the last *FLAGS variable, or
10050    # (2) before a word containing "conftest.", or (3) at the end.
10051    # Note that $ac_compile itself does not contain backslashes and begins
10052    # with a dollar sign (not a hyphen), so the echo should work correctly.
10053    # The option is referenced via a variable to avoid confusing sed.
10054    lt_compile=`echo "$ac_compile" | $SED \
10055    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10056    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10057    -e 's:$: $lt_compiler_flag:'`
10058    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10059    (eval "$lt_compile" 2>conftest.err)
10060    ac_status=$?
10061    cat conftest.err >&5
10062    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063    if (exit $ac_status) && test -s "$ac_outfile"; then
10064      # The compiler can only warn and ignore the option if not recognized
10065      # So say no if there are warnings other than the usual output.
10066      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10067      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10068      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10069        lt_cv_prog_compiler_pic_works=yes
10070      fi
10071    fi
10072    $RM conftest*
10073
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10076 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10077
10078 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10079     case $lt_prog_compiler_pic in
10080      "" | " "*) ;;
10081      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10082      esac
10083 else
10084     lt_prog_compiler_pic=
10085      lt_prog_compiler_can_build_shared=no
10086 fi
10087
10088 fi
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100 #
10101 # Check to make sure the static flag actually works.
10102 #
10103 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10105 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10106 if ${lt_cv_prog_compiler_static_works+:} false; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   lt_cv_prog_compiler_static_works=no
10110    save_LDFLAGS=$LDFLAGS
10111    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10112    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10113    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10114      # The linker can only warn and ignore the option if not recognized
10115      # So say no if there are warnings
10116      if test -s conftest.err; then
10117        # Append any errors to the config.log.
10118        cat conftest.err 1>&5
10119        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10120        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10121        if diff conftest.exp conftest.er2 >/dev/null; then
10122          lt_cv_prog_compiler_static_works=yes
10123        fi
10124      else
10125        lt_cv_prog_compiler_static_works=yes
10126      fi
10127    fi
10128    $RM -r conftest*
10129    LDFLAGS=$save_LDFLAGS
10130
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10133 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10134
10135 if test yes = "$lt_cv_prog_compiler_static_works"; then
10136     :
10137 else
10138     lt_prog_compiler_static=
10139 fi
10140
10141
10142
10143
10144
10145
10146
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10148 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10149 if ${lt_cv_prog_compiler_c_o+:} false; then :
10150   $as_echo_n "(cached) " >&6
10151 else
10152   lt_cv_prog_compiler_c_o=no
10153    $RM -r conftest 2>/dev/null
10154    mkdir conftest
10155    cd conftest
10156    mkdir out
10157    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10158
10159    lt_compiler_flag="-o out/conftest2.$ac_objext"
10160    # Insert the option either (1) after the last *FLAGS variable, or
10161    # (2) before a word containing "conftest.", or (3) at the end.
10162    # Note that $ac_compile itself does not contain backslashes and begins
10163    # with a dollar sign (not a hyphen), so the echo should work correctly.
10164    lt_compile=`echo "$ac_compile" | $SED \
10165    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10166    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10167    -e 's:$: $lt_compiler_flag:'`
10168    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10169    (eval "$lt_compile" 2>out/conftest.err)
10170    ac_status=$?
10171    cat out/conftest.err >&5
10172    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10174    then
10175      # The compiler can only warn and ignore the option if not recognized
10176      # So say no if there are warnings
10177      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10178      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10179      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10180        lt_cv_prog_compiler_c_o=yes
10181      fi
10182    fi
10183    chmod u+w . 2>&5
10184    $RM conftest*
10185    # SGI C++ compiler will create directory out/ii_files/ for
10186    # template instantiation
10187    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10188    $RM out/* && rmdir out
10189    cd ..
10190    $RM -r conftest
10191    $RM conftest*
10192
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10195 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10196
10197
10198
10199
10200
10201
10202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10204 if ${lt_cv_prog_compiler_c_o+:} false; then :
10205   $as_echo_n "(cached) " >&6
10206 else
10207   lt_cv_prog_compiler_c_o=no
10208    $RM -r conftest 2>/dev/null
10209    mkdir conftest
10210    cd conftest
10211    mkdir out
10212    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10213
10214    lt_compiler_flag="-o out/conftest2.$ac_objext"
10215    # Insert the option either (1) after the last *FLAGS variable, or
10216    # (2) before a word containing "conftest.", or (3) at the end.
10217    # Note that $ac_compile itself does not contain backslashes and begins
10218    # with a dollar sign (not a hyphen), so the echo should work correctly.
10219    lt_compile=`echo "$ac_compile" | $SED \
10220    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10222    -e 's:$: $lt_compiler_flag:'`
10223    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10224    (eval "$lt_compile" 2>out/conftest.err)
10225    ac_status=$?
10226    cat out/conftest.err >&5
10227    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10229    then
10230      # The compiler can only warn and ignore the option if not recognized
10231      # So say no if there are warnings
10232      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10233      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10234      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10235        lt_cv_prog_compiler_c_o=yes
10236      fi
10237    fi
10238    chmod u+w . 2>&5
10239    $RM conftest*
10240    # SGI C++ compiler will create directory out/ii_files/ for
10241    # template instantiation
10242    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10243    $RM out/* && rmdir out
10244    cd ..
10245    $RM -r conftest
10246    $RM conftest*
10247
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10251
10252
10253
10254
10255 hard_links=nottested
10256 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10257   # do not overwrite the value of need_locks provided by the user
10258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10259 $as_echo_n "checking if we can lock with hard links... " >&6; }
10260   hard_links=yes
10261   $RM conftest*
10262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10263   touch conftest.a
10264   ln conftest.a conftest.b 2>&5 || hard_links=no
10265   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10267 $as_echo "$hard_links" >&6; }
10268   if test no = "$hard_links"; then
10269     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10270 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10271     need_locks=warn
10272   fi
10273 else
10274   need_locks=no
10275 fi
10276
10277
10278
10279
10280
10281
10282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10283 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10284
10285   runpath_var=
10286   allow_undefined_flag=
10287   always_export_symbols=no
10288   archive_cmds=
10289   archive_expsym_cmds=
10290   compiler_needs_object=no
10291   enable_shared_with_static_runtimes=no
10292   export_dynamic_flag_spec=
10293   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10294   hardcode_automatic=no
10295   hardcode_direct=no
10296   hardcode_direct_absolute=no
10297   hardcode_libdir_flag_spec=
10298   hardcode_libdir_separator=
10299   hardcode_minus_L=no
10300   hardcode_shlibpath_var=unsupported
10301   inherit_rpath=no
10302   link_all_deplibs=unknown
10303   module_cmds=
10304   module_expsym_cmds=
10305   old_archive_from_new_cmds=
10306   old_archive_from_expsyms_cmds=
10307   thread_safe_flag_spec=
10308   whole_archive_flag_spec=
10309   # include_expsyms should be a list of space-separated symbols to be *always*
10310   # included in the symbol list
10311   include_expsyms=
10312   # exclude_expsyms can be an extended regexp of symbols to exclude
10313   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10314   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10315   # as well as any symbol that contains 'd'.
10316   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10317   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10318   # platforms (ab)use it in PIC code, but their linkers get confused if
10319   # the symbol is explicitly referenced.  Since portable code cannot
10320   # rely on this symbol name, it's probably fine to never include it in
10321   # preloaded symbol tables.
10322   # Exclude shared library initialization/finalization symbols.
10323   extract_expsyms_cmds=
10324
10325   case $host_os in
10326   cygwin* | mingw* | pw32* | cegcc*)
10327     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10328     # When not using gcc, we currently assume that we are using
10329     # Microsoft Visual C++.
10330     if test yes != "$GCC"; then
10331       with_gnu_ld=no
10332     fi
10333     ;;
10334   interix*)
10335     # we just hope/assume this is gcc and not c89 (= MSVC++)
10336     with_gnu_ld=yes
10337     ;;
10338   openbsd* | bitrig*)
10339     with_gnu_ld=no
10340     ;;
10341   linux* | k*bsd*-gnu | gnu*)
10342     link_all_deplibs=no
10343     ;;
10344   esac
10345
10346   ld_shlibs=yes
10347
10348   # On some targets, GNU ld is compatible enough with the native linker
10349   # that we're better off using the native interface for both.
10350   lt_use_gnu_ld_interface=no
10351   if test yes = "$with_gnu_ld"; then
10352     case $host_os in
10353       aix*)
10354         # The AIX port of GNU ld has always aspired to compatibility
10355         # with the native linker.  However, as the warning in the GNU ld
10356         # block says, versions before 2.19.5* couldn't really create working
10357         # shared libraries, regardless of the interface used.
10358         case `$LD -v 2>&1` in
10359           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10360           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10361           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10362           *)
10363             lt_use_gnu_ld_interface=yes
10364             ;;
10365         esac
10366         ;;
10367       *)
10368         lt_use_gnu_ld_interface=yes
10369         ;;
10370     esac
10371   fi
10372
10373   if test yes = "$lt_use_gnu_ld_interface"; then
10374     # If archive_cmds runs LD, not CC, wlarc should be empty
10375     wlarc='$wl'
10376
10377     # Set some defaults for GNU ld with shared library support. These
10378     # are reset later if shared libraries are not supported. Putting them
10379     # here allows them to be overridden if necessary.
10380     runpath_var=LD_RUN_PATH
10381     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10382     export_dynamic_flag_spec='$wl--export-dynamic'
10383     # ancient GNU ld didn't support --whole-archive et. al.
10384     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10385       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10386     else
10387       whole_archive_flag_spec=
10388     fi
10389     supports_anon_versioning=no
10390     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10391       *GNU\ gold*) supports_anon_versioning=yes ;;
10392       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10393       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10394       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10395       *\ 2.11.*) ;; # other 2.11 versions
10396       *) supports_anon_versioning=yes ;;
10397     esac
10398
10399     # See if GNU ld supports shared libraries.
10400     case $host_os in
10401     aix[3-9]*)
10402       # On AIX/PPC, the GNU linker is very broken
10403       if test ia64 != "$host_cpu"; then
10404         ld_shlibs=no
10405         cat <<_LT_EOF 1>&2
10406
10407 *** Warning: the GNU linker, at least up to release 2.19, is reported
10408 *** to be unable to reliably create shared libraries on AIX.
10409 *** Therefore, libtool is disabling shared libraries support.  If you
10410 *** really care for shared libraries, you may want to install binutils
10411 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10412 *** You will then need to restart the configuration process.
10413
10414 _LT_EOF
10415       fi
10416       ;;
10417
10418     amigaos*)
10419       case $host_cpu in
10420       powerpc)
10421             # see comment about AmigaOS4 .so support
10422             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10423             archive_expsym_cmds=''
10424         ;;
10425       m68k)
10426             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)'
10427             hardcode_libdir_flag_spec='-L$libdir'
10428             hardcode_minus_L=yes
10429         ;;
10430       esac
10431       ;;
10432
10433     beos*)
10434       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10435         allow_undefined_flag=unsupported
10436         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10437         # support --undefined.  This deserves some investigation.  FIXME
10438         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439       else
10440         ld_shlibs=no
10441       fi
10442       ;;
10443
10444     cygwin* | mingw* | pw32* | cegcc*)
10445       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10446       # as there is no search path for DLLs.
10447       hardcode_libdir_flag_spec='-L$libdir'
10448       export_dynamic_flag_spec='$wl--export-all-symbols'
10449       allow_undefined_flag=unsupported
10450       always_export_symbols=no
10451       enable_shared_with_static_runtimes=yes
10452       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'
10453       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10454
10455       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10456         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10457         # If the export-symbols file already is a .def file, use it as
10458         # is; otherwise, prepend EXPORTS...
10459         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10460           cp $export_symbols $output_objdir/$soname.def;
10461         else
10462           echo EXPORTS > $output_objdir/$soname.def;
10463           cat $export_symbols >> $output_objdir/$soname.def;
10464         fi~
10465         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10466       else
10467         ld_shlibs=no
10468       fi
10469       ;;
10470
10471     haiku*)
10472       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10473       link_all_deplibs=yes
10474       ;;
10475
10476     os2*)
10477       hardcode_libdir_flag_spec='-L$libdir'
10478       hardcode_minus_L=yes
10479       allow_undefined_flag=unsupported
10480       shrext_cmds=.dll
10481       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10482         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10483         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10484         $ECHO EXPORTS >> $output_objdir/$libname.def~
10485         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10486         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10487         emximp -o $lib $output_objdir/$libname.def'
10488       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10489         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10490         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10491         $ECHO EXPORTS >> $output_objdir/$libname.def~
10492         prefix_cmds="$SED"~
10493         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10494           prefix_cmds="$prefix_cmds -e 1d";
10495         fi~
10496         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10497         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10498         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10499         emximp -o $lib $output_objdir/$libname.def'
10500       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10501       enable_shared_with_static_runtimes=yes
10502       ;;
10503
10504     interix[3-9]*)
10505       hardcode_direct=no
10506       hardcode_shlibpath_var=no
10507       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10508       export_dynamic_flag_spec='$wl-E'
10509       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10510       # Instead, shared libraries are loaded at an image base (0x10000000 by
10511       # default) and relocated if they conflict, which is a slow very memory
10512       # consuming and fragmenting process.  To avoid this, we pick a random,
10513       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10514       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10515       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10516       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'
10517       ;;
10518
10519     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10520       tmp_diet=no
10521       if test linux-dietlibc = "$host_os"; then
10522         case $cc_basename in
10523           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10524         esac
10525       fi
10526       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10527          && test no = "$tmp_diet"
10528       then
10529         tmp_addflag=' $pic_flag'
10530         tmp_sharedflag='-shared'
10531         case $cc_basename,$host_cpu in
10532         pgcc*)                          # Portland Group C compiler
10533           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'
10534           tmp_addflag=' $pic_flag'
10535           ;;
10536         pgf77* | pgf90* | pgf95* | pgfortran*)
10537                                         # Portland Group f77 and f90 compilers
10538           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'
10539           tmp_addflag=' $pic_flag -Mnomain' ;;
10540         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10541           tmp_addflag=' -i_dynamic' ;;
10542         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10543           tmp_addflag=' -i_dynamic -nofor_main' ;;
10544         ifc* | ifort*)                  # Intel Fortran compiler
10545           tmp_addflag=' -nofor_main' ;;
10546         lf95*)                          # Lahey Fortran 8.1
10547           whole_archive_flag_spec=
10548           tmp_sharedflag='--shared' ;;
10549         nagfor*)                        # NAGFOR 5.3
10550           tmp_sharedflag='-Wl,-shared' ;;
10551         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10552           tmp_sharedflag='-qmkshrobj'
10553           tmp_addflag= ;;
10554         nvcc*)  # Cuda Compiler Driver 2.2
10555           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'
10556           compiler_needs_object=yes
10557           ;;
10558         esac
10559         case `$CC -V 2>&1 | sed 5q` in
10560         *Sun\ C*)                       # Sun C 5.9
10561           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'
10562           compiler_needs_object=yes
10563           tmp_sharedflag='-G' ;;
10564         *Sun\ F*)                       # Sun Fortran 8.3
10565           tmp_sharedflag='-G' ;;
10566         esac
10567         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10568
10569         if test yes = "$supports_anon_versioning"; then
10570           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10571             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10572             echo "local: *; };" >> $output_objdir/$libname.ver~
10573             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10574         fi
10575
10576         case $cc_basename in
10577         tcc*)
10578           export_dynamic_flag_spec='-rdynamic'
10579           ;;
10580         xlf* | bgf* | bgxlf* | mpixlf*)
10581           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10582           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10583           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10584           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10585           if test yes = "$supports_anon_versioning"; then
10586             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10587               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10588               echo "local: *; };" >> $output_objdir/$libname.ver~
10589               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10590           fi
10591           ;;
10592         esac
10593       else
10594         ld_shlibs=no
10595       fi
10596       ;;
10597
10598     netbsd* | netbsdelf*-gnu)
10599       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10600         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10601         wlarc=
10602       else
10603         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10604         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10605       fi
10606       ;;
10607
10608     solaris*)
10609       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10610         ld_shlibs=no
10611         cat <<_LT_EOF 1>&2
10612
10613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10614 *** create shared libraries on Solaris systems.  Therefore, libtool
10615 *** is disabling shared libraries support.  We urge you to upgrade GNU
10616 *** binutils to release 2.9.1 or newer.  Another option is to modify
10617 *** your PATH or compiler configuration so that the native linker is
10618 *** used, and then restart.
10619
10620 _LT_EOF
10621       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10622         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10623         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10624       else
10625         ld_shlibs=no
10626       fi
10627       ;;
10628
10629     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10630       case `$LD -v 2>&1` in
10631         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10632         ld_shlibs=no
10633         cat <<_LT_EOF 1>&2
10634
10635 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10636 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10637 *** is disabling shared libraries support.  We urge you to upgrade GNU
10638 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10639 *** your PATH or compiler configuration so that the native linker is
10640 *** used, and then restart.
10641
10642 _LT_EOF
10643         ;;
10644         *)
10645           # For security reasons, it is highly recommended that you always
10646           # use absolute paths for naming shared libraries, and exclude the
10647           # DT_RUNPATH tag from executables and libraries.  But doing so
10648           # requires that you compile everything twice, which is a pain.
10649           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10650             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10651             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10652             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10653           else
10654             ld_shlibs=no
10655           fi
10656         ;;
10657       esac
10658       ;;
10659
10660     sunos4*)
10661       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10662       wlarc=
10663       hardcode_direct=yes
10664       hardcode_shlibpath_var=no
10665       ;;
10666
10667     *)
10668       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10669         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10670         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10671       else
10672         ld_shlibs=no
10673       fi
10674       ;;
10675     esac
10676
10677     if test no = "$ld_shlibs"; then
10678       runpath_var=
10679       hardcode_libdir_flag_spec=
10680       export_dynamic_flag_spec=
10681       whole_archive_flag_spec=
10682     fi
10683   else
10684     # PORTME fill in a description of your system's linker (not GNU ld)
10685     case $host_os in
10686     aix3*)
10687       allow_undefined_flag=unsupported
10688       always_export_symbols=yes
10689       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'
10690       # Note: this linker hardcodes the directories in LIBPATH if there
10691       # are no directories specified by -L.
10692       hardcode_minus_L=yes
10693       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10694         # Neither direct hardcoding nor static linking is supported with a
10695         # broken collect2.
10696         hardcode_direct=unsupported
10697       fi
10698       ;;
10699
10700     aix[4-9]*)
10701       if test ia64 = "$host_cpu"; then
10702         # On IA64, the linker does run time linking by default, so we don't
10703         # have to do anything special.
10704         aix_use_runtimelinking=no
10705         exp_sym_flag='-Bexport'
10706         no_entry_flag=
10707       else
10708         # If we're using GNU nm, then we don't want the "-C" option.
10709         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10710         # Without the "-l" option, or with the "-B" option, AIX nm treats
10711         # weak defined symbols like other global defined symbols, whereas
10712         # GNU nm marks them as "W".
10713         # While the 'weak' keyword is ignored in the Export File, we need
10714         # it in the Import File for the 'aix-soname' feature, so we have
10715         # to replace the "-B" option with "-P" for AIX nm.
10716         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10717           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10718         else
10719           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10720         fi
10721         aix_use_runtimelinking=no
10722
10723         # Test if we are trying to use run time linking or normal
10724         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10725         # have runtime linking enabled, and use it for executables.
10726         # For shared libraries, we enable/disable runtime linking
10727         # depending on the kind of the shared library created -
10728         # when "with_aix_soname,aix_use_runtimelinking" is:
10729         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10730         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10731         #            lib.a           static archive
10732         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10733         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10734         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10735         #            lib.a(lib.so.V) shared, rtl:no
10736         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10737         #            lib.a           static archive
10738         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10739           for ld_flag in $LDFLAGS; do
10740           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10741             aix_use_runtimelinking=yes
10742             break
10743           fi
10744           done
10745           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10746             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10747             # so we don't have lib.a shared libs to link our executables.
10748             # We have to force runtime linking in this case.
10749             aix_use_runtimelinking=yes
10750             LDFLAGS="$LDFLAGS -Wl,-brtl"
10751           fi
10752           ;;
10753         esac
10754
10755         exp_sym_flag='-bexport'
10756         no_entry_flag='-bnoentry'
10757       fi
10758
10759       # When large executables or shared objects are built, AIX ld can
10760       # have problems creating the table of contents.  If linking a library
10761       # or program results in "error TOC overflow" add -mminimal-toc to
10762       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10763       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10764
10765       archive_cmds=''
10766       hardcode_direct=yes
10767       hardcode_direct_absolute=yes
10768       hardcode_libdir_separator=':'
10769       link_all_deplibs=yes
10770       file_list_spec='$wl-f,'
10771       case $with_aix_soname,$aix_use_runtimelinking in
10772       aix,*) ;; # traditional, no import file
10773       svr4,* | *,yes) # use import file
10774         # The Import File defines what to hardcode.
10775         hardcode_direct=no
10776         hardcode_direct_absolute=no
10777         ;;
10778       esac
10779
10780       if test yes = "$GCC"; then
10781         case $host_os in aix4.[012]|aix4.[012].*)
10782         # We only want to do this on AIX 4.2 and lower, the check
10783         # below for broken collect2 doesn't work under 4.3+
10784           collect2name=`$CC -print-prog-name=collect2`
10785           if test -f "$collect2name" &&
10786            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10787           then
10788           # We have reworked collect2
10789           :
10790           else
10791           # We have old collect2
10792           hardcode_direct=unsupported
10793           # It fails to find uninstalled libraries when the uninstalled
10794           # path is not listed in the libpath.  Setting hardcode_minus_L
10795           # to unsupported forces relinking
10796           hardcode_minus_L=yes
10797           hardcode_libdir_flag_spec='-L$libdir'
10798           hardcode_libdir_separator=
10799           fi
10800           ;;
10801         esac
10802         shared_flag='-shared'
10803         if test yes = "$aix_use_runtimelinking"; then
10804           shared_flag="$shared_flag "'$wl-G'
10805         fi
10806         # Need to ensure runtime linking is disabled for the traditional
10807         # shared library, or the linker may eventually find shared libraries
10808         # /with/ Import File - we do not want to mix them.
10809         shared_flag_aix='-shared'
10810         shared_flag_svr4='-shared $wl-G'
10811       else
10812         # not using gcc
10813         if test ia64 = "$host_cpu"; then
10814         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10815         # chokes on -Wl,-G. The following line is correct:
10816           shared_flag='-G'
10817         else
10818           if test yes = "$aix_use_runtimelinking"; then
10819             shared_flag='$wl-G'
10820           else
10821             shared_flag='$wl-bM:SRE'
10822           fi
10823           shared_flag_aix='$wl-bM:SRE'
10824           shared_flag_svr4='$wl-G'
10825         fi
10826       fi
10827
10828       export_dynamic_flag_spec='$wl-bexpall'
10829       # It seems that -bexpall does not export symbols beginning with
10830       # underscore (_), so it is better to generate a list of symbols to export.
10831       always_export_symbols=yes
10832       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10833         # Warning - without using the other runtime loading flags (-brtl),
10834         # -berok will link without error, but may produce a broken library.
10835         allow_undefined_flag='-berok'
10836         # Determine the default libpath from the value encoded in an
10837         # empty executable.
10838         if test set = "${lt_cv_aix_libpath+set}"; then
10839   aix_libpath=$lt_cv_aix_libpath
10840 else
10841   if ${lt_cv_aix_libpath_+:} false; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h.  */
10846
10847 int
10848 main ()
10849 {
10850
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 if ac_fn_c_try_link "$LINENO"; then :
10856
10857   lt_aix_libpath_sed='
10858       /Import File Strings/,/^$/ {
10859           /^0/ {
10860               s/^0  *\([^ ]*\) *$/\1/
10861               p
10862           }
10863       }'
10864   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10865   # Check for a 64-bit object if we didn't find anything.
10866   if test -z "$lt_cv_aix_libpath_"; then
10867     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10868   fi
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext \
10871     conftest$ac_exeext conftest.$ac_ext
10872   if test -z "$lt_cv_aix_libpath_"; then
10873     lt_cv_aix_libpath_=/usr/lib:/lib
10874   fi
10875
10876 fi
10877
10878   aix_libpath=$lt_cv_aix_libpath_
10879 fi
10880
10881         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10882         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10883       else
10884         if test ia64 = "$host_cpu"; then
10885           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10886           allow_undefined_flag="-z nodefs"
10887           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"
10888         else
10889          # Determine the default libpath from the value encoded in an
10890          # empty executable.
10891          if test set = "${lt_cv_aix_libpath+set}"; then
10892   aix_libpath=$lt_cv_aix_libpath
10893 else
10894   if ${lt_cv_aix_libpath_+:} false; then :
10895   $as_echo_n "(cached) " >&6
10896 else
10897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h.  */
10899
10900 int
10901 main ()
10902 {
10903
10904   ;
10905   return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909
10910   lt_aix_libpath_sed='
10911       /Import File Strings/,/^$/ {
10912           /^0/ {
10913               s/^0  *\([^ ]*\) *$/\1/
10914               p
10915           }
10916       }'
10917   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10918   # Check for a 64-bit object if we didn't find anything.
10919   if test -z "$lt_cv_aix_libpath_"; then
10920     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10921   fi
10922 fi
10923 rm -f core conftest.err conftest.$ac_objext \
10924     conftest$ac_exeext conftest.$ac_ext
10925   if test -z "$lt_cv_aix_libpath_"; then
10926     lt_cv_aix_libpath_=/usr/lib:/lib
10927   fi
10928
10929 fi
10930
10931   aix_libpath=$lt_cv_aix_libpath_
10932 fi
10933
10934          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10935           # Warning - without using the other run time loading flags,
10936           # -berok will link without error, but may produce a broken library.
10937           no_undefined_flag=' $wl-bernotok'
10938           allow_undefined_flag=' $wl-berok'
10939           if test yes = "$with_gnu_ld"; then
10940             # We only use this code for GNU lds that support --whole-archive.
10941             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10942           else
10943             # Exported symbols can be pulled into shared objects from archives
10944             whole_archive_flag_spec='$convenience'
10945           fi
10946           archive_cmds_need_lc=yes
10947           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10948           # -brtl affects multiple linker settings, -berok does not and is overridden later
10949           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10950           if test svr4 != "$with_aix_soname"; then
10951             # This is similar to how AIX traditionally builds its shared libraries.
10952             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10953           fi
10954           if test aix != "$with_aix_soname"; then
10955             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10956           else
10957             # used by -dlpreopen to get the symbols
10958             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10959           fi
10960           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10961         fi
10962       fi
10963       ;;
10964
10965     amigaos*)
10966       case $host_cpu in
10967       powerpc)
10968             # see comment about AmigaOS4 .so support
10969             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10970             archive_expsym_cmds=''
10971         ;;
10972       m68k)
10973             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)'
10974             hardcode_libdir_flag_spec='-L$libdir'
10975             hardcode_minus_L=yes
10976         ;;
10977       esac
10978       ;;
10979
10980     bsdi[45]*)
10981       export_dynamic_flag_spec=-rdynamic
10982       ;;
10983
10984     cygwin* | mingw* | pw32* | cegcc*)
10985       # When not using gcc, we currently assume that we are using
10986       # Microsoft Visual C++.
10987       # hardcode_libdir_flag_spec is actually meaningless, as there is
10988       # no search path for DLLs.
10989       case $cc_basename in
10990       cl*)
10991         # Native MSVC
10992         hardcode_libdir_flag_spec=' '
10993         allow_undefined_flag=unsupported
10994         always_export_symbols=yes
10995         file_list_spec='@'
10996         # Tell ltmain to make .lib files, not .a files.
10997         libext=lib
10998         # Tell ltmain to make .dll files, not .so files.
10999         shrext_cmds=.dll
11000         # FIXME: Setting linknames here is a bad hack.
11001         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11002         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11003             cp "$export_symbols" "$output_objdir/$soname.def";
11004             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11005           else
11006             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11007           fi~
11008           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11009           linknames='
11010         # The linker will not automatically build a static lib if we build a DLL.
11011         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11012         enable_shared_with_static_runtimes=yes
11013         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11014         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11015         # Don't use ranlib
11016         old_postinstall_cmds='chmod 644 $oldlib'
11017         postlink_cmds='lt_outputfile="@OUTPUT@"~
11018           lt_tool_outputfile="@TOOL_OUTPUT@"~
11019           case $lt_outputfile in
11020             *.exe|*.EXE) ;;
11021             *)
11022               lt_outputfile=$lt_outputfile.exe
11023               lt_tool_outputfile=$lt_tool_outputfile.exe
11024               ;;
11025           esac~
11026           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11027             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11028             $RM "$lt_outputfile.manifest";
11029           fi'
11030         ;;
11031       *)
11032         # Assume MSVC wrapper
11033         hardcode_libdir_flag_spec=' '
11034         allow_undefined_flag=unsupported
11035         # Tell ltmain to make .lib files, not .a files.
11036         libext=lib
11037         # Tell ltmain to make .dll files, not .so files.
11038         shrext_cmds=.dll
11039         # FIXME: Setting linknames here is a bad hack.
11040         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11041         # The linker will automatically build a .lib file if we build a DLL.
11042         old_archive_from_new_cmds='true'
11043         # FIXME: Should let the user specify the lib program.
11044         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11045         enable_shared_with_static_runtimes=yes
11046         ;;
11047       esac
11048       ;;
11049
11050     darwin* | rhapsody*)
11051
11052
11053   archive_cmds_need_lc=no
11054   hardcode_direct=no
11055   hardcode_automatic=yes
11056   hardcode_shlibpath_var=unsupported
11057   if test yes = "$lt_cv_ld_force_load"; then
11058     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\"`'
11059
11060   else
11061     whole_archive_flag_spec=''
11062   fi
11063   link_all_deplibs=yes
11064   allow_undefined_flag=$_lt_dar_allow_undefined
11065   case $cc_basename in
11066      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11067      *) _lt_dar_can_shared=$GCC ;;
11068   esac
11069   if test yes = "$_lt_dar_can_shared"; then
11070     output_verbose_link_cmd=func_echo_all
11071     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11072     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11073     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"
11074     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"
11075
11076   else
11077   ld_shlibs=no
11078   fi
11079
11080       ;;
11081
11082     dgux*)
11083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084       hardcode_libdir_flag_spec='-L$libdir'
11085       hardcode_shlibpath_var=no
11086       ;;
11087
11088     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11089     # support.  Future versions do this automatically, but an explicit c++rt0.o
11090     # does not break anything, and helps significantly (at the cost of a little
11091     # extra space).
11092     freebsd2.2*)
11093       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11094       hardcode_libdir_flag_spec='-R$libdir'
11095       hardcode_direct=yes
11096       hardcode_shlibpath_var=no
11097       ;;
11098
11099     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11100     freebsd2.*)
11101       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11102       hardcode_direct=yes
11103       hardcode_minus_L=yes
11104       hardcode_shlibpath_var=no
11105       ;;
11106
11107     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11108     freebsd* | dragonfly*)
11109       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11110       hardcode_libdir_flag_spec='-R$libdir'
11111       hardcode_direct=yes
11112       hardcode_shlibpath_var=no
11113       ;;
11114
11115     hpux9*)
11116       if test yes = "$GCC"; then
11117         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11118       else
11119         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11120       fi
11121       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11122       hardcode_libdir_separator=:
11123       hardcode_direct=yes
11124
11125       # hardcode_minus_L: Not really in the search PATH,
11126       # but as the default location of the library.
11127       hardcode_minus_L=yes
11128       export_dynamic_flag_spec='$wl-E'
11129       ;;
11130
11131     hpux10*)
11132       if test yes,no = "$GCC,$with_gnu_ld"; then
11133         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11134       else
11135         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11136       fi
11137       if test no = "$with_gnu_ld"; then
11138         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11139         hardcode_libdir_separator=:
11140         hardcode_direct=yes
11141         hardcode_direct_absolute=yes
11142         export_dynamic_flag_spec='$wl-E'
11143         # hardcode_minus_L: Not really in the search PATH,
11144         # but as the default location of the library.
11145         hardcode_minus_L=yes
11146       fi
11147       ;;
11148
11149     hpux11*)
11150       if test yes,no = "$GCC,$with_gnu_ld"; then
11151         case $host_cpu in
11152         hppa*64*)
11153           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11154           ;;
11155         ia64*)
11156           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11157           ;;
11158         *)
11159           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11160           ;;
11161         esac
11162       else
11163         case $host_cpu in
11164         hppa*64*)
11165           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11166           ;;
11167         ia64*)
11168           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11169           ;;
11170         *)
11171
11172           # Older versions of the 11.00 compiler do not understand -b yet
11173           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11174           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11175 $as_echo_n "checking if $CC understands -b... " >&6; }
11176 if ${lt_cv_prog_compiler__b+:} false; then :
11177   $as_echo_n "(cached) " >&6
11178 else
11179   lt_cv_prog_compiler__b=no
11180    save_LDFLAGS=$LDFLAGS
11181    LDFLAGS="$LDFLAGS -b"
11182    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11183    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11184      # The linker can only warn and ignore the option if not recognized
11185      # So say no if there are warnings
11186      if test -s conftest.err; then
11187        # Append any errors to the config.log.
11188        cat conftest.err 1>&5
11189        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11190        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11191        if diff conftest.exp conftest.er2 >/dev/null; then
11192          lt_cv_prog_compiler__b=yes
11193        fi
11194      else
11195        lt_cv_prog_compiler__b=yes
11196      fi
11197    fi
11198    $RM -r conftest*
11199    LDFLAGS=$save_LDFLAGS
11200
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11203 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11204
11205 if test yes = "$lt_cv_prog_compiler__b"; then
11206     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11207 else
11208     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11209 fi
11210
11211           ;;
11212         esac
11213       fi
11214       if test no = "$with_gnu_ld"; then
11215         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11216         hardcode_libdir_separator=:
11217
11218         case $host_cpu in
11219         hppa*64*|ia64*)
11220           hardcode_direct=no
11221           hardcode_shlibpath_var=no
11222           ;;
11223         *)
11224           hardcode_direct=yes
11225           hardcode_direct_absolute=yes
11226           export_dynamic_flag_spec='$wl-E'
11227
11228           # hardcode_minus_L: Not really in the search PATH,
11229           # but as the default location of the library.
11230           hardcode_minus_L=yes
11231           ;;
11232         esac
11233       fi
11234       ;;
11235
11236     irix5* | irix6* | nonstopux*)
11237       if test yes = "$GCC"; then
11238         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'
11239         # Try to use the -exported_symbol ld option, if it does not
11240         # work, assume that -exports_file does not work either and
11241         # implicitly export all symbols.
11242         # This should be the same for all languages, so no per-tag cache variable.
11243         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11244 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11245 if ${lt_cv_irix_exported_symbol+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   save_LDFLAGS=$LDFLAGS
11249            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11250            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h.  */
11252 int foo (void) { return 0; }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255   lt_cv_irix_exported_symbol=yes
11256 else
11257   lt_cv_irix_exported_symbol=no
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260     conftest$ac_exeext conftest.$ac_ext
11261            LDFLAGS=$save_LDFLAGS
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11264 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11265         if test yes = "$lt_cv_irix_exported_symbol"; then
11266           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'
11267         fi
11268         link_all_deplibs=no
11269       else
11270         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'
11271         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'
11272       fi
11273       archive_cmds_need_lc='no'
11274       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11275       hardcode_libdir_separator=:
11276       inherit_rpath=yes
11277       link_all_deplibs=yes
11278       ;;
11279
11280     linux*)
11281       case $cc_basename in
11282       tcc*)
11283         # Fabrice Bellard et al's Tiny C Compiler
11284         ld_shlibs=yes
11285         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11286         ;;
11287       esac
11288       ;;
11289
11290     netbsd* | netbsdelf*-gnu)
11291       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11292         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11293       else
11294         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11295       fi
11296       hardcode_libdir_flag_spec='-R$libdir'
11297       hardcode_direct=yes
11298       hardcode_shlibpath_var=no
11299       ;;
11300
11301     newsos6)
11302       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303       hardcode_direct=yes
11304       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11305       hardcode_libdir_separator=:
11306       hardcode_shlibpath_var=no
11307       ;;
11308
11309     *nto* | *qnx*)
11310       ;;
11311
11312     openbsd* | bitrig*)
11313       if test -f /usr/libexec/ld.so; then
11314         hardcode_direct=yes
11315         hardcode_shlibpath_var=no
11316         hardcode_direct_absolute=yes
11317         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11318           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11319           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11320           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11321           export_dynamic_flag_spec='$wl-E'
11322         else
11323           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11324           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11325         fi
11326       else
11327         ld_shlibs=no
11328       fi
11329       ;;
11330
11331     os2*)
11332       hardcode_libdir_flag_spec='-L$libdir'
11333       hardcode_minus_L=yes
11334       allow_undefined_flag=unsupported
11335       shrext_cmds=.dll
11336       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11337         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11338         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11339         $ECHO EXPORTS >> $output_objdir/$libname.def~
11340         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11341         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11342         emximp -o $lib $output_objdir/$libname.def'
11343       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11344         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11345         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11346         $ECHO EXPORTS >> $output_objdir/$libname.def~
11347         prefix_cmds="$SED"~
11348         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11349           prefix_cmds="$prefix_cmds -e 1d";
11350         fi~
11351         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11352         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11353         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11354         emximp -o $lib $output_objdir/$libname.def'
11355       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11356       enable_shared_with_static_runtimes=yes
11357       ;;
11358
11359     osf3*)
11360       if test yes = "$GCC"; then
11361         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11362         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'
11363       else
11364         allow_undefined_flag=' -expect_unresolved \*'
11365         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'
11366       fi
11367       archive_cmds_need_lc='no'
11368       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11369       hardcode_libdir_separator=:
11370       ;;
11371
11372     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11373       if test yes = "$GCC"; then
11374         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11375         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'
11376         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11377       else
11378         allow_undefined_flag=' -expect_unresolved \*'
11379         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'
11380         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~
11381           $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'
11382
11383         # Both c and cxx compiler support -rpath directly
11384         hardcode_libdir_flag_spec='-rpath $libdir'
11385       fi
11386       archive_cmds_need_lc='no'
11387       hardcode_libdir_separator=:
11388       ;;
11389
11390     solaris*)
11391       no_undefined_flag=' -z defs'
11392       if test yes = "$GCC"; then
11393         wlarc='$wl'
11394         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11395         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11396           $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'
11397       else
11398         case `$CC -V 2>&1` in
11399         *"Compilers 5.0"*)
11400           wlarc=''
11401           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11403             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11404           ;;
11405         *)
11406           wlarc='$wl'
11407           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11408           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11409             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11410           ;;
11411         esac
11412       fi
11413       hardcode_libdir_flag_spec='-R$libdir'
11414       hardcode_shlibpath_var=no
11415       case $host_os in
11416       solaris2.[0-5] | solaris2.[0-5].*) ;;
11417       *)
11418         # The compiler driver will combine and reorder linker options,
11419         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11420         # but is careful enough not to reorder.
11421         # Supported since Solaris 2.6 (maybe 2.5.1?)
11422         if test yes = "$GCC"; then
11423           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11424         else
11425           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11426         fi
11427         ;;
11428       esac
11429       link_all_deplibs=yes
11430       ;;
11431
11432     sunos4*)
11433       if test sequent = "$host_vendor"; then
11434         # Use $CC to link under sequent, because it throws in some extra .o
11435         # files that make .init and .fini sections work.
11436         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11437       else
11438         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11439       fi
11440       hardcode_libdir_flag_spec='-L$libdir'
11441       hardcode_direct=yes
11442       hardcode_minus_L=yes
11443       hardcode_shlibpath_var=no
11444       ;;
11445
11446     sysv4)
11447       case $host_vendor in
11448         sni)
11449           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11450           hardcode_direct=yes # is this really true???
11451         ;;
11452         siemens)
11453           ## LD is ld it makes a PLAMLIB
11454           ## CC just makes a GrossModule.
11455           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11456           reload_cmds='$CC -r -o $output$reload_objs'
11457           hardcode_direct=no
11458         ;;
11459         motorola)
11460           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11462         ;;
11463       esac
11464       runpath_var='LD_RUN_PATH'
11465       hardcode_shlibpath_var=no
11466       ;;
11467
11468     sysv4.3*)
11469       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11470       hardcode_shlibpath_var=no
11471       export_dynamic_flag_spec='-Bexport'
11472       ;;
11473
11474     sysv4*MP*)
11475       if test -d /usr/nec; then
11476         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11477         hardcode_shlibpath_var=no
11478         runpath_var=LD_RUN_PATH
11479         hardcode_runpath_var=yes
11480         ld_shlibs=yes
11481       fi
11482       ;;
11483
11484     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11485       no_undefined_flag='$wl-z,text'
11486       archive_cmds_need_lc=no
11487       hardcode_shlibpath_var=no
11488       runpath_var='LD_RUN_PATH'
11489
11490       if test yes = "$GCC"; then
11491         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11492         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11493       else
11494         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11495         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11496       fi
11497       ;;
11498
11499     sysv5* | sco3.2v5* | sco5v6*)
11500       # Note: We CANNOT use -z defs as we might desire, because we do not
11501       # link with -lc, and that would cause any symbols used from libc to
11502       # always be unresolved, which means just about no library would
11503       # ever link correctly.  If we're not using GNU ld we use -z text
11504       # though, which does catch some bad symbols but isn't as heavy-handed
11505       # as -z defs.
11506       no_undefined_flag='$wl-z,text'
11507       allow_undefined_flag='$wl-z,nodefs'
11508       archive_cmds_need_lc=no
11509       hardcode_shlibpath_var=no
11510       hardcode_libdir_flag_spec='$wl-R,$libdir'
11511       hardcode_libdir_separator=':'
11512       link_all_deplibs=yes
11513       export_dynamic_flag_spec='$wl-Bexport'
11514       runpath_var='LD_RUN_PATH'
11515
11516       if test yes = "$GCC"; then
11517         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11518         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11519       else
11520         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11521         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522       fi
11523       ;;
11524
11525     uts4*)
11526       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11527       hardcode_libdir_flag_spec='-L$libdir'
11528       hardcode_shlibpath_var=no
11529       ;;
11530
11531     *)
11532       ld_shlibs=no
11533       ;;
11534     esac
11535
11536     if test sni = "$host_vendor"; then
11537       case $host in
11538       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11539         export_dynamic_flag_spec='$wl-Blargedynsym'
11540         ;;
11541       esac
11542     fi
11543   fi
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11546 $as_echo "$ld_shlibs" >&6; }
11547 test no = "$ld_shlibs" && can_build_shared=no
11548
11549 with_gnu_ld=$with_gnu_ld
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565 #
11566 # Do we need to explicitly link libc?
11567 #
11568 case "x$archive_cmds_need_lc" in
11569 x|xyes)
11570   # Assume -lc should be added
11571   archive_cmds_need_lc=yes
11572
11573   if test yes,yes = "$GCC,$enable_shared"; then
11574     case $archive_cmds in
11575     *'~'*)
11576       # FIXME: we may have to deal with multi-command sequences.
11577       ;;
11578     '$CC '*)
11579       # Test whether the compiler implicitly links with -lc since on some
11580       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11581       # to ld, don't add -lc before -lgcc.
11582       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11583 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11584 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587   $RM conftest*
11588         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11589
11590         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11591   (eval $ac_compile) 2>&5
11592   ac_status=$?
11593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594   test $ac_status = 0; } 2>conftest.err; then
11595           soname=conftest
11596           lib=conftest
11597           libobjs=conftest.$ac_objext
11598           deplibs=
11599           wl=$lt_prog_compiler_wl
11600           pic_flag=$lt_prog_compiler_pic
11601           compiler_flags=-v
11602           linker_flags=-v
11603           verstring=
11604           output_objdir=.
11605           libname=conftest
11606           lt_save_allow_undefined_flag=$allow_undefined_flag
11607           allow_undefined_flag=
11608           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11609   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11610   ac_status=$?
11611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612   test $ac_status = 0; }
11613           then
11614             lt_cv_archive_cmds_need_lc=no
11615           else
11616             lt_cv_archive_cmds_need_lc=yes
11617           fi
11618           allow_undefined_flag=$lt_save_allow_undefined_flag
11619         else
11620           cat conftest.err 1>&5
11621         fi
11622         $RM conftest*
11623
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11626 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11627       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11628       ;;
11629     esac
11630   fi
11631   ;;
11632 esac
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
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
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11786 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11787
11788 if test yes = "$GCC"; then
11789   case $host_os in
11790     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11791     *) lt_awk_arg='/^libraries:/' ;;
11792   esac
11793   case $host_os in
11794     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11795     *) lt_sed_strip_eq='s|=/|/|g' ;;
11796   esac
11797   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11798   case $lt_search_path_spec in
11799   *\;*)
11800     # if the path contains ";" then we assume it to be the separator
11801     # otherwise default to the standard path separator (i.e. ":") - it is
11802     # assumed that no part of a normal pathname contains ";" but that should
11803     # okay in the real world where ";" in dirpaths is itself problematic.
11804     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11805     ;;
11806   *)
11807     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11808     ;;
11809   esac
11810   # Ok, now we have the path, separated by spaces, we can step through it
11811   # and add multilib dir if necessary...
11812   lt_tmp_lt_search_path_spec=
11813   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11814   # ...but if some path component already ends with the multilib dir we assume
11815   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11816   case "$lt_multi_os_dir; $lt_search_path_spec " in
11817   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11818     lt_multi_os_dir=
11819     ;;
11820   esac
11821   for lt_sys_path in $lt_search_path_spec; do
11822     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11823       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11824     elif test -n "$lt_multi_os_dir"; then
11825       test -d "$lt_sys_path" && \
11826         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11827     fi
11828   done
11829   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11830 BEGIN {RS = " "; FS = "/|\n";} {
11831   lt_foo = "";
11832   lt_count = 0;
11833   for (lt_i = NF; lt_i > 0; lt_i--) {
11834     if ($lt_i != "" && $lt_i != ".") {
11835       if ($lt_i == "..") {
11836         lt_count++;
11837       } else {
11838         if (lt_count == 0) {
11839           lt_foo = "/" $lt_i lt_foo;
11840         } else {
11841           lt_count--;
11842         }
11843       }
11844     }
11845   }
11846   if (lt_foo != "") { lt_freq[lt_foo]++; }
11847   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11848 }'`
11849   # AWK program above erroneously prepends '/' to C:/dos/paths
11850   # for these hosts.
11851   case $host_os in
11852     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11853       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11854   esac
11855   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11856 else
11857   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11858 fi
11859 library_names_spec=
11860 libname_spec='lib$name'
11861 soname_spec=
11862 shrext_cmds=.so
11863 postinstall_cmds=
11864 postuninstall_cmds=
11865 finish_cmds=
11866 finish_eval=
11867 shlibpath_var=
11868 shlibpath_overrides_runpath=unknown
11869 version_type=none
11870 dynamic_linker="$host_os ld.so"
11871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11872 need_lib_prefix=unknown
11873 hardcode_into_libs=no
11874
11875 # when you set need_version to no, make sure it does not cause -set_version
11876 # flags to be left without arguments
11877 need_version=unknown
11878
11879
11880
11881 case $host_os in
11882 aix3*)
11883   version_type=linux # correct to gnu/linux during the next big refactor
11884   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11885   shlibpath_var=LIBPATH
11886
11887   # AIX 3 has no versioning support, so we append a major version to the name.
11888   soname_spec='$libname$release$shared_ext$major'
11889   ;;
11890
11891 aix[4-9]*)
11892   version_type=linux # correct to gnu/linux during the next big refactor
11893   need_lib_prefix=no
11894   need_version=no
11895   hardcode_into_libs=yes
11896   if test ia64 = "$host_cpu"; then
11897     # AIX 5 supports IA64
11898     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11899     shlibpath_var=LD_LIBRARY_PATH
11900   else
11901     # With GCC up to 2.95.x, collect2 would create an import file
11902     # for dependence libraries.  The import file would start with
11903     # the line '#! .'.  This would cause the generated library to
11904     # depend on '.', always an invalid library.  This was fixed in
11905     # development snapshots of GCC prior to 3.0.
11906     case $host_os in
11907       aix4 | aix4.[01] | aix4.[01].*)
11908       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11909            echo ' yes '
11910            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11911         :
11912       else
11913         can_build_shared=no
11914       fi
11915       ;;
11916     esac
11917     # Using Import Files as archive members, it is possible to support
11918     # filename-based versioning of shared library archives on AIX. While
11919     # this would work for both with and without runtime linking, it will
11920     # prevent static linking of such archives. So we do filename-based
11921     # shared library versioning with .so extension only, which is used
11922     # when both runtime linking and shared linking is enabled.
11923     # Unfortunately, runtime linking may impact performance, so we do
11924     # not want this to be the default eventually. Also, we use the
11925     # versioned .so libs for executables only if there is the -brtl
11926     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11927     # To allow for filename-based versioning support, we need to create
11928     # libNAME.so.V as an archive file, containing:
11929     # *) an Import File, referring to the versioned filename of the
11930     #    archive as well as the shared archive member, telling the
11931     #    bitwidth (32 or 64) of that shared object, and providing the
11932     #    list of exported symbols of that shared object, eventually
11933     #    decorated with the 'weak' keyword
11934     # *) the shared object with the F_LOADONLY flag set, to really avoid
11935     #    it being seen by the linker.
11936     # At run time we better use the real file rather than another symlink,
11937     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11938
11939     case $with_aix_soname,$aix_use_runtimelinking in
11940     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11941     # soname into executable. Probably we can add versioning support to
11942     # collect2, so additional links can be useful in future.
11943     aix,yes) # traditional libtool
11944       dynamic_linker='AIX unversionable lib.so'
11945       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11946       # instead of lib<name>.a to let people know that these are not
11947       # typical AIX shared libraries.
11948       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11949       ;;
11950     aix,no) # traditional AIX only
11951       dynamic_linker='AIX lib.a(lib.so.V)'
11952       # We preserve .a as extension for shared libraries through AIX4.2
11953       # and later when we are not doing run time linking.
11954       library_names_spec='$libname$release.a $libname.a'
11955       soname_spec='$libname$release$shared_ext$major'
11956       ;;
11957     svr4,*) # full svr4 only
11958       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11959       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11960       # We do not specify a path in Import Files, so LIBPATH fires.
11961       shlibpath_overrides_runpath=yes
11962       ;;
11963     *,yes) # both, prefer svr4
11964       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11965       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11966       # unpreferred sharedlib libNAME.a needs extra handling
11967       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11968       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11969       # We do not specify a path in Import Files, so LIBPATH fires.
11970       shlibpath_overrides_runpath=yes
11971       ;;
11972     *,no) # both, prefer aix
11973       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11974       library_names_spec='$libname$release.a $libname.a'
11975       soname_spec='$libname$release$shared_ext$major'
11976       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11977       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11978       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11979       ;;
11980     esac
11981     shlibpath_var=LIBPATH
11982   fi
11983   ;;
11984
11985 amigaos*)
11986   case $host_cpu in
11987   powerpc)
11988     # Since July 2007 AmigaOS4 officially supports .so libraries.
11989     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11990     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11991     ;;
11992   m68k)
11993     library_names_spec='$libname.ixlibrary $libname.a'
11994     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11995     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11996     ;;
11997   esac
11998   ;;
11999
12000 beos*)
12001   library_names_spec='$libname$shared_ext'
12002   dynamic_linker="$host_os ld.so"
12003   shlibpath_var=LIBRARY_PATH
12004   ;;
12005
12006 bsdi[45]*)
12007   version_type=linux # correct to gnu/linux during the next big refactor
12008   need_version=no
12009   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12010   soname_spec='$libname$release$shared_ext$major'
12011   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12012   shlibpath_var=LD_LIBRARY_PATH
12013   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12014   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12015   # the default ld.so.conf also contains /usr/contrib/lib and
12016   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12017   # libtool to hard-code these into programs
12018   ;;
12019
12020 cygwin* | mingw* | pw32* | cegcc*)
12021   version_type=windows
12022   shrext_cmds=.dll
12023   need_version=no
12024   need_lib_prefix=no
12025
12026   case $GCC,$cc_basename in
12027   yes,*)
12028     # gcc
12029     library_names_spec='$libname.dll.a'
12030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12031     postinstall_cmds='base_file=`basename \$file`~
12032       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12033       dldir=$destdir/`dirname \$dlpath`~
12034       test -d \$dldir || mkdir -p \$dldir~
12035       $install_prog $dir/$dlname \$dldir/$dlname~
12036       chmod a+x \$dldir/$dlname~
12037       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12038         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12039       fi'
12040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12041       dlpath=$dir/\$dldll~
12042        $RM \$dlpath'
12043     shlibpath_overrides_runpath=yes
12044
12045     case $host_os in
12046     cygwin*)
12047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12048       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12049
12050       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12051       ;;
12052     mingw* | cegcc*)
12053       # MinGW DLLs use traditional 'lib' prefix
12054       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12055       ;;
12056     pw32*)
12057       # pw32 DLLs use 'pw' prefix rather than 'lib'
12058       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12059       ;;
12060     esac
12061     dynamic_linker='Win32 ld.exe'
12062     ;;
12063
12064   *,cl*)
12065     # Native MSVC
12066     libname_spec='$name'
12067     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12068     library_names_spec='$libname.dll.lib'
12069
12070     case $build_os in
12071     mingw*)
12072       sys_lib_search_path_spec=
12073       lt_save_ifs=$IFS
12074       IFS=';'
12075       for lt_path in $LIB
12076       do
12077         IFS=$lt_save_ifs
12078         # Let DOS variable expansion print the short 8.3 style file name.
12079         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12080         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12081       done
12082       IFS=$lt_save_ifs
12083       # Convert to MSYS style.
12084       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12085       ;;
12086     cygwin*)
12087       # Convert to unix form, then to dos form, then back to unix form
12088       # but this time dos style (no spaces!) so that the unix form looks
12089       # like /cygdrive/c/PROGRA~1:/cygdr...
12090       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12091       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12092       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12093       ;;
12094     *)
12095       sys_lib_search_path_spec=$LIB
12096       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12097         # It is most probably a Windows format PATH.
12098         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12099       else
12100         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12101       fi
12102       # FIXME: find the short name or the path components, as spaces are
12103       # common. (e.g. "Program Files" -> "PROGRA~1")
12104       ;;
12105     esac
12106
12107     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12108     postinstall_cmds='base_file=`basename \$file`~
12109       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12110       dldir=$destdir/`dirname \$dlpath`~
12111       test -d \$dldir || mkdir -p \$dldir~
12112       $install_prog $dir/$dlname \$dldir/$dlname'
12113     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12114       dlpath=$dir/\$dldll~
12115        $RM \$dlpath'
12116     shlibpath_overrides_runpath=yes
12117     dynamic_linker='Win32 link.exe'
12118     ;;
12119
12120   *)
12121     # Assume MSVC wrapper
12122     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12123     dynamic_linker='Win32 ld.exe'
12124     ;;
12125   esac
12126   # FIXME: first we should search . and the directory the executable is in
12127   shlibpath_var=PATH
12128   ;;
12129
12130 darwin* | rhapsody*)
12131   dynamic_linker="$host_os dyld"
12132   version_type=darwin
12133   need_lib_prefix=no
12134   need_version=no
12135   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12136   soname_spec='$libname$release$major$shared_ext'
12137   shlibpath_overrides_runpath=yes
12138   shlibpath_var=DYLD_LIBRARY_PATH
12139   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12140
12141   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12142   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12143   ;;
12144
12145 dgux*)
12146   version_type=linux # correct to gnu/linux during the next big refactor
12147   need_lib_prefix=no
12148   need_version=no
12149   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150   soname_spec='$libname$release$shared_ext$major'
12151   shlibpath_var=LD_LIBRARY_PATH
12152   ;;
12153
12154 freebsd* | dragonfly*)
12155   # DragonFly does not have aout.  When/if they implement a new
12156   # versioning mechanism, adjust this.
12157   if test -x /usr/bin/objformat; then
12158     objformat=`/usr/bin/objformat`
12159   else
12160     case $host_os in
12161     freebsd[23].*) objformat=aout ;;
12162     *) objformat=elf ;;
12163     esac
12164   fi
12165   version_type=freebsd-$objformat
12166   case $version_type in
12167     freebsd-elf*)
12168       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12169       soname_spec='$libname$release$shared_ext$major'
12170       need_version=no
12171       need_lib_prefix=no
12172       ;;
12173     freebsd-*)
12174       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12175       need_version=yes
12176       ;;
12177   esac
12178   shlibpath_var=LD_LIBRARY_PATH
12179   case $host_os in
12180   freebsd2.*)
12181     shlibpath_overrides_runpath=yes
12182     ;;
12183   freebsd3.[01]* | freebsdelf3.[01]*)
12184     shlibpath_overrides_runpath=yes
12185     hardcode_into_libs=yes
12186     ;;
12187   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12188   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12189     shlibpath_overrides_runpath=no
12190     hardcode_into_libs=yes
12191     ;;
12192   *) # from 4.6 on, and DragonFly
12193     shlibpath_overrides_runpath=yes
12194     hardcode_into_libs=yes
12195     ;;
12196   esac
12197   ;;
12198
12199 haiku*)
12200   version_type=linux # correct to gnu/linux during the next big refactor
12201   need_lib_prefix=no
12202   need_version=no
12203   dynamic_linker="$host_os runtime_loader"
12204   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205   soname_spec='$libname$release$shared_ext$major'
12206   shlibpath_var=LIBRARY_PATH
12207   shlibpath_overrides_runpath=no
12208   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12209   hardcode_into_libs=yes
12210   ;;
12211
12212 hpux9* | hpux10* | hpux11*)
12213   # Give a soname corresponding to the major version so that dld.sl refuses to
12214   # link against other versions.
12215   version_type=sunos
12216   need_lib_prefix=no
12217   need_version=no
12218   case $host_cpu in
12219   ia64*)
12220     shrext_cmds='.so'
12221     hardcode_into_libs=yes
12222     dynamic_linker="$host_os dld.so"
12223     shlibpath_var=LD_LIBRARY_PATH
12224     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12225     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12226     soname_spec='$libname$release$shared_ext$major'
12227     if test 32 = "$HPUX_IA64_MODE"; then
12228       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12229       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12230     else
12231       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12232       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12233     fi
12234     ;;
12235   hppa*64*)
12236     shrext_cmds='.sl'
12237     hardcode_into_libs=yes
12238     dynamic_linker="$host_os dld.sl"
12239     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12240     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12241     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242     soname_spec='$libname$release$shared_ext$major'
12243     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12244     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12245     ;;
12246   *)
12247     shrext_cmds='.sl'
12248     dynamic_linker="$host_os dld.sl"
12249     shlibpath_var=SHLIB_PATH
12250     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12251     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252     soname_spec='$libname$release$shared_ext$major'
12253     ;;
12254   esac
12255   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12256   postinstall_cmds='chmod 555 $lib'
12257   # or fails outright, so override atomically:
12258   install_override_mode=555
12259   ;;
12260
12261 interix[3-9]*)
12262   version_type=linux # correct to gnu/linux during the next big refactor
12263   need_lib_prefix=no
12264   need_version=no
12265   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12266   soname_spec='$libname$release$shared_ext$major'
12267   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12268   shlibpath_var=LD_LIBRARY_PATH
12269   shlibpath_overrides_runpath=no
12270   hardcode_into_libs=yes
12271   ;;
12272
12273 irix5* | irix6* | nonstopux*)
12274   case $host_os in
12275     nonstopux*) version_type=nonstopux ;;
12276     *)
12277         if test yes = "$lt_cv_prog_gnu_ld"; then
12278                 version_type=linux # correct to gnu/linux during the next big refactor
12279         else
12280                 version_type=irix
12281         fi ;;
12282   esac
12283   need_lib_prefix=no
12284   need_version=no
12285   soname_spec='$libname$release$shared_ext$major'
12286   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12287   case $host_os in
12288   irix5* | nonstopux*)
12289     libsuff= shlibsuff=
12290     ;;
12291   *)
12292     case $LD in # libtool.m4 will add one of these switches to LD
12293     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12294       libsuff= shlibsuff= libmagic=32-bit;;
12295     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12296       libsuff=32 shlibsuff=N32 libmagic=N32;;
12297     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12298       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12299     *) libsuff= shlibsuff= libmagic=never-match;;
12300     esac
12301     ;;
12302   esac
12303   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12304   shlibpath_overrides_runpath=no
12305   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12306   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12307   hardcode_into_libs=yes
12308   ;;
12309
12310 # No shared lib support for Linux oldld, aout, or coff.
12311 linux*oldld* | linux*aout* | linux*coff*)
12312   dynamic_linker=no
12313   ;;
12314
12315 linux*android*)
12316   version_type=none # Android doesn't support versioned libraries.
12317   need_lib_prefix=no
12318   need_version=no
12319   library_names_spec='$libname$release$shared_ext'
12320   soname_spec='$libname$release$shared_ext'
12321   finish_cmds=
12322   shlibpath_var=LD_LIBRARY_PATH
12323   shlibpath_overrides_runpath=yes
12324
12325   # This implies no fast_install, which is unacceptable.
12326   # Some rework will be needed to allow for fast_install
12327   # before this can be enabled.
12328   hardcode_into_libs=yes
12329
12330   dynamic_linker='Android linker'
12331   # Don't embed -rpath directories since the linker doesn't support them.
12332   hardcode_libdir_flag_spec='-L$libdir'
12333   ;;
12334
12335 # This must be glibc/ELF.
12336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12337   version_type=linux # correct to gnu/linux during the next big refactor
12338   need_lib_prefix=no
12339   need_version=no
12340   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341   soname_spec='$libname$release$shared_ext$major'
12342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12343   shlibpath_var=LD_LIBRARY_PATH
12344   shlibpath_overrides_runpath=no
12345
12346   # Some binutils ld are patched to set DT_RUNPATH
12347   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12348   $as_echo_n "(cached) " >&6
12349 else
12350   lt_cv_shlibpath_overrides_runpath=no
12351     save_LDFLAGS=$LDFLAGS
12352     save_libdir=$libdir
12353     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12354          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h.  */
12357
12358 int
12359 main ()
12360 {
12361
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"; then :
12367   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12368   lt_cv_shlibpath_overrides_runpath=yes
12369 fi
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext \
12372     conftest$ac_exeext conftest.$ac_ext
12373     LDFLAGS=$save_LDFLAGS
12374     libdir=$save_libdir
12375
12376 fi
12377
12378   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12379
12380   # This implies no fast_install, which is unacceptable.
12381   # Some rework will be needed to allow for fast_install
12382   # before this can be enabled.
12383   hardcode_into_libs=yes
12384
12385   # Ideally, we could use ldconfig to report *all* directores which are
12386   # searched for libraries, however this is still not possible.  Aside from not
12387   # being certain /sbin/ldconfig is available, command
12388   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12389   # even though it is searched at run-time.  Try to do the best guess by
12390   # appending ld.so.conf contents (and includes) to the search path.
12391   if test -f /etc/ld.so.conf; then
12392     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' ' '`
12393     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12394   fi
12395
12396   # We used to test for /lib/ld.so.1 and disable shared libraries on
12397   # powerpc, because MkLinux only supported shared libraries with the
12398   # GNU dynamic linker.  Since this was broken with cross compilers,
12399   # most powerpc-linux boxes support dynamic linking these days and
12400   # people can always --disable-shared, the test was removed, and we
12401   # assume the GNU/Linux dynamic linker is in use.
12402   dynamic_linker='GNU/Linux ld.so'
12403   ;;
12404
12405 netbsdelf*-gnu)
12406   version_type=linux
12407   need_lib_prefix=no
12408   need_version=no
12409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12410   soname_spec='${libname}${release}${shared_ext}$major'
12411   shlibpath_var=LD_LIBRARY_PATH
12412   shlibpath_overrides_runpath=no
12413   hardcode_into_libs=yes
12414   dynamic_linker='NetBSD ld.elf_so'
12415   ;;
12416
12417 netbsd*)
12418   version_type=sunos
12419   need_lib_prefix=no
12420   need_version=no
12421   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12422     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12423     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12424     dynamic_linker='NetBSD (a.out) ld.so'
12425   else
12426     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12427     soname_spec='$libname$release$shared_ext$major'
12428     dynamic_linker='NetBSD ld.elf_so'
12429   fi
12430   shlibpath_var=LD_LIBRARY_PATH
12431   shlibpath_overrides_runpath=yes
12432   hardcode_into_libs=yes
12433   ;;
12434
12435 newsos6)
12436   version_type=linux # correct to gnu/linux during the next big refactor
12437   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12438   shlibpath_var=LD_LIBRARY_PATH
12439   shlibpath_overrides_runpath=yes
12440   ;;
12441
12442 *nto* | *qnx*)
12443   version_type=qnx
12444   need_lib_prefix=no
12445   need_version=no
12446   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12447   soname_spec='$libname$release$shared_ext$major'
12448   shlibpath_var=LD_LIBRARY_PATH
12449   shlibpath_overrides_runpath=no
12450   hardcode_into_libs=yes
12451   dynamic_linker='ldqnx.so'
12452   ;;
12453
12454 openbsd* | bitrig*)
12455   version_type=sunos
12456   sys_lib_dlsearch_path_spec=/usr/lib
12457   need_lib_prefix=no
12458   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12459     need_version=no
12460   else
12461     need_version=yes
12462   fi
12463   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12464   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12465   shlibpath_var=LD_LIBRARY_PATH
12466   shlibpath_overrides_runpath=yes
12467   ;;
12468
12469 os2*)
12470   libname_spec='$name'
12471   version_type=windows
12472   shrext_cmds=.dll
12473   need_version=no
12474   need_lib_prefix=no
12475   # OS/2 can only load a DLL with a base name of 8 characters or less.
12476   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12477     v=$($ECHO $release$versuffix | tr -d .-);
12478     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12479     $ECHO $n$v`$shared_ext'
12480   library_names_spec='${libname}_dll.$libext'
12481   dynamic_linker='OS/2 ld.exe'
12482   shlibpath_var=BEGINLIBPATH
12483   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12484   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12485   postinstall_cmds='base_file=`basename \$file`~
12486     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12487     dldir=$destdir/`dirname \$dlpath`~
12488     test -d \$dldir || mkdir -p \$dldir~
12489     $install_prog $dir/$dlname \$dldir/$dlname~
12490     chmod a+x \$dldir/$dlname~
12491     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12492       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12493     fi'
12494   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12495     dlpath=$dir/\$dldll~
12496     $RM \$dlpath'
12497   ;;
12498
12499 osf3* | osf4* | osf5*)
12500   version_type=osf
12501   need_lib_prefix=no
12502   need_version=no
12503   soname_spec='$libname$release$shared_ext$major'
12504   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505   shlibpath_var=LD_LIBRARY_PATH
12506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12507   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12508   ;;
12509
12510 rdos*)
12511   dynamic_linker=no
12512   ;;
12513
12514 solaris*)
12515   version_type=linux # correct to gnu/linux during the next big refactor
12516   need_lib_prefix=no
12517   need_version=no
12518   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519   soname_spec='$libname$release$shared_ext$major'
12520   shlibpath_var=LD_LIBRARY_PATH
12521   shlibpath_overrides_runpath=yes
12522   hardcode_into_libs=yes
12523   # ldd complains unless libraries are executable
12524   postinstall_cmds='chmod +x $lib'
12525   ;;
12526
12527 sunos4*)
12528   version_type=sunos
12529   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12530   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12531   shlibpath_var=LD_LIBRARY_PATH
12532   shlibpath_overrides_runpath=yes
12533   if test yes = "$with_gnu_ld"; then
12534     need_lib_prefix=no
12535   fi
12536   need_version=yes
12537   ;;
12538
12539 sysv4 | sysv4.3*)
12540   version_type=linux # correct to gnu/linux during the next big refactor
12541   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12542   soname_spec='$libname$release$shared_ext$major'
12543   shlibpath_var=LD_LIBRARY_PATH
12544   case $host_vendor in
12545     sni)
12546       shlibpath_overrides_runpath=no
12547       need_lib_prefix=no
12548       runpath_var=LD_RUN_PATH
12549       ;;
12550     siemens)
12551       need_lib_prefix=no
12552       ;;
12553     motorola)
12554       need_lib_prefix=no
12555       need_version=no
12556       shlibpath_overrides_runpath=no
12557       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12558       ;;
12559   esac
12560   ;;
12561
12562 sysv4*MP*)
12563   if test -d /usr/nec; then
12564     version_type=linux # correct to gnu/linux during the next big refactor
12565     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12566     soname_spec='$libname$shared_ext.$major'
12567     shlibpath_var=LD_LIBRARY_PATH
12568   fi
12569   ;;
12570
12571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12572   version_type=sco
12573   need_lib_prefix=no
12574   need_version=no
12575   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12576   soname_spec='$libname$release$shared_ext$major'
12577   shlibpath_var=LD_LIBRARY_PATH
12578   shlibpath_overrides_runpath=yes
12579   hardcode_into_libs=yes
12580   if test yes = "$with_gnu_ld"; then
12581     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12582   else
12583     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12584     case $host_os in
12585       sco3.2v5*)
12586         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12587         ;;
12588     esac
12589   fi
12590   sys_lib_dlsearch_path_spec='/usr/lib'
12591   ;;
12592
12593 tpf*)
12594   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12595   version_type=linux # correct to gnu/linux during the next big refactor
12596   need_lib_prefix=no
12597   need_version=no
12598   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12599   shlibpath_var=LD_LIBRARY_PATH
12600   shlibpath_overrides_runpath=no
12601   hardcode_into_libs=yes
12602   ;;
12603
12604 uts4*)
12605   version_type=linux # correct to gnu/linux during the next big refactor
12606   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12607   soname_spec='$libname$release$shared_ext$major'
12608   shlibpath_var=LD_LIBRARY_PATH
12609   ;;
12610
12611 *)
12612   dynamic_linker=no
12613   ;;
12614 esac
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12616 $as_echo "$dynamic_linker" >&6; }
12617 test no = "$dynamic_linker" && can_build_shared=no
12618
12619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12620 if test yes = "$GCC"; then
12621   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12622 fi
12623
12624 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12625   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12626 fi
12627
12628 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12629   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12630 fi
12631
12632 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12633 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12634
12635 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12636 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12637
12638 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12639 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12738 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12739 hardcode_action=
12740 if test -n "$hardcode_libdir_flag_spec" ||
12741    test -n "$runpath_var" ||
12742    test yes = "$hardcode_automatic"; then
12743
12744   # We can hardcode non-existent directories.
12745   if test no != "$hardcode_direct" &&
12746      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12747      # have to relink, otherwise we might link with an installed library
12748      # when we should be linking with a yet-to-be-installed one
12749      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12750      test no != "$hardcode_minus_L"; then
12751     # Linking always hardcodes the temporary library directory.
12752     hardcode_action=relink
12753   else
12754     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12755     hardcode_action=immediate
12756   fi
12757 else
12758   # We cannot hardcode anything, or else we can only hardcode existing
12759   # directories.
12760   hardcode_action=unsupported
12761 fi
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12763 $as_echo "$hardcode_action" >&6; }
12764
12765 if test relink = "$hardcode_action" ||
12766    test yes = "$inherit_rpath"; then
12767   # Fast installation is not supported
12768   enable_fast_install=no
12769 elif test yes = "$shlibpath_overrides_runpath" ||
12770      test no = "$enable_shared"; then
12771   # Fast installation is not necessary
12772   enable_fast_install=needless
12773 fi
12774
12775
12776
12777
12778
12779
12780   if test yes != "$enable_dlopen"; then
12781   enable_dlopen=unknown
12782   enable_dlopen_self=unknown
12783   enable_dlopen_self_static=unknown
12784 else
12785   lt_cv_dlopen=no
12786   lt_cv_dlopen_libs=
12787
12788   case $host_os in
12789   beos*)
12790     lt_cv_dlopen=load_add_on
12791     lt_cv_dlopen_libs=
12792     lt_cv_dlopen_self=yes
12793     ;;
12794
12795   mingw* | pw32* | cegcc*)
12796     lt_cv_dlopen=LoadLibrary
12797     lt_cv_dlopen_libs=
12798     ;;
12799
12800   cygwin*)
12801     lt_cv_dlopen=dlopen
12802     lt_cv_dlopen_libs=
12803     ;;
12804
12805   darwin*)
12806     # if libdl is installed we need to link against it
12807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12809 if ${ac_cv_lib_dl_dlopen+:} false; then :
12810   $as_echo_n "(cached) " >&6
12811 else
12812   ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-ldl  $LIBS"
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h.  */
12816
12817 /* Override any GCC internal prototype to avoid an error.
12818    Use char because int might match the return type of a GCC
12819    builtin and then its argument prototype would still apply.  */
12820 #ifdef __cplusplus
12821 extern "C"
12822 #endif
12823 char dlopen ();
12824 int
12825 main ()
12826 {
12827 return dlopen ();
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_link "$LINENO"; then :
12833   ac_cv_lib_dl_dlopen=yes
12834 else
12835   ac_cv_lib_dl_dlopen=no
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext \
12838     conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12843 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12844   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12845 else
12846
12847     lt_cv_dlopen=dyld
12848     lt_cv_dlopen_libs=
12849     lt_cv_dlopen_self=yes
12850
12851 fi
12852
12853     ;;
12854
12855   tpf*)
12856     # Don't try to run any link tests for TPF.  We know it's impossible
12857     # because TPF is a cross-compiler, and we know how we open DSOs.
12858     lt_cv_dlopen=dlopen
12859     lt_cv_dlopen_libs=
12860     lt_cv_dlopen_self=no
12861     ;;
12862
12863   *)
12864     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12865 if test "x$ac_cv_func_shl_load" = xyes; then :
12866   lt_cv_dlopen=shl_load
12867 else
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12869 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12870 if ${ac_cv_lib_dld_shl_load+:} false; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   ac_check_lib_save_LIBS=$LIBS
12874 LIBS="-ldld  $LIBS"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h.  */
12877
12878 /* Override any GCC internal prototype to avoid an error.
12879    Use char because int might match the return type of a GCC
12880    builtin and then its argument prototype would still apply.  */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char shl_load ();
12885 int
12886 main ()
12887 {
12888 return shl_load ();
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_link "$LINENO"; then :
12894   ac_cv_lib_dld_shl_load=yes
12895 else
12896   ac_cv_lib_dld_shl_load=no
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext \
12899     conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12901 fi
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12903 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12904 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12905   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12906 else
12907   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12908 if test "x$ac_cv_func_dlopen" = xyes; then :
12909   lt_cv_dlopen=dlopen
12910 else
12911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12912 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12913 if ${ac_cv_lib_dl_dlopen+:} false; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916   ac_check_lib_save_LIBS=$LIBS
12917 LIBS="-ldl  $LIBS"
12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h.  */
12920
12921 /* Override any GCC internal prototype to avoid an error.
12922    Use char because int might match the return type of a GCC
12923    builtin and then its argument prototype would still apply.  */
12924 #ifdef __cplusplus
12925 extern "C"
12926 #endif
12927 char dlopen ();
12928 int
12929 main ()
12930 {
12931 return dlopen ();
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_link "$LINENO"; then :
12937   ac_cv_lib_dl_dlopen=yes
12938 else
12939   ac_cv_lib_dl_dlopen=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext \
12942     conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12944 fi
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12946 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12947 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12948   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12949 else
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12951 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12952 if ${ac_cv_lib_svld_dlopen+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   ac_check_lib_save_LIBS=$LIBS
12956 LIBS="-lsvld  $LIBS"
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959
12960 /* Override any GCC internal prototype to avoid an error.
12961    Use char because int might match the return type of a GCC
12962    builtin and then its argument prototype would still apply.  */
12963 #ifdef __cplusplus
12964 extern "C"
12965 #endif
12966 char dlopen ();
12967 int
12968 main ()
12969 {
12970 return dlopen ();
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976   ac_cv_lib_svld_dlopen=yes
12977 else
12978   ac_cv_lib_svld_dlopen=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext \
12981     conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12985 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12986 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12987   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12988 else
12989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12990 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12991 if ${ac_cv_lib_dld_dld_link+:} false; then :
12992   $as_echo_n "(cached) " >&6
12993 else
12994   ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-ldld  $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h.  */
12998
12999 /* Override any GCC internal prototype to avoid an error.
13000    Use char because int might match the return type of a GCC
13001    builtin and then its argument prototype would still apply.  */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char dld_link ();
13006 int
13007 main ()
13008 {
13009 return dld_link ();
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015   ac_cv_lib_dld_dld_link=yes
13016 else
13017   ac_cv_lib_dld_dld_link=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020     conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13024 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13025 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13026   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13027 fi
13028
13029
13030 fi
13031
13032
13033 fi
13034
13035
13036 fi
13037
13038
13039 fi
13040
13041
13042 fi
13043
13044     ;;
13045   esac
13046
13047   if test no = "$lt_cv_dlopen"; then
13048     enable_dlopen=no
13049   else
13050     enable_dlopen=yes
13051   fi
13052
13053   case $lt_cv_dlopen in
13054   dlopen)
13055     save_CPPFLAGS=$CPPFLAGS
13056     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13057
13058     save_LDFLAGS=$LDFLAGS
13059     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13060
13061     save_LIBS=$LIBS
13062     LIBS="$lt_cv_dlopen_libs $LIBS"
13063
13064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13065 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13066 if ${lt_cv_dlopen_self+:} false; then :
13067   $as_echo_n "(cached) " >&6
13068 else
13069           if test yes = "$cross_compiling"; then :
13070   lt_cv_dlopen_self=cross
13071 else
13072   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13073   lt_status=$lt_dlunknown
13074   cat > conftest.$ac_ext <<_LT_EOF
13075 #line $LINENO "configure"
13076 #include "confdefs.h"
13077
13078 #if HAVE_DLFCN_H
13079 #include <dlfcn.h>
13080 #endif
13081
13082 #include <stdio.h>
13083
13084 #ifdef RTLD_GLOBAL
13085 #  define LT_DLGLOBAL           RTLD_GLOBAL
13086 #else
13087 #  ifdef DL_GLOBAL
13088 #    define LT_DLGLOBAL         DL_GLOBAL
13089 #  else
13090 #    define LT_DLGLOBAL         0
13091 #  endif
13092 #endif
13093
13094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13095    find out it does not work in some platform. */
13096 #ifndef LT_DLLAZY_OR_NOW
13097 #  ifdef RTLD_LAZY
13098 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13099 #  else
13100 #    ifdef DL_LAZY
13101 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13102 #    else
13103 #      ifdef RTLD_NOW
13104 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13105 #      else
13106 #        ifdef DL_NOW
13107 #          define LT_DLLAZY_OR_NOW      DL_NOW
13108 #        else
13109 #          define LT_DLLAZY_OR_NOW      0
13110 #        endif
13111 #      endif
13112 #    endif
13113 #  endif
13114 #endif
13115
13116 /* When -fvisibility=hidden is used, assume the code has been annotated
13117    correspondingly for the symbols needed.  */
13118 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13119 int fnord () __attribute__((visibility("default")));
13120 #endif
13121
13122 int fnord () { return 42; }
13123 int main ()
13124 {
13125   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13126   int status = $lt_dlunknown;
13127
13128   if (self)
13129     {
13130       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13131       else
13132         {
13133           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13134           else puts (dlerror ());
13135         }
13136       /* dlclose (self); */
13137     }
13138   else
13139     puts (dlerror ());
13140
13141   return status;
13142 }
13143 _LT_EOF
13144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13145   (eval $ac_link) 2>&5
13146   ac_status=$?
13147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13149     (./conftest; exit; ) >&5 2>/dev/null
13150     lt_status=$?
13151     case x$lt_status in
13152       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13153       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13154       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13155     esac
13156   else :
13157     # compilation failed
13158     lt_cv_dlopen_self=no
13159   fi
13160 fi
13161 rm -fr conftest*
13162
13163
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13166 $as_echo "$lt_cv_dlopen_self" >&6; }
13167
13168     if test yes = "$lt_cv_dlopen_self"; then
13169       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13170       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13171 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13172 if ${lt_cv_dlopen_self_static+:} false; then :
13173   $as_echo_n "(cached) " >&6
13174 else
13175           if test yes = "$cross_compiling"; then :
13176   lt_cv_dlopen_self_static=cross
13177 else
13178   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13179   lt_status=$lt_dlunknown
13180   cat > conftest.$ac_ext <<_LT_EOF
13181 #line $LINENO "configure"
13182 #include "confdefs.h"
13183
13184 #if HAVE_DLFCN_H
13185 #include <dlfcn.h>
13186 #endif
13187
13188 #include <stdio.h>
13189
13190 #ifdef RTLD_GLOBAL
13191 #  define LT_DLGLOBAL           RTLD_GLOBAL
13192 #else
13193 #  ifdef DL_GLOBAL
13194 #    define LT_DLGLOBAL         DL_GLOBAL
13195 #  else
13196 #    define LT_DLGLOBAL         0
13197 #  endif
13198 #endif
13199
13200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13201    find out it does not work in some platform. */
13202 #ifndef LT_DLLAZY_OR_NOW
13203 #  ifdef RTLD_LAZY
13204 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13205 #  else
13206 #    ifdef DL_LAZY
13207 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13208 #    else
13209 #      ifdef RTLD_NOW
13210 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13211 #      else
13212 #        ifdef DL_NOW
13213 #          define LT_DLLAZY_OR_NOW      DL_NOW
13214 #        else
13215 #          define LT_DLLAZY_OR_NOW      0
13216 #        endif
13217 #      endif
13218 #    endif
13219 #  endif
13220 #endif
13221
13222 /* When -fvisibility=hidden is used, assume the code has been annotated
13223    correspondingly for the symbols needed.  */
13224 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13225 int fnord () __attribute__((visibility("default")));
13226 #endif
13227
13228 int fnord () { return 42; }
13229 int main ()
13230 {
13231   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13232   int status = $lt_dlunknown;
13233
13234   if (self)
13235     {
13236       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13237       else
13238         {
13239           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13240           else puts (dlerror ());
13241         }
13242       /* dlclose (self); */
13243     }
13244   else
13245     puts (dlerror ());
13246
13247   return status;
13248 }
13249 _LT_EOF
13250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13251   (eval $ac_link) 2>&5
13252   ac_status=$?
13253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13255     (./conftest; exit; ) >&5 2>/dev/null
13256     lt_status=$?
13257     case x$lt_status in
13258       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13259       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13260       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13261     esac
13262   else :
13263     # compilation failed
13264     lt_cv_dlopen_self_static=no
13265   fi
13266 fi
13267 rm -fr conftest*
13268
13269
13270 fi
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13273     fi
13274
13275     CPPFLAGS=$save_CPPFLAGS
13276     LDFLAGS=$save_LDFLAGS
13277     LIBS=$save_LIBS
13278     ;;
13279   esac
13280
13281   case $lt_cv_dlopen_self in
13282   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13283   *) enable_dlopen_self=unknown ;;
13284   esac
13285
13286   case $lt_cv_dlopen_self_static in
13287   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13288   *) enable_dlopen_self_static=unknown ;;
13289   esac
13290 fi
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308 striplib=
13309 old_striplib=
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13313   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13314   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316 $as_echo "yes" >&6; }
13317 else
13318 # FIXME - insert some real tests, host_os isn't really good enough
13319   case $host_os in
13320   darwin*)
13321     if test -n "$STRIP"; then
13322       striplib="$STRIP -x"
13323       old_striplib="$STRIP -S"
13324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13325 $as_echo "yes" >&6; }
13326     else
13327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13329     fi
13330     ;;
13331   *)
13332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334     ;;
13335   esac
13336 fi
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349   # Report what library types will actually be built
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13353 $as_echo "$can_build_shared" >&6; }
13354
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13356 $as_echo_n "checking whether to build shared libraries... " >&6; }
13357   test no = "$can_build_shared" && enable_shared=no
13358
13359   # On AIX, shared libraries and static libraries use the same namespace, and
13360   # are all built from PIC.
13361   case $host_os in
13362   aix3*)
13363     test yes = "$enable_shared" && enable_static=no
13364     if test -n "$RANLIB"; then
13365       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13366       postinstall_cmds='$RANLIB $lib'
13367     fi
13368     ;;
13369
13370   aix[4-9]*)
13371     if test ia64 != "$host_cpu"; then
13372       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13373       yes,aix,yes) ;;                   # shared object as lib.so file only
13374       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13375       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13376       esac
13377     fi
13378     ;;
13379   esac
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13381 $as_echo "$enable_shared" >&6; }
13382
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13384 $as_echo_n "checking whether to build static libraries... " >&6; }
13385   # Make sure either enable_shared or enable_static is yes.
13386   test yes = "$enable_shared" || enable_static=yes
13387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13388 $as_echo "$enable_static" >&6; }
13389
13390
13391
13392
13393 fi
13394 ac_ext=c
13395 ac_cpp='$CPP $CPPFLAGS'
13396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13399
13400 CC=$lt_save_CC
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416         ac_config_commands="$ac_config_commands libtool"
13417
13418
13419
13420
13421 # Only expand once:
13422
13423
13424
13425 # Check for programs
13426 ac_ext=c
13427 ac_cpp='$CPP $CPPFLAGS'
13428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13431 if test -n "$ac_tool_prefix"; then
13432   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435 $as_echo_n "checking for $ac_word... " >&6; }
13436 if ${ac_cv_prog_CC+:} false; then :
13437   $as_echo_n "(cached) " >&6
13438 else
13439   if test -n "$CC"; then
13440   ac_cv_prog_CC="$CC" # Let the user override the test.
13441 else
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13444 do
13445   IFS=$as_save_IFS
13446   test -z "$as_dir" && as_dir=.
13447     for ac_exec_ext in '' $ac_executable_extensions; do
13448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451     break 2
13452   fi
13453 done
13454   done
13455 IFS=$as_save_IFS
13456
13457 fi
13458 fi
13459 CC=$ac_cv_prog_CC
13460 if test -n "$CC"; then
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13462 $as_echo "$CC" >&6; }
13463 else
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13466 fi
13467
13468
13469 fi
13470 if test -z "$ac_cv_prog_CC"; then
13471   ac_ct_CC=$CC
13472   # Extract the first word of "gcc", so it can be a program name with args.
13473 set dummy gcc; ac_word=$2
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475 $as_echo_n "checking for $ac_word... " >&6; }
13476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13477   $as_echo_n "(cached) " >&6
13478 else
13479   if test -n "$ac_ct_CC"; then
13480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13481 else
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13484 do
13485   IFS=$as_save_IFS
13486   test -z "$as_dir" && as_dir=.
13487     for ac_exec_ext in '' $ac_executable_extensions; do
13488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489     ac_cv_prog_ac_ct_CC="gcc"
13490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491     break 2
13492   fi
13493 done
13494   done
13495 IFS=$as_save_IFS
13496
13497 fi
13498 fi
13499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13500 if test -n "$ac_ct_CC"; then
13501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13502 $as_echo "$ac_ct_CC" >&6; }
13503 else
13504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13506 fi
13507
13508   if test "x$ac_ct_CC" = x; then
13509     CC=""
13510   else
13511     case $cross_compiling:$ac_tool_warned in
13512 yes:)
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13515 ac_tool_warned=yes ;;
13516 esac
13517     CC=$ac_ct_CC
13518   fi
13519 else
13520   CC="$ac_cv_prog_CC"
13521 fi
13522
13523 if test -z "$CC"; then
13524           if test -n "$ac_tool_prefix"; then
13525     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13526 set dummy ${ac_tool_prefix}cc; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_prog_CC+:} false; then :
13530   $as_echo_n "(cached) " >&6
13531 else
13532   if test -n "$CC"; then
13533   ac_cv_prog_CC="$CC" # Let the user override the test.
13534 else
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13537 do
13538   IFS=$as_save_IFS
13539   test -z "$as_dir" && as_dir=.
13540     for ac_exec_ext in '' $ac_executable_extensions; do
13541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542     ac_cv_prog_CC="${ac_tool_prefix}cc"
13543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544     break 2
13545   fi
13546 done
13547   done
13548 IFS=$as_save_IFS
13549
13550 fi
13551 fi
13552 CC=$ac_cv_prog_CC
13553 if test -n "$CC"; then
13554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13555 $as_echo "$CC" >&6; }
13556 else
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13559 fi
13560
13561
13562   fi
13563 fi
13564 if test -z "$CC"; then
13565   # Extract the first word of "cc", so it can be a program name with args.
13566 set dummy cc; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if ${ac_cv_prog_CC+:} false; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   if test -n "$CC"; then
13573   ac_cv_prog_CC="$CC" # Let the user override the test.
13574 else
13575   ac_prog_rejected=no
13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13578 do
13579   IFS=$as_save_IFS
13580   test -z "$as_dir" && as_dir=.
13581     for ac_exec_ext in '' $ac_executable_extensions; do
13582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13583     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13584        ac_prog_rejected=yes
13585        continue
13586      fi
13587     ac_cv_prog_CC="cc"
13588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589     break 2
13590   fi
13591 done
13592   done
13593 IFS=$as_save_IFS
13594
13595 if test $ac_prog_rejected = yes; then
13596   # We found a bogon in the path, so make sure we never use it.
13597   set dummy $ac_cv_prog_CC
13598   shift
13599   if test $# != 0; then
13600     # We chose a different compiler from the bogus one.
13601     # However, it has the same basename, so the bogon will be chosen
13602     # first if we set CC to just the basename; use the full file name.
13603     shift
13604     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13605   fi
13606 fi
13607 fi
13608 fi
13609 CC=$ac_cv_prog_CC
13610 if test -n "$CC"; then
13611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13612 $as_echo "$CC" >&6; }
13613 else
13614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13616 fi
13617
13618
13619 fi
13620 if test -z "$CC"; then
13621   if test -n "$ac_tool_prefix"; then
13622   for ac_prog in cl.exe
13623   do
13624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if ${ac_cv_prog_CC+:} false; then :
13629   $as_echo_n "(cached) " >&6
13630 else
13631   if test -n "$CC"; then
13632   ac_cv_prog_CC="$CC" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637   IFS=$as_save_IFS
13638   test -z "$as_dir" && as_dir=.
13639     for ac_exec_ext in '' $ac_executable_extensions; do
13640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643     break 2
13644   fi
13645 done
13646   done
13647 IFS=$as_save_IFS
13648
13649 fi
13650 fi
13651 CC=$ac_cv_prog_CC
13652 if test -n "$CC"; then
13653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13654 $as_echo "$CC" >&6; }
13655 else
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659
13660
13661     test -n "$CC" && break
13662   done
13663 fi
13664 if test -z "$CC"; then
13665   ac_ct_CC=$CC
13666   for ac_prog in cl.exe
13667 do
13668   # Extract the first word of "$ac_prog", so it can be a program name with args.
13669 set dummy $ac_prog; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675   if test -n "$ac_ct_CC"; then
13676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13677 else
13678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13679 for as_dir in $PATH
13680 do
13681   IFS=$as_save_IFS
13682   test -z "$as_dir" && as_dir=.
13683     for ac_exec_ext in '' $ac_executable_extensions; do
13684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13685     ac_cv_prog_ac_ct_CC="$ac_prog"
13686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13687     break 2
13688   fi
13689 done
13690   done
13691 IFS=$as_save_IFS
13692
13693 fi
13694 fi
13695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13696 if test -n "$ac_ct_CC"; then
13697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13698 $as_echo "$ac_ct_CC" >&6; }
13699 else
13700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13702 fi
13703
13704
13705   test -n "$ac_ct_CC" && break
13706 done
13707
13708   if test "x$ac_ct_CC" = x; then
13709     CC=""
13710   else
13711     case $cross_compiling:$ac_tool_warned in
13712 yes:)
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13715 ac_tool_warned=yes ;;
13716 esac
13717     CC=$ac_ct_CC
13718   fi
13719 fi
13720
13721 fi
13722
13723
13724 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13726 as_fn_error $? "no acceptable C compiler found in \$PATH
13727 See \`config.log' for more details" "$LINENO" 5; }
13728
13729 # Provide some information about the compiler.
13730 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13731 set X $ac_compile
13732 ac_compiler=$2
13733 for ac_option in --version -v -V -qversion; do
13734   { { ac_try="$ac_compiler $ac_option >&5"
13735 case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13740 $as_echo "$ac_try_echo"; } >&5
13741   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13742   ac_status=$?
13743   if test -s conftest.err; then
13744     sed '10a\
13745 ... rest of stderr output deleted ...
13746          10q' conftest.err >conftest.er1
13747     cat conftest.er1 >&5
13748   fi
13749   rm -f conftest.er1 conftest.err
13750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751   test $ac_status = 0; }
13752 done
13753
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13756 if ${ac_cv_c_compiler_gnu+:} false; then :
13757   $as_echo_n "(cached) " >&6
13758 else
13759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h.  */
13761
13762 int
13763 main ()
13764 {
13765 #ifndef __GNUC__
13766        choke me
13767 #endif
13768
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 if ac_fn_c_try_compile "$LINENO"; then :
13774   ac_compiler_gnu=yes
13775 else
13776   ac_compiler_gnu=no
13777 fi
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13780
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13784 if test $ac_compiler_gnu = yes; then
13785   GCC=yes
13786 else
13787   GCC=
13788 fi
13789 ac_test_CFLAGS=${CFLAGS+set}
13790 ac_save_CFLAGS=$CFLAGS
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13793 if ${ac_cv_prog_cc_g+:} false; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796   ac_save_c_werror_flag=$ac_c_werror_flag
13797    ac_c_werror_flag=yes
13798    ac_cv_prog_cc_g=no
13799    CFLAGS="-g"
13800    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h.  */
13802
13803 int
13804 main ()
13805 {
13806
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 if ac_fn_c_try_compile "$LINENO"; then :
13812   ac_cv_prog_cc_g=yes
13813 else
13814   CFLAGS=""
13815       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h.  */
13817
13818 int
13819 main ()
13820 {
13821
13822   ;
13823   return 0;
13824 }
13825 _ACEOF
13826 if ac_fn_c_try_compile "$LINENO"; then :
13827
13828 else
13829   ac_c_werror_flag=$ac_save_c_werror_flag
13830          CFLAGS="-g"
13831          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h.  */
13833
13834 int
13835 main ()
13836 {
13837
13838   ;
13839   return 0;
13840 }
13841 _ACEOF
13842 if ac_fn_c_try_compile "$LINENO"; then :
13843   ac_cv_prog_cc_g=yes
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850    ac_c_werror_flag=$ac_save_c_werror_flag
13851 fi
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13853 $as_echo "$ac_cv_prog_cc_g" >&6; }
13854 if test "$ac_test_CFLAGS" = set; then
13855   CFLAGS=$ac_save_CFLAGS
13856 elif test $ac_cv_prog_cc_g = yes; then
13857   if test "$GCC" = yes; then
13858     CFLAGS="-g -O2"
13859   else
13860     CFLAGS="-g"
13861   fi
13862 else
13863   if test "$GCC" = yes; then
13864     CFLAGS="-O2"
13865   else
13866     CFLAGS=
13867   fi
13868 fi
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13871 if ${ac_cv_prog_cc_c89+:} false; then :
13872   $as_echo_n "(cached) " >&6
13873 else
13874   ac_cv_prog_cc_c89=no
13875 ac_save_CC=$CC
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h.  */
13878 #include <stdarg.h>
13879 #include <stdio.h>
13880 struct stat;
13881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13882 struct buf { int x; };
13883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13884 static char *e (p, i)
13885      char **p;
13886      int i;
13887 {
13888   return p[i];
13889 }
13890 static char *f (char * (*g) (char **, int), char **p, ...)
13891 {
13892   char *s;
13893   va_list v;
13894   va_start (v,p);
13895   s = g (p, va_arg (v,int));
13896   va_end (v);
13897   return s;
13898 }
13899
13900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13901    function prototypes and stuff, but not '\xHH' hex character constants.
13902    These don't provoke an error unfortunately, instead are silently treated
13903    as 'x'.  The following induces an error, until -std is added to get
13904    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13905    array size at least.  It's necessary to write '\x00'==0 to get something
13906    that's true only with -std.  */
13907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13908
13909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13910    inside strings and character constants.  */
13911 #define FOO(x) 'x'
13912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13913
13914 int test (int i, double x);
13915 struct s1 {int (*f) (int a);};
13916 struct s2 {int (*f) (double a);};
13917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13918 int argc;
13919 char **argv;
13920 int
13921 main ()
13922 {
13923 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13929         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13930 do
13931   CC="$ac_save_CC $ac_arg"
13932   if ac_fn_c_try_compile "$LINENO"; then :
13933   ac_cv_prog_cc_c89=$ac_arg
13934 fi
13935 rm -f core conftest.err conftest.$ac_objext
13936   test "x$ac_cv_prog_cc_c89" != "xno" && break
13937 done
13938 rm -f conftest.$ac_ext
13939 CC=$ac_save_CC
13940
13941 fi
13942 # AC_CACHE_VAL
13943 case "x$ac_cv_prog_cc_c89" in
13944   x)
13945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13946 $as_echo "none needed" >&6; } ;;
13947   xno)
13948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13949 $as_echo "unsupported" >&6; } ;;
13950   *)
13951     CC="$CC $ac_cv_prog_cc_c89"
13952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13954 esac
13955 if test "x$ac_cv_prog_cc_c89" != xno; then :
13956
13957 fi
13958
13959 ac_ext=c
13960 ac_cpp='$CPP $CPPFLAGS'
13961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13964
13965 ac_ext=c
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13971 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13972 if ${am_cv_prog_cc_c_o+:} false; then :
13973   $as_echo_n "(cached) " >&6
13974 else
13975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h.  */
13977
13978 int
13979 main ()
13980 {
13981
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986   # Make sure it works both with $CC and with simple cc.
13987   # Following AC_PROG_CC_C_O, we do the test twice because some
13988   # compilers refuse to overwrite an existing .o file with -o,
13989   # though they will create one.
13990   am_cv_prog_cc_c_o=yes
13991   for am_i in 1 2; do
13992     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13993    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13994    ac_status=$?
13995    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996    (exit $ac_status); } \
13997          && test -f conftest2.$ac_objext; then
13998       : OK
13999     else
14000       am_cv_prog_cc_c_o=no
14001       break
14002     fi
14003   done
14004   rm -f core conftest*
14005   unset am_i
14006 fi
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14008 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14009 if test "$am_cv_prog_cc_c_o" != yes; then
14010    # Losing compiler, so override with the script.
14011    # FIXME: It is wrong to rewrite CC.
14012    # But if we don't then we get into trouble of one sort or another.
14013    # A longer-term fix would be to have automake use am__CC in this case,
14014    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14015    CC="$am_aux_dir/compile $CC"
14016 fi
14017 ac_ext=c
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14022
14023
14024 depcc="$CC"   am_compiler_list=
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14027 $as_echo_n "checking dependency style of $depcc... " >&6; }
14028 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14029   $as_echo_n "(cached) " >&6
14030 else
14031   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14032   # We make a subdir and do the tests there.  Otherwise we can end up
14033   # making bogus files that we don't know about and never remove.  For
14034   # instance it was reported that on HP-UX the gcc test will end up
14035   # making a dummy file named 'D' -- because '-MD' means "put the output
14036   # in D".
14037   rm -rf conftest.dir
14038   mkdir conftest.dir
14039   # Copy depcomp to subdir because otherwise we won't find it if we're
14040   # using a relative directory.
14041   cp "$am_depcomp" conftest.dir
14042   cd conftest.dir
14043   # We will build objects and dependencies in a subdirectory because
14044   # it helps to detect inapplicable dependency modes.  For instance
14045   # both Tru64's cc and ICC support -MD to output dependencies as a
14046   # side effect of compilation, but ICC will put the dependencies in
14047   # the current directory while Tru64 will put them in the object
14048   # directory.
14049   mkdir sub
14050
14051   am_cv_CC_dependencies_compiler_type=none
14052   if test "$am_compiler_list" = ""; then
14053      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14054   fi
14055   am__universal=false
14056   case " $depcc " in #(
14057      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14058      esac
14059
14060   for depmode in $am_compiler_list; do
14061     # Setup a source with many dependencies, because some compilers
14062     # like to wrap large dependency lists on column 80 (with \), and
14063     # we should not choose a depcomp mode which is confused by this.
14064     #
14065     # We need to recreate these files for each test, as the compiler may
14066     # overwrite some of them when testing with obscure command lines.
14067     # This happens at least with the AIX C compiler.
14068     : > sub/conftest.c
14069     for i in 1 2 3 4 5 6; do
14070       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14071       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14072       # Solaris 10 /bin/sh.
14073       echo '/* dummy */' > sub/conftst$i.h
14074     done
14075     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14076
14077     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14078     # mode.  It turns out that the SunPro C++ compiler does not properly
14079     # handle '-M -o', and we need to detect this.  Also, some Intel
14080     # versions had trouble with output in subdirs.
14081     am__obj=sub/conftest.${OBJEXT-o}
14082     am__minus_obj="-o $am__obj"
14083     case $depmode in
14084     gcc)
14085       # This depmode causes a compiler race in universal mode.
14086       test "$am__universal" = false || continue
14087       ;;
14088     nosideeffect)
14089       # After this tag, mechanisms are not by side-effect, so they'll
14090       # only be used when explicitly requested.
14091       if test "x$enable_dependency_tracking" = xyes; then
14092         continue
14093       else
14094         break
14095       fi
14096       ;;
14097     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14098       # This compiler won't grok '-c -o', but also, the minuso test has
14099       # not run yet.  These depmodes are late enough in the game, and
14100       # so weak that their functioning should not be impacted.
14101       am__obj=conftest.${OBJEXT-o}
14102       am__minus_obj=
14103       ;;
14104     none) break ;;
14105     esac
14106     if depmode=$depmode \
14107        source=sub/conftest.c object=$am__obj \
14108        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14109        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14110          >/dev/null 2>conftest.err &&
14111        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14112        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14113        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14114        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14115       # icc doesn't choke on unknown options, it will just issue warnings
14116       # or remarks (even with -Werror).  So we grep stderr for any message
14117       # that says an option was ignored or not supported.
14118       # When given -MP, icc 7.0 and 7.1 complain thusly:
14119       #   icc: Command line warning: ignoring option '-M'; no argument required
14120       # The diagnosis changed in icc 8.0:
14121       #   icc: Command line remark: option '-MP' not supported
14122       if (grep 'ignoring option' conftest.err ||
14123           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14124         am_cv_CC_dependencies_compiler_type=$depmode
14125         break
14126       fi
14127     fi
14128   done
14129
14130   cd ..
14131   rm -rf conftest.dir
14132 else
14133   am_cv_CC_dependencies_compiler_type=none
14134 fi
14135
14136 fi
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14140
14141  if
14142   test "x$enable_dependency_tracking" != xno \
14143   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14144   am__fastdepCC_TRUE=
14145   am__fastdepCC_FALSE='#'
14146 else
14147   am__fastdepCC_TRUE='#'
14148   am__fastdepCC_FALSE=
14149 fi
14150
14151
14152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14153 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14154 if ${ac_cv_prog_cc_c99+:} false; then :
14155   $as_echo_n "(cached) " >&6
14156 else
14157   ac_cv_prog_cc_c99=no
14158 ac_save_CC=$CC
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h.  */
14161 #include <stdarg.h>
14162 #include <stdbool.h>
14163 #include <stdlib.h>
14164 #include <wchar.h>
14165 #include <stdio.h>
14166
14167 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14168 #define debug(...) fprintf (stderr, __VA_ARGS__)
14169 #define showlist(...) puts (#__VA_ARGS__)
14170 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14171 static void
14172 test_varargs_macros (void)
14173 {
14174   int x = 1234;
14175   int y = 5678;
14176   debug ("Flag");
14177   debug ("X = %d\n", x);
14178   showlist (The first, second, and third items.);
14179   report (x>y, "x is %d but y is %d", x, y);
14180 }
14181
14182 // Check long long types.
14183 #define BIG64 18446744073709551615ull
14184 #define BIG32 4294967295ul
14185 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14186 #if !BIG_OK
14187   your preprocessor is broken;
14188 #endif
14189 #if BIG_OK
14190 #else
14191   your preprocessor is broken;
14192 #endif
14193 static long long int bignum = -9223372036854775807LL;
14194 static unsigned long long int ubignum = BIG64;
14195
14196 struct incomplete_array
14197 {
14198   int datasize;
14199   double data[];
14200 };
14201
14202 struct named_init {
14203   int number;
14204   const wchar_t *name;
14205   double average;
14206 };
14207
14208 typedef const char *ccp;
14209
14210 static inline int
14211 test_restrict (ccp restrict text)
14212 {
14213   // See if C++-style comments work.
14214   // Iterate through items via the restricted pointer.
14215   // Also check for declarations in for loops.
14216   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14217     continue;
14218   return 0;
14219 }
14220
14221 // Check varargs and va_copy.
14222 static void
14223 test_varargs (const char *format, ...)
14224 {
14225   va_list args;
14226   va_start (args, format);
14227   va_list args_copy;
14228   va_copy (args_copy, args);
14229
14230   const char *str;
14231   int number;
14232   float fnumber;
14233
14234   while (*format)
14235     {
14236       switch (*format++)
14237         {
14238         case 's': // string
14239           str = va_arg (args_copy, const char *);
14240           break;
14241         case 'd': // int
14242           number = va_arg (args_copy, int);
14243           break;
14244         case 'f': // float
14245           fnumber = va_arg (args_copy, double);
14246           break;
14247         default:
14248           break;
14249         }
14250     }
14251   va_end (args_copy);
14252   va_end (args);
14253 }
14254
14255 int
14256 main ()
14257 {
14258
14259   // Check bool.
14260   _Bool success = false;
14261
14262   // Check restrict.
14263   if (test_restrict ("String literal") == 0)
14264     success = true;
14265   char *restrict newvar = "Another string";
14266
14267   // Check varargs.
14268   test_varargs ("s, d' f .", "string", 65, 34.234);
14269   test_varargs_macros ();
14270
14271   // Check flexible array members.
14272   struct incomplete_array *ia =
14273     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14274   ia->datasize = 10;
14275   for (int i = 0; i < ia->datasize; ++i)
14276     ia->data[i] = i * 1.234;
14277
14278   // Check named initializers.
14279   struct named_init ni = {
14280     .number = 34,
14281     .name = L"Test wide string",
14282     .average = 543.34343,
14283   };
14284
14285   ni.number = 58;
14286
14287   int dynamic_array[ni.number];
14288   dynamic_array[ni.number - 1] = 543;
14289
14290   // work around unused variable warnings
14291   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14292           || dynamic_array[ni.number - 1] != 543);
14293
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14299 do
14300   CC="$ac_save_CC $ac_arg"
14301   if ac_fn_c_try_compile "$LINENO"; then :
14302   ac_cv_prog_cc_c99=$ac_arg
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext
14305   test "x$ac_cv_prog_cc_c99" != "xno" && break
14306 done
14307 rm -f conftest.$ac_ext
14308 CC=$ac_save_CC
14309
14310 fi
14311 # AC_CACHE_VAL
14312 case "x$ac_cv_prog_cc_c99" in
14313   x)
14314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14315 $as_echo "none needed" >&6; } ;;
14316   xno)
14317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14318 $as_echo "unsupported" >&6; } ;;
14319   *)
14320     CC="$CC $ac_cv_prog_cc_c99"
14321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14322 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14323 esac
14324 if test "x$ac_cv_prog_cc_c99" != xno; then :
14325
14326 fi
14327
14328
14329
14330 ac_ext=cpp
14331 ac_cpp='$CXXCPP $CPPFLAGS'
14332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14335 if test -z "$CXX"; then
14336   if test -n "$CCC"; then
14337     CXX=$CCC
14338   else
14339     if test -n "$ac_tool_prefix"; then
14340   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14341   do
14342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14345 $as_echo_n "checking for $ac_word... " >&6; }
14346 if ${ac_cv_prog_CXX+:} false; then :
14347   $as_echo_n "(cached) " >&6
14348 else
14349   if test -n "$CXX"; then
14350   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14351 else
14352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14353 for as_dir in $PATH
14354 do
14355   IFS=$as_save_IFS
14356   test -z "$as_dir" && as_dir=.
14357     for ac_exec_ext in '' $ac_executable_extensions; do
14358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14359     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14361     break 2
14362   fi
14363 done
14364   done
14365 IFS=$as_save_IFS
14366
14367 fi
14368 fi
14369 CXX=$ac_cv_prog_CXX
14370 if test -n "$CXX"; then
14371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14372 $as_echo "$CXX" >&6; }
14373 else
14374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14376 fi
14377
14378
14379     test -n "$CXX" && break
14380   done
14381 fi
14382 if test -z "$CXX"; then
14383   ac_ct_CXX=$CXX
14384   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14385 do
14386   # Extract the first word of "$ac_prog", so it can be a program name with args.
14387 set dummy $ac_prog; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389 $as_echo_n "checking for $ac_word... " >&6; }
14390 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14391   $as_echo_n "(cached) " >&6
14392 else
14393   if test -n "$ac_ct_CXX"; then
14394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14395 else
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14398 do
14399   IFS=$as_save_IFS
14400   test -z "$as_dir" && as_dir=.
14401     for ac_exec_ext in '' $ac_executable_extensions; do
14402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403     ac_cv_prog_ac_ct_CXX="$ac_prog"
14404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14405     break 2
14406   fi
14407 done
14408   done
14409 IFS=$as_save_IFS
14410
14411 fi
14412 fi
14413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14414 if test -n "$ac_ct_CXX"; then
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14416 $as_echo "$ac_ct_CXX" >&6; }
14417 else
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14420 fi
14421
14422
14423   test -n "$ac_ct_CXX" && break
14424 done
14425
14426   if test "x$ac_ct_CXX" = x; then
14427     CXX="g++"
14428   else
14429     case $cross_compiling:$ac_tool_warned in
14430 yes:)
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14433 ac_tool_warned=yes ;;
14434 esac
14435     CXX=$ac_ct_CXX
14436   fi
14437 fi
14438
14439   fi
14440 fi
14441 # Provide some information about the compiler.
14442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14443 set X $ac_compile
14444 ac_compiler=$2
14445 for ac_option in --version -v -V -qversion; do
14446   { { ac_try="$ac_compiler $ac_option >&5"
14447 case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14452 $as_echo "$ac_try_echo"; } >&5
14453   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14454   ac_status=$?
14455   if test -s conftest.err; then
14456     sed '10a\
14457 ... rest of stderr output deleted ...
14458          10q' conftest.err >conftest.er1
14459     cat conftest.er1 >&5
14460   fi
14461   rm -f conftest.er1 conftest.err
14462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14463   test $ac_status = 0; }
14464 done
14465
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14467 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14468 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14469   $as_echo_n "(cached) " >&6
14470 else
14471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h.  */
14473
14474 int
14475 main ()
14476 {
14477 #ifndef __GNUC__
14478        choke me
14479 #endif
14480
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_cxx_try_compile "$LINENO"; then :
14486   ac_compiler_gnu=yes
14487 else
14488   ac_compiler_gnu=no
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14492
14493 fi
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14495 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14496 if test $ac_compiler_gnu = yes; then
14497   GXX=yes
14498 else
14499   GXX=
14500 fi
14501 ac_test_CXXFLAGS=${CXXFLAGS+set}
14502 ac_save_CXXFLAGS=$CXXFLAGS
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14504 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14505 if ${ac_cv_prog_cxx_g+:} false; then :
14506   $as_echo_n "(cached) " >&6
14507 else
14508   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14509    ac_cxx_werror_flag=yes
14510    ac_cv_prog_cxx_g=no
14511    CXXFLAGS="-g"
14512    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h.  */
14514
14515 int
14516 main ()
14517 {
14518
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 if ac_fn_cxx_try_compile "$LINENO"; then :
14524   ac_cv_prog_cxx_g=yes
14525 else
14526   CXXFLAGS=""
14527       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h.  */
14529
14530 int
14531 main ()
14532 {
14533
14534   ;
14535   return 0;
14536 }
14537 _ACEOF
14538 if ac_fn_cxx_try_compile "$LINENO"; then :
14539
14540 else
14541   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14542          CXXFLAGS="-g"
14543          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h.  */
14545
14546 int
14547 main ()
14548 {
14549
14550   ;
14551   return 0;
14552 }
14553 _ACEOF
14554 if ac_fn_cxx_try_compile "$LINENO"; then :
14555   ac_cv_prog_cxx_g=yes
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 fi
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14565 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14566 if test "$ac_test_CXXFLAGS" = set; then
14567   CXXFLAGS=$ac_save_CXXFLAGS
14568 elif test $ac_cv_prog_cxx_g = yes; then
14569   if test "$GXX" = yes; then
14570     CXXFLAGS="-g -O2"
14571   else
14572     CXXFLAGS="-g"
14573   fi
14574 else
14575   if test "$GXX" = yes; then
14576     CXXFLAGS="-O2"
14577   else
14578     CXXFLAGS=
14579   fi
14580 fi
14581 ac_ext=c
14582 ac_cpp='$CPP $CPPFLAGS'
14583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14586
14587 depcc="$CXX"  am_compiler_list=
14588
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14590 $as_echo_n "checking dependency style of $depcc... " >&6; }
14591 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14595   # We make a subdir and do the tests there.  Otherwise we can end up
14596   # making bogus files that we don't know about and never remove.  For
14597   # instance it was reported that on HP-UX the gcc test will end up
14598   # making a dummy file named 'D' -- because '-MD' means "put the output
14599   # in D".
14600   rm -rf conftest.dir
14601   mkdir conftest.dir
14602   # Copy depcomp to subdir because otherwise we won't find it if we're
14603   # using a relative directory.
14604   cp "$am_depcomp" conftest.dir
14605   cd conftest.dir
14606   # We will build objects and dependencies in a subdirectory because
14607   # it helps to detect inapplicable dependency modes.  For instance
14608   # both Tru64's cc and ICC support -MD to output dependencies as a
14609   # side effect of compilation, but ICC will put the dependencies in
14610   # the current directory while Tru64 will put them in the object
14611   # directory.
14612   mkdir sub
14613
14614   am_cv_CXX_dependencies_compiler_type=none
14615   if test "$am_compiler_list" = ""; then
14616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14617   fi
14618   am__universal=false
14619   case " $depcc " in #(
14620      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14621      esac
14622
14623   for depmode in $am_compiler_list; do
14624     # Setup a source with many dependencies, because some compilers
14625     # like to wrap large dependency lists on column 80 (with \), and
14626     # we should not choose a depcomp mode which is confused by this.
14627     #
14628     # We need to recreate these files for each test, as the compiler may
14629     # overwrite some of them when testing with obscure command lines.
14630     # This happens at least with the AIX C compiler.
14631     : > sub/conftest.c
14632     for i in 1 2 3 4 5 6; do
14633       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14634       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14635       # Solaris 10 /bin/sh.
14636       echo '/* dummy */' > sub/conftst$i.h
14637     done
14638     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14639
14640     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14641     # mode.  It turns out that the SunPro C++ compiler does not properly
14642     # handle '-M -o', and we need to detect this.  Also, some Intel
14643     # versions had trouble with output in subdirs.
14644     am__obj=sub/conftest.${OBJEXT-o}
14645     am__minus_obj="-o $am__obj"
14646     case $depmode in
14647     gcc)
14648       # This depmode causes a compiler race in universal mode.
14649       test "$am__universal" = false || continue
14650       ;;
14651     nosideeffect)
14652       # After this tag, mechanisms are not by side-effect, so they'll
14653       # only be used when explicitly requested.
14654       if test "x$enable_dependency_tracking" = xyes; then
14655         continue
14656       else
14657         break
14658       fi
14659       ;;
14660     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14661       # This compiler won't grok '-c -o', but also, the minuso test has
14662       # not run yet.  These depmodes are late enough in the game, and
14663       # so weak that their functioning should not be impacted.
14664       am__obj=conftest.${OBJEXT-o}
14665       am__minus_obj=
14666       ;;
14667     none) break ;;
14668     esac
14669     if depmode=$depmode \
14670        source=sub/conftest.c object=$am__obj \
14671        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14672        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14673          >/dev/null 2>conftest.err &&
14674        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14675        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14676        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14677        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14678       # icc doesn't choke on unknown options, it will just issue warnings
14679       # or remarks (even with -Werror).  So we grep stderr for any message
14680       # that says an option was ignored or not supported.
14681       # When given -MP, icc 7.0 and 7.1 complain thusly:
14682       #   icc: Command line warning: ignoring option '-M'; no argument required
14683       # The diagnosis changed in icc 8.0:
14684       #   icc: Command line remark: option '-MP' not supported
14685       if (grep 'ignoring option' conftest.err ||
14686           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14687         am_cv_CXX_dependencies_compiler_type=$depmode
14688         break
14689       fi
14690     fi
14691   done
14692
14693   cd ..
14694   rm -rf conftest.dir
14695 else
14696   am_cv_CXX_dependencies_compiler_type=none
14697 fi
14698
14699 fi
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14701 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14702 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14703
14704  if
14705   test "x$enable_dependency_tracking" != xno \
14706   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14707   am__fastdepCXX_TRUE=
14708   am__fastdepCXX_FALSE='#'
14709 else
14710   am__fastdepCXX_TRUE='#'
14711   am__fastdepCXX_FALSE=
14712 fi
14713
14714
14715
14716
14717 func_stripname_cnf ()
14718 {
14719   case $2 in
14720   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14721   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14722   esac
14723 } # func_stripname_cnf
14724
14725       if test -n "$CXX" && ( test no != "$CXX" &&
14726     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14727     (test g++ != "$CXX"))); then
14728   ac_ext=cpp
14729 ac_cpp='$CXXCPP $CPPFLAGS'
14730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14734 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14735 if test -z "$CXXCPP"; then
14736   if ${ac_cv_prog_CXXCPP+:} false; then :
14737   $as_echo_n "(cached) " >&6
14738 else
14739       # Double quotes because CXXCPP needs to be expanded
14740     for CXXCPP in "$CXX -E" "/lib/cpp"
14741     do
14742       ac_preproc_ok=false
14743 for ac_cxx_preproc_warn_flag in '' yes
14744 do
14745   # Use a header file that comes with gcc, so configuring glibc
14746   # with a fresh cross-compiler works.
14747   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748   # <limits.h> exists even on freestanding compilers.
14749   # On the NeXT, cc -E runs the code through the compiler's parser,
14750   # not just through cpp. "Syntax error" is here to catch this case.
14751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h.  */
14753 #ifdef __STDC__
14754 # include <limits.h>
14755 #else
14756 # include <assert.h>
14757 #endif
14758                      Syntax error
14759 _ACEOF
14760 if ac_fn_cxx_try_cpp "$LINENO"; then :
14761
14762 else
14763   # Broken: fails on valid input.
14764 continue
14765 fi
14766 rm -f conftest.err conftest.i conftest.$ac_ext
14767
14768   # OK, works on sane cases.  Now check whether nonexistent headers
14769   # can be detected and how.
14770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h.  */
14772 #include <ac_nonexistent.h>
14773 _ACEOF
14774 if ac_fn_cxx_try_cpp "$LINENO"; then :
14775   # Broken: success on invalid input.
14776 continue
14777 else
14778   # Passes both tests.
14779 ac_preproc_ok=:
14780 break
14781 fi
14782 rm -f conftest.err conftest.i conftest.$ac_ext
14783
14784 done
14785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14786 rm -f conftest.i conftest.err conftest.$ac_ext
14787 if $ac_preproc_ok; then :
14788   break
14789 fi
14790
14791     done
14792     ac_cv_prog_CXXCPP=$CXXCPP
14793
14794 fi
14795   CXXCPP=$ac_cv_prog_CXXCPP
14796 else
14797   ac_cv_prog_CXXCPP=$CXXCPP
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14800 $as_echo "$CXXCPP" >&6; }
14801 ac_preproc_ok=false
14802 for ac_cxx_preproc_warn_flag in '' yes
14803 do
14804   # Use a header file that comes with gcc, so configuring glibc
14805   # with a fresh cross-compiler works.
14806   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14807   # <limits.h> exists even on freestanding compilers.
14808   # On the NeXT, cc -E runs the code through the compiler's parser,
14809   # not just through cpp. "Syntax error" is here to catch this case.
14810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h.  */
14812 #ifdef __STDC__
14813 # include <limits.h>
14814 #else
14815 # include <assert.h>
14816 #endif
14817                      Syntax error
14818 _ACEOF
14819 if ac_fn_cxx_try_cpp "$LINENO"; then :
14820
14821 else
14822   # Broken: fails on valid input.
14823 continue
14824 fi
14825 rm -f conftest.err conftest.i conftest.$ac_ext
14826
14827   # OK, works on sane cases.  Now check whether nonexistent headers
14828   # can be detected and how.
14829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h.  */
14831 #include <ac_nonexistent.h>
14832 _ACEOF
14833 if ac_fn_cxx_try_cpp "$LINENO"; then :
14834   # Broken: success on invalid input.
14835 continue
14836 else
14837   # Passes both tests.
14838 ac_preproc_ok=:
14839 break
14840 fi
14841 rm -f conftest.err conftest.i conftest.$ac_ext
14842
14843 done
14844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14845 rm -f conftest.i conftest.err conftest.$ac_ext
14846 if $ac_preproc_ok; then :
14847
14848 else
14849   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14851 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14852 See \`config.log' for more details" "$LINENO" 5; }
14853 fi
14854
14855 ac_ext=c
14856 ac_cpp='$CPP $CPPFLAGS'
14857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14860
14861 else
14862   _lt_caught_CXX_error=yes
14863 fi
14864
14865 ac_ext=cpp
14866 ac_cpp='$CXXCPP $CPPFLAGS'
14867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14870
14871 archive_cmds_need_lc_CXX=no
14872 allow_undefined_flag_CXX=
14873 always_export_symbols_CXX=no
14874 archive_expsym_cmds_CXX=
14875 compiler_needs_object_CXX=no
14876 export_dynamic_flag_spec_CXX=
14877 hardcode_direct_CXX=no
14878 hardcode_direct_absolute_CXX=no
14879 hardcode_libdir_flag_spec_CXX=
14880 hardcode_libdir_separator_CXX=
14881 hardcode_minus_L_CXX=no
14882 hardcode_shlibpath_var_CXX=unsupported
14883 hardcode_automatic_CXX=no
14884 inherit_rpath_CXX=no
14885 module_cmds_CXX=
14886 module_expsym_cmds_CXX=
14887 link_all_deplibs_CXX=unknown
14888 old_archive_cmds_CXX=$old_archive_cmds
14889 reload_flag_CXX=$reload_flag
14890 reload_cmds_CXX=$reload_cmds
14891 no_undefined_flag_CXX=
14892 whole_archive_flag_spec_CXX=
14893 enable_shared_with_static_runtimes_CXX=no
14894
14895 # Source file extension for C++ test sources.
14896 ac_ext=cpp
14897
14898 # Object file extension for compiled C++ test sources.
14899 objext=o
14900 objext_CXX=$objext
14901
14902 # No sense in running all these tests if we already determined that
14903 # the CXX compiler isn't working.  Some variables (like enable_shared)
14904 # are currently assumed to apply to all compilers on this platform,
14905 # and will be corrupted by setting them based on a non-working compiler.
14906 if test yes != "$_lt_caught_CXX_error"; then
14907   # Code to be used in simple compile tests
14908   lt_simple_compile_test_code="int some_variable = 0;"
14909
14910   # Code to be used in simple link tests
14911   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14912
14913   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14914
14915
14916
14917
14918
14919
14920 # If no C compiler was specified, use CC.
14921 LTCC=${LTCC-"$CC"}
14922
14923 # If no C compiler flags were specified, use CFLAGS.
14924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14925
14926 # Allow CC to be a program name with arguments.
14927 compiler=$CC
14928
14929
14930   # save warnings/boilerplate of simple test code
14931   ac_outfile=conftest.$ac_objext
14932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14934 _lt_compiler_boilerplate=`cat conftest.err`
14935 $RM conftest*
14936
14937   ac_outfile=conftest.$ac_objext
14938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14940 _lt_linker_boilerplate=`cat conftest.err`
14941 $RM -r conftest*
14942
14943
14944   # Allow CC to be a program name with arguments.
14945   lt_save_CC=$CC
14946   lt_save_CFLAGS=$CFLAGS
14947   lt_save_LD=$LD
14948   lt_save_GCC=$GCC
14949   GCC=$GXX
14950   lt_save_with_gnu_ld=$with_gnu_ld
14951   lt_save_path_LD=$lt_cv_path_LD
14952   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14953     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14954   else
14955     $as_unset lt_cv_prog_gnu_ld
14956   fi
14957   if test -n "${lt_cv_path_LDCXX+set}"; then
14958     lt_cv_path_LD=$lt_cv_path_LDCXX
14959   else
14960     $as_unset lt_cv_path_LD
14961   fi
14962   test -z "${LDCXX+set}" || LD=$LDCXX
14963   CC=${CXX-"c++"}
14964   CFLAGS=$CXXFLAGS
14965   compiler=$CC
14966   compiler_CXX=$CC
14967   func_cc_basename $compiler
14968 cc_basename=$func_cc_basename_result
14969
14970
14971   if test -n "$compiler"; then
14972     # We don't want -fno-exception when compiling C++ code, so set the
14973     # no_builtin_flag separately
14974     if test yes = "$GXX"; then
14975       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14976     else
14977       lt_prog_compiler_no_builtin_flag_CXX=
14978     fi
14979
14980     if test yes = "$GXX"; then
14981       # Set up default GNU C++ configuration
14982
14983
14984
14985 # Check whether --with-gnu-ld was given.
14986 if test "${with_gnu_ld+set}" = set; then :
14987   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14988 else
14989   with_gnu_ld=no
14990 fi
14991
14992 ac_prog=ld
14993 if test yes = "$GCC"; then
14994   # Check if gcc -print-prog-name=ld gives a path.
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14996 $as_echo_n "checking for ld used by $CC... " >&6; }
14997   case $host in
14998   *-*-mingw*)
14999     # gcc leaves a trailing carriage return, which upsets mingw
15000     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15001   *)
15002     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15003   esac
15004   case $ac_prog in
15005     # Accept absolute paths.
15006     [\\/]* | ?:[\\/]*)
15007       re_direlt='/[^/][^/]*/\.\./'
15008       # Canonicalize the pathname of ld
15009       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15010       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15011         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15012       done
15013       test -z "$LD" && LD=$ac_prog
15014       ;;
15015   "")
15016     # If it fails, then pretend we aren't using GCC.
15017     ac_prog=ld
15018     ;;
15019   *)
15020     # If it is relative, then search for the first ld in PATH.
15021     with_gnu_ld=unknown
15022     ;;
15023   esac
15024 elif test yes = "$with_gnu_ld"; then
15025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15026 $as_echo_n "checking for GNU ld... " >&6; }
15027 else
15028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15029 $as_echo_n "checking for non-GNU ld... " >&6; }
15030 fi
15031 if ${lt_cv_path_LD+:} false; then :
15032   $as_echo_n "(cached) " >&6
15033 else
15034   if test -z "$LD"; then
15035   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15036   for ac_dir in $PATH; do
15037     IFS=$lt_save_ifs
15038     test -z "$ac_dir" && ac_dir=.
15039     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15040       lt_cv_path_LD=$ac_dir/$ac_prog
15041       # Check to see if the program is GNU ld.  I'd rather use --version,
15042       # but apparently some variants of GNU ld only accept -v.
15043       # Break only if it was the GNU/non-GNU ld that we prefer.
15044       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15045       *GNU* | *'with BFD'*)
15046         test no != "$with_gnu_ld" && break
15047         ;;
15048       *)
15049         test yes != "$with_gnu_ld" && break
15050         ;;
15051       esac
15052     fi
15053   done
15054   IFS=$lt_save_ifs
15055 else
15056   lt_cv_path_LD=$LD # Let the user override the test with a path.
15057 fi
15058 fi
15059
15060 LD=$lt_cv_path_LD
15061 if test -n "$LD"; then
15062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15063 $as_echo "$LD" >&6; }
15064 else
15065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 $as_echo "no" >&6; }
15067 fi
15068 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15070 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15071 if ${lt_cv_prog_gnu_ld+:} false; then :
15072   $as_echo_n "(cached) " >&6
15073 else
15074   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15075 case `$LD -v 2>&1 </dev/null` in
15076 *GNU* | *'with BFD'*)
15077   lt_cv_prog_gnu_ld=yes
15078   ;;
15079 *)
15080   lt_cv_prog_gnu_ld=no
15081   ;;
15082 esac
15083 fi
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15085 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15086 with_gnu_ld=$lt_cv_prog_gnu_ld
15087
15088
15089
15090
15091
15092
15093
15094       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15095       # archiving commands below assume that GNU ld is being used.
15096       if test yes = "$with_gnu_ld"; then
15097         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15098         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'
15099
15100         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15101         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15102
15103         # If archive_cmds runs LD, not CC, wlarc should be empty
15104         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15105         #     investigate it a little bit more. (MM)
15106         wlarc='$wl'
15107
15108         # ancient GNU ld didn't support --whole-archive et. al.
15109         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15110           $GREP 'no-whole-archive' > /dev/null; then
15111           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15112         else
15113           whole_archive_flag_spec_CXX=
15114         fi
15115       else
15116         with_gnu_ld=no
15117         wlarc=
15118
15119         # A generic and very simple default shared library creation
15120         # command for GNU C++ for the case where it uses the native
15121         # linker, instead of GNU ld.  If possible, this setting should
15122         # overridden to take advantage of the native linker features on
15123         # the platform it is being used on.
15124         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15125       fi
15126
15127       # Commands to make compiler produce verbose output that lists
15128       # what "hidden" libraries, object files and flags are used when
15129       # linking a shared library.
15130       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15131
15132     else
15133       GXX=no
15134       with_gnu_ld=no
15135       wlarc=
15136     fi
15137
15138     # PORTME: fill in a description of your system's C++ link characteristics
15139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15141     ld_shlibs_CXX=yes
15142     case $host_os in
15143       aix3*)
15144         # FIXME: insert proper C++ library support
15145         ld_shlibs_CXX=no
15146         ;;
15147       aix[4-9]*)
15148         if test ia64 = "$host_cpu"; then
15149           # On IA64, the linker does run time linking by default, so we don't
15150           # have to do anything special.
15151           aix_use_runtimelinking=no
15152           exp_sym_flag='-Bexport'
15153           no_entry_flag=
15154         else
15155           aix_use_runtimelinking=no
15156
15157           # Test if we are trying to use run time linking or normal
15158           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15159           # have runtime linking enabled, and use it for executables.
15160           # For shared libraries, we enable/disable runtime linking
15161           # depending on the kind of the shared library created -
15162           # when "with_aix_soname,aix_use_runtimelinking" is:
15163           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15164           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15165           #            lib.a           static archive
15166           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15167           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15168           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15169           #            lib.a(lib.so.V) shared, rtl:no
15170           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15171           #            lib.a           static archive
15172           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15173             for ld_flag in $LDFLAGS; do
15174               case $ld_flag in
15175               *-brtl*)
15176                 aix_use_runtimelinking=yes
15177                 break
15178                 ;;
15179               esac
15180             done
15181             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15182               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15183               # so we don't have lib.a shared libs to link our executables.
15184               # We have to force runtime linking in this case.
15185               aix_use_runtimelinking=yes
15186               LDFLAGS="$LDFLAGS -Wl,-brtl"
15187             fi
15188             ;;
15189           esac
15190
15191           exp_sym_flag='-bexport'
15192           no_entry_flag='-bnoentry'
15193         fi
15194
15195         # When large executables or shared objects are built, AIX ld can
15196         # have problems creating the table of contents.  If linking a library
15197         # or program results in "error TOC overflow" add -mminimal-toc to
15198         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15199         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15200
15201         archive_cmds_CXX=''
15202         hardcode_direct_CXX=yes
15203         hardcode_direct_absolute_CXX=yes
15204         hardcode_libdir_separator_CXX=':'
15205         link_all_deplibs_CXX=yes
15206         file_list_spec_CXX='$wl-f,'
15207         case $with_aix_soname,$aix_use_runtimelinking in
15208         aix,*) ;;       # no import file
15209         svr4,* | *,yes) # use import file
15210           # The Import File defines what to hardcode.
15211           hardcode_direct_CXX=no
15212           hardcode_direct_absolute_CXX=no
15213           ;;
15214         esac
15215
15216         if test yes = "$GXX"; then
15217           case $host_os in aix4.[012]|aix4.[012].*)
15218           # We only want to do this on AIX 4.2 and lower, the check
15219           # below for broken collect2 doesn't work under 4.3+
15220           collect2name=`$CC -print-prog-name=collect2`
15221           if test -f "$collect2name" &&
15222              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15223           then
15224             # We have reworked collect2
15225             :
15226           else
15227             # We have old collect2
15228             hardcode_direct_CXX=unsupported
15229             # It fails to find uninstalled libraries when the uninstalled
15230             # path is not listed in the libpath.  Setting hardcode_minus_L
15231             # to unsupported forces relinking
15232             hardcode_minus_L_CXX=yes
15233             hardcode_libdir_flag_spec_CXX='-L$libdir'
15234             hardcode_libdir_separator_CXX=
15235           fi
15236           esac
15237           shared_flag='-shared'
15238           if test yes = "$aix_use_runtimelinking"; then
15239             shared_flag=$shared_flag' $wl-G'
15240           fi
15241           # Need to ensure runtime linking is disabled for the traditional
15242           # shared library, or the linker may eventually find shared libraries
15243           # /with/ Import File - we do not want to mix them.
15244           shared_flag_aix='-shared'
15245           shared_flag_svr4='-shared $wl-G'
15246         else
15247           # not using gcc
15248           if test ia64 = "$host_cpu"; then
15249           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15250           # chokes on -Wl,-G. The following line is correct:
15251           shared_flag='-G'
15252           else
15253             if test yes = "$aix_use_runtimelinking"; then
15254               shared_flag='$wl-G'
15255             else
15256               shared_flag='$wl-bM:SRE'
15257             fi
15258             shared_flag_aix='$wl-bM:SRE'
15259             shared_flag_svr4='$wl-G'
15260           fi
15261         fi
15262
15263         export_dynamic_flag_spec_CXX='$wl-bexpall'
15264         # It seems that -bexpall does not export symbols beginning with
15265         # underscore (_), so it is better to generate a list of symbols to
15266         # export.
15267         always_export_symbols_CXX=yes
15268         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15269           # Warning - without using the other runtime loading flags (-brtl),
15270           # -berok will link without error, but may produce a broken library.
15271           # The "-G" linker flag allows undefined symbols.
15272           no_undefined_flag_CXX='-bernotok'
15273           # Determine the default libpath from the value encoded in an empty
15274           # executable.
15275           if test set = "${lt_cv_aix_libpath+set}"; then
15276   aix_libpath=$lt_cv_aix_libpath
15277 else
15278   if ${lt_cv_aix_libpath__CXX+:} false; then :
15279   $as_echo_n "(cached) " >&6
15280 else
15281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h.  */
15283
15284 int
15285 main ()
15286 {
15287
15288   ;
15289   return 0;
15290 }
15291 _ACEOF
15292 if ac_fn_cxx_try_link "$LINENO"; then :
15293
15294   lt_aix_libpath_sed='
15295       /Import File Strings/,/^$/ {
15296           /^0/ {
15297               s/^0  *\([^ ]*\) *$/\1/
15298               p
15299           }
15300       }'
15301   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302   # Check for a 64-bit object if we didn't find anything.
15303   if test -z "$lt_cv_aix_libpath__CXX"; then
15304     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305   fi
15306 fi
15307 rm -f core conftest.err conftest.$ac_objext \
15308     conftest$ac_exeext conftest.$ac_ext
15309   if test -z "$lt_cv_aix_libpath__CXX"; then
15310     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15311   fi
15312
15313 fi
15314
15315   aix_libpath=$lt_cv_aix_libpath__CXX
15316 fi
15317
15318           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15319
15320           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15321         else
15322           if test ia64 = "$host_cpu"; then
15323             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15324             allow_undefined_flag_CXX="-z nodefs"
15325             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"
15326           else
15327             # Determine the default libpath from the value encoded in an
15328             # empty executable.
15329             if test set = "${lt_cv_aix_libpath+set}"; then
15330   aix_libpath=$lt_cv_aix_libpath
15331 else
15332   if ${lt_cv_aix_libpath__CXX+:} false; then :
15333   $as_echo_n "(cached) " >&6
15334 else
15335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h.  */
15337
15338 int
15339 main ()
15340 {
15341
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 if ac_fn_cxx_try_link "$LINENO"; then :
15347
15348   lt_aix_libpath_sed='
15349       /Import File Strings/,/^$/ {
15350           /^0/ {
15351               s/^0  *\([^ ]*\) *$/\1/
15352               p
15353           }
15354       }'
15355   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15356   # Check for a 64-bit object if we didn't find anything.
15357   if test -z "$lt_cv_aix_libpath__CXX"; then
15358     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15359   fi
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext \
15362     conftest$ac_exeext conftest.$ac_ext
15363   if test -z "$lt_cv_aix_libpath__CXX"; then
15364     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15365   fi
15366
15367 fi
15368
15369   aix_libpath=$lt_cv_aix_libpath__CXX
15370 fi
15371
15372             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15373             # Warning - without using the other run time loading flags,
15374             # -berok will link without error, but may produce a broken library.
15375             no_undefined_flag_CXX=' $wl-bernotok'
15376             allow_undefined_flag_CXX=' $wl-berok'
15377             if test yes = "$with_gnu_ld"; then
15378               # We only use this code for GNU lds that support --whole-archive.
15379               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15380             else
15381               # Exported symbols can be pulled into shared objects from archives
15382               whole_archive_flag_spec_CXX='$convenience'
15383             fi
15384             archive_cmds_need_lc_CXX=yes
15385             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15386             # -brtl affects multiple linker settings, -berok does not and is overridden later
15387             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15388             if test svr4 != "$with_aix_soname"; then
15389               # This is similar to how AIX traditionally builds its shared
15390               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15391               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15392             fi
15393             if test aix != "$with_aix_soname"; then
15394               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15395             else
15396               # used by -dlpreopen to get the symbols
15397               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15398             fi
15399             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15400           fi
15401         fi
15402         ;;
15403
15404       beos*)
15405         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15406           allow_undefined_flag_CXX=unsupported
15407           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15408           # support --undefined.  This deserves some investigation.  FIXME
15409           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15410         else
15411           ld_shlibs_CXX=no
15412         fi
15413         ;;
15414
15415       chorus*)
15416         case $cc_basename in
15417           *)
15418           # FIXME: insert proper C++ library support
15419           ld_shlibs_CXX=no
15420           ;;
15421         esac
15422         ;;
15423
15424       cygwin* | mingw* | pw32* | cegcc*)
15425         case $GXX,$cc_basename in
15426         ,cl* | no,cl*)
15427           # Native MSVC
15428           # hardcode_libdir_flag_spec is actually meaningless, as there is
15429           # no search path for DLLs.
15430           hardcode_libdir_flag_spec_CXX=' '
15431           allow_undefined_flag_CXX=unsupported
15432           always_export_symbols_CXX=yes
15433           file_list_spec_CXX='@'
15434           # Tell ltmain to make .lib files, not .a files.
15435           libext=lib
15436           # Tell ltmain to make .dll files, not .so files.
15437           shrext_cmds=.dll
15438           # FIXME: Setting linknames here is a bad hack.
15439           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15440           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15441               cp "$export_symbols" "$output_objdir/$soname.def";
15442               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15443             else
15444               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15445             fi~
15446             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15447             linknames='
15448           # The linker will not automatically build a static lib if we build a DLL.
15449           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15450           enable_shared_with_static_runtimes_CXX=yes
15451           # Don't use ranlib
15452           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15453           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15454             lt_tool_outputfile="@TOOL_OUTPUT@"~
15455             case $lt_outputfile in
15456               *.exe|*.EXE) ;;
15457               *)
15458                 lt_outputfile=$lt_outputfile.exe
15459                 lt_tool_outputfile=$lt_tool_outputfile.exe
15460                 ;;
15461             esac~
15462             func_to_tool_file "$lt_outputfile"~
15463             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15464               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15465               $RM "$lt_outputfile.manifest";
15466             fi'
15467           ;;
15468         *)
15469           # g++
15470           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15471           # as there is no search path for DLLs.
15472           hardcode_libdir_flag_spec_CXX='-L$libdir'
15473           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15474           allow_undefined_flag_CXX=unsupported
15475           always_export_symbols_CXX=no
15476           enable_shared_with_static_runtimes_CXX=yes
15477
15478           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15479             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'
15480             # If the export-symbols file already is a .def file, use it as
15481             # is; otherwise, prepend EXPORTS...
15482             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15483               cp $export_symbols $output_objdir/$soname.def;
15484             else
15485               echo EXPORTS > $output_objdir/$soname.def;
15486               cat $export_symbols >> $output_objdir/$soname.def;
15487             fi~
15488             $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'
15489           else
15490             ld_shlibs_CXX=no
15491           fi
15492           ;;
15493         esac
15494         ;;
15495       darwin* | rhapsody*)
15496
15497
15498   archive_cmds_need_lc_CXX=no
15499   hardcode_direct_CXX=no
15500   hardcode_automatic_CXX=yes
15501   hardcode_shlibpath_var_CXX=unsupported
15502   if test yes = "$lt_cv_ld_force_load"; then
15503     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\"`'
15504
15505   else
15506     whole_archive_flag_spec_CXX=''
15507   fi
15508   link_all_deplibs_CXX=yes
15509   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15510   case $cc_basename in
15511      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15512      *) _lt_dar_can_shared=$GCC ;;
15513   esac
15514   if test yes = "$_lt_dar_can_shared"; then
15515     output_verbose_link_cmd=func_echo_all
15516     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"
15517     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15518     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"
15519     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"
15520        if test yes != "$lt_cv_apple_cc_single_mod"; then
15521       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"
15522       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"
15523     fi
15524
15525   else
15526   ld_shlibs_CXX=no
15527   fi
15528
15529         ;;
15530
15531       os2*)
15532         hardcode_libdir_flag_spec_CXX='-L$libdir'
15533         hardcode_minus_L_CXX=yes
15534         allow_undefined_flag_CXX=unsupported
15535         shrext_cmds=.dll
15536         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15537           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15538           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15539           $ECHO EXPORTS >> $output_objdir/$libname.def~
15540           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15541           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15542           emximp -o $lib $output_objdir/$libname.def'
15543         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15544           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15545           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15546           $ECHO EXPORTS >> $output_objdir/$libname.def~
15547           prefix_cmds="$SED"~
15548           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15549             prefix_cmds="$prefix_cmds -e 1d";
15550           fi~
15551           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15552           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15553           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15554           emximp -o $lib $output_objdir/$libname.def'
15555         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15556         enable_shared_with_static_runtimes_CXX=yes
15557         ;;
15558
15559       dgux*)
15560         case $cc_basename in
15561           ec++*)
15562             # FIXME: insert proper C++ library support
15563             ld_shlibs_CXX=no
15564             ;;
15565           ghcx*)
15566             # Green Hills C++ Compiler
15567             # FIXME: insert proper C++ library support
15568             ld_shlibs_CXX=no
15569             ;;
15570           *)
15571             # FIXME: insert proper C++ library support
15572             ld_shlibs_CXX=no
15573             ;;
15574         esac
15575         ;;
15576
15577       freebsd2.*)
15578         # C++ shared libraries reported to be fairly broken before
15579         # switch to ELF
15580         ld_shlibs_CXX=no
15581         ;;
15582
15583       freebsd-elf*)
15584         archive_cmds_need_lc_CXX=no
15585         ;;
15586
15587       freebsd* | dragonfly*)
15588         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15589         # conventions
15590         ld_shlibs_CXX=yes
15591         ;;
15592
15593       haiku*)
15594         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15595         link_all_deplibs_CXX=yes
15596         ;;
15597
15598       hpux9*)
15599         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15600         hardcode_libdir_separator_CXX=:
15601         export_dynamic_flag_spec_CXX='$wl-E'
15602         hardcode_direct_CXX=yes
15603         hardcode_minus_L_CXX=yes # Not in the search PATH,
15604                                              # but as the default
15605                                              # location of the library.
15606
15607         case $cc_basename in
15608           CC*)
15609             # FIXME: insert proper C++ library support
15610             ld_shlibs_CXX=no
15611             ;;
15612           aCC*)
15613             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15614             # Commands to make compiler produce verbose output that lists
15615             # what "hidden" libraries, object files and flags are used when
15616             # linking a shared library.
15617             #
15618             # There doesn't appear to be a way to prevent this compiler from
15619             # explicitly linking system object files so we need to strip them
15620             # from the output so that they don't get included in the library
15621             # dependencies.
15622             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"'
15623             ;;
15624           *)
15625             if test yes = "$GXX"; then
15626               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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15627             else
15628               # FIXME: insert proper C++ library support
15629               ld_shlibs_CXX=no
15630             fi
15631             ;;
15632         esac
15633         ;;
15634
15635       hpux10*|hpux11*)
15636         if test no = "$with_gnu_ld"; then
15637           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15638           hardcode_libdir_separator_CXX=:
15639
15640           case $host_cpu in
15641             hppa*64*|ia64*)
15642               ;;
15643             *)
15644               export_dynamic_flag_spec_CXX='$wl-E'
15645               ;;
15646           esac
15647         fi
15648         case $host_cpu in
15649           hppa*64*|ia64*)
15650             hardcode_direct_CXX=no
15651             hardcode_shlibpath_var_CXX=no
15652             ;;
15653           *)
15654             hardcode_direct_CXX=yes
15655             hardcode_direct_absolute_CXX=yes
15656             hardcode_minus_L_CXX=yes # Not in the search PATH,
15657                                                  # but as the default
15658                                                  # location of the library.
15659             ;;
15660         esac
15661
15662         case $cc_basename in
15663           CC*)
15664             # FIXME: insert proper C++ library support
15665             ld_shlibs_CXX=no
15666             ;;
15667           aCC*)
15668             case $host_cpu in
15669               hppa*64*)
15670                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15671                 ;;
15672               ia64*)
15673                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15674                 ;;
15675               *)
15676                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15677                 ;;
15678             esac
15679             # Commands to make compiler produce verbose output that lists
15680             # what "hidden" libraries, object files and flags are used when
15681             # linking a shared library.
15682             #
15683             # There doesn't appear to be a way to prevent this compiler from
15684             # explicitly linking system object files so we need to strip them
15685             # from the output so that they don't get included in the library
15686             # dependencies.
15687             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"'
15688             ;;
15689           *)
15690             if test yes = "$GXX"; then
15691               if test no = "$with_gnu_ld"; then
15692                 case $host_cpu in
15693                   hppa*64*)
15694                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15695                     ;;
15696                   ia64*)
15697                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15698                     ;;
15699                   *)
15700                     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'
15701                     ;;
15702                 esac
15703               fi
15704             else
15705               # FIXME: insert proper C++ library support
15706               ld_shlibs_CXX=no
15707             fi
15708             ;;
15709         esac
15710         ;;
15711
15712       interix[3-9]*)
15713         hardcode_direct_CXX=no
15714         hardcode_shlibpath_var_CXX=no
15715         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15716         export_dynamic_flag_spec_CXX='$wl-E'
15717         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15718         # Instead, shared libraries are loaded at an image base (0x10000000 by
15719         # default) and relocated if they conflict, which is a slow very memory
15720         # consuming and fragmenting process.  To avoid this, we pick a random,
15721         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15722         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15723         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'
15724         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'
15725         ;;
15726       irix5* | irix6*)
15727         case $cc_basename in
15728           CC*)
15729             # SGI C++
15730             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'
15731
15732             # Archives containing C++ object files must be created using
15733             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15734             # necessary to make sure instantiated templates are included
15735             # in the archive.
15736             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15737             ;;
15738           *)
15739             if test yes = "$GXX"; then
15740               if test no = "$with_gnu_ld"; then
15741                 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'
15742               else
15743                 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'
15744               fi
15745             fi
15746             link_all_deplibs_CXX=yes
15747             ;;
15748         esac
15749         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15750         hardcode_libdir_separator_CXX=:
15751         inherit_rpath_CXX=yes
15752         ;;
15753
15754       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15755         case $cc_basename in
15756           KCC*)
15757             # Kuck and Associates, Inc. (KAI) C++ Compiler
15758
15759             # KCC will only create a shared library if the output file
15760             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15761             # to its proper name (with version) after linking.
15762             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'
15763             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'
15764             # Commands to make compiler produce verbose output that lists
15765             # what "hidden" libraries, object files and flags are used when
15766             # linking a shared library.
15767             #
15768             # There doesn't appear to be a way to prevent this compiler from
15769             # explicitly linking system object files so we need to strip them
15770             # from the output so that they don't get included in the library
15771             # dependencies.
15772             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"'
15773
15774             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15775             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15776
15777             # Archives containing C++ object files must be created using
15778             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15779             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15780             ;;
15781           icpc* | ecpc* )
15782             # Intel C++
15783             with_gnu_ld=yes
15784             # version 8.0 and above of icpc choke on multiply defined symbols
15785             # if we add $predep_objects and $postdep_objects, however 7.1 and
15786             # earlier do not add the objects themselves.
15787             case `$CC -V 2>&1` in
15788               *"Version 7."*)
15789                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15790                 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'
15791                 ;;
15792               *)  # Version 8.0 or newer
15793                 tmp_idyn=
15794                 case $host_cpu in
15795                   ia64*) tmp_idyn=' -i_dynamic';;
15796                 esac
15797                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15798                 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'
15799                 ;;
15800             esac
15801             archive_cmds_need_lc_CXX=no
15802             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15803             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15804             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15805             ;;
15806           pgCC* | pgcpp*)
15807             # Portland Group C++ compiler
15808             case `$CC -V` in
15809             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15810               prelink_cmds_CXX='tpldir=Template.dir~
15811                rm -rf $tpldir~
15812                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15813                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15814               old_archive_cmds_CXX='tpldir=Template.dir~
15815                 rm -rf $tpldir~
15816                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15817                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15818                 $RANLIB $oldlib'
15819               archive_cmds_CXX='tpldir=Template.dir~
15820                 rm -rf $tpldir~
15821                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15822                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15823               archive_expsym_cmds_CXX='tpldir=Template.dir~
15824                 rm -rf $tpldir~
15825                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15826                 $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'
15827               ;;
15828             *) # Version 6 and above use weak symbols
15829               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15830               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'
15831               ;;
15832             esac
15833
15834             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15835             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15836             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'
15837             ;;
15838           cxx*)
15839             # Compaq C++
15840             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15841             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'
15842
15843             runpath_var=LD_RUN_PATH
15844             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15845             hardcode_libdir_separator_CXX=:
15846
15847             # Commands to make compiler produce verbose output that lists
15848             # what "hidden" libraries, object files and flags are used when
15849             # linking a shared library.
15850             #
15851             # There doesn't appear to be a way to prevent this compiler from
15852             # explicitly linking system object files so we need to strip them
15853             # from the output so that they don't get included in the library
15854             # dependencies.
15855             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'
15856             ;;
15857           xl* | mpixl* | bgxl*)
15858             # IBM XL 8.0 on PPC, with GNU ld
15859             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15860             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15861             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15862             if test yes = "$supports_anon_versioning"; then
15863               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15864                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15865                 echo "local: *; };" >> $output_objdir/$libname.ver~
15866                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15867             fi
15868             ;;
15869           *)
15870             case `$CC -V 2>&1 | sed 5q` in
15871             *Sun\ C*)
15872               # Sun C++ 5.9
15873               no_undefined_flag_CXX=' -zdefs'
15874               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15875               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'
15876               hardcode_libdir_flag_spec_CXX='-R$libdir'
15877               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'
15878               compiler_needs_object_CXX=yes
15879
15880               # Not sure whether something based on
15881               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15882               # would be better.
15883               output_verbose_link_cmd='func_echo_all'
15884
15885               # Archives containing C++ object files must be created using
15886               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15887               # necessary to make sure instantiated templates are included
15888               # in the archive.
15889               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15890               ;;
15891             esac
15892             ;;
15893         esac
15894         ;;
15895
15896       lynxos*)
15897         # FIXME: insert proper C++ library support
15898         ld_shlibs_CXX=no
15899         ;;
15900
15901       m88k*)
15902         # FIXME: insert proper C++ library support
15903         ld_shlibs_CXX=no
15904         ;;
15905
15906       mvs*)
15907         case $cc_basename in
15908           cxx*)
15909             # FIXME: insert proper C++ library support
15910             ld_shlibs_CXX=no
15911             ;;
15912           *)
15913             # FIXME: insert proper C++ library support
15914             ld_shlibs_CXX=no
15915             ;;
15916         esac
15917         ;;
15918
15919       netbsd*)
15920         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15921           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15922           wlarc=
15923           hardcode_libdir_flag_spec_CXX='-R$libdir'
15924           hardcode_direct_CXX=yes
15925           hardcode_shlibpath_var_CXX=no
15926         fi
15927         # Workaround some broken pre-1.5 toolchains
15928         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15929         ;;
15930
15931       *nto* | *qnx*)
15932         ld_shlibs_CXX=yes
15933         ;;
15934
15935       openbsd* | bitrig*)
15936         if test -f /usr/libexec/ld.so; then
15937           hardcode_direct_CXX=yes
15938           hardcode_shlibpath_var_CXX=no
15939           hardcode_direct_absolute_CXX=yes
15940           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15941           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15942           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15943             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15944             export_dynamic_flag_spec_CXX='$wl-E'
15945             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15946           fi
15947           output_verbose_link_cmd=func_echo_all
15948         else
15949           ld_shlibs_CXX=no
15950         fi
15951         ;;
15952
15953       osf3* | osf4* | osf5*)
15954         case $cc_basename in
15955           KCC*)
15956             # Kuck and Associates, Inc. (KAI) C++ Compiler
15957
15958             # KCC will only create a shared library if the output file
15959             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15960             # to its proper name (with version) after linking.
15961             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'
15962
15963             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15964             hardcode_libdir_separator_CXX=:
15965
15966             # Archives containing C++ object files must be created using
15967             # the KAI C++ compiler.
15968             case $host in
15969               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15970               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15971             esac
15972             ;;
15973           RCC*)
15974             # Rational C++ 2.4.1
15975             # FIXME: insert proper C++ library support
15976             ld_shlibs_CXX=no
15977             ;;
15978           cxx*)
15979             case $host in
15980               osf3*)
15981                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15982                 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'
15983                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15984                 ;;
15985               *)
15986                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15987                 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'
15988                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15989                   echo "-hidden">> $lib.exp~
15990                   $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~
15991                   $RM $lib.exp'
15992                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15993                 ;;
15994             esac
15995
15996             hardcode_libdir_separator_CXX=:
15997
15998             # Commands to make compiler produce verbose output that lists
15999             # what "hidden" libraries, object files and flags are used when
16000             # linking a shared library.
16001             #
16002             # There doesn't appear to be a way to prevent this compiler from
16003             # explicitly linking system object files so we need to strip them
16004             # from the output so that they don't get included in the library
16005             # dependencies.
16006             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"'
16007             ;;
16008           *)
16009             if test yes,no = "$GXX,$with_gnu_ld"; then
16010               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16011               case $host in
16012                 osf3*)
16013                   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'
16014                   ;;
16015                 *)
16016                   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'
16017                   ;;
16018               esac
16019
16020               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16021               hardcode_libdir_separator_CXX=:
16022
16023               # Commands to make compiler produce verbose output that lists
16024               # what "hidden" libraries, object files and flags are used when
16025               # linking a shared library.
16026               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16027
16028             else
16029               # FIXME: insert proper C++ library support
16030               ld_shlibs_CXX=no
16031             fi
16032             ;;
16033         esac
16034         ;;
16035
16036       psos*)
16037         # FIXME: insert proper C++ library support
16038         ld_shlibs_CXX=no
16039         ;;
16040
16041       sunos4*)
16042         case $cc_basename in
16043           CC*)
16044             # Sun C++ 4.x
16045             # FIXME: insert proper C++ library support
16046             ld_shlibs_CXX=no
16047             ;;
16048           lcc*)
16049             # Lucid
16050             # FIXME: insert proper C++ library support
16051             ld_shlibs_CXX=no
16052             ;;
16053           *)
16054             # FIXME: insert proper C++ library support
16055             ld_shlibs_CXX=no
16056             ;;
16057         esac
16058         ;;
16059
16060       solaris*)
16061         case $cc_basename in
16062           CC* | sunCC*)
16063             # Sun C++ 4.2, 5.x and Centerline C++
16064             archive_cmds_need_lc_CXX=yes
16065             no_undefined_flag_CXX=' -zdefs'
16066             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16067             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16068               $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'
16069
16070             hardcode_libdir_flag_spec_CXX='-R$libdir'
16071             hardcode_shlibpath_var_CXX=no
16072             case $host_os in
16073               solaris2.[0-5] | solaris2.[0-5].*) ;;
16074               *)
16075                 # The compiler driver will combine and reorder linker options,
16076                 # but understands '-z linker_flag'.
16077                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16078                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16079                 ;;
16080             esac
16081             link_all_deplibs_CXX=yes
16082
16083             output_verbose_link_cmd='func_echo_all'
16084
16085             # Archives containing C++ object files must be created using
16086             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16087             # necessary to make sure instantiated templates are included
16088             # in the archive.
16089             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16090             ;;
16091           gcx*)
16092             # Green Hills C++ Compiler
16093             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16094
16095             # The C++ compiler must be used to create the archive.
16096             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16097             ;;
16098           *)
16099             # GNU C++ compiler with Solaris linker
16100             if test yes,no = "$GXX,$with_gnu_ld"; then
16101               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16102               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16103                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16104                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16105                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16106
16107                 # Commands to make compiler produce verbose output that lists
16108                 # what "hidden" libraries, object files and flags are used when
16109                 # linking a shared library.
16110                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16111               else
16112                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16113                 # platform.
16114                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16115                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16116                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16117
16118                 # Commands to make compiler produce verbose output that lists
16119                 # what "hidden" libraries, object files and flags are used when
16120                 # linking a shared library.
16121                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16122               fi
16123
16124               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16125               case $host_os in
16126                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16127                 *)
16128                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16129                   ;;
16130               esac
16131             fi
16132             ;;
16133         esac
16134         ;;
16135
16136     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16137       no_undefined_flag_CXX='$wl-z,text'
16138       archive_cmds_need_lc_CXX=no
16139       hardcode_shlibpath_var_CXX=no
16140       runpath_var='LD_RUN_PATH'
16141
16142       case $cc_basename in
16143         CC*)
16144           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146           ;;
16147         *)
16148           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16149           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16150           ;;
16151       esac
16152       ;;
16153
16154       sysv5* | sco3.2v5* | sco5v6*)
16155         # Note: We CANNOT use -z defs as we might desire, because we do not
16156         # link with -lc, and that would cause any symbols used from libc to
16157         # always be unresolved, which means just about no library would
16158         # ever link correctly.  If we're not using GNU ld we use -z text
16159         # though, which does catch some bad symbols but isn't as heavy-handed
16160         # as -z defs.
16161         no_undefined_flag_CXX='$wl-z,text'
16162         allow_undefined_flag_CXX='$wl-z,nodefs'
16163         archive_cmds_need_lc_CXX=no
16164         hardcode_shlibpath_var_CXX=no
16165         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16166         hardcode_libdir_separator_CXX=':'
16167         link_all_deplibs_CXX=yes
16168         export_dynamic_flag_spec_CXX='$wl-Bexport'
16169         runpath_var='LD_RUN_PATH'
16170
16171         case $cc_basename in
16172           CC*)
16173             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16174             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16175             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16176               '"$old_archive_cmds_CXX"
16177             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16178               '"$reload_cmds_CXX"
16179             ;;
16180           *)
16181             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16182             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16183             ;;
16184         esac
16185       ;;
16186
16187       tandem*)
16188         case $cc_basename in
16189           NCC*)
16190             # NonStop-UX NCC 3.20
16191             # FIXME: insert proper C++ library support
16192             ld_shlibs_CXX=no
16193             ;;
16194           *)
16195             # FIXME: insert proper C++ library support
16196             ld_shlibs_CXX=no
16197             ;;
16198         esac
16199         ;;
16200
16201       vxworks*)
16202         # FIXME: insert proper C++ library support
16203         ld_shlibs_CXX=no
16204         ;;
16205
16206       *)
16207         # FIXME: insert proper C++ library support
16208         ld_shlibs_CXX=no
16209         ;;
16210     esac
16211
16212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16213 $as_echo "$ld_shlibs_CXX" >&6; }
16214     test no = "$ld_shlibs_CXX" && can_build_shared=no
16215
16216     GCC_CXX=$GXX
16217     LD_CXX=$LD
16218
16219     ## CAVEAT EMPTOR:
16220     ## There is no encapsulation within the following macros, do not change
16221     ## the running order or otherwise move them around unless you know exactly
16222     ## what you are doing...
16223     # Dependencies to place before and after the object being linked:
16224 predep_objects_CXX=
16225 postdep_objects_CXX=
16226 predeps_CXX=
16227 postdeps_CXX=
16228 compiler_lib_search_path_CXX=
16229
16230 cat > conftest.$ac_ext <<_LT_EOF
16231 class Foo
16232 {
16233 public:
16234   Foo (void) { a = 0; }
16235 private:
16236   int a;
16237 };
16238 _LT_EOF
16239
16240
16241 _lt_libdeps_save_CFLAGS=$CFLAGS
16242 case "$CC $CFLAGS " in #(
16243 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16244 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16245 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16246 esac
16247
16248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16249   (eval $ac_compile) 2>&5
16250   ac_status=$?
16251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16252   test $ac_status = 0; }; then
16253   # Parse the compiler output and extract the necessary
16254   # objects, libraries and library flags.
16255
16256   # Sentinel used to keep track of whether or not we are before
16257   # the conftest object file.
16258   pre_test_object_deps_done=no
16259
16260   for p in `eval "$output_verbose_link_cmd"`; do
16261     case $prev$p in
16262
16263     -L* | -R* | -l*)
16264        # Some compilers place space between "-{L,R}" and the path.
16265        # Remove the space.
16266        if test x-L = "$p" ||
16267           test x-R = "$p"; then
16268          prev=$p
16269          continue
16270        fi
16271
16272        # Expand the sysroot to ease extracting the directories later.
16273        if test -z "$prev"; then
16274          case $p in
16275          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16276          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16277          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16278          esac
16279        fi
16280        case $p in
16281        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16282        esac
16283        if test no = "$pre_test_object_deps_done"; then
16284          case $prev in
16285          -L | -R)
16286            # Internal compiler library paths should come after those
16287            # provided the user.  The postdeps already come after the
16288            # user supplied libs so there is no need to process them.
16289            if test -z "$compiler_lib_search_path_CXX"; then
16290              compiler_lib_search_path_CXX=$prev$p
16291            else
16292              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16293            fi
16294            ;;
16295          # The "-l" case would never come before the object being
16296          # linked, so don't bother handling this case.
16297          esac
16298        else
16299          if test -z "$postdeps_CXX"; then
16300            postdeps_CXX=$prev$p
16301          else
16302            postdeps_CXX="${postdeps_CXX} $prev$p"
16303          fi
16304        fi
16305        prev=
16306        ;;
16307
16308     *.lto.$objext) ;; # Ignore GCC LTO objects
16309     *.$objext)
16310        # This assumes that the test object file only shows up
16311        # once in the compiler output.
16312        if test "$p" = "conftest.$objext"; then
16313          pre_test_object_deps_done=yes
16314          continue
16315        fi
16316
16317        if test no = "$pre_test_object_deps_done"; then
16318          if test -z "$predep_objects_CXX"; then
16319            predep_objects_CXX=$p
16320          else
16321            predep_objects_CXX="$predep_objects_CXX $p"
16322          fi
16323        else
16324          if test -z "$postdep_objects_CXX"; then
16325            postdep_objects_CXX=$p
16326          else
16327            postdep_objects_CXX="$postdep_objects_CXX $p"
16328          fi
16329        fi
16330        ;;
16331
16332     *) ;; # Ignore the rest.
16333
16334     esac
16335   done
16336
16337   # Clean up.
16338   rm -f a.out a.exe
16339 else
16340   echo "libtool.m4: error: problem compiling CXX test program"
16341 fi
16342
16343 $RM -f confest.$objext
16344 CFLAGS=$_lt_libdeps_save_CFLAGS
16345
16346 # PORTME: override above test on systems where it is broken
16347 case $host_os in
16348 interix[3-9]*)
16349   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16350   # hack all around it, let's just trust "g++" to DTRT.
16351   predep_objects_CXX=
16352   postdep_objects_CXX=
16353   postdeps_CXX=
16354   ;;
16355 esac
16356
16357
16358 case " $postdeps_CXX " in
16359 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16360 esac
16361  compiler_lib_search_dirs_CXX=
16362 if test -n "${compiler_lib_search_path_CXX}"; then
16363  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16364 fi
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396     lt_prog_compiler_wl_CXX=
16397 lt_prog_compiler_pic_CXX=
16398 lt_prog_compiler_static_CXX=
16399
16400
16401   # C++ specific cases for pic, static, wl, etc.
16402   if test yes = "$GXX"; then
16403     lt_prog_compiler_wl_CXX='-Wl,'
16404     lt_prog_compiler_static_CXX='-static'
16405
16406     case $host_os in
16407     aix*)
16408       # All AIX code is PIC.
16409       if test ia64 = "$host_cpu"; then
16410         # AIX 5 now supports IA64 processor
16411         lt_prog_compiler_static_CXX='-Bstatic'
16412       fi
16413       lt_prog_compiler_pic_CXX='-fPIC'
16414       ;;
16415
16416     amigaos*)
16417       case $host_cpu in
16418       powerpc)
16419             # see comment about AmigaOS4 .so support
16420             lt_prog_compiler_pic_CXX='-fPIC'
16421         ;;
16422       m68k)
16423             # FIXME: we need at least 68020 code to build shared libraries, but
16424             # adding the '-m68020' flag to GCC prevents building anything better,
16425             # like '-m68040'.
16426             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16427         ;;
16428       esac
16429       ;;
16430
16431     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16432       # PIC is the default for these OSes.
16433       ;;
16434     mingw* | cygwin* | os2* | pw32* | cegcc*)
16435       # This hack is so that the source file can tell whether it is being
16436       # built for inclusion in a dll (and should export symbols for example).
16437       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16438       # (--disable-auto-import) libraries
16439       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16440       case $host_os in
16441       os2*)
16442         lt_prog_compiler_static_CXX='$wl-static'
16443         ;;
16444       esac
16445       ;;
16446     darwin* | rhapsody*)
16447       # PIC is the default on this platform
16448       # Common symbols not allowed in MH_DYLIB files
16449       lt_prog_compiler_pic_CXX='-fno-common'
16450       ;;
16451     *djgpp*)
16452       # DJGPP does not support shared libraries at all
16453       lt_prog_compiler_pic_CXX=
16454       ;;
16455     haiku*)
16456       # PIC is the default for Haiku.
16457       # The "-static" flag exists, but is broken.
16458       lt_prog_compiler_static_CXX=
16459       ;;
16460     interix[3-9]*)
16461       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16462       # Instead, we relocate shared libraries at runtime.
16463       ;;
16464     sysv4*MP*)
16465       if test -d /usr/nec; then
16466         lt_prog_compiler_pic_CXX=-Kconform_pic
16467       fi
16468       ;;
16469     hpux*)
16470       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16471       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16472       # sets the default TLS model and affects inlining.
16473       case $host_cpu in
16474       hppa*64*)
16475         ;;
16476       *)
16477         lt_prog_compiler_pic_CXX='-fPIC'
16478         ;;
16479       esac
16480       ;;
16481     *qnx* | *nto*)
16482       # QNX uses GNU C++, but need to define -shared option too, otherwise
16483       # it will coredump.
16484       lt_prog_compiler_pic_CXX='-fPIC -shared'
16485       ;;
16486     *)
16487       lt_prog_compiler_pic_CXX='-fPIC'
16488       ;;
16489     esac
16490   else
16491     case $host_os in
16492       aix[4-9]*)
16493         # All AIX code is PIC.
16494         if test ia64 = "$host_cpu"; then
16495           # AIX 5 now supports IA64 processor
16496           lt_prog_compiler_static_CXX='-Bstatic'
16497         else
16498           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16499         fi
16500         ;;
16501       chorus*)
16502         case $cc_basename in
16503         cxch68*)
16504           # Green Hills C++ Compiler
16505           # _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"
16506           ;;
16507         esac
16508         ;;
16509       mingw* | cygwin* | os2* | pw32* | cegcc*)
16510         # This hack is so that the source file can tell whether it is being
16511         # built for inclusion in a dll (and should export symbols for example).
16512         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16513         ;;
16514       dgux*)
16515         case $cc_basename in
16516           ec++*)
16517             lt_prog_compiler_pic_CXX='-KPIC'
16518             ;;
16519           ghcx*)
16520             # Green Hills C++ Compiler
16521             lt_prog_compiler_pic_CXX='-pic'
16522             ;;
16523           *)
16524             ;;
16525         esac
16526         ;;
16527       freebsd* | dragonfly*)
16528         # FreeBSD uses GNU C++
16529         ;;
16530       hpux9* | hpux10* | hpux11*)
16531         case $cc_basename in
16532           CC*)
16533             lt_prog_compiler_wl_CXX='-Wl,'
16534             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16535             if test ia64 != "$host_cpu"; then
16536               lt_prog_compiler_pic_CXX='+Z'
16537             fi
16538             ;;
16539           aCC*)
16540             lt_prog_compiler_wl_CXX='-Wl,'
16541             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16542             case $host_cpu in
16543             hppa*64*|ia64*)
16544               # +Z the default
16545               ;;
16546             *)
16547               lt_prog_compiler_pic_CXX='+Z'
16548               ;;
16549             esac
16550             ;;
16551           *)
16552             ;;
16553         esac
16554         ;;
16555       interix*)
16556         # This is c89, which is MS Visual C++ (no shared libs)
16557         # Anyone wants to do a port?
16558         ;;
16559       irix5* | irix6* | nonstopux*)
16560         case $cc_basename in
16561           CC*)
16562             lt_prog_compiler_wl_CXX='-Wl,'
16563             lt_prog_compiler_static_CXX='-non_shared'
16564             # CC pic flag -KPIC is the default.
16565             ;;
16566           *)
16567             ;;
16568         esac
16569         ;;
16570       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16571         case $cc_basename in
16572           KCC*)
16573             # KAI C++ Compiler
16574             lt_prog_compiler_wl_CXX='--backend -Wl,'
16575             lt_prog_compiler_pic_CXX='-fPIC'
16576             ;;
16577           ecpc* )
16578             # old Intel C++ for x86_64, which still supported -KPIC.
16579             lt_prog_compiler_wl_CXX='-Wl,'
16580             lt_prog_compiler_pic_CXX='-KPIC'
16581             lt_prog_compiler_static_CXX='-static'
16582             ;;
16583           icpc* )
16584             # Intel C++, used to be incompatible with GCC.
16585             # ICC 10 doesn't accept -KPIC any more.
16586             lt_prog_compiler_wl_CXX='-Wl,'
16587             lt_prog_compiler_pic_CXX='-fPIC'
16588             lt_prog_compiler_static_CXX='-static'
16589             ;;
16590           pgCC* | pgcpp*)
16591             # Portland Group C++ compiler
16592             lt_prog_compiler_wl_CXX='-Wl,'
16593             lt_prog_compiler_pic_CXX='-fpic'
16594             lt_prog_compiler_static_CXX='-Bstatic'
16595             ;;
16596           cxx*)
16597             # Compaq C++
16598             # Make sure the PIC flag is empty.  It appears that all Alpha
16599             # Linux and Compaq Tru64 Unix objects are PIC.
16600             lt_prog_compiler_pic_CXX=
16601             lt_prog_compiler_static_CXX='-non_shared'
16602             ;;
16603           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16604             # IBM XL 8.0, 9.0 on PPC and BlueGene
16605             lt_prog_compiler_wl_CXX='-Wl,'
16606             lt_prog_compiler_pic_CXX='-qpic'
16607             lt_prog_compiler_static_CXX='-qstaticlink'
16608             ;;
16609           *)
16610             case `$CC -V 2>&1 | sed 5q` in
16611             *Sun\ C*)
16612               # Sun C++ 5.9
16613               lt_prog_compiler_pic_CXX='-KPIC'
16614               lt_prog_compiler_static_CXX='-Bstatic'
16615               lt_prog_compiler_wl_CXX='-Qoption ld '
16616               ;;
16617             esac
16618             ;;
16619         esac
16620         ;;
16621       lynxos*)
16622         ;;
16623       m88k*)
16624         ;;
16625       mvs*)
16626         case $cc_basename in
16627           cxx*)
16628             lt_prog_compiler_pic_CXX='-W c,exportall'
16629             ;;
16630           *)
16631             ;;
16632         esac
16633         ;;
16634       netbsd* | netbsdelf*-gnu)
16635         ;;
16636       *qnx* | *nto*)
16637         # QNX uses GNU C++, but need to define -shared option too, otherwise
16638         # it will coredump.
16639         lt_prog_compiler_pic_CXX='-fPIC -shared'
16640         ;;
16641       osf3* | osf4* | osf5*)
16642         case $cc_basename in
16643           KCC*)
16644             lt_prog_compiler_wl_CXX='--backend -Wl,'
16645             ;;
16646           RCC*)
16647             # Rational C++ 2.4.1
16648             lt_prog_compiler_pic_CXX='-pic'
16649             ;;
16650           cxx*)
16651             # Digital/Compaq C++
16652             lt_prog_compiler_wl_CXX='-Wl,'
16653             # Make sure the PIC flag is empty.  It appears that all Alpha
16654             # Linux and Compaq Tru64 Unix objects are PIC.
16655             lt_prog_compiler_pic_CXX=
16656             lt_prog_compiler_static_CXX='-non_shared'
16657             ;;
16658           *)
16659             ;;
16660         esac
16661         ;;
16662       psos*)
16663         ;;
16664       solaris*)
16665         case $cc_basename in
16666           CC* | sunCC*)
16667             # Sun C++ 4.2, 5.x and Centerline C++
16668             lt_prog_compiler_pic_CXX='-KPIC'
16669             lt_prog_compiler_static_CXX='-Bstatic'
16670             lt_prog_compiler_wl_CXX='-Qoption ld '
16671             ;;
16672           gcx*)
16673             # Green Hills C++ Compiler
16674             lt_prog_compiler_pic_CXX='-PIC'
16675             ;;
16676           *)
16677             ;;
16678         esac
16679         ;;
16680       sunos4*)
16681         case $cc_basename in
16682           CC*)
16683             # Sun C++ 4.x
16684             lt_prog_compiler_pic_CXX='-pic'
16685             lt_prog_compiler_static_CXX='-Bstatic'
16686             ;;
16687           lcc*)
16688             # Lucid
16689             lt_prog_compiler_pic_CXX='-pic'
16690             ;;
16691           *)
16692             ;;
16693         esac
16694         ;;
16695       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16696         case $cc_basename in
16697           CC*)
16698             lt_prog_compiler_wl_CXX='-Wl,'
16699             lt_prog_compiler_pic_CXX='-KPIC'
16700             lt_prog_compiler_static_CXX='-Bstatic'
16701             ;;
16702         esac
16703         ;;
16704       tandem*)
16705         case $cc_basename in
16706           NCC*)
16707             # NonStop-UX NCC 3.20
16708             lt_prog_compiler_pic_CXX='-KPIC'
16709             ;;
16710           *)
16711             ;;
16712         esac
16713         ;;
16714       vxworks*)
16715         ;;
16716       *)
16717         lt_prog_compiler_can_build_shared_CXX=no
16718         ;;
16719     esac
16720   fi
16721
16722 case $host_os in
16723   # For platforms that do not support PIC, -DPIC is meaningless:
16724   *djgpp*)
16725     lt_prog_compiler_pic_CXX=
16726     ;;
16727   *)
16728     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16729     ;;
16730 esac
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16733 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16734 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16735   $as_echo_n "(cached) " >&6
16736 else
16737   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16740 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16741 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16742
16743 #
16744 # Check to make sure the PIC flag actually works.
16745 #
16746 if test -n "$lt_prog_compiler_pic_CXX"; then
16747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16748 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16749 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16750   $as_echo_n "(cached) " >&6
16751 else
16752   lt_cv_prog_compiler_pic_works_CXX=no
16753    ac_outfile=conftest.$ac_objext
16754    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16755    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16756    # Insert the option either (1) after the last *FLAGS variable, or
16757    # (2) before a word containing "conftest.", or (3) at the end.
16758    # Note that $ac_compile itself does not contain backslashes and begins
16759    # with a dollar sign (not a hyphen), so the echo should work correctly.
16760    # The option is referenced via a variable to avoid confusing sed.
16761    lt_compile=`echo "$ac_compile" | $SED \
16762    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16763    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16764    -e 's:$: $lt_compiler_flag:'`
16765    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16766    (eval "$lt_compile" 2>conftest.err)
16767    ac_status=$?
16768    cat conftest.err >&5
16769    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770    if (exit $ac_status) && test -s "$ac_outfile"; then
16771      # The compiler can only warn and ignore the option if not recognized
16772      # So say no if there are warnings other than the usual output.
16773      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16774      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16775      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16776        lt_cv_prog_compiler_pic_works_CXX=yes
16777      fi
16778    fi
16779    $RM conftest*
16780
16781 fi
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16783 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16784
16785 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16786     case $lt_prog_compiler_pic_CXX in
16787      "" | " "*) ;;
16788      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16789      esac
16790 else
16791     lt_prog_compiler_pic_CXX=
16792      lt_prog_compiler_can_build_shared_CXX=no
16793 fi
16794
16795 fi
16796
16797
16798
16799
16800
16801 #
16802 # Check to make sure the static flag actually works.
16803 #
16804 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16807 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16808   $as_echo_n "(cached) " >&6
16809 else
16810   lt_cv_prog_compiler_static_works_CXX=no
16811    save_LDFLAGS=$LDFLAGS
16812    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16813    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16814    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16815      # The linker can only warn and ignore the option if not recognized
16816      # So say no if there are warnings
16817      if test -s conftest.err; then
16818        # Append any errors to the config.log.
16819        cat conftest.err 1>&5
16820        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16821        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16822        if diff conftest.exp conftest.er2 >/dev/null; then
16823          lt_cv_prog_compiler_static_works_CXX=yes
16824        fi
16825      else
16826        lt_cv_prog_compiler_static_works_CXX=yes
16827      fi
16828    fi
16829    $RM -r conftest*
16830    LDFLAGS=$save_LDFLAGS
16831
16832 fi
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16834 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16835
16836 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16837     :
16838 else
16839     lt_prog_compiler_static_CXX=
16840 fi
16841
16842
16843
16844
16845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16847 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16848   $as_echo_n "(cached) " >&6
16849 else
16850   lt_cv_prog_compiler_c_o_CXX=no
16851    $RM -r conftest 2>/dev/null
16852    mkdir conftest
16853    cd conftest
16854    mkdir out
16855    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16856
16857    lt_compiler_flag="-o out/conftest2.$ac_objext"
16858    # Insert the option either (1) after the last *FLAGS variable, or
16859    # (2) before a word containing "conftest.", or (3) at the end.
16860    # Note that $ac_compile itself does not contain backslashes and begins
16861    # with a dollar sign (not a hyphen), so the echo should work correctly.
16862    lt_compile=`echo "$ac_compile" | $SED \
16863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16865    -e 's:$: $lt_compiler_flag:'`
16866    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16867    (eval "$lt_compile" 2>out/conftest.err)
16868    ac_status=$?
16869    cat out/conftest.err >&5
16870    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16872    then
16873      # The compiler can only warn and ignore the option if not recognized
16874      # So say no if there are warnings
16875      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16876      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16877      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16878        lt_cv_prog_compiler_c_o_CXX=yes
16879      fi
16880    fi
16881    chmod u+w . 2>&5
16882    $RM conftest*
16883    # SGI C++ compiler will create directory out/ii_files/ for
16884    # template instantiation
16885    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16886    $RM out/* && rmdir out
16887    cd ..
16888    $RM -r conftest
16889    $RM conftest*
16890
16891 fi
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16893 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16894
16895
16896
16897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16899 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16900   $as_echo_n "(cached) " >&6
16901 else
16902   lt_cv_prog_compiler_c_o_CXX=no
16903    $RM -r conftest 2>/dev/null
16904    mkdir conftest
16905    cd conftest
16906    mkdir out
16907    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16908
16909    lt_compiler_flag="-o out/conftest2.$ac_objext"
16910    # Insert the option either (1) after the last *FLAGS variable, or
16911    # (2) before a word containing "conftest.", or (3) at the end.
16912    # Note that $ac_compile itself does not contain backslashes and begins
16913    # with a dollar sign (not a hyphen), so the echo should work correctly.
16914    lt_compile=`echo "$ac_compile" | $SED \
16915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16917    -e 's:$: $lt_compiler_flag:'`
16918    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16919    (eval "$lt_compile" 2>out/conftest.err)
16920    ac_status=$?
16921    cat out/conftest.err >&5
16922    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16924    then
16925      # The compiler can only warn and ignore the option if not recognized
16926      # So say no if there are warnings
16927      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16928      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16929      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16930        lt_cv_prog_compiler_c_o_CXX=yes
16931      fi
16932    fi
16933    chmod u+w . 2>&5
16934    $RM conftest*
16935    # SGI C++ compiler will create directory out/ii_files/ for
16936    # template instantiation
16937    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16938    $RM out/* && rmdir out
16939    cd ..
16940    $RM -r conftest
16941    $RM conftest*
16942
16943 fi
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16945 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16946
16947
16948
16949
16950 hard_links=nottested
16951 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16952   # do not overwrite the value of need_locks provided by the user
16953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16954 $as_echo_n "checking if we can lock with hard links... " >&6; }
16955   hard_links=yes
16956   $RM conftest*
16957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16958   touch conftest.a
16959   ln conftest.a conftest.b 2>&5 || hard_links=no
16960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16962 $as_echo "$hard_links" >&6; }
16963   if test no = "$hard_links"; then
16964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16965 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16966     need_locks=warn
16967   fi
16968 else
16969   need_locks=no
16970 fi
16971
16972
16973
16974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16976
16977   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16978   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16979   case $host_os in
16980   aix[4-9]*)
16981     # If we're using GNU nm, then we don't want the "-C" option.
16982     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16983     # Without the "-l" option, or with the "-B" option, AIX nm treats
16984     # weak defined symbols like other global defined symbols, whereas
16985     # GNU nm marks them as "W".
16986     # While the 'weak' keyword is ignored in the Export File, we need
16987     # it in the Import File for the 'aix-soname' feature, so we have
16988     # to replace the "-B" option with "-P" for AIX nm.
16989     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16990       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16991     else
16992       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16993     fi
16994     ;;
16995   pw32*)
16996     export_symbols_cmds_CXX=$ltdll_cmds
16997     ;;
16998   cygwin* | mingw* | cegcc*)
16999     case $cc_basename in
17000     cl*)
17001       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17002       ;;
17003     *)
17004       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'
17005       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17006       ;;
17007     esac
17008     ;;
17009   linux* | k*bsd*-gnu | gnu*)
17010     link_all_deplibs_CXX=no
17011     ;;
17012   *)
17013     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17014     ;;
17015   esac
17016
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17018 $as_echo "$ld_shlibs_CXX" >&6; }
17019 test no = "$ld_shlibs_CXX" && can_build_shared=no
17020
17021 with_gnu_ld_CXX=$with_gnu_ld
17022
17023
17024
17025
17026
17027
17028 #
17029 # Do we need to explicitly link libc?
17030 #
17031 case "x$archive_cmds_need_lc_CXX" in
17032 x|xyes)
17033   # Assume -lc should be added
17034   archive_cmds_need_lc_CXX=yes
17035
17036   if test yes,yes = "$GCC,$enable_shared"; then
17037     case $archive_cmds_CXX in
17038     *'~'*)
17039       # FIXME: we may have to deal with multi-command sequences.
17040       ;;
17041     '$CC '*)
17042       # Test whether the compiler implicitly links with -lc since on some
17043       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17044       # to ld, don't add -lc before -lgcc.
17045       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17046 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17047 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17048   $as_echo_n "(cached) " >&6
17049 else
17050   $RM conftest*
17051         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17052
17053         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17054   (eval $ac_compile) 2>&5
17055   ac_status=$?
17056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17057   test $ac_status = 0; } 2>conftest.err; then
17058           soname=conftest
17059           lib=conftest
17060           libobjs=conftest.$ac_objext
17061           deplibs=
17062           wl=$lt_prog_compiler_wl_CXX
17063           pic_flag=$lt_prog_compiler_pic_CXX
17064           compiler_flags=-v
17065           linker_flags=-v
17066           verstring=
17067           output_objdir=.
17068           libname=conftest
17069           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17070           allow_undefined_flag_CXX=
17071           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17072   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17073   ac_status=$?
17074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17075   test $ac_status = 0; }
17076           then
17077             lt_cv_archive_cmds_need_lc_CXX=no
17078           else
17079             lt_cv_archive_cmds_need_lc_CXX=yes
17080           fi
17081           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17082         else
17083           cat conftest.err 1>&5
17084         fi
17085         $RM conftest*
17086
17087 fi
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17089 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17090       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17091       ;;
17092     esac
17093   fi
17094   ;;
17095 esac
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17159 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17160
17161 library_names_spec=
17162 libname_spec='lib$name'
17163 soname_spec=
17164 shrext_cmds=.so
17165 postinstall_cmds=
17166 postuninstall_cmds=
17167 finish_cmds=
17168 finish_eval=
17169 shlibpath_var=
17170 shlibpath_overrides_runpath=unknown
17171 version_type=none
17172 dynamic_linker="$host_os ld.so"
17173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17174 need_lib_prefix=unknown
17175 hardcode_into_libs=no
17176
17177 # when you set need_version to no, make sure it does not cause -set_version
17178 # flags to be left without arguments
17179 need_version=unknown
17180
17181
17182
17183 case $host_os in
17184 aix3*)
17185   version_type=linux # correct to gnu/linux during the next big refactor
17186   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17187   shlibpath_var=LIBPATH
17188
17189   # AIX 3 has no versioning support, so we append a major version to the name.
17190   soname_spec='$libname$release$shared_ext$major'
17191   ;;
17192
17193 aix[4-9]*)
17194   version_type=linux # correct to gnu/linux during the next big refactor
17195   need_lib_prefix=no
17196   need_version=no
17197   hardcode_into_libs=yes
17198   if test ia64 = "$host_cpu"; then
17199     # AIX 5 supports IA64
17200     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17201     shlibpath_var=LD_LIBRARY_PATH
17202   else
17203     # With GCC up to 2.95.x, collect2 would create an import file
17204     # for dependence libraries.  The import file would start with
17205     # the line '#! .'.  This would cause the generated library to
17206     # depend on '.', always an invalid library.  This was fixed in
17207     # development snapshots of GCC prior to 3.0.
17208     case $host_os in
17209       aix4 | aix4.[01] | aix4.[01].*)
17210       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17211            echo ' yes '
17212            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17213         :
17214       else
17215         can_build_shared=no
17216       fi
17217       ;;
17218     esac
17219     # Using Import Files as archive members, it is possible to support
17220     # filename-based versioning of shared library archives on AIX. While
17221     # this would work for both with and without runtime linking, it will
17222     # prevent static linking of such archives. So we do filename-based
17223     # shared library versioning with .so extension only, which is used
17224     # when both runtime linking and shared linking is enabled.
17225     # Unfortunately, runtime linking may impact performance, so we do
17226     # not want this to be the default eventually. Also, we use the
17227     # versioned .so libs for executables only if there is the -brtl
17228     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17229     # To allow for filename-based versioning support, we need to create
17230     # libNAME.so.V as an archive file, containing:
17231     # *) an Import File, referring to the versioned filename of the
17232     #    archive as well as the shared archive member, telling the
17233     #    bitwidth (32 or 64) of that shared object, and providing the
17234     #    list of exported symbols of that shared object, eventually
17235     #    decorated with the 'weak' keyword
17236     # *) the shared object with the F_LOADONLY flag set, to really avoid
17237     #    it being seen by the linker.
17238     # At run time we better use the real file rather than another symlink,
17239     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17240
17241     case $with_aix_soname,$aix_use_runtimelinking in
17242     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17243     # soname into executable. Probably we can add versioning support to
17244     # collect2, so additional links can be useful in future.
17245     aix,yes) # traditional libtool
17246       dynamic_linker='AIX unversionable lib.so'
17247       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17248       # instead of lib<name>.a to let people know that these are not
17249       # typical AIX shared libraries.
17250       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17251       ;;
17252     aix,no) # traditional AIX only
17253       dynamic_linker='AIX lib.a(lib.so.V)'
17254       # We preserve .a as extension for shared libraries through AIX4.2
17255       # and later when we are not doing run time linking.
17256       library_names_spec='$libname$release.a $libname.a'
17257       soname_spec='$libname$release$shared_ext$major'
17258       ;;
17259     svr4,*) # full svr4 only
17260       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17261       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17262       # We do not specify a path in Import Files, so LIBPATH fires.
17263       shlibpath_overrides_runpath=yes
17264       ;;
17265     *,yes) # both, prefer svr4
17266       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17267       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17268       # unpreferred sharedlib libNAME.a needs extra handling
17269       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17270       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17271       # We do not specify a path in Import Files, so LIBPATH fires.
17272       shlibpath_overrides_runpath=yes
17273       ;;
17274     *,no) # both, prefer aix
17275       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17276       library_names_spec='$libname$release.a $libname.a'
17277       soname_spec='$libname$release$shared_ext$major'
17278       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17279       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17280       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17281       ;;
17282     esac
17283     shlibpath_var=LIBPATH
17284   fi
17285   ;;
17286
17287 amigaos*)
17288   case $host_cpu in
17289   powerpc)
17290     # Since July 2007 AmigaOS4 officially supports .so libraries.
17291     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17292     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17293     ;;
17294   m68k)
17295     library_names_spec='$libname.ixlibrary $libname.a'
17296     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17297     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17298     ;;
17299   esac
17300   ;;
17301
17302 beos*)
17303   library_names_spec='$libname$shared_ext'
17304   dynamic_linker="$host_os ld.so"
17305   shlibpath_var=LIBRARY_PATH
17306   ;;
17307
17308 bsdi[45]*)
17309   version_type=linux # correct to gnu/linux during the next big refactor
17310   need_version=no
17311   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17312   soname_spec='$libname$release$shared_ext$major'
17313   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17314   shlibpath_var=LD_LIBRARY_PATH
17315   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17316   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17317   # the default ld.so.conf also contains /usr/contrib/lib and
17318   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17319   # libtool to hard-code these into programs
17320   ;;
17321
17322 cygwin* | mingw* | pw32* | cegcc*)
17323   version_type=windows
17324   shrext_cmds=.dll
17325   need_version=no
17326   need_lib_prefix=no
17327
17328   case $GCC,$cc_basename in
17329   yes,*)
17330     # gcc
17331     library_names_spec='$libname.dll.a'
17332     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17333     postinstall_cmds='base_file=`basename \$file`~
17334       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17335       dldir=$destdir/`dirname \$dlpath`~
17336       test -d \$dldir || mkdir -p \$dldir~
17337       $install_prog $dir/$dlname \$dldir/$dlname~
17338       chmod a+x \$dldir/$dlname~
17339       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17340         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17341       fi'
17342     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17343       dlpath=$dir/\$dldll~
17344        $RM \$dlpath'
17345     shlibpath_overrides_runpath=yes
17346
17347     case $host_os in
17348     cygwin*)
17349       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17350       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17351
17352       ;;
17353     mingw* | cegcc*)
17354       # MinGW DLLs use traditional 'lib' prefix
17355       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17356       ;;
17357     pw32*)
17358       # pw32 DLLs use 'pw' prefix rather than 'lib'
17359       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17360       ;;
17361     esac
17362     dynamic_linker='Win32 ld.exe'
17363     ;;
17364
17365   *,cl*)
17366     # Native MSVC
17367     libname_spec='$name'
17368     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17369     library_names_spec='$libname.dll.lib'
17370
17371     case $build_os in
17372     mingw*)
17373       sys_lib_search_path_spec=
17374       lt_save_ifs=$IFS
17375       IFS=';'
17376       for lt_path in $LIB
17377       do
17378         IFS=$lt_save_ifs
17379         # Let DOS variable expansion print the short 8.3 style file name.
17380         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17381         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17382       done
17383       IFS=$lt_save_ifs
17384       # Convert to MSYS style.
17385       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17386       ;;
17387     cygwin*)
17388       # Convert to unix form, then to dos form, then back to unix form
17389       # but this time dos style (no spaces!) so that the unix form looks
17390       # like /cygdrive/c/PROGRA~1:/cygdr...
17391       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17392       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17393       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17394       ;;
17395     *)
17396       sys_lib_search_path_spec=$LIB
17397       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17398         # It is most probably a Windows format PATH.
17399         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17400       else
17401         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17402       fi
17403       # FIXME: find the short name or the path components, as spaces are
17404       # common. (e.g. "Program Files" -> "PROGRA~1")
17405       ;;
17406     esac
17407
17408     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17409     postinstall_cmds='base_file=`basename \$file`~
17410       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17411       dldir=$destdir/`dirname \$dlpath`~
17412       test -d \$dldir || mkdir -p \$dldir~
17413       $install_prog $dir/$dlname \$dldir/$dlname'
17414     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17415       dlpath=$dir/\$dldll~
17416        $RM \$dlpath'
17417     shlibpath_overrides_runpath=yes
17418     dynamic_linker='Win32 link.exe'
17419     ;;
17420
17421   *)
17422     # Assume MSVC wrapper
17423     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17424     dynamic_linker='Win32 ld.exe'
17425     ;;
17426   esac
17427   # FIXME: first we should search . and the directory the executable is in
17428   shlibpath_var=PATH
17429   ;;
17430
17431 darwin* | rhapsody*)
17432   dynamic_linker="$host_os dyld"
17433   version_type=darwin
17434   need_lib_prefix=no
17435   need_version=no
17436   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17437   soname_spec='$libname$release$major$shared_ext'
17438   shlibpath_overrides_runpath=yes
17439   shlibpath_var=DYLD_LIBRARY_PATH
17440   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17441
17442   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17443   ;;
17444
17445 dgux*)
17446   version_type=linux # correct to gnu/linux during the next big refactor
17447   need_lib_prefix=no
17448   need_version=no
17449   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17450   soname_spec='$libname$release$shared_ext$major'
17451   shlibpath_var=LD_LIBRARY_PATH
17452   ;;
17453
17454 freebsd* | dragonfly*)
17455   # DragonFly does not have aout.  When/if they implement a new
17456   # versioning mechanism, adjust this.
17457   if test -x /usr/bin/objformat; then
17458     objformat=`/usr/bin/objformat`
17459   else
17460     case $host_os in
17461     freebsd[23].*) objformat=aout ;;
17462     *) objformat=elf ;;
17463     esac
17464   fi
17465   version_type=freebsd-$objformat
17466   case $version_type in
17467     freebsd-elf*)
17468       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469       soname_spec='$libname$release$shared_ext$major'
17470       need_version=no
17471       need_lib_prefix=no
17472       ;;
17473     freebsd-*)
17474       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17475       need_version=yes
17476       ;;
17477   esac
17478   shlibpath_var=LD_LIBRARY_PATH
17479   case $host_os in
17480   freebsd2.*)
17481     shlibpath_overrides_runpath=yes
17482     ;;
17483   freebsd3.[01]* | freebsdelf3.[01]*)
17484     shlibpath_overrides_runpath=yes
17485     hardcode_into_libs=yes
17486     ;;
17487   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17488   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17489     shlibpath_overrides_runpath=no
17490     hardcode_into_libs=yes
17491     ;;
17492   *) # from 4.6 on, and DragonFly
17493     shlibpath_overrides_runpath=yes
17494     hardcode_into_libs=yes
17495     ;;
17496   esac
17497   ;;
17498
17499 haiku*)
17500   version_type=linux # correct to gnu/linux during the next big refactor
17501   need_lib_prefix=no
17502   need_version=no
17503   dynamic_linker="$host_os runtime_loader"
17504   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17505   soname_spec='$libname$release$shared_ext$major'
17506   shlibpath_var=LIBRARY_PATH
17507   shlibpath_overrides_runpath=no
17508   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17509   hardcode_into_libs=yes
17510   ;;
17511
17512 hpux9* | hpux10* | hpux11*)
17513   # Give a soname corresponding to the major version so that dld.sl refuses to
17514   # link against other versions.
17515   version_type=sunos
17516   need_lib_prefix=no
17517   need_version=no
17518   case $host_cpu in
17519   ia64*)
17520     shrext_cmds='.so'
17521     hardcode_into_libs=yes
17522     dynamic_linker="$host_os dld.so"
17523     shlibpath_var=LD_LIBRARY_PATH
17524     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17525     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17526     soname_spec='$libname$release$shared_ext$major'
17527     if test 32 = "$HPUX_IA64_MODE"; then
17528       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17529       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17530     else
17531       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17532       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17533     fi
17534     ;;
17535   hppa*64*)
17536     shrext_cmds='.sl'
17537     hardcode_into_libs=yes
17538     dynamic_linker="$host_os dld.sl"
17539     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17540     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17541     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17542     soname_spec='$libname$release$shared_ext$major'
17543     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17544     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17545     ;;
17546   *)
17547     shrext_cmds='.sl'
17548     dynamic_linker="$host_os dld.sl"
17549     shlibpath_var=SHLIB_PATH
17550     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17551     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17552     soname_spec='$libname$release$shared_ext$major'
17553     ;;
17554   esac
17555   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17556   postinstall_cmds='chmod 555 $lib'
17557   # or fails outright, so override atomically:
17558   install_override_mode=555
17559   ;;
17560
17561 interix[3-9]*)
17562   version_type=linux # correct to gnu/linux during the next big refactor
17563   need_lib_prefix=no
17564   need_version=no
17565   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17566   soname_spec='$libname$release$shared_ext$major'
17567   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17568   shlibpath_var=LD_LIBRARY_PATH
17569   shlibpath_overrides_runpath=no
17570   hardcode_into_libs=yes
17571   ;;
17572
17573 irix5* | irix6* | nonstopux*)
17574   case $host_os in
17575     nonstopux*) version_type=nonstopux ;;
17576     *)
17577         if test yes = "$lt_cv_prog_gnu_ld"; then
17578                 version_type=linux # correct to gnu/linux during the next big refactor
17579         else
17580                 version_type=irix
17581         fi ;;
17582   esac
17583   need_lib_prefix=no
17584   need_version=no
17585   soname_spec='$libname$release$shared_ext$major'
17586   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17587   case $host_os in
17588   irix5* | nonstopux*)
17589     libsuff= shlibsuff=
17590     ;;
17591   *)
17592     case $LD in # libtool.m4 will add one of these switches to LD
17593     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17594       libsuff= shlibsuff= libmagic=32-bit;;
17595     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17596       libsuff=32 shlibsuff=N32 libmagic=N32;;
17597     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17598       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17599     *) libsuff= shlibsuff= libmagic=never-match;;
17600     esac
17601     ;;
17602   esac
17603   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17604   shlibpath_overrides_runpath=no
17605   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17606   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17607   hardcode_into_libs=yes
17608   ;;
17609
17610 # No shared lib support for Linux oldld, aout, or coff.
17611 linux*oldld* | linux*aout* | linux*coff*)
17612   dynamic_linker=no
17613   ;;
17614
17615 linux*android*)
17616   version_type=none # Android doesn't support versioned libraries.
17617   need_lib_prefix=no
17618   need_version=no
17619   library_names_spec='$libname$release$shared_ext'
17620   soname_spec='$libname$release$shared_ext'
17621   finish_cmds=
17622   shlibpath_var=LD_LIBRARY_PATH
17623   shlibpath_overrides_runpath=yes
17624
17625   # This implies no fast_install, which is unacceptable.
17626   # Some rework will be needed to allow for fast_install
17627   # before this can be enabled.
17628   hardcode_into_libs=yes
17629
17630   dynamic_linker='Android linker'
17631   # Don't embed -rpath directories since the linker doesn't support them.
17632   hardcode_libdir_flag_spec_CXX='-L$libdir'
17633   ;;
17634
17635 # This must be glibc/ELF.
17636 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17637   version_type=linux # correct to gnu/linux during the next big refactor
17638   need_lib_prefix=no
17639   need_version=no
17640   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17641   soname_spec='$libname$release$shared_ext$major'
17642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17643   shlibpath_var=LD_LIBRARY_PATH
17644   shlibpath_overrides_runpath=no
17645
17646   # Some binutils ld are patched to set DT_RUNPATH
17647   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17648   $as_echo_n "(cached) " >&6
17649 else
17650   lt_cv_shlibpath_overrides_runpath=no
17651     save_LDFLAGS=$LDFLAGS
17652     save_libdir=$libdir
17653     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17654          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h.  */
17657
17658 int
17659 main ()
17660 {
17661
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 if ac_fn_cxx_try_link "$LINENO"; then :
17667   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17668   lt_cv_shlibpath_overrides_runpath=yes
17669 fi
17670 fi
17671 rm -f core conftest.err conftest.$ac_objext \
17672     conftest$ac_exeext conftest.$ac_ext
17673     LDFLAGS=$save_LDFLAGS
17674     libdir=$save_libdir
17675
17676 fi
17677
17678   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17679
17680   # This implies no fast_install, which is unacceptable.
17681   # Some rework will be needed to allow for fast_install
17682   # before this can be enabled.
17683   hardcode_into_libs=yes
17684
17685   # Ideally, we could use ldconfig to report *all* directores which are
17686   # searched for libraries, however this is still not possible.  Aside from not
17687   # being certain /sbin/ldconfig is available, command
17688   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17689   # even though it is searched at run-time.  Try to do the best guess by
17690   # appending ld.so.conf contents (and includes) to the search path.
17691   if test -f /etc/ld.so.conf; then
17692     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' ' '`
17693     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17694   fi
17695
17696   # We used to test for /lib/ld.so.1 and disable shared libraries on
17697   # powerpc, because MkLinux only supported shared libraries with the
17698   # GNU dynamic linker.  Since this was broken with cross compilers,
17699   # most powerpc-linux boxes support dynamic linking these days and
17700   # people can always --disable-shared, the test was removed, and we
17701   # assume the GNU/Linux dynamic linker is in use.
17702   dynamic_linker='GNU/Linux ld.so'
17703   ;;
17704
17705 netbsdelf*-gnu)
17706   version_type=linux
17707   need_lib_prefix=no
17708   need_version=no
17709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17710   soname_spec='${libname}${release}${shared_ext}$major'
17711   shlibpath_var=LD_LIBRARY_PATH
17712   shlibpath_overrides_runpath=no
17713   hardcode_into_libs=yes
17714   dynamic_linker='NetBSD ld.elf_so'
17715   ;;
17716
17717 netbsd*)
17718   version_type=sunos
17719   need_lib_prefix=no
17720   need_version=no
17721   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17722     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17723     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17724     dynamic_linker='NetBSD (a.out) ld.so'
17725   else
17726     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17727     soname_spec='$libname$release$shared_ext$major'
17728     dynamic_linker='NetBSD ld.elf_so'
17729   fi
17730   shlibpath_var=LD_LIBRARY_PATH
17731   shlibpath_overrides_runpath=yes
17732   hardcode_into_libs=yes
17733   ;;
17734
17735 newsos6)
17736   version_type=linux # correct to gnu/linux during the next big refactor
17737   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17738   shlibpath_var=LD_LIBRARY_PATH
17739   shlibpath_overrides_runpath=yes
17740   ;;
17741
17742 *nto* | *qnx*)
17743   version_type=qnx
17744   need_lib_prefix=no
17745   need_version=no
17746   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17747   soname_spec='$libname$release$shared_ext$major'
17748   shlibpath_var=LD_LIBRARY_PATH
17749   shlibpath_overrides_runpath=no
17750   hardcode_into_libs=yes
17751   dynamic_linker='ldqnx.so'
17752   ;;
17753
17754 openbsd* | bitrig*)
17755   version_type=sunos
17756   sys_lib_dlsearch_path_spec=/usr/lib
17757   need_lib_prefix=no
17758   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17759     need_version=no
17760   else
17761     need_version=yes
17762   fi
17763   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17764   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17765   shlibpath_var=LD_LIBRARY_PATH
17766   shlibpath_overrides_runpath=yes
17767   ;;
17768
17769 os2*)
17770   libname_spec='$name'
17771   version_type=windows
17772   shrext_cmds=.dll
17773   need_version=no
17774   need_lib_prefix=no
17775   # OS/2 can only load a DLL with a base name of 8 characters or less.
17776   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17777     v=$($ECHO $release$versuffix | tr -d .-);
17778     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17779     $ECHO $n$v`$shared_ext'
17780   library_names_spec='${libname}_dll.$libext'
17781   dynamic_linker='OS/2 ld.exe'
17782   shlibpath_var=BEGINLIBPATH
17783   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17784   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17785   postinstall_cmds='base_file=`basename \$file`~
17786     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17787     dldir=$destdir/`dirname \$dlpath`~
17788     test -d \$dldir || mkdir -p \$dldir~
17789     $install_prog $dir/$dlname \$dldir/$dlname~
17790     chmod a+x \$dldir/$dlname~
17791     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17792       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17793     fi'
17794   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17795     dlpath=$dir/\$dldll~
17796     $RM \$dlpath'
17797   ;;
17798
17799 osf3* | osf4* | osf5*)
17800   version_type=osf
17801   need_lib_prefix=no
17802   need_version=no
17803   soname_spec='$libname$release$shared_ext$major'
17804   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17805   shlibpath_var=LD_LIBRARY_PATH
17806   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17807   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17808   ;;
17809
17810 rdos*)
17811   dynamic_linker=no
17812   ;;
17813
17814 solaris*)
17815   version_type=linux # correct to gnu/linux during the next big refactor
17816   need_lib_prefix=no
17817   need_version=no
17818   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17819   soname_spec='$libname$release$shared_ext$major'
17820   shlibpath_var=LD_LIBRARY_PATH
17821   shlibpath_overrides_runpath=yes
17822   hardcode_into_libs=yes
17823   # ldd complains unless libraries are executable
17824   postinstall_cmds='chmod +x $lib'
17825   ;;
17826
17827 sunos4*)
17828   version_type=sunos
17829   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17830   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17831   shlibpath_var=LD_LIBRARY_PATH
17832   shlibpath_overrides_runpath=yes
17833   if test yes = "$with_gnu_ld"; then
17834     need_lib_prefix=no
17835   fi
17836   need_version=yes
17837   ;;
17838
17839 sysv4 | sysv4.3*)
17840   version_type=linux # correct to gnu/linux during the next big refactor
17841   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17842   soname_spec='$libname$release$shared_ext$major'
17843   shlibpath_var=LD_LIBRARY_PATH
17844   case $host_vendor in
17845     sni)
17846       shlibpath_overrides_runpath=no
17847       need_lib_prefix=no
17848       runpath_var=LD_RUN_PATH
17849       ;;
17850     siemens)
17851       need_lib_prefix=no
17852       ;;
17853     motorola)
17854       need_lib_prefix=no
17855       need_version=no
17856       shlibpath_overrides_runpath=no
17857       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17858       ;;
17859   esac
17860   ;;
17861
17862 sysv4*MP*)
17863   if test -d /usr/nec; then
17864     version_type=linux # correct to gnu/linux during the next big refactor
17865     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17866     soname_spec='$libname$shared_ext.$major'
17867     shlibpath_var=LD_LIBRARY_PATH
17868   fi
17869   ;;
17870
17871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17872   version_type=sco
17873   need_lib_prefix=no
17874   need_version=no
17875   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17876   soname_spec='$libname$release$shared_ext$major'
17877   shlibpath_var=LD_LIBRARY_PATH
17878   shlibpath_overrides_runpath=yes
17879   hardcode_into_libs=yes
17880   if test yes = "$with_gnu_ld"; then
17881     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17882   else
17883     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17884     case $host_os in
17885       sco3.2v5*)
17886         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17887         ;;
17888     esac
17889   fi
17890   sys_lib_dlsearch_path_spec='/usr/lib'
17891   ;;
17892
17893 tpf*)
17894   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17895   version_type=linux # correct to gnu/linux during the next big refactor
17896   need_lib_prefix=no
17897   need_version=no
17898   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17899   shlibpath_var=LD_LIBRARY_PATH
17900   shlibpath_overrides_runpath=no
17901   hardcode_into_libs=yes
17902   ;;
17903
17904 uts4*)
17905   version_type=linux # correct to gnu/linux during the next big refactor
17906   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17907   soname_spec='$libname$release$shared_ext$major'
17908   shlibpath_var=LD_LIBRARY_PATH
17909   ;;
17910
17911 *)
17912   dynamic_linker=no
17913   ;;
17914 esac
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17916 $as_echo "$dynamic_linker" >&6; }
17917 test no = "$dynamic_linker" && can_build_shared=no
17918
17919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17920 if test yes = "$GCC"; then
17921   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17922 fi
17923
17924 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17925   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17926 fi
17927
17928 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17929   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17930 fi
17931
17932 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17933 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17934
17935 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17936 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17937
17938 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17939 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17982 hardcode_action_CXX=
17983 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17984    test -n "$runpath_var_CXX" ||
17985    test yes = "$hardcode_automatic_CXX"; then
17986
17987   # We can hardcode non-existent directories.
17988   if test no != "$hardcode_direct_CXX" &&
17989      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17990      # have to relink, otherwise we might link with an installed library
17991      # when we should be linking with a yet-to-be-installed one
17992      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17993      test no != "$hardcode_minus_L_CXX"; then
17994     # Linking always hardcodes the temporary library directory.
17995     hardcode_action_CXX=relink
17996   else
17997     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17998     hardcode_action_CXX=immediate
17999   fi
18000 else
18001   # We cannot hardcode anything, or else we can only hardcode existing
18002   # directories.
18003   hardcode_action_CXX=unsupported
18004 fi
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18006 $as_echo "$hardcode_action_CXX" >&6; }
18007
18008 if test relink = "$hardcode_action_CXX" ||
18009    test yes = "$inherit_rpath_CXX"; then
18010   # Fast installation is not supported
18011   enable_fast_install=no
18012 elif test yes = "$shlibpath_overrides_runpath" ||
18013      test no = "$enable_shared"; then
18014   # Fast installation is not necessary
18015   enable_fast_install=needless
18016 fi
18017
18018
18019
18020
18021
18022
18023
18024   fi # test -n "$compiler"
18025
18026   CC=$lt_save_CC
18027   CFLAGS=$lt_save_CFLAGS
18028   LDCXX=$LD
18029   LD=$lt_save_LD
18030   GCC=$lt_save_GCC
18031   with_gnu_ld=$lt_save_with_gnu_ld
18032   lt_cv_path_LDCXX=$lt_cv_path_LD
18033   lt_cv_path_LD=$lt_save_path_LD
18034   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18035   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18036 fi # test yes != "$_lt_caught_CXX_error"
18037
18038 ac_ext=c
18039 ac_cpp='$CPP $CPPFLAGS'
18040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18043
18044
18045   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
18046   ac_ext=cpp
18047 ac_cpp='$CXXCPP $CPPFLAGS'
18048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18051   ac_success=no
18052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18053 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18054 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18055   $as_echo_n "(cached) " >&6
18056 else
18057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h.  */
18059
18060
18061 // If the compiler admits that it is not ready for C++11, why torture it?
18062 // Hopefully, this will speed up the test.
18063
18064 #ifndef __cplusplus
18065
18066 #error "This is not a C++ compiler"
18067
18068 #elif __cplusplus < 201103L
18069
18070 #error "This is not a C++11 compiler"
18071
18072 #else
18073
18074 namespace cxx11
18075 {
18076
18077   namespace test_static_assert
18078   {
18079
18080     template <typename T>
18081     struct check
18082     {
18083       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18084     };
18085
18086   }
18087
18088   namespace test_final_override
18089   {
18090
18091     struct Base
18092     {
18093       virtual void f() {}
18094     };
18095
18096     struct Derived : public Base
18097     {
18098       virtual void f() override {}
18099     };
18100
18101   }
18102
18103   namespace test_double_right_angle_brackets
18104   {
18105
18106     template < typename T >
18107     struct check {};
18108
18109     typedef check<void> single_type;
18110     typedef check<check<void>> double_type;
18111     typedef check<check<check<void>>> triple_type;
18112     typedef check<check<check<check<void>>>> quadruple_type;
18113
18114   }
18115
18116   namespace test_decltype
18117   {
18118
18119     int
18120     f()
18121     {
18122       int a = 1;
18123       decltype(a) b = 2;
18124       return a + b;
18125     }
18126
18127   }
18128
18129   namespace test_type_deduction
18130   {
18131
18132     template < typename T1, typename T2 >
18133     struct is_same
18134     {
18135       static const bool value = false;
18136     };
18137
18138     template < typename T >
18139     struct is_same<T, T>
18140     {
18141       static const bool value = true;
18142     };
18143
18144     template < typename T1, typename T2 >
18145     auto
18146     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18147     {
18148       return a1 + a2;
18149     }
18150
18151     int
18152     test(const int c, volatile int v)
18153     {
18154       static_assert(is_same<int, decltype(0)>::value == true, "");
18155       static_assert(is_same<int, decltype(c)>::value == false, "");
18156       static_assert(is_same<int, decltype(v)>::value == false, "");
18157       auto ac = c;
18158       auto av = v;
18159       auto sumi = ac + av + 'x';
18160       auto sumf = ac + av + 1.0;
18161       static_assert(is_same<int, decltype(ac)>::value == true, "");
18162       static_assert(is_same<int, decltype(av)>::value == true, "");
18163       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18164       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18165       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18166       return (sumf > 0.0) ? sumi : add(c, v);
18167     }
18168
18169   }
18170
18171   namespace test_noexcept
18172   {
18173
18174     int f() { return 0; }
18175     int g() noexcept { return 0; }
18176
18177     static_assert(noexcept(f()) == false, "");
18178     static_assert(noexcept(g()) == true, "");
18179
18180   }
18181
18182   namespace test_constexpr
18183   {
18184
18185     template < typename CharT >
18186     unsigned long constexpr
18187     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18188     {
18189       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18190     }
18191
18192     template < typename CharT >
18193     unsigned long constexpr
18194     strlen_c(const CharT *const s) noexcept
18195     {
18196       return strlen_c_r(s, 0UL);
18197     }
18198
18199     static_assert(strlen_c("") == 0UL, "");
18200     static_assert(strlen_c("1") == 1UL, "");
18201     static_assert(strlen_c("example") == 7UL, "");
18202     static_assert(strlen_c("another\0example") == 7UL, "");
18203
18204   }
18205
18206   namespace test_rvalue_references
18207   {
18208
18209     template < int N >
18210     struct answer
18211     {
18212       static constexpr int value = N;
18213     };
18214
18215     answer<1> f(int&)       { return answer<1>(); }
18216     answer<2> f(const int&) { return answer<2>(); }
18217     answer<3> f(int&&)      { return answer<3>(); }
18218
18219     void
18220     test()
18221     {
18222       int i = 0;
18223       const int c = 0;
18224       static_assert(decltype(f(i))::value == 1, "");
18225       static_assert(decltype(f(c))::value == 2, "");
18226       static_assert(decltype(f(0))::value == 3, "");
18227     }
18228
18229   }
18230
18231   namespace test_uniform_initialization
18232   {
18233
18234     struct test
18235     {
18236       static const int zero {};
18237       static const int one {1};
18238     };
18239
18240     static_assert(test::zero == 0, "");
18241     static_assert(test::one == 1, "");
18242
18243   }
18244
18245   namespace test_lambdas
18246   {
18247
18248     void
18249     test1()
18250     {
18251       auto lambda1 = [](){};
18252       auto lambda2 = lambda1;
18253       lambda1();
18254       lambda2();
18255     }
18256
18257     int
18258     test2()
18259     {
18260       auto a = [](int i, int j){ return i + j; }(1, 2);
18261       auto b = []() -> int { return '0'; }();
18262       auto c = [=](){ return a + b; }();
18263       auto d = [&](){ return c; }();
18264       auto e = [a, &b](int x) mutable {
18265         const auto identity = [](int y){ return y; };
18266         for (auto i = 0; i < a; ++i)
18267           a += b--;
18268         return x + identity(a + b);
18269       }(0);
18270       return a + b + c + d + e;
18271     }
18272
18273     int
18274     test3()
18275     {
18276       const auto nullary = [](){ return 0; };
18277       const auto unary = [](int x){ return x; };
18278       using nullary_t = decltype(nullary);
18279       using unary_t = decltype(unary);
18280       const auto higher1st = [](nullary_t f){ return f(); };
18281       const auto higher2nd = [unary](nullary_t f1){
18282         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18283       };
18284       return higher1st(nullary) + higher2nd(nullary)(unary);
18285     }
18286
18287   }
18288
18289   namespace test_variadic_templates
18290   {
18291
18292     template <int...>
18293     struct sum;
18294
18295     template <int N0, int... N1toN>
18296     struct sum<N0, N1toN...>
18297     {
18298       static constexpr auto value = N0 + sum<N1toN...>::value;
18299     };
18300
18301     template <>
18302     struct sum<>
18303     {
18304       static constexpr auto value = 0;
18305     };
18306
18307     static_assert(sum<>::value == 0, "");
18308     static_assert(sum<1>::value == 1, "");
18309     static_assert(sum<23>::value == 23, "");
18310     static_assert(sum<1, 2>::value == 3, "");
18311     static_assert(sum<5, 5, 11>::value == 21, "");
18312     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18313
18314   }
18315
18316   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18317   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18318   // because of this.
18319   namespace test_template_alias_sfinae
18320   {
18321
18322     struct foo {};
18323
18324     template<typename T>
18325     using member = typename T::member_type;
18326
18327     template<typename T>
18328     void func(...) {}
18329
18330     template<typename T>
18331     void func(member<T>*) {}
18332
18333     void test();
18334
18335     void test() { func<foo>(0); }
18336
18337   }
18338
18339 }  // namespace cxx11
18340
18341 #endif  // __cplusplus >= 201103L
18342
18343
18344
18345 _ACEOF
18346 if ac_fn_cxx_try_compile "$LINENO"; then :
18347   ax_cv_cxx_compile_cxx11=yes
18348 else
18349   ax_cv_cxx_compile_cxx11=no
18350 fi
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18354 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18355   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18356     ac_success=yes
18357   fi
18358
18359     if test x$ac_success = xno; then
18360     for alternative in ${ax_cxx_compile_alternatives}; do
18361       switch="-std=gnu++${alternative}"
18362       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18363       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18364 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18365 if eval \${$cachevar+:} false; then :
18366   $as_echo_n "(cached) " >&6
18367 else
18368   ac_save_CXX="$CXX"
18369          CXX="$CXX $switch"
18370          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h.  */
18372
18373
18374 // If the compiler admits that it is not ready for C++11, why torture it?
18375 // Hopefully, this will speed up the test.
18376
18377 #ifndef __cplusplus
18378
18379 #error "This is not a C++ compiler"
18380
18381 #elif __cplusplus < 201103L
18382
18383 #error "This is not a C++11 compiler"
18384
18385 #else
18386
18387 namespace cxx11
18388 {
18389
18390   namespace test_static_assert
18391   {
18392
18393     template <typename T>
18394     struct check
18395     {
18396       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18397     };
18398
18399   }
18400
18401   namespace test_final_override
18402   {
18403
18404     struct Base
18405     {
18406       virtual void f() {}
18407     };
18408
18409     struct Derived : public Base
18410     {
18411       virtual void f() override {}
18412     };
18413
18414   }
18415
18416   namespace test_double_right_angle_brackets
18417   {
18418
18419     template < typename T >
18420     struct check {};
18421
18422     typedef check<void> single_type;
18423     typedef check<check<void>> double_type;
18424     typedef check<check<check<void>>> triple_type;
18425     typedef check<check<check<check<void>>>> quadruple_type;
18426
18427   }
18428
18429   namespace test_decltype
18430   {
18431
18432     int
18433     f()
18434     {
18435       int a = 1;
18436       decltype(a) b = 2;
18437       return a + b;
18438     }
18439
18440   }
18441
18442   namespace test_type_deduction
18443   {
18444
18445     template < typename T1, typename T2 >
18446     struct is_same
18447     {
18448       static const bool value = false;
18449     };
18450
18451     template < typename T >
18452     struct is_same<T, T>
18453     {
18454       static const bool value = true;
18455     };
18456
18457     template < typename T1, typename T2 >
18458     auto
18459     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18460     {
18461       return a1 + a2;
18462     }
18463
18464     int
18465     test(const int c, volatile int v)
18466     {
18467       static_assert(is_same<int, decltype(0)>::value == true, "");
18468       static_assert(is_same<int, decltype(c)>::value == false, "");
18469       static_assert(is_same<int, decltype(v)>::value == false, "");
18470       auto ac = c;
18471       auto av = v;
18472       auto sumi = ac + av + 'x';
18473       auto sumf = ac + av + 1.0;
18474       static_assert(is_same<int, decltype(ac)>::value == true, "");
18475       static_assert(is_same<int, decltype(av)>::value == true, "");
18476       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18477       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18478       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18479       return (sumf > 0.0) ? sumi : add(c, v);
18480     }
18481
18482   }
18483
18484   namespace test_noexcept
18485   {
18486
18487     int f() { return 0; }
18488     int g() noexcept { return 0; }
18489
18490     static_assert(noexcept(f()) == false, "");
18491     static_assert(noexcept(g()) == true, "");
18492
18493   }
18494
18495   namespace test_constexpr
18496   {
18497
18498     template < typename CharT >
18499     unsigned long constexpr
18500     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18501     {
18502       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18503     }
18504
18505     template < typename CharT >
18506     unsigned long constexpr
18507     strlen_c(const CharT *const s) noexcept
18508     {
18509       return strlen_c_r(s, 0UL);
18510     }
18511
18512     static_assert(strlen_c("") == 0UL, "");
18513     static_assert(strlen_c("1") == 1UL, "");
18514     static_assert(strlen_c("example") == 7UL, "");
18515     static_assert(strlen_c("another\0example") == 7UL, "");
18516
18517   }
18518
18519   namespace test_rvalue_references
18520   {
18521
18522     template < int N >
18523     struct answer
18524     {
18525       static constexpr int value = N;
18526     };
18527
18528     answer<1> f(int&)       { return answer<1>(); }
18529     answer<2> f(const int&) { return answer<2>(); }
18530     answer<3> f(int&&)      { return answer<3>(); }
18531
18532     void
18533     test()
18534     {
18535       int i = 0;
18536       const int c = 0;
18537       static_assert(decltype(f(i))::value == 1, "");
18538       static_assert(decltype(f(c))::value == 2, "");
18539       static_assert(decltype(f(0))::value == 3, "");
18540     }
18541
18542   }
18543
18544   namespace test_uniform_initialization
18545   {
18546
18547     struct test
18548     {
18549       static const int zero {};
18550       static const int one {1};
18551     };
18552
18553     static_assert(test::zero == 0, "");
18554     static_assert(test::one == 1, "");
18555
18556   }
18557
18558   namespace test_lambdas
18559   {
18560
18561     void
18562     test1()
18563     {
18564       auto lambda1 = [](){};
18565       auto lambda2 = lambda1;
18566       lambda1();
18567       lambda2();
18568     }
18569
18570     int
18571     test2()
18572     {
18573       auto a = [](int i, int j){ return i + j; }(1, 2);
18574       auto b = []() -> int { return '0'; }();
18575       auto c = [=](){ return a + b; }();
18576       auto d = [&](){ return c; }();
18577       auto e = [a, &b](int x) mutable {
18578         const auto identity = [](int y){ return y; };
18579         for (auto i = 0; i < a; ++i)
18580           a += b--;
18581         return x + identity(a + b);
18582       }(0);
18583       return a + b + c + d + e;
18584     }
18585
18586     int
18587     test3()
18588     {
18589       const auto nullary = [](){ return 0; };
18590       const auto unary = [](int x){ return x; };
18591       using nullary_t = decltype(nullary);
18592       using unary_t = decltype(unary);
18593       const auto higher1st = [](nullary_t f){ return f(); };
18594       const auto higher2nd = [unary](nullary_t f1){
18595         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18596       };
18597       return higher1st(nullary) + higher2nd(nullary)(unary);
18598     }
18599
18600   }
18601
18602   namespace test_variadic_templates
18603   {
18604
18605     template <int...>
18606     struct sum;
18607
18608     template <int N0, int... N1toN>
18609     struct sum<N0, N1toN...>
18610     {
18611       static constexpr auto value = N0 + sum<N1toN...>::value;
18612     };
18613
18614     template <>
18615     struct sum<>
18616     {
18617       static constexpr auto value = 0;
18618     };
18619
18620     static_assert(sum<>::value == 0, "");
18621     static_assert(sum<1>::value == 1, "");
18622     static_assert(sum<23>::value == 23, "");
18623     static_assert(sum<1, 2>::value == 3, "");
18624     static_assert(sum<5, 5, 11>::value == 21, "");
18625     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18626
18627   }
18628
18629   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18630   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18631   // because of this.
18632   namespace test_template_alias_sfinae
18633   {
18634
18635     struct foo {};
18636
18637     template<typename T>
18638     using member = typename T::member_type;
18639
18640     template<typename T>
18641     void func(...) {}
18642
18643     template<typename T>
18644     void func(member<T>*) {}
18645
18646     void test();
18647
18648     void test() { func<foo>(0); }
18649
18650   }
18651
18652 }  // namespace cxx11
18653
18654 #endif  // __cplusplus >= 201103L
18655
18656
18657
18658 _ACEOF
18659 if ac_fn_cxx_try_compile "$LINENO"; then :
18660   eval $cachevar=yes
18661 else
18662   eval $cachevar=no
18663 fi
18664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18665          CXX="$ac_save_CXX"
18666 fi
18667 eval ac_res=\$$cachevar
18668                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18669 $as_echo "$ac_res" >&6; }
18670       if eval test x\$$cachevar = xyes; then
18671         CXX="$CXX $switch"
18672         if test -n "$CXXCPP" ; then
18673           CXXCPP="$CXXCPP $switch"
18674         fi
18675         ac_success=yes
18676         break
18677       fi
18678     done
18679   fi
18680
18681     if test x$ac_success = xno; then
18682                 for alternative in ${ax_cxx_compile_alternatives}; do
18683       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18684         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18686 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18687 if eval \${$cachevar+:} false; then :
18688   $as_echo_n "(cached) " >&6
18689 else
18690   ac_save_CXX="$CXX"
18691            CXX="$CXX $switch"
18692            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h.  */
18694
18695
18696 // If the compiler admits that it is not ready for C++11, why torture it?
18697 // Hopefully, this will speed up the test.
18698
18699 #ifndef __cplusplus
18700
18701 #error "This is not a C++ compiler"
18702
18703 #elif __cplusplus < 201103L
18704
18705 #error "This is not a C++11 compiler"
18706
18707 #else
18708
18709 namespace cxx11
18710 {
18711
18712   namespace test_static_assert
18713   {
18714
18715     template <typename T>
18716     struct check
18717     {
18718       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18719     };
18720
18721   }
18722
18723   namespace test_final_override
18724   {
18725
18726     struct Base
18727     {
18728       virtual void f() {}
18729     };
18730
18731     struct Derived : public Base
18732     {
18733       virtual void f() override {}
18734     };
18735
18736   }
18737
18738   namespace test_double_right_angle_brackets
18739   {
18740
18741     template < typename T >
18742     struct check {};
18743
18744     typedef check<void> single_type;
18745     typedef check<check<void>> double_type;
18746     typedef check<check<check<void>>> triple_type;
18747     typedef check<check<check<check<void>>>> quadruple_type;
18748
18749   }
18750
18751   namespace test_decltype
18752   {
18753
18754     int
18755     f()
18756     {
18757       int a = 1;
18758       decltype(a) b = 2;
18759       return a + b;
18760     }
18761
18762   }
18763
18764   namespace test_type_deduction
18765   {
18766
18767     template < typename T1, typename T2 >
18768     struct is_same
18769     {
18770       static const bool value = false;
18771     };
18772
18773     template < typename T >
18774     struct is_same<T, T>
18775     {
18776       static const bool value = true;
18777     };
18778
18779     template < typename T1, typename T2 >
18780     auto
18781     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18782     {
18783       return a1 + a2;
18784     }
18785
18786     int
18787     test(const int c, volatile int v)
18788     {
18789       static_assert(is_same<int, decltype(0)>::value == true, "");
18790       static_assert(is_same<int, decltype(c)>::value == false, "");
18791       static_assert(is_same<int, decltype(v)>::value == false, "");
18792       auto ac = c;
18793       auto av = v;
18794       auto sumi = ac + av + 'x';
18795       auto sumf = ac + av + 1.0;
18796       static_assert(is_same<int, decltype(ac)>::value == true, "");
18797       static_assert(is_same<int, decltype(av)>::value == true, "");
18798       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18799       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18800       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18801       return (sumf > 0.0) ? sumi : add(c, v);
18802     }
18803
18804   }
18805
18806   namespace test_noexcept
18807   {
18808
18809     int f() { return 0; }
18810     int g() noexcept { return 0; }
18811
18812     static_assert(noexcept(f()) == false, "");
18813     static_assert(noexcept(g()) == true, "");
18814
18815   }
18816
18817   namespace test_constexpr
18818   {
18819
18820     template < typename CharT >
18821     unsigned long constexpr
18822     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18823     {
18824       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18825     }
18826
18827     template < typename CharT >
18828     unsigned long constexpr
18829     strlen_c(const CharT *const s) noexcept
18830     {
18831       return strlen_c_r(s, 0UL);
18832     }
18833
18834     static_assert(strlen_c("") == 0UL, "");
18835     static_assert(strlen_c("1") == 1UL, "");
18836     static_assert(strlen_c("example") == 7UL, "");
18837     static_assert(strlen_c("another\0example") == 7UL, "");
18838
18839   }
18840
18841   namespace test_rvalue_references
18842   {
18843
18844     template < int N >
18845     struct answer
18846     {
18847       static constexpr int value = N;
18848     };
18849
18850     answer<1> f(int&)       { return answer<1>(); }
18851     answer<2> f(const int&) { return answer<2>(); }
18852     answer<3> f(int&&)      { return answer<3>(); }
18853
18854     void
18855     test()
18856     {
18857       int i = 0;
18858       const int c = 0;
18859       static_assert(decltype(f(i))::value == 1, "");
18860       static_assert(decltype(f(c))::value == 2, "");
18861       static_assert(decltype(f(0))::value == 3, "");
18862     }
18863
18864   }
18865
18866   namespace test_uniform_initialization
18867   {
18868
18869     struct test
18870     {
18871       static const int zero {};
18872       static const int one {1};
18873     };
18874
18875     static_assert(test::zero == 0, "");
18876     static_assert(test::one == 1, "");
18877
18878   }
18879
18880   namespace test_lambdas
18881   {
18882
18883     void
18884     test1()
18885     {
18886       auto lambda1 = [](){};
18887       auto lambda2 = lambda1;
18888       lambda1();
18889       lambda2();
18890     }
18891
18892     int
18893     test2()
18894     {
18895       auto a = [](int i, int j){ return i + j; }(1, 2);
18896       auto b = []() -> int { return '0'; }();
18897       auto c = [=](){ return a + b; }();
18898       auto d = [&](){ return c; }();
18899       auto e = [a, &b](int x) mutable {
18900         const auto identity = [](int y){ return y; };
18901         for (auto i = 0; i < a; ++i)
18902           a += b--;
18903         return x + identity(a + b);
18904       }(0);
18905       return a + b + c + d + e;
18906     }
18907
18908     int
18909     test3()
18910     {
18911       const auto nullary = [](){ return 0; };
18912       const auto unary = [](int x){ return x; };
18913       using nullary_t = decltype(nullary);
18914       using unary_t = decltype(unary);
18915       const auto higher1st = [](nullary_t f){ return f(); };
18916       const auto higher2nd = [unary](nullary_t f1){
18917         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18918       };
18919       return higher1st(nullary) + higher2nd(nullary)(unary);
18920     }
18921
18922   }
18923
18924   namespace test_variadic_templates
18925   {
18926
18927     template <int...>
18928     struct sum;
18929
18930     template <int N0, int... N1toN>
18931     struct sum<N0, N1toN...>
18932     {
18933       static constexpr auto value = N0 + sum<N1toN...>::value;
18934     };
18935
18936     template <>
18937     struct sum<>
18938     {
18939       static constexpr auto value = 0;
18940     };
18941
18942     static_assert(sum<>::value == 0, "");
18943     static_assert(sum<1>::value == 1, "");
18944     static_assert(sum<23>::value == 23, "");
18945     static_assert(sum<1, 2>::value == 3, "");
18946     static_assert(sum<5, 5, 11>::value == 21, "");
18947     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18948
18949   }
18950
18951   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18952   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18953   // because of this.
18954   namespace test_template_alias_sfinae
18955   {
18956
18957     struct foo {};
18958
18959     template<typename T>
18960     using member = typename T::member_type;
18961
18962     template<typename T>
18963     void func(...) {}
18964
18965     template<typename T>
18966     void func(member<T>*) {}
18967
18968     void test();
18969
18970     void test() { func<foo>(0); }
18971
18972   }
18973
18974 }  // namespace cxx11
18975
18976 #endif  // __cplusplus >= 201103L
18977
18978
18979
18980 _ACEOF
18981 if ac_fn_cxx_try_compile "$LINENO"; then :
18982   eval $cachevar=yes
18983 else
18984   eval $cachevar=no
18985 fi
18986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18987            CXX="$ac_save_CXX"
18988 fi
18989 eval ac_res=\$$cachevar
18990                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18991 $as_echo "$ac_res" >&6; }
18992         if eval test x\$$cachevar = xyes; then
18993           CXX="$CXX $switch"
18994           if test -n "$CXXCPP" ; then
18995             CXXCPP="$CXXCPP $switch"
18996           fi
18997           ac_success=yes
18998           break
18999         fi
19000       done
19001       if test x$ac_success = xyes; then
19002         break
19003       fi
19004     done
19005   fi
19006   ac_ext=c
19007 ac_cpp='$CPP $CPPFLAGS'
19008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19011
19012   if test x$ax_cxx_compile_cxx11_required = xtrue; then
19013     if test x$ac_success = xno; then
19014       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
19015     fi
19016   fi
19017   if test x$ac_success = xno; then
19018     HAVE_CXX11=0
19019     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19020 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
19021   else
19022     HAVE_CXX11=1
19023
19024 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
19025
19026   fi
19027
19028
19029
19030 # Check whether --enable-largefile was given.
19031 if test "${enable_largefile+set}" = set; then :
19032   enableval=$enable_largefile;
19033 fi
19034
19035 if test "$enable_largefile" != no; then
19036
19037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19038 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19039 if ${ac_cv_sys_largefile_CC+:} false; then :
19040   $as_echo_n "(cached) " >&6
19041 else
19042   ac_cv_sys_largefile_CC=no
19043      if test "$GCC" != yes; then
19044        ac_save_CC=$CC
19045        while :; do
19046          # IRIX 6.2 and later do not support large files by default,
19047          # so use the C compiler's -n32 option if that helps.
19048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h.  */
19050 #include <sys/types.h>
19051  /* Check that off_t can represent 2**63 - 1 correctly.
19052     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19053     since some C++ compilers masquerading as C compilers
19054     incorrectly reject 9223372036854775807.  */
19055 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19056   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19057                        && LARGE_OFF_T % 2147483647 == 1)
19058                       ? 1 : -1];
19059 int
19060 main ()
19061 {
19062
19063   ;
19064   return 0;
19065 }
19066 _ACEOF
19067          if ac_fn_c_try_compile "$LINENO"; then :
19068   break
19069 fi
19070 rm -f core conftest.err conftest.$ac_objext
19071          CC="$CC -n32"
19072          if ac_fn_c_try_compile "$LINENO"; then :
19073   ac_cv_sys_largefile_CC=' -n32'; break
19074 fi
19075 rm -f core conftest.err conftest.$ac_objext
19076          break
19077        done
19078        CC=$ac_save_CC
19079        rm -f conftest.$ac_ext
19080     fi
19081 fi
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19083 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19084   if test "$ac_cv_sys_largefile_CC" != no; then
19085     CC=$CC$ac_cv_sys_largefile_CC
19086   fi
19087
19088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19089 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19090 if ${ac_cv_sys_file_offset_bits+:} false; then :
19091   $as_echo_n "(cached) " >&6
19092 else
19093   while :; do
19094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h.  */
19096 #include <sys/types.h>
19097  /* Check that off_t can represent 2**63 - 1 correctly.
19098     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19099     since some C++ compilers masquerading as C compilers
19100     incorrectly reject 9223372036854775807.  */
19101 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19102   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19103                        && LARGE_OFF_T % 2147483647 == 1)
19104                       ? 1 : -1];
19105 int
19106 main ()
19107 {
19108
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 if ac_fn_c_try_compile "$LINENO"; then :
19114   ac_cv_sys_file_offset_bits=no; break
19115 fi
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h.  */
19119 #define _FILE_OFFSET_BITS 64
19120 #include <sys/types.h>
19121  /* Check that off_t can represent 2**63 - 1 correctly.
19122     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19123     since some C++ compilers masquerading as C compilers
19124     incorrectly reject 9223372036854775807.  */
19125 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19126   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19127                        && LARGE_OFF_T % 2147483647 == 1)
19128                       ? 1 : -1];
19129 int
19130 main ()
19131 {
19132
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 if ac_fn_c_try_compile "$LINENO"; then :
19138   ac_cv_sys_file_offset_bits=64; break
19139 fi
19140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141   ac_cv_sys_file_offset_bits=unknown
19142   break
19143 done
19144 fi
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19146 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19147 case $ac_cv_sys_file_offset_bits in #(
19148   no | unknown) ;;
19149   *)
19150 cat >>confdefs.h <<_ACEOF
19151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19152 _ACEOF
19153 ;;
19154 esac
19155 rm -rf conftest*
19156   if test $ac_cv_sys_file_offset_bits = unknown; then
19157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19158 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19159 if ${ac_cv_sys_large_files+:} false; then :
19160   $as_echo_n "(cached) " >&6
19161 else
19162   while :; do
19163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h.  */
19165 #include <sys/types.h>
19166  /* Check that off_t can represent 2**63 - 1 correctly.
19167     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19168     since some C++ compilers masquerading as C compilers
19169     incorrectly reject 9223372036854775807.  */
19170 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19171   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19172                        && LARGE_OFF_T % 2147483647 == 1)
19173                       ? 1 : -1];
19174 int
19175 main ()
19176 {
19177
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 if ac_fn_c_try_compile "$LINENO"; then :
19183   ac_cv_sys_large_files=no; break
19184 fi
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187 /* end confdefs.h.  */
19188 #define _LARGE_FILES 1
19189 #include <sys/types.h>
19190  /* Check that off_t can represent 2**63 - 1 correctly.
19191     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19192     since some C++ compilers masquerading as C compilers
19193     incorrectly reject 9223372036854775807.  */
19194 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19195   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19196                        && LARGE_OFF_T % 2147483647 == 1)
19197                       ? 1 : -1];
19198 int
19199 main ()
19200 {
19201
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 if ac_fn_c_try_compile "$LINENO"; then :
19207   ac_cv_sys_large_files=1; break
19208 fi
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210   ac_cv_sys_large_files=unknown
19211   break
19212 done
19213 fi
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19215 $as_echo "$ac_cv_sys_large_files" >&6; }
19216 case $ac_cv_sys_large_files in #(
19217   no | unknown) ;;
19218   *)
19219 cat >>confdefs.h <<_ACEOF
19220 #define _LARGE_FILES $ac_cv_sys_large_files
19221 _ACEOF
19222 ;;
19223 esac
19224 rm -rf conftest*
19225   fi
19226
19227
19228 fi
19229
19230
19231
19232
19233
19234
19235
19236
19237 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19238         if test -n "$ac_tool_prefix"; then
19239   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19240 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19242 $as_echo_n "checking for $ac_word... " >&6; }
19243 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19244   $as_echo_n "(cached) " >&6
19245 else
19246   case $PKG_CONFIG in
19247   [\\/]* | ?:[\\/]*)
19248   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19249   ;;
19250   *)
19251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19252 for as_dir in $PATH
19253 do
19254   IFS=$as_save_IFS
19255   test -z "$as_dir" && as_dir=.
19256     for ac_exec_ext in '' $ac_executable_extensions; do
19257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19258     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19260     break 2
19261   fi
19262 done
19263   done
19264 IFS=$as_save_IFS
19265
19266   ;;
19267 esac
19268 fi
19269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19270 if test -n "$PKG_CONFIG"; then
19271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19272 $as_echo "$PKG_CONFIG" >&6; }
19273 else
19274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 $as_echo "no" >&6; }
19276 fi
19277
19278
19279 fi
19280 if test -z "$ac_cv_path_PKG_CONFIG"; then
19281   ac_pt_PKG_CONFIG=$PKG_CONFIG
19282   # Extract the first word of "pkg-config", so it can be a program name with args.
19283 set dummy pkg-config; ac_word=$2
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19285 $as_echo_n "checking for $ac_word... " >&6; }
19286 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19287   $as_echo_n "(cached) " >&6
19288 else
19289   case $ac_pt_PKG_CONFIG in
19290   [\\/]* | ?:[\\/]*)
19291   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19292   ;;
19293   *)
19294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19295 for as_dir in $PATH
19296 do
19297   IFS=$as_save_IFS
19298   test -z "$as_dir" && as_dir=.
19299     for ac_exec_ext in '' $ac_executable_extensions; do
19300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19301     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19303     break 2
19304   fi
19305 done
19306   done
19307 IFS=$as_save_IFS
19308
19309   ;;
19310 esac
19311 fi
19312 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19313 if test -n "$ac_pt_PKG_CONFIG"; then
19314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19315 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19316 else
19317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318 $as_echo "no" >&6; }
19319 fi
19320
19321   if test "x$ac_pt_PKG_CONFIG" = x; then
19322     PKG_CONFIG=""
19323   else
19324     case $cross_compiling:$ac_tool_warned in
19325 yes:)
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19328 ac_tool_warned=yes ;;
19329 esac
19330     PKG_CONFIG=$ac_pt_PKG_CONFIG
19331   fi
19332 else
19333   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19334 fi
19335
19336 fi
19337 if test -n "$PKG_CONFIG"; then
19338         _pkg_min_version=0.28
19339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19340 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19341         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19342                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19343 $as_echo "yes" >&6; }
19344         else
19345                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19346 $as_echo "no" >&6; }
19347                 PKG_CONFIG=""
19348         fi
19349 fi
19350
19351 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19352
19353
19354 GIT=${GIT-"${am_missing_run}git"}
19355
19356
19357 # Version
19358
19359
19360
19361
19362 HB_VERSION_MAJOR=8
19363 HB_VERSION_MINOR=2
19364 HB_VERSION_MICRO=2
19365 HB_VERSION=8.2.2
19366
19367
19368
19369
19370
19371 # Libtool version
19372
19373 HB_LIBTOOL_VERSION_INFO=60822:0:60822
19374
19375
19376
19377 # Check whether --with-libstdc++ was given.
19378 if test "${with_libstdc__+set}" = set; then :
19379   withval=$with_libstdc__; with_libstdcxx=$withval
19380 else
19381   with_libstdcxx=no
19382 fi
19383
19384  if test "x$with_libstdcxx" = "xyes"; then
19385   WITH_LIBSTDCXX_TRUE=
19386   WITH_LIBSTDCXX_FALSE='#'
19387 else
19388   WITH_LIBSTDCXX_TRUE='#'
19389   WITH_LIBSTDCXX_FALSE=
19390 fi
19391
19392
19393 # Documentation
19394 have_gtk_doc=false
19395
19396
19397
19398
19399   gtk_doc_requires="gtk-doc >= 1.15"
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19401 $as_echo_n "checking for gtk-doc... " >&6; }
19402   if test -n "$PKG_CONFIG" && \
19403     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19404   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19405   ac_status=$?
19406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407   test $ac_status = 0; }; then
19408   have_gtk_doc=yes
19409 else
19410   have_gtk_doc=no
19411 fi
19412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19413 $as_echo "$have_gtk_doc" >&6; }
19414
19415   if test "$have_gtk_doc" = "no"; then
19416       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19417   You will not be able to create source packages with 'make dist'
19418   because $gtk_doc_requires is not found." >&5
19419 $as_echo "$as_me: WARNING:
19420   You will not be able to create source packages with 'make dist'
19421   because $gtk_doc_requires is not found." >&2;}
19422   fi
19423
19424             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19425 set dummy gtkdoc-check; ac_word=$2
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19427 $as_echo_n "checking for $ac_word... " >&6; }
19428 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19429   $as_echo_n "(cached) " >&6
19430 else
19431   if test -n "$GTKDOC_CHECK"; then
19432   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19433 else
19434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in $PATH
19436 do
19437   IFS=$as_save_IFS
19438   test -z "$as_dir" && as_dir=.
19439     for ac_exec_ext in '' $ac_executable_extensions; do
19440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19441     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19443     break 2
19444   fi
19445 done
19446   done
19447 IFS=$as_save_IFS
19448
19449 fi
19450 fi
19451 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19452 if test -n "$GTKDOC_CHECK"; then
19453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19454 $as_echo "$GTKDOC_CHECK" >&6; }
19455 else
19456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19457 $as_echo "no" >&6; }
19458 fi
19459
19460
19461   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19462 set dummy gtkdoc-check; ac_word=$2
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19464 $as_echo_n "checking for $ac_word... " >&6; }
19465 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19466   $as_echo_n "(cached) " >&6
19467 else
19468   case $GTKDOC_CHECK_PATH in
19469   [\\/]* | ?:[\\/]*)
19470   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19471   ;;
19472   *)
19473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19475 do
19476   IFS=$as_save_IFS
19477   test -z "$as_dir" && as_dir=.
19478     for ac_exec_ext in '' $ac_executable_extensions; do
19479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19480     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19482     break 2
19483   fi
19484 done
19485   done
19486 IFS=$as_save_IFS
19487
19488   ;;
19489 esac
19490 fi
19491 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19492 if test -n "$GTKDOC_CHECK_PATH"; then
19493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19494 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19495 else
19496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19497 $as_echo "no" >&6; }
19498 fi
19499
19500
19501   for ac_prog in gtkdoc-rebase
19502 do
19503   # Extract the first word of "$ac_prog", so it can be a program name with args.
19504 set dummy $ac_prog; ac_word=$2
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19506 $as_echo_n "checking for $ac_word... " >&6; }
19507 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19508   $as_echo_n "(cached) " >&6
19509 else
19510   case $GTKDOC_REBASE in
19511   [\\/]* | ?:[\\/]*)
19512   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19513   ;;
19514   *)
19515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19516 for as_dir in $PATH
19517 do
19518   IFS=$as_save_IFS
19519   test -z "$as_dir" && as_dir=.
19520     for ac_exec_ext in '' $ac_executable_extensions; do
19521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19522     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19524     break 2
19525   fi
19526 done
19527   done
19528 IFS=$as_save_IFS
19529
19530   ;;
19531 esac
19532 fi
19533 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19534 if test -n "$GTKDOC_REBASE"; then
19535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19536 $as_echo "$GTKDOC_REBASE" >&6; }
19537 else
19538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19540 fi
19541
19542
19543   test -n "$GTKDOC_REBASE" && break
19544 done
19545 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19546
19547   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19548 set dummy gtkdoc-mkpdf; ac_word=$2
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19550 $as_echo_n "checking for $ac_word... " >&6; }
19551 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19552   $as_echo_n "(cached) " >&6
19553 else
19554   case $GTKDOC_MKPDF in
19555   [\\/]* | ?:[\\/]*)
19556   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19557   ;;
19558   *)
19559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19560 for as_dir in $PATH
19561 do
19562   IFS=$as_save_IFS
19563   test -z "$as_dir" && as_dir=.
19564     for ac_exec_ext in '' $ac_executable_extensions; do
19565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19566     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19568     break 2
19569   fi
19570 done
19571   done
19572 IFS=$as_save_IFS
19573
19574   ;;
19575 esac
19576 fi
19577 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19578 if test -n "$GTKDOC_MKPDF"; then
19579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19580 $as_echo "$GTKDOC_MKPDF" >&6; }
19581 else
19582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19583 $as_echo "no" >&6; }
19584 fi
19585
19586
19587
19588
19589 # Check whether --with-html-dir was given.
19590 if test "${with_html_dir+set}" = set; then :
19591   withval=$with_html_dir;
19592 else
19593   with_html_dir='${datadir}/gtk-doc/html'
19594 fi
19595
19596   HTML_DIR="$with_html_dir"
19597
19598
19599     # Check whether --enable-gtk-doc was given.
19600 if test "${enable_gtk_doc+set}" = set; then :
19601   enableval=$enable_gtk_doc;
19602 else
19603   enable_gtk_doc=no
19604 fi
19605
19606
19607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19608 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19610 $as_echo "$enable_gtk_doc" >&6; }
19611
19612   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19613     as_fn_error $? "
19614   You must have $gtk_doc_requires installed to build documentation for
19615   $PACKAGE_NAME. Please install gtk-doc or disable building the
19616   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19617   fi
19618
19619     if test "x$PACKAGE_NAME" != "xglib"; then
19620
19621 pkg_failed=no
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19623 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19624
19625 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19626     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19627  elif test -n "$PKG_CONFIG"; then
19628     if test -n "$PKG_CONFIG" && \
19629     { { $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
19630   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19631   ac_status=$?
19632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633   test $ac_status = 0; }; then
19634   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19635                       test "x$?" != "x0" && pkg_failed=yes
19636 else
19637   pkg_failed=yes
19638 fi
19639  else
19640     pkg_failed=untried
19641 fi
19642 if test -n "$GTKDOC_DEPS_LIBS"; then
19643     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19644  elif test -n "$PKG_CONFIG"; then
19645     if test -n "$PKG_CONFIG" && \
19646     { { $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
19647   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19648   ac_status=$?
19649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19650   test $ac_status = 0; }; then
19651   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19652                       test "x$?" != "x0" && pkg_failed=yes
19653 else
19654   pkg_failed=yes
19655 fi
19656  else
19657     pkg_failed=untried
19658 fi
19659
19660
19661
19662 if test $pkg_failed = yes; then
19663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664 $as_echo "no" >&6; }
19665
19666 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19667         _pkg_short_errors_supported=yes
19668 else
19669         _pkg_short_errors_supported=no
19670 fi
19671         if test $_pkg_short_errors_supported = yes; then
19672                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19673         else
19674                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19675         fi
19676         # Put the nasty error message in config.log where it belongs
19677         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19678
19679         :
19680 elif test $pkg_failed = untried; then
19681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19682 $as_echo "no" >&6; }
19683         :
19684 else
19685         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19686         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19688 $as_echo "yes" >&6; }
19689
19690 fi
19691   fi
19692
19693     # Check whether --enable-gtk-doc-html was given.
19694 if test "${enable_gtk_doc_html+set}" = set; then :
19695   enableval=$enable_gtk_doc_html;
19696 else
19697   enable_gtk_doc_html=yes
19698 fi
19699
19700     # Check whether --enable-gtk-doc-pdf was given.
19701 if test "${enable_gtk_doc_pdf+set}" = set; then :
19702   enableval=$enable_gtk_doc_pdf;
19703 else
19704   enable_gtk_doc_pdf=no
19705 fi
19706
19707
19708   if test -z "$GTKDOC_MKPDF"; then
19709     enable_gtk_doc_pdf=no
19710   fi
19711
19712   if test -z "$AM_DEFAULT_VERBOSITY"; then
19713     AM_DEFAULT_VERBOSITY=1
19714   fi
19715
19716
19717    if test x$have_gtk_doc = xyes; then
19718   HAVE_GTK_DOC_TRUE=
19719   HAVE_GTK_DOC_FALSE='#'
19720 else
19721   HAVE_GTK_DOC_TRUE='#'
19722   HAVE_GTK_DOC_FALSE=
19723 fi
19724
19725    if test x$enable_gtk_doc = xyes; then
19726   ENABLE_GTK_DOC_TRUE=
19727   ENABLE_GTK_DOC_FALSE='#'
19728 else
19729   ENABLE_GTK_DOC_TRUE='#'
19730   ENABLE_GTK_DOC_FALSE=
19731 fi
19732
19733    if test x$enable_gtk_doc_html = xyes; then
19734   GTK_DOC_BUILD_HTML_TRUE=
19735   GTK_DOC_BUILD_HTML_FALSE='#'
19736 else
19737   GTK_DOC_BUILD_HTML_TRUE='#'
19738   GTK_DOC_BUILD_HTML_FALSE=
19739 fi
19740
19741    if test x$enable_gtk_doc_pdf = xyes; then
19742   GTK_DOC_BUILD_PDF_TRUE=
19743   GTK_DOC_BUILD_PDF_FALSE='#'
19744 else
19745   GTK_DOC_BUILD_PDF_TRUE='#'
19746   GTK_DOC_BUILD_PDF_FALSE=
19747 fi
19748
19749    if test -n "$LIBTOOL"; then
19750   GTK_DOC_USE_LIBTOOL_TRUE=
19751   GTK_DOC_USE_LIBTOOL_FALSE='#'
19752 else
19753   GTK_DOC_USE_LIBTOOL_TRUE='#'
19754   GTK_DOC_USE_LIBTOOL_FALSE=
19755 fi
19756
19757    if test -n "$GTKDOC_REBASE"; then
19758   GTK_DOC_USE_REBASE_TRUE=
19759   GTK_DOC_USE_REBASE_FALSE='#'
19760 else
19761   GTK_DOC_USE_REBASE_TRUE='#'
19762   GTK_DOC_USE_REBASE_FALSE=
19763 fi
19764
19765
19766         if test "x$enable_gtk_doc" = xyes; then
19767                 have_gtk_doc=true
19768         fi
19769
19770
19771 # Functions and headers
19772 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale uselocale sincosf
19773 do :
19774   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19777   cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19779 _ACEOF
19780
19781 fi
19782 done
19783
19784 for ac_header in unistd.h sys/mman.h stdbool.h xlocale.h
19785 do :
19786   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19787 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19789   cat >>confdefs.h <<_ACEOF
19790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19791 _ACEOF
19792
19793 fi
19794
19795 done
19796
19797
19798 # Compiler flags
19799
19800 # The cast to long int works around a bug in the HP C Compiler,
19801 # see AC_CHECK_SIZEOF for more information.
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19803 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19804 if ${ac_cv_alignof_struct_char__+:} false; then :
19805   $as_echo_n "(cached) " >&6
19806 else
19807   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
19808 #ifndef offsetof
19809 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19810 #endif
19811 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19812
19813 else
19814   if test "$ac_cv_type_struct_char__" = yes; then
19815      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19817 as_fn_error 77 "cannot compute alignment of struct{char;}
19818 See \`config.log' for more details" "$LINENO" 5; }
19819    else
19820      ac_cv_alignof_struct_char__=0
19821    fi
19822 fi
19823
19824 fi
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19826 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19827
19828
19829
19830 cat >>confdefs.h <<_ACEOF
19831 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19832 _ACEOF
19833
19834
19835 if test "x$GCC" = "xyes"; then
19836
19837         # Make symbols link locally
19838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19839 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19840 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19841   $as_echo_n "(cached) " >&6
19842 else
19843
19844   ax_check_save_flags=$LDFLAGS
19845   LDFLAGS="$LDFLAGS  -Bsymbolic-functions"
19846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h.  */
19848
19849 int
19850 main ()
19851 {
19852
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 if ac_fn_c_try_link "$LINENO"; then :
19858   ax_cv_check_ldflags___Bsymbolic_functions=yes
19859 else
19860   ax_cv_check_ldflags___Bsymbolic_functions=no
19861 fi
19862 rm -f core conftest.err conftest.$ac_objext \
19863     conftest$ac_exeext conftest.$ac_ext
19864   LDFLAGS=$ax_check_save_flags
19865 fi
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19867 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19868 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19869   LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19870 else
19871   :
19872 fi
19873
19874
19875         # Make it possible to not link to libstdc++
19876         # No threadsafe statics in C++ as we do it ourselves.
19877         # We don't use these features, so it's safe to disable them
19878         # even in the cases where we DO link to libstdc++.
19879         # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19880         # by overriding CXXFLAGS.
19881         CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19882
19883         case "$host" in
19884                 *-*-mingw*)
19885                 ;;
19886                 *)
19887                         # Hide inline methods
19888                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19889                 ;;
19890         esac
19891
19892         case "$host" in
19893                 arm-*-*)
19894                         if test "x$ac_cv_alignof_struct_char__" != x1; then
19895                                 # Request byte alignment
19896                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19897                         fi
19898                 ;;
19899         esac
19900 fi
19901
19902  if test "x$GCC" = "xyes"; then
19903   HAVE_GCC_TRUE=
19904   HAVE_GCC_FALSE='#'
19905 else
19906   HAVE_GCC_TRUE='#'
19907   HAVE_GCC_FALSE=
19908 fi
19909
19910
19911 hb_os_win32=no
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19913 $as_echo_n "checking for native Win32... " >&6; }
19914 case "$host" in
19915   *-*-mingw*)
19916     hb_os_win32=yes
19917     ;;
19918 esac
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19920 $as_echo "$hb_os_win32" >&6; }
19921  if test "$hb_os_win32" = "yes"; then
19922   OS_WIN32_TRUE=
19923   OS_WIN32_FALSE='#'
19924 else
19925   OS_WIN32_TRUE='#'
19926   OS_WIN32_FALSE=
19927 fi
19928
19929
19930 have_pthread=false
19931
19932
19933
19934
19935 ac_ext=c
19936 ac_cpp='$CPP $CPPFLAGS'
19937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19940
19941 ax_pthread_ok=no
19942
19943 # We used to check for pthread.h first, but this fails if pthread.h
19944 # requires special compiler flags (e.g. on Tru64 or Sequent).
19945 # It gets checked for in the link test anyway.
19946
19947 # First of all, check if the user has set any of the PTHREAD_LIBS,
19948 # etcetera environment variables, and if threads linking works using
19949 # them:
19950 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19951         ax_pthread_save_CC="$CC"
19952         ax_pthread_save_CFLAGS="$CFLAGS"
19953         ax_pthread_save_LIBS="$LIBS"
19954         if test "x$PTHREAD_CC" != "x"; then :
19955   CC="$PTHREAD_CC"
19956 fi
19957         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19958         LIBS="$PTHREAD_LIBS $LIBS"
19959         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19960 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19961         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h.  */
19963
19964 /* Override any GCC internal prototype to avoid an error.
19965    Use char because int might match the return type of a GCC
19966    builtin and then its argument prototype would still apply.  */
19967 #ifdef __cplusplus
19968 extern "C"
19969 #endif
19970 char pthread_join ();
19971 int
19972 main ()
19973 {
19974 return pthread_join ();
19975   ;
19976   return 0;
19977 }
19978 _ACEOF
19979 if ac_fn_c_try_link "$LINENO"; then :
19980   ax_pthread_ok=yes
19981 fi
19982 rm -f core conftest.err conftest.$ac_objext \
19983     conftest$ac_exeext conftest.$ac_ext
19984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19985 $as_echo "$ax_pthread_ok" >&6; }
19986         if test "x$ax_pthread_ok" = "xno"; then
19987                 PTHREAD_LIBS=""
19988                 PTHREAD_CFLAGS=""
19989         fi
19990         CC="$ax_pthread_save_CC"
19991         CFLAGS="$ax_pthread_save_CFLAGS"
19992         LIBS="$ax_pthread_save_LIBS"
19993 fi
19994
19995 # We must check for the threads library under a number of different
19996 # names; the ordering is very important because some systems
19997 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19998 # libraries is broken (non-POSIX).
19999
20000 # Create a list of thread flags to try.  Items starting with a "-" are
20001 # C compiler flags, and other items are library names, except for "none"
20002 # which indicates that we try without any flags at all, and "pthread-config"
20003 # which is a program returning the flags for the Pth emulation library.
20004
20005 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20006
20007 # The ordering *is* (sometimes) important.  Some notes on the
20008 # individual items follow:
20009
20010 # pthreads: AIX (must check this before -lpthread)
20011 # none: in case threads are in libc; should be tried before -Kthread and
20012 #       other compiler flags to prevent continual compiler warnings
20013 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20014 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20015 #           (Note: HP C rejects this with "bad form for `-t' option")
20016 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20017 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20018 #      doesn't hurt to check since this sometimes defines pthreads and
20019 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
20020 #      is present but should not be used directly; and before -mthreads,
20021 #      because the compiler interprets this as "-mt" + "-hreads")
20022 # -mthreads: Mingw32/gcc, Lynx/gcc
20023 # pthread: Linux, etcetera
20024 # --thread-safe: KAI C++
20025 # pthread-config: use pthread-config program (for GNU Pth library)
20026
20027 case $host_os in
20028
20029         freebsd*)
20030
20031         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20032         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20033
20034         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20035         ;;
20036
20037         hpux*)
20038
20039         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20040         # multi-threading and also sets -lpthread."
20041
20042         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20043         ;;
20044
20045         openedition*)
20046
20047         # IBM z/OS requires a feature-test macro to be defined in order to
20048         # enable POSIX threads at all, so give the user a hint if this is
20049         # not set. (We don't define these ourselves, as they can affect
20050         # other portions of the system API in unpredictable ways.)
20051
20052         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h.  */
20054
20055 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20056              AX_PTHREAD_ZOS_MISSING
20057 #            endif
20058
20059 _ACEOF
20060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20061   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20062   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20063 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20064 fi
20065 rm -f conftest*
20066
20067         ;;
20068
20069         solaris*)
20070
20071         # On Solaris (at least, for some versions), libc contains stubbed
20072         # (non-functional) versions of the pthreads routines, so link-based
20073         # tests will erroneously succeed. (N.B.: The stubs are missing
20074         # pthread_cleanup_push, or rather a function called by this macro,
20075         # so we could check for that, but who knows whether they'll stub
20076         # that too in a future libc.)  So we'll check first for the
20077         # standard Solaris way of linking pthreads (-mt -lpthread).
20078
20079         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20080         ;;
20081 esac
20082
20083 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20084
20085 if test "x$GCC" = "xyes"; then :
20086   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20087 fi
20088
20089 # The presence of a feature test macro requesting re-entrant function
20090 # definitions is, on some systems, a strong hint that pthreads support is
20091 # correctly enabled
20092
20093 case $host_os in
20094         darwin* | hpux* | linux* | osf* | solaris*)
20095         ax_pthread_check_macro="_REENTRANT"
20096         ;;
20097
20098         aix*)
20099         ax_pthread_check_macro="_THREAD_SAFE"
20100         ;;
20101
20102         *)
20103         ax_pthread_check_macro="--"
20104         ;;
20105 esac
20106 if test "x$ax_pthread_check_macro" = "x--"; then :
20107   ax_pthread_check_cond=0
20108 else
20109   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20110 fi
20111
20112 # Are we compiling with Clang?
20113
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20115 $as_echo_n "checking whether $CC is Clang... " >&6; }
20116 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20117   $as_echo_n "(cached) " >&6
20118 else
20119   ax_cv_PTHREAD_CLANG=no
20120      # Note that Autoconf sets GCC=yes for Clang as well as GCC
20121      if test "x$GCC" = "xyes"; then
20122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h.  */
20124 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20125 #            if defined(__clang__) && defined(__llvm__)
20126              AX_PTHREAD_CC_IS_CLANG
20127 #            endif
20128
20129 _ACEOF
20130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20131   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20132   ax_cv_PTHREAD_CLANG=yes
20133 fi
20134 rm -f conftest*
20135
20136      fi
20137
20138 fi
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20140 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20141 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20142
20143 ax_pthread_clang_warning=no
20144
20145 # Clang needs special handling, because older versions handle the -pthread
20146 # option in a rather... idiosyncratic way
20147
20148 if test "x$ax_pthread_clang" = "xyes"; then
20149
20150         # Clang takes -pthread; it has never supported any other flag
20151
20152         # (Note 1: This will need to be revisited if a system that Clang
20153         # supports has POSIX threads in a separate library.  This tends not
20154         # to be the way of modern systems, but it's conceivable.)
20155
20156         # (Note 2: On some systems, notably Darwin, -pthread is not needed
20157         # to get POSIX threads support; the API is always present and
20158         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
20159         # -pthread does define _REENTRANT, and while the Darwin headers
20160         # ignore this macro, third-party headers might not.)
20161
20162         PTHREAD_CFLAGS="-pthread"
20163         PTHREAD_LIBS=
20164
20165         ax_pthread_ok=yes
20166
20167         # However, older versions of Clang make a point of warning the user
20168         # that, in an invocation where only linking and no compilation is
20169         # taking place, the -pthread option has no effect ("argument unused
20170         # during compilation").  They expect -pthread to be passed in only
20171         # when source code is being compiled.
20172         #
20173         # Problem is, this is at odds with the way Automake and most other
20174         # C build frameworks function, which is that the same flags used in
20175         # compilation (CFLAGS) are also used in linking.  Many systems
20176         # supported by AX_PTHREAD require exactly this for POSIX threads
20177         # support, and in fact it is often not straightforward to specify a
20178         # flag that is used only in the compilation phase and not in
20179         # linking.  Such a scenario is extremely rare in practice.
20180         #
20181         # Even though use of the -pthread flag in linking would only print
20182         # a warning, this can be a nuisance for well-run software projects
20183         # that build with -Werror.  So if the active version of Clang has
20184         # this misfeature, we search for an option to squash it.
20185
20186         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20187 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20188 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20189   $as_echo_n "(cached) " >&6
20190 else
20191   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20192              # Create an alternate version of $ac_link that compiles and
20193              # links in two steps (.c -> .o, .o -> exe) instead of one
20194              # (.c -> exe), because the warning occurs only in the second
20195              # step
20196              ax_pthread_save_ac_link="$ac_link"
20197              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20198              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20199              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20200              ax_pthread_save_CFLAGS="$CFLAGS"
20201              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20202                 if test "x$ax_pthread_try" = "xunknown"; then :
20203   break
20204 fi
20205                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20206                 ac_link="$ax_pthread_save_ac_link"
20207                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h.  */
20209 int main(void){return 0;}
20210 _ACEOF
20211 if ac_fn_c_try_link "$LINENO"; then :
20212   ac_link="$ax_pthread_2step_ac_link"
20213                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h.  */
20215 int main(void){return 0;}
20216 _ACEOF
20217 if ac_fn_c_try_link "$LINENO"; then :
20218   break
20219 fi
20220 rm -f core conftest.err conftest.$ac_objext \
20221     conftest$ac_exeext conftest.$ac_ext
20222
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext \
20225     conftest$ac_exeext conftest.$ac_ext
20226              done
20227              ac_link="$ax_pthread_save_ac_link"
20228              CFLAGS="$ax_pthread_save_CFLAGS"
20229              if test "x$ax_pthread_try" = "x"; then :
20230   ax_pthread_try=no
20231 fi
20232              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20233
20234 fi
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20236 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20237
20238         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20239                 no | unknown) ;;
20240                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20241         esac
20242
20243 fi # $ax_pthread_clang = yes
20244
20245 if test "x$ax_pthread_ok" = "xno"; then
20246 for ax_pthread_try_flag in $ax_pthread_flags; do
20247
20248         case $ax_pthread_try_flag in
20249                 none)
20250                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20251 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20252                 ;;
20253
20254                 -mt,pthread)
20255                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20256 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20257                 PTHREAD_CFLAGS="-mt"
20258                 PTHREAD_LIBS="-lpthread"
20259                 ;;
20260
20261                 -*)
20262                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20263 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20264                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20265                 ;;
20266
20267                 pthread-config)
20268                 # Extract the first word of "pthread-config", so it can be a program name with args.
20269 set dummy pthread-config; ac_word=$2
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20271 $as_echo_n "checking for $ac_word... " >&6; }
20272 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20273   $as_echo_n "(cached) " >&6
20274 else
20275   if test -n "$ax_pthread_config"; then
20276   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20277 else
20278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20279 for as_dir in $PATH
20280 do
20281   IFS=$as_save_IFS
20282   test -z "$as_dir" && as_dir=.
20283     for ac_exec_ext in '' $ac_executable_extensions; do
20284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20285     ac_cv_prog_ax_pthread_config="yes"
20286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20287     break 2
20288   fi
20289 done
20290   done
20291 IFS=$as_save_IFS
20292
20293   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20294 fi
20295 fi
20296 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20297 if test -n "$ax_pthread_config"; then
20298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20299 $as_echo "$ax_pthread_config" >&6; }
20300 else
20301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302 $as_echo "no" >&6; }
20303 fi
20304
20305
20306                 if test "x$ax_pthread_config" = "xno"; then :
20307   continue
20308 fi
20309                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20310                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20311                 ;;
20312
20313                 *)
20314                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20315 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20316                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20317                 ;;
20318         esac
20319
20320         ax_pthread_save_CFLAGS="$CFLAGS"
20321         ax_pthread_save_LIBS="$LIBS"
20322         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20323         LIBS="$PTHREAD_LIBS $LIBS"
20324
20325         # Check for various functions.  We must include pthread.h,
20326         # since some functions may be macros.  (On the Sequent, we
20327         # need a special flag -Kthread to make this header compile.)
20328         # We check for pthread_join because it is in -lpthread on IRIX
20329         # while pthread_create is in libc.  We check for pthread_attr_init
20330         # due to DEC craziness with -lpthreads.  We check for
20331         # pthread_cleanup_push because it is one of the few pthread
20332         # functions on Solaris that doesn't have a non-functional libc stub.
20333         # We try pthread_create on general principles.
20334
20335         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h.  */
20337 #include <pthread.h>
20338 #                       if $ax_pthread_check_cond
20339 #                        error "$ax_pthread_check_macro must be defined"
20340 #                       endif
20341                         static void routine(void *a) { a = 0; }
20342                         static void *start_routine(void *a) { return a; }
20343 int
20344 main ()
20345 {
20346 pthread_t th; pthread_attr_t attr;
20347                         pthread_create(&th, 0, start_routine, 0);
20348                         pthread_join(th, 0);
20349                         pthread_attr_init(&attr);
20350                         pthread_cleanup_push(routine, 0);
20351                         pthread_cleanup_pop(0) /* ; */
20352   ;
20353   return 0;
20354 }
20355 _ACEOF
20356 if ac_fn_c_try_link "$LINENO"; then :
20357   ax_pthread_ok=yes
20358 fi
20359 rm -f core conftest.err conftest.$ac_objext \
20360     conftest$ac_exeext conftest.$ac_ext
20361
20362         CFLAGS="$ax_pthread_save_CFLAGS"
20363         LIBS="$ax_pthread_save_LIBS"
20364
20365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20366 $as_echo "$ax_pthread_ok" >&6; }
20367         if test "x$ax_pthread_ok" = "xyes"; then :
20368   break
20369 fi
20370
20371         PTHREAD_LIBS=""
20372         PTHREAD_CFLAGS=""
20373 done
20374 fi
20375
20376 # Various other checks:
20377 if test "x$ax_pthread_ok" = "xyes"; then
20378         ax_pthread_save_CFLAGS="$CFLAGS"
20379         ax_pthread_save_LIBS="$LIBS"
20380         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20381         LIBS="$PTHREAD_LIBS $LIBS"
20382
20383         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20385 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20386 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20387   $as_echo_n "(cached) " >&6
20388 else
20389   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20390              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20391                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h.  */
20393 #include <pthread.h>
20394 int
20395 main ()
20396 {
20397 int attr = $ax_pthread_attr; return attr /* ; */
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 if ac_fn_c_try_link "$LINENO"; then :
20403   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20404 fi
20405 rm -f core conftest.err conftest.$ac_objext \
20406     conftest$ac_exeext conftest.$ac_ext
20407              done
20408
20409 fi
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20411 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20412         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20413                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20414                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20415
20416 cat >>confdefs.h <<_ACEOF
20417 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20418 _ACEOF
20419
20420                ax_pthread_joinable_attr_defined=yes
20421
20422 fi
20423
20424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20425 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20426 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20427   $as_echo_n "(cached) " >&6
20428 else
20429   ax_cv_PTHREAD_SPECIAL_FLAGS=no
20430              case $host_os in
20431              solaris*)
20432              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20433              ;;
20434              esac
20435
20436 fi
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20438 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20439         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20440                test "x$ax_pthread_special_flags_added" != "xyes"; then :
20441   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20442                ax_pthread_special_flags_added=yes
20443 fi
20444
20445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20446 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20447 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20448   $as_echo_n "(cached) " >&6
20449 else
20450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h.  */
20452 #include <pthread.h>
20453 int
20454 main ()
20455 {
20456 int i = PTHREAD_PRIO_INHERIT;
20457   ;
20458   return 0;
20459 }
20460 _ACEOF
20461 if ac_fn_c_try_link "$LINENO"; then :
20462   ax_cv_PTHREAD_PRIO_INHERIT=yes
20463 else
20464   ax_cv_PTHREAD_PRIO_INHERIT=no
20465 fi
20466 rm -f core conftest.err conftest.$ac_objext \
20467     conftest$ac_exeext conftest.$ac_ext
20468
20469 fi
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20471 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20472         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20473                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20474
20475 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20476
20477                ax_pthread_prio_inherit_defined=yes
20478
20479 fi
20480
20481         CFLAGS="$ax_pthread_save_CFLAGS"
20482         LIBS="$ax_pthread_save_LIBS"
20483
20484         # More AIX lossage: compile with *_r variant
20485         if test "x$GCC" != "xyes"; then
20486             case $host_os in
20487                 aix*)
20488                 case "x/$CC" in #(
20489   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20490     #handle absolute path differently from PATH based program lookup
20491                      case "x$CC" in #(
20492   x/*) :
20493     if as_fn_executable_p ${CC}_r; then :
20494   PTHREAD_CC="${CC}_r"
20495 fi ;; #(
20496   *) :
20497     for ac_prog in ${CC}_r
20498 do
20499   # Extract the first word of "$ac_prog", so it can be a program name with args.
20500 set dummy $ac_prog; ac_word=$2
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20502 $as_echo_n "checking for $ac_word... " >&6; }
20503 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20504   $as_echo_n "(cached) " >&6
20505 else
20506   if test -n "$PTHREAD_CC"; then
20507   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20508 else
20509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20511 do
20512   IFS=$as_save_IFS
20513   test -z "$as_dir" && as_dir=.
20514     for ac_exec_ext in '' $ac_executable_extensions; do
20515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20516     ac_cv_prog_PTHREAD_CC="$ac_prog"
20517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20518     break 2
20519   fi
20520 done
20521   done
20522 IFS=$as_save_IFS
20523
20524 fi
20525 fi
20526 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20527 if test -n "$PTHREAD_CC"; then
20528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20529 $as_echo "$PTHREAD_CC" >&6; }
20530 else
20531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20532 $as_echo "no" >&6; }
20533 fi
20534
20535
20536   test -n "$PTHREAD_CC" && break
20537 done
20538 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20539  ;;
20540 esac ;; #(
20541   *) :
20542      ;;
20543 esac
20544                 ;;
20545             esac
20546         fi
20547 fi
20548
20549 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20550
20551
20552
20553
20554
20555 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20556 if test "x$ax_pthread_ok" = "xyes"; then
20557         have_pthread=true
20558         :
20559 else
20560         ax_pthread_ok=no
20561
20562 fi
20563 ac_ext=c
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
20569
20570 if $have_pthread; then
20571
20572 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20573
20574 fi
20575  if $have_pthread; then
20576   HAVE_PTHREAD_TRUE=
20577   HAVE_PTHREAD_FALSE='#'
20578 else
20579   HAVE_PTHREAD_TRUE='#'
20580   HAVE_PTHREAD_FALSE=
20581 fi
20582
20583
20584
20585
20586 # Check whether --with-glib was given.
20587 if test "${with_glib+set}" = set; then :
20588   withval=$with_glib;
20589 else
20590   with_glib=auto
20591 fi
20592
20593 have_glib=false
20594 GLIB_DEPS="glib-2.0 >= 2.19.1"
20595
20596 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20597
20598 pkg_failed=no
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20600 $as_echo_n "checking for GLIB... " >&6; }
20601
20602 if test -n "$GLIB_CFLAGS"; then
20603     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20604  elif test -n "$PKG_CONFIG"; then
20605     if test -n "$PKG_CONFIG" && \
20606     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20607   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20608   ac_status=$?
20609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20610   test $ac_status = 0; }; then
20611   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20612                       test "x$?" != "x0" && pkg_failed=yes
20613 else
20614   pkg_failed=yes
20615 fi
20616  else
20617     pkg_failed=untried
20618 fi
20619 if test -n "$GLIB_LIBS"; then
20620     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20621  elif test -n "$PKG_CONFIG"; then
20622     if test -n "$PKG_CONFIG" && \
20623     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20624   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20625   ac_status=$?
20626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20627   test $ac_status = 0; }; then
20628   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20629                       test "x$?" != "x0" && pkg_failed=yes
20630 else
20631   pkg_failed=yes
20632 fi
20633  else
20634     pkg_failed=untried
20635 fi
20636
20637
20638
20639 if test $pkg_failed = yes; then
20640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20641 $as_echo "no" >&6; }
20642
20643 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20644         _pkg_short_errors_supported=yes
20645 else
20646         _pkg_short_errors_supported=no
20647 fi
20648         if test $_pkg_short_errors_supported = yes; then
20649                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20650         else
20651                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20652         fi
20653         # Put the nasty error message in config.log where it belongs
20654         echo "$GLIB_PKG_ERRORS" >&5
20655
20656         :
20657 elif test $pkg_failed = untried; then
20658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20659 $as_echo "no" >&6; }
20660         :
20661 else
20662         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20663         GLIB_LIBS=$pkg_cv_GLIB_LIBS
20664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20665 $as_echo "yes" >&6; }
20666         have_glib=true
20667 fi
20668 fi
20669 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20670         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20671 fi
20672 if $have_glib; then
20673
20674 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20675
20676 fi
20677  if $have_glib; then
20678   HAVE_GLIB_TRUE=
20679   HAVE_GLIB_FALSE='#'
20680 else
20681   HAVE_GLIB_TRUE='#'
20682   HAVE_GLIB_FALSE=
20683 fi
20684
20685
20686
20687
20688 # Check whether --with-gobject was given.
20689 if test "${with_gobject+set}" = set; then :
20690   withval=$with_gobject;
20691 else
20692   with_gobject=no
20693 fi
20694
20695 have_gobject=false
20696 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20697
20698 pkg_failed=no
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20700 $as_echo_n "checking for GOBJECT... " >&6; }
20701
20702 if test -n "$GOBJECT_CFLAGS"; then
20703     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20704  elif test -n "$PKG_CONFIG"; then
20705     if test -n "$PKG_CONFIG" && \
20706     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20707   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20708   ac_status=$?
20709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710   test $ac_status = 0; }; then
20711   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20712                       test "x$?" != "x0" && pkg_failed=yes
20713 else
20714   pkg_failed=yes
20715 fi
20716  else
20717     pkg_failed=untried
20718 fi
20719 if test -n "$GOBJECT_LIBS"; then
20720     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20721  elif test -n "$PKG_CONFIG"; then
20722     if test -n "$PKG_CONFIG" && \
20723     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20724   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20725   ac_status=$?
20726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20727   test $ac_status = 0; }; then
20728   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20729                       test "x$?" != "x0" && pkg_failed=yes
20730 else
20731   pkg_failed=yes
20732 fi
20733  else
20734     pkg_failed=untried
20735 fi
20736
20737
20738
20739 if test $pkg_failed = yes; then
20740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20741 $as_echo "no" >&6; }
20742
20743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20744         _pkg_short_errors_supported=yes
20745 else
20746         _pkg_short_errors_supported=no
20747 fi
20748         if test $_pkg_short_errors_supported = yes; then
20749                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20750         else
20751                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20752         fi
20753         # Put the nasty error message in config.log where it belongs
20754         echo "$GOBJECT_PKG_ERRORS" >&5
20755
20756         :
20757 elif test $pkg_failed = untried; then
20758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20759 $as_echo "no" >&6; }
20760         :
20761 else
20762         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20763         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20765 $as_echo "yes" >&6; }
20766         have_gobject=true
20767 fi
20768 fi
20769 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20770         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20771 fi
20772 if $have_gobject; then
20773
20774 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20775
20776         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20777
20778 fi
20779  if $have_gobject; then
20780   HAVE_GOBJECT_TRUE=
20781   HAVE_GOBJECT_FALSE='#'
20782 else
20783   HAVE_GOBJECT_TRUE='#'
20784   HAVE_GOBJECT_FALSE=
20785 fi
20786
20787
20788
20789
20790
20791 # Gobject-Introspection
20792 have_introspection=false
20793
20794         if $have_gobject; then
20795
20796
20797
20798                 # Check whether --enable-introspection was given.
20799 if test "${enable_introspection+set}" = set; then :
20800   enableval=$enable_introspection;
20801 else
20802   enable_introspection=auto
20803 fi
20804
20805
20806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20807 $as_echo_n "checking for gobject-introspection... " >&6; }
20808
20809         case $enable_introspection in #(
20810   no) :
20811             found_introspection="no (disabled, use --enable-introspection to enable)"
20812      ;; #(
20813       yes) :
20814             if test -n "$PKG_CONFIG" && \
20815     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20816   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20817   ac_status=$?
20818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20819   test $ac_status = 0; }; then
20820   :
20821 else
20822   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20823 fi
20824         if test -n "$PKG_CONFIG" && \
20825     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20826   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20827   ac_status=$?
20828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20829   test $ac_status = 0; }; then
20830   found_introspection=yes
20831 else
20832   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20833 fi
20834      ;; #(
20835       auto) :
20836             if test -n "$PKG_CONFIG" && \
20837     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20838   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20839   ac_status=$?
20840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20841   test $ac_status = 0; }; then
20842   found_introspection=yes
20843 else
20844   found_introspection=no
20845 fi
20846                 enable_introspection=$found_introspection
20847      ;; #(
20848   *) :
20849                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20850      ;;
20851 esac
20852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20853 $as_echo "$found_introspection" >&6; }
20854
20855
20856   EXP_VAR=_GI_EXP_DATADIR
20857   FROM_VAR="$datadir"
20858
20859     prefix_save=$prefix
20860   exec_prefix_save=$exec_prefix
20861
20862     if test "x$prefix" = "xNONE"; then
20863     prefix="$ac_default_prefix"
20864   fi
20865     if test "x$exec_prefix" = "xNONE"; then
20866     exec_prefix=$prefix
20867   fi
20868
20869   full_var="$FROM_VAR"
20870     while true; do
20871     new_full_var="`eval echo $full_var`"
20872     if test "x$new_full_var" = "x$full_var"; then break; fi
20873     full_var=$new_full_var
20874   done
20875
20876     full_var=$new_full_var
20877   _GI_EXP_DATADIR="$full_var"
20878
20879
20880     prefix=$prefix_save
20881   exec_prefix=$exec_prefix_save
20882
20883
20884   EXP_VAR=_GI_EXP_LIBDIR
20885   FROM_VAR="$libdir"
20886
20887     prefix_save=$prefix
20888   exec_prefix_save=$exec_prefix
20889
20890     if test "x$prefix" = "xNONE"; then
20891     prefix="$ac_default_prefix"
20892   fi
20893     if test "x$exec_prefix" = "xNONE"; then
20894     exec_prefix=$prefix
20895   fi
20896
20897   full_var="$FROM_VAR"
20898     while true; do
20899     new_full_var="`eval echo $full_var`"
20900     if test "x$new_full_var" = "x$full_var"; then break; fi
20901     full_var=$new_full_var
20902   done
20903
20904     full_var=$new_full_var
20905   _GI_EXP_LIBDIR="$full_var"
20906
20907
20908     prefix=$prefix_save
20909   exec_prefix=$exec_prefix_save
20910
20911
20912     INTROSPECTION_SCANNER=
20913     INTROSPECTION_COMPILER=
20914     INTROSPECTION_GENERATE=
20915     INTROSPECTION_GIRDIR=
20916     INTROSPECTION_TYPELIBDIR=
20917     if test "x$found_introspection" = "xyes"; then
20918        INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20919        INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20920        INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20921        INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
20922        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
20923        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20924        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20925        INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20926     fi
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936      if test "x$found_introspection" = "xyes"; then
20937   HAVE_INTROSPECTION_TRUE=
20938   HAVE_INTROSPECTION_FALSE='#'
20939 else
20940   HAVE_INTROSPECTION_TRUE='#'
20941   HAVE_INTROSPECTION_FALSE=
20942 fi
20943
20944
20945
20946                 if test "x$found_introspection" = xyes; then
20947                         have_introspection=true
20948                 fi
20949         else
20950                  if false; then
20951   HAVE_INTROSPECTION_TRUE=
20952   HAVE_INTROSPECTION_FALSE='#'
20953 else
20954   HAVE_INTROSPECTION_TRUE='#'
20955   HAVE_INTROSPECTION_FALSE=
20956 fi
20957
20958         fi
20959
20960
20961
20962
20963 # Check whether --with-cairo was given.
20964 if test "${with_cairo+set}" = set; then :
20965   withval=$with_cairo;
20966 else
20967   with_cairo=auto
20968 fi
20969
20970 have_cairo=false
20971 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20972
20973 pkg_failed=no
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20975 $as_echo_n "checking for CAIRO... " >&6; }
20976
20977 if test -n "$CAIRO_CFLAGS"; then
20978     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20979  elif test -n "$PKG_CONFIG"; then
20980     if test -n "$PKG_CONFIG" && \
20981     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20982   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20983   ac_status=$?
20984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20985   test $ac_status = 0; }; then
20986   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20987                       test "x$?" != "x0" && pkg_failed=yes
20988 else
20989   pkg_failed=yes
20990 fi
20991  else
20992     pkg_failed=untried
20993 fi
20994 if test -n "$CAIRO_LIBS"; then
20995     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20996  elif test -n "$PKG_CONFIG"; then
20997     if test -n "$PKG_CONFIG" && \
20998     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20999   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
21000   ac_status=$?
21001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002   test $ac_status = 0; }; then
21003   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
21004                       test "x$?" != "x0" && pkg_failed=yes
21005 else
21006   pkg_failed=yes
21007 fi
21008  else
21009     pkg_failed=untried
21010 fi
21011
21012
21013
21014 if test $pkg_failed = yes; then
21015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21016 $as_echo "no" >&6; }
21017
21018 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21019         _pkg_short_errors_supported=yes
21020 else
21021         _pkg_short_errors_supported=no
21022 fi
21023         if test $_pkg_short_errors_supported = yes; then
21024                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21025         else
21026                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21027         fi
21028         # Put the nasty error message in config.log where it belongs
21029         echo "$CAIRO_PKG_ERRORS" >&5
21030
21031         :
21032 elif test $pkg_failed = untried; then
21033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21034 $as_echo "no" >&6; }
21035         :
21036 else
21037         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
21038         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
21039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21040 $as_echo "yes" >&6; }
21041         have_cairo=true
21042 fi
21043         save_libs=$LIBS
21044         LIBS="$LIBS $CAIRO_LIBS"
21045         for ac_func in cairo_user_font_face_set_render_color_glyph_func
21046 do :
21047   ac_fn_c_check_func "$LINENO" "cairo_user_font_face_set_render_color_glyph_func" "ac_cv_func_cairo_user_font_face_set_render_color_glyph_func"
21048 if test "x$ac_cv_func_cairo_user_font_face_set_render_color_glyph_func" = xyes; then :
21049   cat >>confdefs.h <<_ACEOF
21050 #define HAVE_CAIRO_USER_FONT_FACE_SET_RENDER_COLOR_GLYPH_FUNC 1
21051 _ACEOF
21052
21053 fi
21054 done
21055
21056         LIBS=$save_libs
21057 fi
21058 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
21059         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
21060 fi
21061 if $have_cairo; then
21062
21063 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
21064
21065 fi
21066  if $have_cairo; then
21067   HAVE_CAIRO_TRUE=
21068   HAVE_CAIRO_FALSE='#'
21069 else
21070   HAVE_CAIRO_TRUE='#'
21071   HAVE_CAIRO_FALSE=
21072 fi
21073
21074
21075 have_cairo_ft=false
21076 if $have_cairo; then
21077
21078 pkg_failed=no
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
21080 $as_echo_n "checking for CAIRO_FT... " >&6; }
21081
21082 if test -n "$CAIRO_FT_CFLAGS"; then
21083     pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
21084  elif test -n "$PKG_CONFIG"; then
21085     if test -n "$PKG_CONFIG" && \
21086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21087   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21088   ac_status=$?
21089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21090   test $ac_status = 0; }; then
21091   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
21092                       test "x$?" != "x0" && pkg_failed=yes
21093 else
21094   pkg_failed=yes
21095 fi
21096  else
21097     pkg_failed=untried
21098 fi
21099 if test -n "$CAIRO_FT_LIBS"; then
21100     pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
21101  elif test -n "$PKG_CONFIG"; then
21102     if test -n "$PKG_CONFIG" && \
21103     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21104   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21105   ac_status=$?
21106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21107   test $ac_status = 0; }; then
21108   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
21109                       test "x$?" != "x0" && pkg_failed=yes
21110 else
21111   pkg_failed=yes
21112 fi
21113  else
21114     pkg_failed=untried
21115 fi
21116
21117
21118
21119 if test $pkg_failed = yes; then
21120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21121 $as_echo "no" >&6; }
21122
21123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21124         _pkg_short_errors_supported=yes
21125 else
21126         _pkg_short_errors_supported=no
21127 fi
21128         if test $_pkg_short_errors_supported = yes; then
21129                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21130         else
21131                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21132         fi
21133         # Put the nasty error message in config.log where it belongs
21134         echo "$CAIRO_FT_PKG_ERRORS" >&5
21135
21136         :
21137 elif test $pkg_failed = untried; then
21138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21139 $as_echo "no" >&6; }
21140         :
21141 else
21142         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21143         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21144         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21145 $as_echo "yes" >&6; }
21146         have_cairo_ft=true
21147 fi
21148 fi
21149 if $have_cairo_ft; then
21150
21151 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21152
21153 fi
21154  if $have_cairo_ft; then
21155   HAVE_CAIRO_FT_TRUE=
21156   HAVE_CAIRO_FT_FALSE='#'
21157 else
21158   HAVE_CAIRO_FT_TRUE='#'
21159   HAVE_CAIRO_FT_FALSE=
21160 fi
21161
21162
21163
21164
21165 # Check whether --with-chafa was given.
21166 if test "${with_chafa+set}" = set; then :
21167   withval=$with_chafa;
21168 else
21169   with_chafa=auto
21170 fi
21171
21172 have_chafa=false
21173 if test "x$with_chafa" = "xyes" -o "x$with_chafa" = "xauto"; then
21174
21175 pkg_failed=no
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAFA" >&5
21177 $as_echo_n "checking for CHAFA... " >&6; }
21178
21179 if test -n "$CHAFA_CFLAGS"; then
21180     pkg_cv_CHAFA_CFLAGS="$CHAFA_CFLAGS"
21181  elif test -n "$PKG_CONFIG"; then
21182     if test -n "$PKG_CONFIG" && \
21183     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21184   ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21185   ac_status=$?
21186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21187   test $ac_status = 0; }; then
21188   pkg_cv_CHAFA_CFLAGS=`$PKG_CONFIG --cflags "chafa >= 1.6.0" 2>/dev/null`
21189                       test "x$?" != "x0" && pkg_failed=yes
21190 else
21191   pkg_failed=yes
21192 fi
21193  else
21194     pkg_failed=untried
21195 fi
21196 if test -n "$CHAFA_LIBS"; then
21197     pkg_cv_CHAFA_LIBS="$CHAFA_LIBS"
21198  elif test -n "$PKG_CONFIG"; then
21199     if test -n "$PKG_CONFIG" && \
21200     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21201   ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21202   ac_status=$?
21203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21204   test $ac_status = 0; }; then
21205   pkg_cv_CHAFA_LIBS=`$PKG_CONFIG --libs "chafa >= 1.6.0" 2>/dev/null`
21206                       test "x$?" != "x0" && pkg_failed=yes
21207 else
21208   pkg_failed=yes
21209 fi
21210  else
21211     pkg_failed=untried
21212 fi
21213
21214
21215
21216 if test $pkg_failed = yes; then
21217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21218 $as_echo "no" >&6; }
21219
21220 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21221         _pkg_short_errors_supported=yes
21222 else
21223         _pkg_short_errors_supported=no
21224 fi
21225         if test $_pkg_short_errors_supported = yes; then
21226                 CHAFA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21227         else
21228                 CHAFA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21229         fi
21230         # Put the nasty error message in config.log where it belongs
21231         echo "$CHAFA_PKG_ERRORS" >&5
21232
21233         :
21234 elif test $pkg_failed = untried; then
21235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21236 $as_echo "no" >&6; }
21237         :
21238 else
21239         CHAFA_CFLAGS=$pkg_cv_CHAFA_CFLAGS
21240         CHAFA_LIBS=$pkg_cv_CHAFA_LIBS
21241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21242 $as_echo "yes" >&6; }
21243         have_chafa=true
21244 fi
21245 fi
21246 if test "x$with_chafa" = "xyes" -a "x$have_chafa" != "xtrue"; then
21247         as_fn_error $? "chafa support requested but not found" "$LINENO" 5
21248 fi
21249 if $have_chafa; then
21250
21251 $as_echo "#define HAVE_CHAFA 1" >>confdefs.h
21252
21253 fi
21254  if $have_chafa; then
21255   HAVE_CHAFA_TRUE=
21256   HAVE_CHAFA_FALSE='#'
21257 else
21258   HAVE_CHAFA_TRUE='#'
21259   HAVE_CHAFA_FALSE=
21260 fi
21261
21262
21263
21264
21265 # Check whether --with-icu was given.
21266 if test "${with_icu+set}" = set; then :
21267   withval=$with_icu;
21268 else
21269   with_icu=auto
21270 fi
21271
21272 have_icu=false
21273 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21274
21275 pkg_failed=no
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21277 $as_echo_n "checking for ICU... " >&6; }
21278
21279 if test -n "$ICU_CFLAGS"; then
21280     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21281  elif test -n "$PKG_CONFIG"; then
21282     if test -n "$PKG_CONFIG" && \
21283     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21284   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21285   ac_status=$?
21286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21287   test $ac_status = 0; }; then
21288   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21289                       test "x$?" != "x0" && pkg_failed=yes
21290 else
21291   pkg_failed=yes
21292 fi
21293  else
21294     pkg_failed=untried
21295 fi
21296 if test -n "$ICU_LIBS"; then
21297     pkg_cv_ICU_LIBS="$ICU_LIBS"
21298  elif test -n "$PKG_CONFIG"; then
21299     if test -n "$PKG_CONFIG" && \
21300     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21301   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21302   ac_status=$?
21303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21304   test $ac_status = 0; }; then
21305   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21306                       test "x$?" != "x0" && pkg_failed=yes
21307 else
21308   pkg_failed=yes
21309 fi
21310  else
21311     pkg_failed=untried
21312 fi
21313
21314
21315
21316 if test $pkg_failed = yes; then
21317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21318 $as_echo "no" >&6; }
21319
21320 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21321         _pkg_short_errors_supported=yes
21322 else
21323         _pkg_short_errors_supported=no
21324 fi
21325         if test $_pkg_short_errors_supported = yes; then
21326                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21327         else
21328                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21329         fi
21330         # Put the nasty error message in config.log where it belongs
21331         echo "$ICU_PKG_ERRORS" >&5
21332
21333         :
21334 elif test $pkg_failed = untried; then
21335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336 $as_echo "no" >&6; }
21337         :
21338 else
21339         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21340         ICU_LIBS=$pkg_cv_ICU_LIBS
21341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21342 $as_echo "yes" >&6; }
21343         have_icu=true
21344 fi
21345 fi
21346 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21347         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21348 fi
21349
21350 if $have_icu; then
21351         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21352
21353 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21354
21355         if test "x$with_icu" = "xbuiltin"; then
21356
21357 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21358
21359         fi
21360 fi
21361  if $have_icu; then
21362   HAVE_ICU_TRUE=
21363   HAVE_ICU_FALSE='#'
21364 else
21365   HAVE_ICU_TRUE='#'
21366   HAVE_ICU_FALSE=
21367 fi
21368
21369  if $have_icu && test "x$with_icu" = "xbuiltin"; then
21370   HAVE_ICU_BUILTIN_TRUE=
21371   HAVE_ICU_BUILTIN_FALSE='#'
21372 else
21373   HAVE_ICU_BUILTIN_TRUE='#'
21374   HAVE_ICU_BUILTIN_FALSE=
21375 fi
21376
21377
21378
21379
21380 # Check whether --with-graphite2 was given.
21381 if test "${with_graphite2+set}" = set; then :
21382   withval=$with_graphite2;
21383 else
21384   with_graphite2=no
21385 fi
21386
21387 have_graphite2=false
21388 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21389
21390 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21391
21392 pkg_failed=no
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21394 $as_echo_n "checking for GRAPHITE2... " >&6; }
21395
21396 if test -n "$GRAPHITE2_CFLAGS"; then
21397     pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21398  elif test -n "$PKG_CONFIG"; then
21399     if test -n "$PKG_CONFIG" && \
21400     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21401   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21402   ac_status=$?
21403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21404   test $ac_status = 0; }; then
21405   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21406                       test "x$?" != "x0" && pkg_failed=yes
21407 else
21408   pkg_failed=yes
21409 fi
21410  else
21411     pkg_failed=untried
21412 fi
21413 if test -n "$GRAPHITE2_LIBS"; then
21414     pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21415  elif test -n "$PKG_CONFIG"; then
21416     if test -n "$PKG_CONFIG" && \
21417     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21418   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21419   ac_status=$?
21420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21421   test $ac_status = 0; }; then
21422   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21423                       test "x$?" != "x0" && pkg_failed=yes
21424 else
21425   pkg_failed=yes
21426 fi
21427  else
21428     pkg_failed=untried
21429 fi
21430
21431
21432
21433 if test $pkg_failed = yes; then
21434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435 $as_echo "no" >&6; }
21436
21437 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21438         _pkg_short_errors_supported=yes
21439 else
21440         _pkg_short_errors_supported=no
21441 fi
21442         if test $_pkg_short_errors_supported = yes; then
21443                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21444         else
21445                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21446         fi
21447         # Put the nasty error message in config.log where it belongs
21448         echo "$GRAPHITE2_PKG_ERRORS" >&5
21449
21450         :
21451 elif test $pkg_failed = untried; then
21452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21453 $as_echo "no" >&6; }
21454         :
21455 else
21456         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21457         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21459 $as_echo "yes" >&6; }
21460         have_graphite2=true
21461 fi
21462         if test "x$have_graphite2" != "xtrue"; then
21463                 # If pkg-config is not available, graphite2 can still be there
21464                 ac_save_CFLAGS="$CFLAGS"
21465                 ac_save_CPPFLAGS="$CPPFLAGS"
21466                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21467                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21468                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21469 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21470   have_graphite2=true
21471 else
21472   :
21473 fi
21474
21475
21476                 CPPFLAGS="$ac_save_CPPFLAGS"
21477                 CFLAGS="$ac_save_CFLAGS"
21478         fi
21479 fi
21480 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21481         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21482 fi
21483 if $have_graphite2; then
21484
21485 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21486
21487 fi
21488  if $have_graphite2; then
21489   HAVE_GRAPHITE2_TRUE=
21490   HAVE_GRAPHITE2_FALSE='#'
21491 else
21492   HAVE_GRAPHITE2_TRUE='#'
21493   HAVE_GRAPHITE2_FALSE=
21494 fi
21495
21496
21497
21498
21499 # Check whether --with-freetype was given.
21500 if test "${with_freetype+set}" = set; then :
21501   withval=$with_freetype;
21502 else
21503   with_freetype=auto
21504 fi
21505
21506 have_freetype=false
21507 FREETYPE_DEPS="freetype2 >= 12.0.6"
21508
21509 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21510         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21511
21512 pkg_failed=no
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21514 $as_echo_n "checking for FREETYPE... " >&6; }
21515
21516 if test -n "$FREETYPE_CFLAGS"; then
21517     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21518  elif test -n "$PKG_CONFIG"; then
21519     if test -n "$PKG_CONFIG" && \
21520     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21521   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21522   ac_status=$?
21523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21524   test $ac_status = 0; }; then
21525   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21526                       test "x$?" != "x0" && pkg_failed=yes
21527 else
21528   pkg_failed=yes
21529 fi
21530  else
21531     pkg_failed=untried
21532 fi
21533 if test -n "$FREETYPE_LIBS"; then
21534     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21535  elif test -n "$PKG_CONFIG"; then
21536     if test -n "$PKG_CONFIG" && \
21537     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21538   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21539   ac_status=$?
21540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21541   test $ac_status = 0; }; then
21542   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21543                       test "x$?" != "x0" && pkg_failed=yes
21544 else
21545   pkg_failed=yes
21546 fi
21547  else
21548     pkg_failed=untried
21549 fi
21550
21551
21552
21553 if test $pkg_failed = yes; then
21554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21555 $as_echo "no" >&6; }
21556
21557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21558         _pkg_short_errors_supported=yes
21559 else
21560         _pkg_short_errors_supported=no
21561 fi
21562         if test $_pkg_short_errors_supported = yes; then
21563                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21564         else
21565                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21566         fi
21567         # Put the nasty error message in config.log where it belongs
21568         echo "$FREETYPE_PKG_ERRORS" >&5
21569
21570         :
21571 elif test $pkg_failed = untried; then
21572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21573 $as_echo "no" >&6; }
21574         :
21575 else
21576         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21577         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21579 $as_echo "yes" >&6; }
21580         have_freetype=true
21581 fi
21582 fi
21583 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21584         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21585 fi
21586 if $have_freetype; then
21587
21588 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21589
21590         save_libs=$LIBS
21591         LIBS="$LIBS $FREETYPE_LIBS"
21592         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var FT_Get_Transform
21593 do :
21594   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21596 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21597   cat >>confdefs.h <<_ACEOF
21598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21599 _ACEOF
21600
21601 fi
21602 done
21603
21604         LIBS=$save_libs
21605 fi
21606  if $have_freetype; then
21607   HAVE_FREETYPE_TRUE=
21608   HAVE_FREETYPE_FALSE='#'
21609 else
21610   HAVE_FREETYPE_TRUE='#'
21611   HAVE_FREETYPE_FALSE=
21612 fi
21613
21614
21615
21616
21617 # Check whether --with-uniscribe was given.
21618 if test "${with_uniscribe+set}" = set; then :
21619   withval=$with_uniscribe;
21620 else
21621   with_uniscribe=no
21622 fi
21623
21624 have_uniscribe=false
21625 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21626         for ac_header in usp10.h windows.h
21627 do :
21628   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21631   cat >>confdefs.h <<_ACEOF
21632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21633 _ACEOF
21634  have_uniscribe=true
21635 fi
21636
21637 done
21638
21639 fi
21640 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21641         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21642 fi
21643 if $have_uniscribe; then
21644         UNISCRIBE_CFLAGS=
21645         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21646
21647
21648
21649 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21650
21651 fi
21652  if $have_uniscribe; then
21653   HAVE_UNISCRIBE_TRUE=
21654   HAVE_UNISCRIBE_FALSE='#'
21655 else
21656   HAVE_UNISCRIBE_TRUE='#'
21657   HAVE_UNISCRIBE_FALSE=
21658 fi
21659
21660
21661
21662
21663 # Check whether --with-gdi was given.
21664 if test "${with_gdi+set}" = set; then :
21665   withval=$with_gdi;
21666 else
21667   with_gdi=no
21668 fi
21669
21670 have_gdi=false
21671 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21672         for ac_header in windows.h
21673 do :
21674   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21675 if test "x$ac_cv_header_windows_h" = xyes; then :
21676   cat >>confdefs.h <<_ACEOF
21677 #define HAVE_WINDOWS_H 1
21678 _ACEOF
21679  have_gdi=true
21680 fi
21681
21682 done
21683
21684 fi
21685 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21686         as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21687 fi
21688 if $have_gdi; then
21689         GDI_CFLAGS=
21690         GDI_LIBS="-lgdi32"
21691
21692
21693
21694 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21695
21696 fi
21697  if $have_gdi; then
21698   HAVE_GDI_TRUE=
21699   HAVE_GDI_FALSE='#'
21700 else
21701   HAVE_GDI_TRUE='#'
21702   HAVE_GDI_FALSE=
21703 fi
21704
21705
21706
21707
21708 # Check whether --with-directwrite was given.
21709 if test "${with_directwrite+set}" = set; then :
21710   withval=$with_directwrite;
21711 else
21712   with_directwrite=no
21713 fi
21714
21715 have_directwrite=false
21716 ac_ext=cpp
21717 ac_cpp='$CXXCPP $CPPFLAGS'
21718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21721
21722 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21723
21724 for ac_header in dwrite_1.h
21725 do :
21726   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite_1.h" "ac_cv_header_dwrite_1_h" "$ac_includes_default"
21727 if test "x$ac_cv_header_dwrite_1_h" = xyes; then :
21728   cat >>confdefs.h <<_ACEOF
21729 #define HAVE_DWRITE_1_H 1
21730 _ACEOF
21731  have_directwrite=true
21732 fi
21733
21734 done
21735
21736 fi
21737 ac_ext=c
21738 ac_cpp='$CPP $CPPFLAGS'
21739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21742
21743 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21744         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21745 fi
21746 if $have_directwrite; then
21747
21748 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21749
21750 fi
21751  if $have_directwrite; then
21752   HAVE_DIRECTWRITE_TRUE=
21753   HAVE_DIRECTWRITE_FALSE='#'
21754 else
21755   HAVE_DIRECTWRITE_TRUE='#'
21756   HAVE_DIRECTWRITE_FALSE=
21757 fi
21758
21759
21760
21761
21762 # Check whether --with-coretext was given.
21763 if test "${with_coretext+set}" = set; then :
21764   withval=$with_coretext;
21765 else
21766   with_coretext=no
21767 fi
21768
21769 have_coretext=false
21770 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21771         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21772 "
21773 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21774   have_coretext=true
21775 fi
21776
21777
21778         if $have_coretext; then
21779                 CORETEXT_CFLAGS=
21780                 CORETEXT_LIBS="-framework ApplicationServices"
21781
21782
21783         else
21784                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21785                 if test "x$have_coretext" != "xtrue"; then
21786                         # Check for a different symbol to avoid getting cached result.
21787                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21788 "
21789 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21790   have_coretext=true
21791 fi
21792
21793                 fi
21794
21795                 if $have_coretext; then
21796                         CORETEXT_CFLAGS=
21797                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21798
21799
21800                 fi
21801         fi
21802 fi
21803 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21804         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21805 fi
21806 if $have_coretext; then
21807
21808 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21809
21810 fi
21811  if $have_coretext; then
21812   HAVE_CORETEXT_TRUE=
21813   HAVE_CORETEXT_FALSE='#'
21814 else
21815   HAVE_CORETEXT_TRUE='#'
21816   HAVE_CORETEXT_FALSE=
21817 fi
21818
21819
21820
21821
21822 # Check whether --with-wasm was given.
21823 if test "${with_wasm+set}" = set; then :
21824   withval=$with_wasm;
21825 else
21826   with_wasm=no
21827 fi
21828
21829 have_wasm=false
21830 if test "x$with_wasm" = "xyes" -o "x$with_wasm" = "xauto"; then
21831         for ac_header in wasm_export.h
21832 do :
21833   ac_fn_c_check_header_mongrel "$LINENO" "wasm_export.h" "ac_cv_header_wasm_export_h" "$ac_includes_default"
21834 if test "x$ac_cv_header_wasm_export_h" = xyes; then :
21835   cat >>confdefs.h <<_ACEOF
21836 #define HAVE_WASM_EXPORT_H 1
21837 _ACEOF
21838  have_wasm=true
21839 fi
21840
21841 done
21842
21843 fi
21844 if test "x$with_wasm" = "xyes" -a "x$have_wasm" != "xtrue"; then
21845         as_fn_error $? "wasm support requested but not found" "$LINENO" 5
21846 fi
21847 if $have_wasm; then
21848         WASM_CFLAGS=
21849         WASM_LIBS="-liwasm"
21850
21851
21852
21853 $as_echo "#define HAVE_WASM 1" >>confdefs.h
21854
21855 fi
21856  if $have_wasm; then
21857   HAVE_WASM_TRUE=
21858   HAVE_WASM_FALSE='#'
21859 else
21860   HAVE_WASM_TRUE='#'
21861   HAVE_WASM_FALSE=
21862 fi
21863
21864
21865
21866 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shape/Makefile test/shape/data/Makefile test/shape/data/aots/Makefile test/shape/data/in-house/Makefile test/shape/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile test/subset/data/repack_tests/Makefile test/threads/Makefile perf/Makefile docs/Makefile docs/version.xml"
21867
21868
21869 cat >confcache <<\_ACEOF
21870 # This file is a shell script that caches the results of configure
21871 # tests run on this system so they can be shared between configure
21872 # scripts and configure runs, see configure's option --config-cache.
21873 # It is not useful on other systems.  If it contains results you don't
21874 # want to keep, you may remove or edit it.
21875 #
21876 # config.status only pays attention to the cache file if you give it
21877 # the --recheck option to rerun configure.
21878 #
21879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21881 # following values.
21882
21883 _ACEOF
21884
21885 # The following way of writing the cache mishandles newlines in values,
21886 # but we know of no workaround that is simple, portable, and efficient.
21887 # So, we kill variables containing newlines.
21888 # Ultrix sh set writes to stderr and can't be redirected directly,
21889 # and sets the high bit in the cache file unless we assign to the vars.
21890 (
21891   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21892     eval ac_val=\$$ac_var
21893     case $ac_val in #(
21894     *${as_nl}*)
21895       case $ac_var in #(
21896       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21898       esac
21899       case $ac_var in #(
21900       _ | IFS | as_nl) ;; #(
21901       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21902       *) { eval $ac_var=; unset $ac_var;} ;;
21903       esac ;;
21904     esac
21905   done
21906
21907   (set) 2>&1 |
21908     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21909     *${as_nl}ac_space=\ *)
21910       # `set' does not quote correctly, so add quotes: double-quote
21911       # substitution turns \\\\ into \\, and sed turns \\ into \.
21912       sed -n \
21913         "s/'/'\\\\''/g;
21914           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21915       ;; #(
21916     *)
21917       # `set' quotes correctly as required by POSIX, so do not add quotes.
21918       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21919       ;;
21920     esac |
21921     sort
21922 ) |
21923   sed '
21924      /^ac_cv_env_/b end
21925      t clear
21926      :clear
21927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21928      t end
21929      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21930      :end' >>confcache
21931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21932   if test -w "$cache_file"; then
21933     if test "x$cache_file" != "x/dev/null"; then
21934       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21935 $as_echo "$as_me: updating cache $cache_file" >&6;}
21936       if test ! -f "$cache_file" || test -h "$cache_file"; then
21937         cat confcache >"$cache_file"
21938       else
21939         case $cache_file in #(
21940         */* | ?:*)
21941           mv -f confcache "$cache_file"$$ &&
21942           mv -f "$cache_file"$$ "$cache_file" ;; #(
21943         *)
21944           mv -f confcache "$cache_file" ;;
21945         esac
21946       fi
21947     fi
21948   else
21949     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21951   fi
21952 fi
21953 rm -f confcache
21954
21955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21956 # Let make expand exec_prefix.
21957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21958
21959 DEFS=-DHAVE_CONFIG_H
21960
21961 ac_libobjs=
21962 ac_ltlibobjs=
21963 U=
21964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21965   # 1. Remove the extension, and $U if already installed.
21966   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21967   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21968   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21969   #    will be set to the directory where LIBOBJS objects are built.
21970   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21971   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21972 done
21973 LIBOBJS=$ac_libobjs
21974
21975 LTLIBOBJS=$ac_ltlibobjs
21976
21977
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21979 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21980    if test -n "$am_sleep_pid"; then
21981      # Hide warnings about reused PIDs.
21982      wait $am_sleep_pid 2>/dev/null
21983    fi
21984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21985 $as_echo "done" >&6; }
21986  if test -n "$EXEEXT"; then
21987   am__EXEEXT_TRUE=
21988   am__EXEEXT_FALSE='#'
21989 else
21990   am__EXEEXT_TRUE='#'
21991   am__EXEEXT_FALSE=
21992 fi
21993
21994 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21995   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21997 fi
21998 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21999   as_fn_error $? "conditional \"AMDEP\" was never defined.
22000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22001 fi
22002 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22003   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22005 fi
22006 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22007   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22009 fi
22010 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22011   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22013 fi
22014 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
22015   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
22016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22017 fi
22018 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22019   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
22020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22021 fi
22022 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22023   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
22024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22025 fi
22026 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
22027   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
22028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22029 fi
22030 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
22031   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
22032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22033 fi
22034 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22035   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22037 fi
22038 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
22039   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
22040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22041 fi
22042 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
22043   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
22044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22045 fi
22046 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22047   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22049 fi
22050 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22051   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
22052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22053 fi
22054 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
22055   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
22056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22057 fi
22058 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
22059   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22061 fi
22062 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22063   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22065 fi
22066 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22067   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22069 fi
22070 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22071   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22073 fi
22074 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22075   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22077 fi
22078 if test -z "${HAVE_CHAFA_TRUE}" && test -z "${HAVE_CHAFA_FALSE}"; then
22079   as_fn_error $? "conditional \"HAVE_CHAFA\" was never defined.
22080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22081 fi
22082 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22083   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22085 fi
22086 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22087   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22089 fi
22090 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22091   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22093 fi
22094 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22095   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22097 fi
22098 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22099   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22101 fi
22102 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22103   as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22105 fi
22106 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22107   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22109 fi
22110 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22111   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22113 fi
22114 if test -z "${HAVE_WASM_TRUE}" && test -z "${HAVE_WASM_FALSE}"; then
22115   as_fn_error $? "conditional \"HAVE_WASM\" was never defined.
22116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22117 fi
22118
22119 : "${CONFIG_STATUS=./config.status}"
22120 ac_write_fail=0
22121 ac_clean_files_save=$ac_clean_files
22122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22125 as_write_fail=0
22126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22127 #! $SHELL
22128 # Generated by $as_me.
22129 # Run this file to recreate the current configuration.
22130 # Compiler output produced by configure, useful for debugging
22131 # configure, is in config.log if it exists.
22132
22133 debug=false
22134 ac_cs_recheck=false
22135 ac_cs_silent=false
22136
22137 SHELL=\${CONFIG_SHELL-$SHELL}
22138 export SHELL
22139 _ASEOF
22140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22141 ## -------------------- ##
22142 ## M4sh Initialization. ##
22143 ## -------------------- ##
22144
22145 # Be more Bourne compatible
22146 DUALCASE=1; export DUALCASE # for MKS sh
22147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22148   emulate sh
22149   NULLCMD=:
22150   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22151   # is contrary to our usage.  Disable this feature.
22152   alias -g '${1+"$@"}'='"$@"'
22153   setopt NO_GLOB_SUBST
22154 else
22155   case `(set -o) 2>/dev/null` in #(
22156   *posix*) :
22157     set -o posix ;; #(
22158   *) :
22159      ;;
22160 esac
22161 fi
22162
22163
22164 as_nl='
22165 '
22166 export as_nl
22167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22171 # Prefer a ksh shell builtin over an external printf program on Solaris,
22172 # but without wasting forks for bash or zsh.
22173 if test -z "$BASH_VERSION$ZSH_VERSION" \
22174     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22175   as_echo='print -r --'
22176   as_echo_n='print -rn --'
22177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22178   as_echo='printf %s\n'
22179   as_echo_n='printf %s'
22180 else
22181   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22182     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22183     as_echo_n='/usr/ucb/echo -n'
22184   else
22185     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22186     as_echo_n_body='eval
22187       arg=$1;
22188       case $arg in #(
22189       *"$as_nl"*)
22190         expr "X$arg" : "X\\(.*\\)$as_nl";
22191         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22192       esac;
22193       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22194     '
22195     export as_echo_n_body
22196     as_echo_n='sh -c $as_echo_n_body as_echo'
22197   fi
22198   export as_echo_body
22199   as_echo='sh -c $as_echo_body as_echo'
22200 fi
22201
22202 # The user is always right.
22203 if test "${PATH_SEPARATOR+set}" != set; then
22204   PATH_SEPARATOR=:
22205   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22206     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22207       PATH_SEPARATOR=';'
22208   }
22209 fi
22210
22211
22212 # IFS
22213 # We need space, tab and new line, in precisely that order.  Quoting is
22214 # there to prevent editors from complaining about space-tab.
22215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22216 # splitting by setting IFS to empty value.)
22217 IFS=" ""        $as_nl"
22218
22219 # Find who we are.  Look in the path if we contain no directory separator.
22220 as_myself=
22221 case $0 in #((
22222   *[\\/]* ) as_myself=$0 ;;
22223   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22224 for as_dir in $PATH
22225 do
22226   IFS=$as_save_IFS
22227   test -z "$as_dir" && as_dir=.
22228     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22229   done
22230 IFS=$as_save_IFS
22231
22232      ;;
22233 esac
22234 # We did not find ourselves, most probably we were run as `sh COMMAND'
22235 # in which case we are not to be found in the path.
22236 if test "x$as_myself" = x; then
22237   as_myself=$0
22238 fi
22239 if test ! -f "$as_myself"; then
22240   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22241   exit 1
22242 fi
22243
22244 # Unset variables that we do not need and which cause bugs (e.g. in
22245 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22246 # suppresses any "Segmentation fault" message there.  '((' could
22247 # trigger a bug in pdksh 5.2.14.
22248 for as_var in BASH_ENV ENV MAIL MAILPATH
22249 do eval test x\${$as_var+set} = xset \
22250   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22251 done
22252 PS1='$ '
22253 PS2='> '
22254 PS4='+ '
22255
22256 # NLS nuisances.
22257 LC_ALL=C
22258 export LC_ALL
22259 LANGUAGE=C
22260 export LANGUAGE
22261
22262 # CDPATH.
22263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22264
22265
22266 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22267 # ----------------------------------------
22268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22270 # script with STATUS, using 1 if that was 0.
22271 as_fn_error ()
22272 {
22273   as_status=$1; test $as_status -eq 0 && as_status=1
22274   if test "$4"; then
22275     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22276     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22277   fi
22278   $as_echo "$as_me: error: $2" >&2
22279   as_fn_exit $as_status
22280 } # as_fn_error
22281
22282
22283 # as_fn_set_status STATUS
22284 # -----------------------
22285 # Set $? to STATUS, without forking.
22286 as_fn_set_status ()
22287 {
22288   return $1
22289 } # as_fn_set_status
22290
22291 # as_fn_exit STATUS
22292 # -----------------
22293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22294 as_fn_exit ()
22295 {
22296   set +e
22297   as_fn_set_status $1
22298   exit $1
22299 } # as_fn_exit
22300
22301 # as_fn_unset VAR
22302 # ---------------
22303 # Portably unset VAR.
22304 as_fn_unset ()
22305 {
22306   { eval $1=; unset $1;}
22307 }
22308 as_unset=as_fn_unset
22309 # as_fn_append VAR VALUE
22310 # ----------------------
22311 # Append the text in VALUE to the end of the definition contained in VAR. Take
22312 # advantage of any shell optimizations that allow amortized linear growth over
22313 # repeated appends, instead of the typical quadratic growth present in naive
22314 # implementations.
22315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22316   eval 'as_fn_append ()
22317   {
22318     eval $1+=\$2
22319   }'
22320 else
22321   as_fn_append ()
22322   {
22323     eval $1=\$$1\$2
22324   }
22325 fi # as_fn_append
22326
22327 # as_fn_arith ARG...
22328 # ------------------
22329 # Perform arithmetic evaluation on the ARGs, and store the result in the
22330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22331 # must be portable across $(()) and expr.
22332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22333   eval 'as_fn_arith ()
22334   {
22335     as_val=$(( $* ))
22336   }'
22337 else
22338   as_fn_arith ()
22339   {
22340     as_val=`expr "$@" || test $? -eq 1`
22341   }
22342 fi # as_fn_arith
22343
22344
22345 if expr a : '\(a\)' >/dev/null 2>&1 &&
22346    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22347   as_expr=expr
22348 else
22349   as_expr=false
22350 fi
22351
22352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22353   as_basename=basename
22354 else
22355   as_basename=false
22356 fi
22357
22358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22359   as_dirname=dirname
22360 else
22361   as_dirname=false
22362 fi
22363
22364 as_me=`$as_basename -- "$0" ||
22365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22366          X"$0" : 'X\(//\)$' \| \
22367          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22368 $as_echo X/"$0" |
22369     sed '/^.*\/\([^/][^/]*\)\/*$/{
22370             s//\1/
22371             q
22372           }
22373           /^X\/\(\/\/\)$/{
22374             s//\1/
22375             q
22376           }
22377           /^X\/\(\/\).*/{
22378             s//\1/
22379             q
22380           }
22381           s/.*/./; q'`
22382
22383 # Avoid depending upon Character Ranges.
22384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22387 as_cr_digits='0123456789'
22388 as_cr_alnum=$as_cr_Letters$as_cr_digits
22389
22390 ECHO_C= ECHO_N= ECHO_T=
22391 case `echo -n x` in #(((((
22392 -n*)
22393   case `echo 'xy\c'` in
22394   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22395   xy)  ECHO_C='\c';;
22396   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22397        ECHO_T=' ';;
22398   esac;;
22399 *)
22400   ECHO_N='-n';;
22401 esac
22402
22403 rm -f conf$$ conf$$.exe conf$$.file
22404 if test -d conf$$.dir; then
22405   rm -f conf$$.dir/conf$$.file
22406 else
22407   rm -f conf$$.dir
22408   mkdir conf$$.dir 2>/dev/null
22409 fi
22410 if (echo >conf$$.file) 2>/dev/null; then
22411   if ln -s conf$$.file conf$$ 2>/dev/null; then
22412     as_ln_s='ln -s'
22413     # ... but there are two gotchas:
22414     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22415     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22416     # In both cases, we have to default to `cp -pR'.
22417     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22418       as_ln_s='cp -pR'
22419   elif ln conf$$.file conf$$ 2>/dev/null; then
22420     as_ln_s=ln
22421   else
22422     as_ln_s='cp -pR'
22423   fi
22424 else
22425   as_ln_s='cp -pR'
22426 fi
22427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22428 rmdir conf$$.dir 2>/dev/null
22429
22430
22431 # as_fn_mkdir_p
22432 # -------------
22433 # Create "$as_dir" as a directory, including parents if necessary.
22434 as_fn_mkdir_p ()
22435 {
22436
22437   case $as_dir in #(
22438   -*) as_dir=./$as_dir;;
22439   esac
22440   test -d "$as_dir" || eval $as_mkdir_p || {
22441     as_dirs=
22442     while :; do
22443       case $as_dir in #(
22444       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22445       *) as_qdir=$as_dir;;
22446       esac
22447       as_dirs="'$as_qdir' $as_dirs"
22448       as_dir=`$as_dirname -- "$as_dir" ||
22449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22450          X"$as_dir" : 'X\(//\)[^/]' \| \
22451          X"$as_dir" : 'X\(//\)$' \| \
22452          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22453 $as_echo X"$as_dir" |
22454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22455             s//\1/
22456             q
22457           }
22458           /^X\(\/\/\)[^/].*/{
22459             s//\1/
22460             q
22461           }
22462           /^X\(\/\/\)$/{
22463             s//\1/
22464             q
22465           }
22466           /^X\(\/\).*/{
22467             s//\1/
22468             q
22469           }
22470           s/.*/./; q'`
22471       test -d "$as_dir" && break
22472     done
22473     test -z "$as_dirs" || eval "mkdir $as_dirs"
22474   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22475
22476
22477 } # as_fn_mkdir_p
22478 if mkdir -p . 2>/dev/null; then
22479   as_mkdir_p='mkdir -p "$as_dir"'
22480 else
22481   test -d ./-p && rmdir ./-p
22482   as_mkdir_p=false
22483 fi
22484
22485
22486 # as_fn_executable_p FILE
22487 # -----------------------
22488 # Test if FILE is an executable regular file.
22489 as_fn_executable_p ()
22490 {
22491   test -f "$1" && test -x "$1"
22492 } # as_fn_executable_p
22493 as_test_x='test -x'
22494 as_executable_p=as_fn_executable_p
22495
22496 # Sed expression to map a string onto a valid CPP name.
22497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22498
22499 # Sed expression to map a string onto a valid variable name.
22500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22501
22502
22503 exec 6>&1
22504 ## ----------------------------------- ##
22505 ## Main body of $CONFIG_STATUS script. ##
22506 ## ----------------------------------- ##
22507 _ASEOF
22508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22509
22510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22511 # Save the log message, to keep $0 and so on meaningful, and to
22512 # report actual input values of CONFIG_FILES etc. instead of their
22513 # values after options handling.
22514 ac_log="
22515 This file was extended by HarfBuzz $as_me 8.2.2, which was
22516 generated by GNU Autoconf 2.69.  Invocation command line was
22517
22518   CONFIG_FILES    = $CONFIG_FILES
22519   CONFIG_HEADERS  = $CONFIG_HEADERS
22520   CONFIG_LINKS    = $CONFIG_LINKS
22521   CONFIG_COMMANDS = $CONFIG_COMMANDS
22522   $ $0 $@
22523
22524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22525 "
22526
22527 _ACEOF
22528
22529 case $ac_config_files in *"
22530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22531 esac
22532
22533 case $ac_config_headers in *"
22534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22535 esac
22536
22537
22538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22539 # Files that config.status was made for.
22540 config_files="$ac_config_files"
22541 config_headers="$ac_config_headers"
22542 config_commands="$ac_config_commands"
22543
22544 _ACEOF
22545
22546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22547 ac_cs_usage="\
22548 \`$as_me' instantiates files and other configuration actions
22549 from templates according to the current configuration.  Unless the files
22550 and actions are specified as TAGs, all are instantiated by default.
22551
22552 Usage: $0 [OPTION]... [TAG]...
22553
22554   -h, --help       print this help, then exit
22555   -V, --version    print version number and configuration settings, then exit
22556       --config     print configuration, then exit
22557   -q, --quiet, --silent
22558                    do not print progress messages
22559   -d, --debug      don't remove temporary files
22560       --recheck    update $as_me by reconfiguring in the same conditions
22561       --file=FILE[:TEMPLATE]
22562                    instantiate the configuration file FILE
22563       --header=FILE[:TEMPLATE]
22564                    instantiate the configuration header FILE
22565
22566 Configuration files:
22567 $config_files
22568
22569 Configuration headers:
22570 $config_headers
22571
22572 Configuration commands:
22573 $config_commands
22574
22575 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22576 HarfBuzz home page: <http://harfbuzz.org/>."
22577
22578 _ACEOF
22579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22581 ac_cs_version="\\
22582 HarfBuzz config.status 8.2.2
22583 configured by $0, generated by GNU Autoconf 2.69,
22584   with options \\"\$ac_cs_config\\"
22585
22586 Copyright (C) 2012 Free Software Foundation, Inc.
22587 This config.status script is free software; the Free Software Foundation
22588 gives unlimited permission to copy, distribute and modify it."
22589
22590 ac_pwd='$ac_pwd'
22591 srcdir='$srcdir'
22592 INSTALL='$INSTALL'
22593 MKDIR_P='$MKDIR_P'
22594 AWK='$AWK'
22595 test -n "\$AWK" || AWK=awk
22596 _ACEOF
22597
22598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22599 # The default lists apply if the user does not specify any file.
22600 ac_need_defaults=:
22601 while test $# != 0
22602 do
22603   case $1 in
22604   --*=?*)
22605     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22606     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22607     ac_shift=:
22608     ;;
22609   --*=)
22610     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22611     ac_optarg=
22612     ac_shift=:
22613     ;;
22614   *)
22615     ac_option=$1
22616     ac_optarg=$2
22617     ac_shift=shift
22618     ;;
22619   esac
22620
22621   case $ac_option in
22622   # Handling of the options.
22623   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22624     ac_cs_recheck=: ;;
22625   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22626     $as_echo "$ac_cs_version"; exit ;;
22627   --config | --confi | --conf | --con | --co | --c )
22628     $as_echo "$ac_cs_config"; exit ;;
22629   --debug | --debu | --deb | --de | --d | -d )
22630     debug=: ;;
22631   --file | --fil | --fi | --f )
22632     $ac_shift
22633     case $ac_optarg in
22634     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22635     '') as_fn_error $? "missing file argument" ;;
22636     esac
22637     as_fn_append CONFIG_FILES " '$ac_optarg'"
22638     ac_need_defaults=false;;
22639   --header | --heade | --head | --hea )
22640     $ac_shift
22641     case $ac_optarg in
22642     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22643     esac
22644     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22645     ac_need_defaults=false;;
22646   --he | --h)
22647     # Conflict between --help and --header
22648     as_fn_error $? "ambiguous option: \`$1'
22649 Try \`$0 --help' for more information.";;
22650   --help | --hel | -h )
22651     $as_echo "$ac_cs_usage"; exit ;;
22652   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22653   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22654     ac_cs_silent=: ;;
22655
22656   # This is an error.
22657   -*) as_fn_error $? "unrecognized option: \`$1'
22658 Try \`$0 --help' for more information." ;;
22659
22660   *) as_fn_append ac_config_targets " $1"
22661      ac_need_defaults=false ;;
22662
22663   esac
22664   shift
22665 done
22666
22667 ac_configure_extra_args=
22668
22669 if $ac_cs_silent; then
22670   exec 6>/dev/null
22671   ac_configure_extra_args="$ac_configure_extra_args --silent"
22672 fi
22673
22674 _ACEOF
22675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22676 if \$ac_cs_recheck; then
22677   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22678   shift
22679   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22680   CONFIG_SHELL='$SHELL'
22681   export CONFIG_SHELL
22682   exec "\$@"
22683 fi
22684
22685 _ACEOF
22686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22687 exec 5>>config.log
22688 {
22689   echo
22690   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22691 ## Running $as_me. ##
22692 _ASBOX
22693   $as_echo "$ac_log"
22694 } >&5
22695
22696 _ACEOF
22697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22698 #
22699 # INIT-COMMANDS
22700 #
22701 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22702
22703
22704 # The HP-UX ksh and POSIX shell print the target directory to stdout
22705 # if CDPATH is set.
22706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22707
22708 sed_quote_subst='$sed_quote_subst'
22709 double_quote_subst='$double_quote_subst'
22710 delay_variable_subst='$delay_variable_subst'
22711 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22712 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22713 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22714 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22715 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22716 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22717 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22718 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22719 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22720 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22721 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22722 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22723 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22724 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22725 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22726 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22727 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22728 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22729 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22730 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22731 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22732 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22733 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22734 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22735 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22736 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22737 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22738 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22739 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22740 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22741 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22742 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22743 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22744 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22745 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22746 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22747 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22748 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22749 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22750 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22751 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22752 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22753 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22754 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22755 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22756 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22757 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22758 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22759 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22760 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22761 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22762 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22763 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22764 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22765 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22766 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22767 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22768 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22769 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"`'
22770 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22771 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22772 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22773 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22774 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22775 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22776 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22777 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22778 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22779 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22780 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22781 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22782 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22783 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22784 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22785 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22786 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22787 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22788 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22789 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22790 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22791 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22792 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22793 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22794 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22795 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22796 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22797 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22798 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22799 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22800 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22801 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22802 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22803 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22804 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22805 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22806 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22807 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22808 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22809 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22810 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22811 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22812 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22813 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22814 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22815 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22816 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22817 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22818 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22819 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22820 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22821 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22822 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22823 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22824 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22825 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22826 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22827 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22828 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22829 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22830 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22831 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22832 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22833 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22834 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22835 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22836 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22837 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22838 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22839 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22840 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22841 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22842 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22843 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22844 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22845 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22846 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22847 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22848 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22849 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22850 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22851 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22852 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22853 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22854 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22855 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22856 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22857 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22858 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22859 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22860 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22861 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22862 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22863 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22864 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22865 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22866 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22867 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22868 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22869 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22870 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22871 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22872 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22873 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22874 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22875 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22876 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22877 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22878 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22879 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22880 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22881 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22882 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22883 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22884 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22885 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22886 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22887 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22888 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22889 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22890 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22891 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22892 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22893 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22894 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22895 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22896 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22897 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22898 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22899 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22900
22901 LTCC='$LTCC'
22902 LTCFLAGS='$LTCFLAGS'
22903 compiler='$compiler_DEFAULT'
22904
22905 # A function that is used when there is no print builtin or printf.
22906 func_fallback_echo ()
22907 {
22908   eval 'cat <<_LTECHO_EOF
22909 \$1
22910 _LTECHO_EOF'
22911 }
22912
22913 # Quote evaled strings.
22914 for var in SHELL \
22915 ECHO \
22916 PATH_SEPARATOR \
22917 SED \
22918 GREP \
22919 EGREP \
22920 FGREP \
22921 LD \
22922 NM \
22923 LN_S \
22924 lt_SP2NL \
22925 lt_NL2SP \
22926 reload_flag \
22927 OBJDUMP \
22928 deplibs_check_method \
22929 file_magic_cmd \
22930 file_magic_glob \
22931 want_nocaseglob \
22932 DLLTOOL \
22933 sharedlib_from_linklib_cmd \
22934 AR \
22935 AR_FLAGS \
22936 archiver_list_spec \
22937 STRIP \
22938 RANLIB \
22939 CC \
22940 CFLAGS \
22941 compiler \
22942 lt_cv_sys_global_symbol_pipe \
22943 lt_cv_sys_global_symbol_to_cdecl \
22944 lt_cv_sys_global_symbol_to_import \
22945 lt_cv_sys_global_symbol_to_c_name_address \
22946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22947 lt_cv_nm_interface \
22948 nm_file_list_spec \
22949 lt_cv_truncate_bin \
22950 lt_prog_compiler_no_builtin_flag \
22951 lt_prog_compiler_pic \
22952 lt_prog_compiler_wl \
22953 lt_prog_compiler_static \
22954 lt_cv_prog_compiler_c_o \
22955 need_locks \
22956 MANIFEST_TOOL \
22957 DSYMUTIL \
22958 NMEDIT \
22959 LIPO \
22960 OTOOL \
22961 OTOOL64 \
22962 shrext_cmds \
22963 export_dynamic_flag_spec \
22964 whole_archive_flag_spec \
22965 compiler_needs_object \
22966 with_gnu_ld \
22967 allow_undefined_flag \
22968 no_undefined_flag \
22969 hardcode_libdir_flag_spec \
22970 hardcode_libdir_separator \
22971 exclude_expsyms \
22972 include_expsyms \
22973 file_list_spec \
22974 variables_saved_for_relink \
22975 libname_spec \
22976 library_names_spec \
22977 soname_spec \
22978 install_override_mode \
22979 finish_eval \
22980 old_striplib \
22981 striplib \
22982 compiler_lib_search_dirs \
22983 predep_objects \
22984 postdep_objects \
22985 predeps \
22986 postdeps \
22987 compiler_lib_search_path \
22988 LD_CXX \
22989 reload_flag_CXX \
22990 compiler_CXX \
22991 lt_prog_compiler_no_builtin_flag_CXX \
22992 lt_prog_compiler_pic_CXX \
22993 lt_prog_compiler_wl_CXX \
22994 lt_prog_compiler_static_CXX \
22995 lt_cv_prog_compiler_c_o_CXX \
22996 export_dynamic_flag_spec_CXX \
22997 whole_archive_flag_spec_CXX \
22998 compiler_needs_object_CXX \
22999 with_gnu_ld_CXX \
23000 allow_undefined_flag_CXX \
23001 no_undefined_flag_CXX \
23002 hardcode_libdir_flag_spec_CXX \
23003 hardcode_libdir_separator_CXX \
23004 exclude_expsyms_CXX \
23005 include_expsyms_CXX \
23006 file_list_spec_CXX \
23007 compiler_lib_search_dirs_CXX \
23008 predep_objects_CXX \
23009 postdep_objects_CXX \
23010 predeps_CXX \
23011 postdeps_CXX \
23012 compiler_lib_search_path_CXX; do
23013     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23014     *[\\\\\\\`\\"\\\$]*)
23015       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23016       ;;
23017     *)
23018       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23019       ;;
23020     esac
23021 done
23022
23023 # Double-quote double-evaled strings.
23024 for var in reload_cmds \
23025 old_postinstall_cmds \
23026 old_postuninstall_cmds \
23027 old_archive_cmds \
23028 extract_expsyms_cmds \
23029 old_archive_from_new_cmds \
23030 old_archive_from_expsyms_cmds \
23031 archive_cmds \
23032 archive_expsym_cmds \
23033 module_cmds \
23034 module_expsym_cmds \
23035 export_symbols_cmds \
23036 prelink_cmds \
23037 postlink_cmds \
23038 postinstall_cmds \
23039 postuninstall_cmds \
23040 finish_cmds \
23041 sys_lib_search_path_spec \
23042 configure_time_dlsearch_path \
23043 configure_time_lt_sys_library_path \
23044 reload_cmds_CXX \
23045 old_archive_cmds_CXX \
23046 old_archive_from_new_cmds_CXX \
23047 old_archive_from_expsyms_cmds_CXX \
23048 archive_cmds_CXX \
23049 archive_expsym_cmds_CXX \
23050 module_cmds_CXX \
23051 module_expsym_cmds_CXX \
23052 export_symbols_cmds_CXX \
23053 prelink_cmds_CXX \
23054 postlink_cmds_CXX; do
23055     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23056     *[\\\\\\\`\\"\\\$]*)
23057       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23058       ;;
23059     *)
23060       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23061       ;;
23062     esac
23063 done
23064
23065 ac_aux_dir='$ac_aux_dir'
23066
23067 # See if we are running on zsh, and set the options that allow our
23068 # commands through without removal of \ escapes INIT.
23069 if test -n "\${ZSH_VERSION+set}"; then
23070    setopt NO_GLOB_SUBST
23071 fi
23072
23073
23074     PACKAGE='$PACKAGE'
23075     VERSION='$VERSION'
23076     RM='$RM'
23077     ofile='$ofile'
23078
23079
23080
23081
23082
23083
23084 _ACEOF
23085
23086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23087
23088 # Handling of arguments.
23089 for ac_config_target in $ac_config_targets
23090 do
23091   case $ac_config_target in
23092     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23093     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23094     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23095     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23096     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23097     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23098     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23099     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23100     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23101     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23102     "test/shape/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/Makefile" ;;
23103     "test/shape/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/Makefile" ;;
23104     "test/shape/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/aots/Makefile" ;;
23105     "test/shape/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/in-house/Makefile" ;;
23106     "test/shape/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/text-rendering-tests/Makefile" ;;
23107     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23108     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23109     "test/subset/data/repack_tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/repack_tests/Makefile" ;;
23110     "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;;
23111     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
23112     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23113     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23114
23115   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23116   esac
23117 done
23118
23119
23120 # If the user did not use the arguments to specify the items to instantiate,
23121 # then the envvar interface is used.  Set only those that are not.
23122 # We use the long form for the default assignment because of an extremely
23123 # bizarre bug on SunOS 4.1.3.
23124 if $ac_need_defaults; then
23125   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23126   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23127   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23128 fi
23129
23130 # Have a temporary directory for convenience.  Make it in the build tree
23131 # simply because there is no reason against having it here, and in addition,
23132 # creating and moving files from /tmp can sometimes cause problems.
23133 # Hook for its removal unless debugging.
23134 # Note that there is a small window in which the directory will not be cleaned:
23135 # after its creation but before its name has been assigned to `$tmp'.
23136 $debug ||
23137 {
23138   tmp= ac_tmp=
23139   trap 'exit_status=$?
23140   : "${ac_tmp:=$tmp}"
23141   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23142 ' 0
23143   trap 'as_fn_exit 1' 1 2 13 15
23144 }
23145 # Create a (secure) tmp directory for tmp files.
23146
23147 {
23148   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23149   test -d "$tmp"
23150 }  ||
23151 {
23152   tmp=./conf$$-$RANDOM
23153   (umask 077 && mkdir "$tmp")
23154 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23155 ac_tmp=$tmp
23156
23157 # Set up the scripts for CONFIG_FILES section.
23158 # No need to generate them if there are no CONFIG_FILES.
23159 # This happens for instance with `./config.status config.h'.
23160 if test -n "$CONFIG_FILES"; then
23161
23162
23163 ac_cr=`echo X | tr X '\015'`
23164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23165 # But we know of no other shell where ac_cr would be empty at this
23166 # point, so we can use a bashism as a fallback.
23167 if test "x$ac_cr" = x; then
23168   eval ac_cr=\$\'\\r\'
23169 fi
23170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23172   ac_cs_awk_cr='\\r'
23173 else
23174   ac_cs_awk_cr=$ac_cr
23175 fi
23176
23177 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23178 _ACEOF
23179
23180
23181 {
23182   echo "cat >conf$$subs.awk <<_ACEOF" &&
23183   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23184   echo "_ACEOF"
23185 } >conf$$subs.sh ||
23186   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23188 ac_delim='%!_!# '
23189 for ac_last_try in false false false false false :; do
23190   . ./conf$$subs.sh ||
23191     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23192
23193   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23194   if test $ac_delim_n = $ac_delim_num; then
23195     break
23196   elif $ac_last_try; then
23197     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23198   else
23199     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23200   fi
23201 done
23202 rm -f conf$$subs.sh
23203
23204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23205 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23206 _ACEOF
23207 sed -n '
23208 h
23209 s/^/S["/; s/!.*/"]=/
23210 p
23211 g
23212 s/^[^!]*!//
23213 :repl
23214 t repl
23215 s/'"$ac_delim"'$//
23216 t delim
23217 :nl
23218 h
23219 s/\(.\{148\}\)..*/\1/
23220 t more1
23221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23222 p
23223 n
23224 b repl
23225 :more1
23226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23227 p
23228 g
23229 s/.\{148\}//
23230 t nl
23231 :delim
23232 h
23233 s/\(.\{148\}\)..*/\1/
23234 t more2
23235 s/["\\]/\\&/g; s/^/"/; s/$/"/
23236 p
23237 b
23238 :more2
23239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23240 p
23241 g
23242 s/.\{148\}//
23243 t delim
23244 ' <conf$$subs.awk | sed '
23245 /^[^""]/{
23246   N
23247   s/\n//
23248 }
23249 ' >>$CONFIG_STATUS || ac_write_fail=1
23250 rm -f conf$$subs.awk
23251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23252 _ACAWK
23253 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23254   for (key in S) S_is_set[key] = 1
23255   FS = "\a"
23256
23257 }
23258 {
23259   line = $ 0
23260   nfields = split(line, field, "@")
23261   substed = 0
23262   len = length(field[1])
23263   for (i = 2; i < nfields; i++) {
23264     key = field[i]
23265     keylen = length(key)
23266     if (S_is_set[key]) {
23267       value = S[key]
23268       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23269       len += length(value) + length(field[++i])
23270       substed = 1
23271     } else
23272       len += 1 + keylen
23273   }
23274
23275   print line
23276 }
23277
23278 _ACAWK
23279 _ACEOF
23280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23282   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23283 else
23284   cat
23285 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23286   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23287 _ACEOF
23288
23289 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23290 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23291 # trailing colons and then remove the whole line if VPATH becomes empty
23292 # (actually we leave an empty line to preserve line numbers).
23293 if test "x$srcdir" = x.; then
23294   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23295 h
23296 s///
23297 s/^/:/
23298 s/[      ]*$/:/
23299 s/:\$(srcdir):/:/g
23300 s/:\${srcdir}:/:/g
23301 s/:@srcdir@:/:/g
23302 s/^:*//
23303 s/:*$//
23304 x
23305 s/\(=[   ]*\).*/\1/
23306 G
23307 s/\n//
23308 s/^[^=]*=[       ]*$//
23309 }'
23310 fi
23311
23312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23313 fi # test -n "$CONFIG_FILES"
23314
23315 # Set up the scripts for CONFIG_HEADERS section.
23316 # No need to generate them if there are no CONFIG_HEADERS.
23317 # This happens for instance with `./config.status Makefile'.
23318 if test -n "$CONFIG_HEADERS"; then
23319 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23320 BEGIN {
23321 _ACEOF
23322
23323 # Transform confdefs.h into an awk script `defines.awk', embedded as
23324 # here-document in config.status, that substitutes the proper values into
23325 # config.h.in to produce config.h.
23326
23327 # Create a delimiter string that does not exist in confdefs.h, to ease
23328 # handling of long lines.
23329 ac_delim='%!_!# '
23330 for ac_last_try in false false :; do
23331   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23332   if test -z "$ac_tt"; then
23333     break
23334   elif $ac_last_try; then
23335     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23336   else
23337     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23338   fi
23339 done
23340
23341 # For the awk script, D is an array of macro values keyed by name,
23342 # likewise P contains macro parameters if any.  Preserve backslash
23343 # newline sequences.
23344
23345 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23346 sed -n '
23347 s/.\{148\}/&'"$ac_delim"'/g
23348 t rset
23349 :rset
23350 s/^[     ]*#[    ]*define[       ][      ]*/ /
23351 t def
23352 d
23353 :def
23354 s/\\$//
23355 t bsnl
23356 s/["\\]/\\&/g
23357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23358 D["\1"]=" \3"/p
23359 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23360 d
23361 :bsnl
23362 s/["\\]/\\&/g
23363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23364 D["\1"]=" \3\\\\\\n"\\/p
23365 t cont
23366 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23367 t cont
23368 d
23369 :cont
23370 n
23371 s/.\{148\}/&'"$ac_delim"'/g
23372 t clear
23373 :clear
23374 s/\\$//
23375 t bsnlc
23376 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23377 d
23378 :bsnlc
23379 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23380 b cont
23381 ' <confdefs.h | sed '
23382 s/'"$ac_delim"'/"\\\
23383 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23384
23385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23386   for (key in D) D_is_set[key] = 1
23387   FS = "\a"
23388 }
23389 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23390   line = \$ 0
23391   split(line, arg, " ")
23392   if (arg[1] == "#") {
23393     defundef = arg[2]
23394     mac1 = arg[3]
23395   } else {
23396     defundef = substr(arg[1], 2)
23397     mac1 = arg[2]
23398   }
23399   split(mac1, mac2, "(") #)
23400   macro = mac2[1]
23401   prefix = substr(line, 1, index(line, defundef) - 1)
23402   if (D_is_set[macro]) {
23403     # Preserve the white space surrounding the "#".
23404     print prefix "define", macro P[macro] D[macro]
23405     next
23406   } else {
23407     # Replace #undef with comments.  This is necessary, for example,
23408     # in the case of _POSIX_SOURCE, which is predefined and required
23409     # on some systems where configure will not decide to define it.
23410     if (defundef == "undef") {
23411       print "/*", prefix defundef, macro, "*/"
23412       next
23413     }
23414   }
23415 }
23416 { print }
23417 _ACAWK
23418 _ACEOF
23419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23420   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23421 fi # test -n "$CONFIG_HEADERS"
23422
23423
23424 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23425 shift
23426 for ac_tag
23427 do
23428   case $ac_tag in
23429   :[FHLC]) ac_mode=$ac_tag; continue;;
23430   esac
23431   case $ac_mode$ac_tag in
23432   :[FHL]*:*);;
23433   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23434   :[FH]-) ac_tag=-:-;;
23435   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23436   esac
23437   ac_save_IFS=$IFS
23438   IFS=:
23439   set x $ac_tag
23440   IFS=$ac_save_IFS
23441   shift
23442   ac_file=$1
23443   shift
23444
23445   case $ac_mode in
23446   :L) ac_source=$1;;
23447   :[FH])
23448     ac_file_inputs=
23449     for ac_f
23450     do
23451       case $ac_f in
23452       -) ac_f="$ac_tmp/stdin";;
23453       *) # Look for the file first in the build tree, then in the source tree
23454          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23455          # because $ac_f cannot contain `:'.
23456          test -f "$ac_f" ||
23457            case $ac_f in
23458            [\\/$]*) false;;
23459            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23460            esac ||
23461            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23462       esac
23463       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23464       as_fn_append ac_file_inputs " '$ac_f'"
23465     done
23466
23467     # Let's still pretend it is `configure' which instantiates (i.e., don't
23468     # use $as_me), people would be surprised to read:
23469     #    /* config.h.  Generated by config.status.  */
23470     configure_input='Generated from '`
23471           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23472         `' by configure.'
23473     if test x"$ac_file" != x-; then
23474       configure_input="$ac_file.  $configure_input"
23475       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23476 $as_echo "$as_me: creating $ac_file" >&6;}
23477     fi
23478     # Neutralize special characters interpreted by sed in replacement strings.
23479     case $configure_input in #(
23480     *\&* | *\|* | *\\* )
23481        ac_sed_conf_input=`$as_echo "$configure_input" |
23482        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23483     *) ac_sed_conf_input=$configure_input;;
23484     esac
23485
23486     case $ac_tag in
23487     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23488       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23489     esac
23490     ;;
23491   esac
23492
23493   ac_dir=`$as_dirname -- "$ac_file" ||
23494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23495          X"$ac_file" : 'X\(//\)[^/]' \| \
23496          X"$ac_file" : 'X\(//\)$' \| \
23497          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23498 $as_echo X"$ac_file" |
23499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23500             s//\1/
23501             q
23502           }
23503           /^X\(\/\/\)[^/].*/{
23504             s//\1/
23505             q
23506           }
23507           /^X\(\/\/\)$/{
23508             s//\1/
23509             q
23510           }
23511           /^X\(\/\).*/{
23512             s//\1/
23513             q
23514           }
23515           s/.*/./; q'`
23516   as_dir="$ac_dir"; as_fn_mkdir_p
23517   ac_builddir=.
23518
23519 case "$ac_dir" in
23520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23521 *)
23522   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23523   # A ".." for each directory in $ac_dir_suffix.
23524   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23525   case $ac_top_builddir_sub in
23526   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23527   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23528   esac ;;
23529 esac
23530 ac_abs_top_builddir=$ac_pwd
23531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23532 # for backward compatibility:
23533 ac_top_builddir=$ac_top_build_prefix
23534
23535 case $srcdir in
23536   .)  # We are building in place.
23537     ac_srcdir=.
23538     ac_top_srcdir=$ac_top_builddir_sub
23539     ac_abs_top_srcdir=$ac_pwd ;;
23540   [\\/]* | ?:[\\/]* )  # Absolute name.
23541     ac_srcdir=$srcdir$ac_dir_suffix;
23542     ac_top_srcdir=$srcdir
23543     ac_abs_top_srcdir=$srcdir ;;
23544   *) # Relative name.
23545     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23546     ac_top_srcdir=$ac_top_build_prefix$srcdir
23547     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23548 esac
23549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23550
23551
23552   case $ac_mode in
23553   :F)
23554   #
23555   # CONFIG_FILE
23556   #
23557
23558   case $INSTALL in
23559   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23560   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23561   esac
23562   ac_MKDIR_P=$MKDIR_P
23563   case $MKDIR_P in
23564   [\\/$]* | ?:[\\/]* ) ;;
23565   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23566   esac
23567 _ACEOF
23568
23569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23570 # If the template does not know about datarootdir, expand it.
23571 # FIXME: This hack should be removed a few years after 2.60.
23572 ac_datarootdir_hack=; ac_datarootdir_seen=
23573 ac_sed_dataroot='
23574 /datarootdir/ {
23575   p
23576   q
23577 }
23578 /@datadir@/p
23579 /@docdir@/p
23580 /@infodir@/p
23581 /@localedir@/p
23582 /@mandir@/p'
23583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23584 *datarootdir*) ac_datarootdir_seen=yes;;
23585 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23586   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23588 _ACEOF
23589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23590   ac_datarootdir_hack='
23591   s&@datadir@&$datadir&g
23592   s&@docdir@&$docdir&g
23593   s&@infodir@&$infodir&g
23594   s&@localedir@&$localedir&g
23595   s&@mandir@&$mandir&g
23596   s&\\\${datarootdir}&$datarootdir&g' ;;
23597 esac
23598 _ACEOF
23599
23600 # Neutralize VPATH when `$srcdir' = `.'.
23601 # Shell code in configure.ac might set extrasub.
23602 # FIXME: do we really want to maintain this feature?
23603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23604 ac_sed_extra="$ac_vpsub
23605 $extrasub
23606 _ACEOF
23607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23608 :t
23609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23610 s|@configure_input@|$ac_sed_conf_input|;t t
23611 s&@top_builddir@&$ac_top_builddir_sub&;t t
23612 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23613 s&@srcdir@&$ac_srcdir&;t t
23614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23615 s&@top_srcdir@&$ac_top_srcdir&;t t
23616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23617 s&@builddir@&$ac_builddir&;t t
23618 s&@abs_builddir@&$ac_abs_builddir&;t t
23619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23620 s&@INSTALL@&$ac_INSTALL&;t t
23621 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23622 $ac_datarootdir_hack
23623 "
23624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23625   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23626
23627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23628   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23629   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23630       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23631   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23632 which seems to be undefined.  Please make sure it is defined" >&5
23633 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23634 which seems to be undefined.  Please make sure it is defined" >&2;}
23635
23636   rm -f "$ac_tmp/stdin"
23637   case $ac_file in
23638   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23639   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23640   esac \
23641   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23642  ;;
23643   :H)
23644   #
23645   # CONFIG_HEADER
23646   #
23647   if test x"$ac_file" != x-; then
23648     {
23649       $as_echo "/* $configure_input  */" \
23650       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23651     } >"$ac_tmp/config.h" \
23652       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23653     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23654       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23655 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23656     else
23657       rm -f "$ac_file"
23658       mv "$ac_tmp/config.h" "$ac_file" \
23659         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23660     fi
23661   else
23662     $as_echo "/* $configure_input  */" \
23663       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23664       || as_fn_error $? "could not create -" "$LINENO" 5
23665   fi
23666 # Compute "$ac_file"'s index in $config_headers.
23667 _am_arg="$ac_file"
23668 _am_stamp_count=1
23669 for _am_header in $config_headers :; do
23670   case $_am_header in
23671     $_am_arg | $_am_arg:* )
23672       break ;;
23673     * )
23674       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23675   esac
23676 done
23677 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23678 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23679          X"$_am_arg" : 'X\(//\)[^/]' \| \
23680          X"$_am_arg" : 'X\(//\)$' \| \
23681          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23682 $as_echo X"$_am_arg" |
23683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23684             s//\1/
23685             q
23686           }
23687           /^X\(\/\/\)[^/].*/{
23688             s//\1/
23689             q
23690           }
23691           /^X\(\/\/\)$/{
23692             s//\1/
23693             q
23694           }
23695           /^X\(\/\).*/{
23696             s//\1/
23697             q
23698           }
23699           s/.*/./; q'`/stamp-h$_am_stamp_count
23700  ;;
23701
23702   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23703 $as_echo "$as_me: executing $ac_file commands" >&6;}
23704  ;;
23705   esac
23706
23707
23708   case $ac_file$ac_mode in
23709     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23710   # Older Autoconf quotes --file arguments for eval, but not when files
23711   # are listed without --file.  Let's play safe and only enable the eval
23712   # if we detect the quoting.
23713   # TODO: see whether this extra hack can be removed once we start
23714   # requiring Autoconf 2.70 or later.
23715   case $CONFIG_FILES in #(
23716   *\'*) :
23717     eval set x "$CONFIG_FILES" ;; #(
23718   *) :
23719     set x $CONFIG_FILES ;; #(
23720   *) :
23721      ;;
23722 esac
23723   shift
23724   # Used to flag and report bootstrapping failures.
23725   am_rc=0
23726   for am_mf
23727   do
23728     # Strip MF so we end up with the name of the file.
23729     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23730     # Check whether this is an Automake generated Makefile which includes
23731     # dependency-tracking related rules and includes.
23732     # Grep'ing the whole file directly is not great: AIX grep has a line
23733     # limit of 2048, but all sed's we know have understand at least 4000.
23734     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23735       || continue
23736     am_dirpart=`$as_dirname -- "$am_mf" ||
23737 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23738          X"$am_mf" : 'X\(//\)[^/]' \| \
23739          X"$am_mf" : 'X\(//\)$' \| \
23740          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23741 $as_echo X"$am_mf" |
23742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23743             s//\1/
23744             q
23745           }
23746           /^X\(\/\/\)[^/].*/{
23747             s//\1/
23748             q
23749           }
23750           /^X\(\/\/\)$/{
23751             s//\1/
23752             q
23753           }
23754           /^X\(\/\).*/{
23755             s//\1/
23756             q
23757           }
23758           s/.*/./; q'`
23759     am_filepart=`$as_basename -- "$am_mf" ||
23760 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23761          X"$am_mf" : 'X\(//\)$' \| \
23762          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23763 $as_echo X/"$am_mf" |
23764     sed '/^.*\/\([^/][^/]*\)\/*$/{
23765             s//\1/
23766             q
23767           }
23768           /^X\/\(\/\/\)$/{
23769             s//\1/
23770             q
23771           }
23772           /^X\/\(\/\).*/{
23773             s//\1/
23774             q
23775           }
23776           s/.*/./; q'`
23777     { echo "$as_me:$LINENO: cd "$am_dirpart" \
23778       && sed -e '/# am--include-marker/d' "$am_filepart" \
23779         | $MAKE -f - am--depfiles" >&5
23780    (cd "$am_dirpart" \
23781       && sed -e '/# am--include-marker/d' "$am_filepart" \
23782         | $MAKE -f - am--depfiles) >&5 2>&5
23783    ac_status=$?
23784    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785    (exit $ac_status); } || am_rc=$?
23786   done
23787   if test $am_rc -ne 0; then
23788     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23790 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23791     for automatic dependency tracking.  Try re-running configure with the
23792     '--disable-dependency-tracking' option to at least be able to build
23793     the package (albeit without support for automatic dependency tracking).
23794 See \`config.log' for more details" "$LINENO" 5; }
23795   fi
23796   { am_dirpart=; unset am_dirpart;}
23797   { am_filepart=; unset am_filepart;}
23798   { am_mf=; unset am_mf;}
23799   { am_rc=; unset am_rc;}
23800   rm -f conftest-deps.mk
23801 }
23802  ;;
23803     "libtool":C)
23804
23805     # See if we are running on zsh, and set the options that allow our
23806     # commands through without removal of \ escapes.
23807     if test -n "${ZSH_VERSION+set}"; then
23808       setopt NO_GLOB_SUBST
23809     fi
23810
23811     cfgfile=${ofile}T
23812     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23813     $RM "$cfgfile"
23814
23815     cat <<_LT_EOF >> "$cfgfile"
23816 #! $SHELL
23817 # Generated automatically by $as_me ($PACKAGE) $VERSION
23818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23819
23820 # Provide generalized library-building support services.
23821 # Written by Gordon Matzigkeit, 1996
23822
23823 # Copyright (C) 2014 Free Software Foundation, Inc.
23824 # This is free software; see the source for copying conditions.  There is NO
23825 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23826
23827 # GNU Libtool is free software; you can redistribute it and/or modify
23828 # it under the terms of the GNU General Public License as published by
23829 # the Free Software Foundation; either version 2 of of the License, or
23830 # (at your option) any later version.
23831 #
23832 # As a special exception to the GNU General Public License, if you
23833 # distribute this file as part of a program or library that is built
23834 # using GNU Libtool, you may include this file under the  same
23835 # distribution terms that you use for the rest of that program.
23836 #
23837 # GNU Libtool is distributed in the hope that it will be useful, but
23838 # WITHOUT ANY WARRANTY; without even the implied warranty of
23839 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23840 # GNU General Public License for more details.
23841 #
23842 # You should have received a copy of the GNU General Public License
23843 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23844
23845
23846 # The names of the tagged configurations supported by this script.
23847 available_tags='CXX '
23848
23849 # Configured defaults for sys_lib_dlsearch_path munging.
23850 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23851
23852 # ### BEGIN LIBTOOL CONFIG
23853
23854 # Which release of libtool.m4 was used?
23855 macro_version=$macro_version
23856 macro_revision=$macro_revision
23857
23858 # Whether or not to build static libraries.
23859 build_old_libs=$enable_static
23860
23861 # Whether or not to build shared libraries.
23862 build_libtool_libs=$enable_shared
23863
23864 # What type of objects to build.
23865 pic_mode=$pic_mode
23866
23867 # Whether or not to optimize for fast installation.
23868 fast_install=$enable_fast_install
23869
23870 # Shared archive member basename,for filename based shared library versioning on AIX.
23871 shared_archive_member_spec=$shared_archive_member_spec
23872
23873 # Shell to use when invoking shell scripts.
23874 SHELL=$lt_SHELL
23875
23876 # An echo program that protects backslashes.
23877 ECHO=$lt_ECHO
23878
23879 # The PATH separator for the build system.
23880 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23881
23882 # The host system.
23883 host_alias=$host_alias
23884 host=$host
23885 host_os=$host_os
23886
23887 # The build system.
23888 build_alias=$build_alias
23889 build=$build
23890 build_os=$build_os
23891
23892 # A sed program that does not truncate output.
23893 SED=$lt_SED
23894
23895 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23896 Xsed="\$SED -e 1s/^X//"
23897
23898 # A grep program that handles long lines.
23899 GREP=$lt_GREP
23900
23901 # An ERE matcher.
23902 EGREP=$lt_EGREP
23903
23904 # A literal string matcher.
23905 FGREP=$lt_FGREP
23906
23907 # A BSD- or MS-compatible name lister.
23908 NM=$lt_NM
23909
23910 # Whether we need soft or hard links.
23911 LN_S=$lt_LN_S
23912
23913 # What is the maximum length of a command?
23914 max_cmd_len=$max_cmd_len
23915
23916 # Object file suffix (normally "o").
23917 objext=$ac_objext
23918
23919 # Executable file suffix (normally "").
23920 exeext=$exeext
23921
23922 # whether the shell understands "unset".
23923 lt_unset=$lt_unset
23924
23925 # turn spaces into newlines.
23926 SP2NL=$lt_lt_SP2NL
23927
23928 # turn newlines into spaces.
23929 NL2SP=$lt_lt_NL2SP
23930
23931 # convert \$build file names to \$host format.
23932 to_host_file_cmd=$lt_cv_to_host_file_cmd
23933
23934 # convert \$build files to toolchain format.
23935 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23936
23937 # An object symbol dumper.
23938 OBJDUMP=$lt_OBJDUMP
23939
23940 # Method to check whether dependent libraries are shared objects.
23941 deplibs_check_method=$lt_deplibs_check_method
23942
23943 # Command to use when deplibs_check_method = "file_magic".
23944 file_magic_cmd=$lt_file_magic_cmd
23945
23946 # How to find potential files when deplibs_check_method = "file_magic".
23947 file_magic_glob=$lt_file_magic_glob
23948
23949 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23950 want_nocaseglob=$lt_want_nocaseglob
23951
23952 # DLL creation program.
23953 DLLTOOL=$lt_DLLTOOL
23954
23955 # Command to associate shared and link libraries.
23956 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23957
23958 # The archiver.
23959 AR=$lt_AR
23960
23961 # Flags to create an archive.
23962 AR_FLAGS=$lt_AR_FLAGS
23963
23964 # How to feed a file listing to the archiver.
23965 archiver_list_spec=$lt_archiver_list_spec
23966
23967 # A symbol stripping program.
23968 STRIP=$lt_STRIP
23969
23970 # Commands used to install an old-style archive.
23971 RANLIB=$lt_RANLIB
23972 old_postinstall_cmds=$lt_old_postinstall_cmds
23973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23974
23975 # Whether to use a lock for old archive extraction.
23976 lock_old_archive_extraction=$lock_old_archive_extraction
23977
23978 # A C compiler.
23979 LTCC=$lt_CC
23980
23981 # LTCC compiler flags.
23982 LTCFLAGS=$lt_CFLAGS
23983
23984 # Take the output of nm and produce a listing of raw symbols and C names.
23985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23986
23987 # Transform the output of nm in a proper C declaration.
23988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23989
23990 # Transform the output of nm into a list of symbols to manually relocate.
23991 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23992
23993 # Transform the output of nm in a C name address pair.
23994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23995
23996 # Transform the output of nm in a C name address pair when lib prefix is needed.
23997 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23998
23999 # The name lister interface.
24000 nm_interface=$lt_lt_cv_nm_interface
24001
24002 # Specify filename containing input files for \$NM.
24003 nm_file_list_spec=$lt_nm_file_list_spec
24004
24005 # The root where to search for dependent libraries,and where our libraries should be installed.
24006 lt_sysroot=$lt_sysroot
24007
24008 # Command to truncate a binary pipe.
24009 lt_truncate_bin=$lt_lt_cv_truncate_bin
24010
24011 # The name of the directory that contains temporary libtool files.
24012 objdir=$objdir
24013
24014 # Used to examine libraries when file_magic_cmd begins with "file".
24015 MAGIC_CMD=$MAGIC_CMD
24016
24017 # Must we lock files when doing compilation?
24018 need_locks=$lt_need_locks
24019
24020 # Manifest tool.
24021 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24022
24023 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24024 DSYMUTIL=$lt_DSYMUTIL
24025
24026 # Tool to change global to local symbols on Mac OS X.
24027 NMEDIT=$lt_NMEDIT
24028
24029 # Tool to manipulate fat objects and archives on Mac OS X.
24030 LIPO=$lt_LIPO
24031
24032 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24033 OTOOL=$lt_OTOOL
24034
24035 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24036 OTOOL64=$lt_OTOOL64
24037
24038 # Old archive suffix (normally "a").
24039 libext=$libext
24040
24041 # Shared library suffix (normally ".so").
24042 shrext_cmds=$lt_shrext_cmds
24043
24044 # The commands to extract the exported symbol list from a shared archive.
24045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24046
24047 # Variables whose values should be saved in libtool wrapper scripts and
24048 # restored at link time.
24049 variables_saved_for_relink=$lt_variables_saved_for_relink
24050
24051 # Do we need the "lib" prefix for modules?
24052 need_lib_prefix=$need_lib_prefix
24053
24054 # Do we need a version for libraries?
24055 need_version=$need_version
24056
24057 # Library versioning type.
24058 version_type=$version_type
24059
24060 # Shared library runtime path variable.
24061 runpath_var=$runpath_var
24062
24063 # Shared library path variable.
24064 shlibpath_var=$shlibpath_var
24065
24066 # Is shlibpath searched before the hard-coded library search path?
24067 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24068
24069 # Format of library name prefix.
24070 libname_spec=$lt_libname_spec
24071
24072 # List of archive names.  First name is the real one, the rest are links.
24073 # The last name is the one that the linker finds with -lNAME
24074 library_names_spec=$lt_library_names_spec
24075
24076 # The coded name of the library, if different from the real name.
24077 soname_spec=$lt_soname_spec
24078
24079 # Permission mode override for installation of shared libraries.
24080 install_override_mode=$lt_install_override_mode
24081
24082 # Command to use after installation of a shared archive.
24083 postinstall_cmds=$lt_postinstall_cmds
24084
24085 # Command to use after uninstallation of a shared archive.
24086 postuninstall_cmds=$lt_postuninstall_cmds
24087
24088 # Commands used to finish a libtool library installation in a directory.
24089 finish_cmds=$lt_finish_cmds
24090
24091 # As "finish_cmds", except a single script fragment to be evaled but
24092 # not shown.
24093 finish_eval=$lt_finish_eval
24094
24095 # Whether we should hardcode library paths into libraries.
24096 hardcode_into_libs=$hardcode_into_libs
24097
24098 # Compile-time system search path for libraries.
24099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24100
24101 # Detected run-time system search path for libraries.
24102 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24103
24104 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24105 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24106
24107 # Whether dlopen is supported.
24108 dlopen_support=$enable_dlopen
24109
24110 # Whether dlopen of programs is supported.
24111 dlopen_self=$enable_dlopen_self
24112
24113 # Whether dlopen of statically linked programs is supported.
24114 dlopen_self_static=$enable_dlopen_self_static
24115
24116 # Commands to strip libraries.
24117 old_striplib=$lt_old_striplib
24118 striplib=$lt_striplib
24119
24120
24121 # The linker used to build libraries.
24122 LD=$lt_LD
24123
24124 # How to create reloadable object files.
24125 reload_flag=$lt_reload_flag
24126 reload_cmds=$lt_reload_cmds
24127
24128 # Commands used to build an old-style archive.
24129 old_archive_cmds=$lt_old_archive_cmds
24130
24131 # A language specific compiler.
24132 CC=$lt_compiler
24133
24134 # Is the compiler the GNU compiler?
24135 with_gcc=$GCC
24136
24137 # Compiler flag to turn off builtin functions.
24138 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24139
24140 # Additional compiler flags for building library objects.
24141 pic_flag=$lt_lt_prog_compiler_pic
24142
24143 # How to pass a linker flag through the compiler.
24144 wl=$lt_lt_prog_compiler_wl
24145
24146 # Compiler flag to prevent dynamic linking.
24147 link_static_flag=$lt_lt_prog_compiler_static
24148
24149 # Does compiler simultaneously support -c and -o options?
24150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24151
24152 # Whether or not to add -lc for building shared libraries.
24153 build_libtool_need_lc=$archive_cmds_need_lc
24154
24155 # Whether or not to disallow shared libs when runtime libs are static.
24156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24157
24158 # Compiler flag to allow reflexive dlopens.
24159 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24160
24161 # Compiler flag to generate shared objects directly from archives.
24162 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24163
24164 # Whether the compiler copes with passing no objects directly.
24165 compiler_needs_object=$lt_compiler_needs_object
24166
24167 # Create an old-style archive from a shared archive.
24168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24169
24170 # Create a temporary old-style archive to link instead of a shared archive.
24171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24172
24173 # Commands used to build a shared archive.
24174 archive_cmds=$lt_archive_cmds
24175 archive_expsym_cmds=$lt_archive_expsym_cmds
24176
24177 # Commands used to build a loadable module if different from building
24178 # a shared archive.
24179 module_cmds=$lt_module_cmds
24180 module_expsym_cmds=$lt_module_expsym_cmds
24181
24182 # Whether we are building with GNU ld or not.
24183 with_gnu_ld=$lt_with_gnu_ld
24184
24185 # Flag that allows shared libraries with undefined symbols to be built.
24186 allow_undefined_flag=$lt_allow_undefined_flag
24187
24188 # Flag that enforces no undefined symbols.
24189 no_undefined_flag=$lt_no_undefined_flag
24190
24191 # Flag to hardcode \$libdir into a binary during linking.
24192 # This must work even if \$libdir does not exist
24193 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24194
24195 # Whether we need a single "-rpath" flag with a separated argument.
24196 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24197
24198 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24199 # DIR into the resulting binary.
24200 hardcode_direct=$hardcode_direct
24201
24202 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24203 # DIR into the resulting binary and the resulting library dependency is
24204 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24205 # library is relocated.
24206 hardcode_direct_absolute=$hardcode_direct_absolute
24207
24208 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24209 # into the resulting binary.
24210 hardcode_minus_L=$hardcode_minus_L
24211
24212 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24213 # into the resulting binary.
24214 hardcode_shlibpath_var=$hardcode_shlibpath_var
24215
24216 # Set to "yes" if building a shared library automatically hardcodes DIR
24217 # into the library and all subsequent libraries and executables linked
24218 # against it.
24219 hardcode_automatic=$hardcode_automatic
24220
24221 # Set to yes if linker adds runtime paths of dependent libraries
24222 # to runtime path list.
24223 inherit_rpath=$inherit_rpath
24224
24225 # Whether libtool must link a program against all its dependency libraries.
24226 link_all_deplibs=$link_all_deplibs
24227
24228 # Set to "yes" if exported symbols are required.
24229 always_export_symbols=$always_export_symbols
24230
24231 # The commands to list exported symbols.
24232 export_symbols_cmds=$lt_export_symbols_cmds
24233
24234 # Symbols that should not be listed in the preloaded symbols.
24235 exclude_expsyms=$lt_exclude_expsyms
24236
24237 # Symbols that must always be exported.
24238 include_expsyms=$lt_include_expsyms
24239
24240 # Commands necessary for linking programs (against libraries) with templates.
24241 prelink_cmds=$lt_prelink_cmds
24242
24243 # Commands necessary for finishing linking programs.
24244 postlink_cmds=$lt_postlink_cmds
24245
24246 # Specify filename containing input files.
24247 file_list_spec=$lt_file_list_spec
24248
24249 # How to hardcode a shared library path into an executable.
24250 hardcode_action=$hardcode_action
24251
24252 # The directories searched by this compiler when creating a shared library.
24253 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24254
24255 # Dependencies to place before and after the objects being linked to
24256 # create a shared library.
24257 predep_objects=$lt_predep_objects
24258 postdep_objects=$lt_postdep_objects
24259 predeps=$lt_predeps
24260 postdeps=$lt_postdeps
24261
24262 # The library search path used internally by the compiler when linking
24263 # a shared library.
24264 compiler_lib_search_path=$lt_compiler_lib_search_path
24265
24266 # ### END LIBTOOL CONFIG
24267
24268 _LT_EOF
24269
24270     cat <<'_LT_EOF' >> "$cfgfile"
24271
24272 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24273
24274 # func_munge_path_list VARIABLE PATH
24275 # -----------------------------------
24276 # VARIABLE is name of variable containing _space_ separated list of
24277 # directories to be munged by the contents of PATH, which is string
24278 # having a format:
24279 # "DIR[:DIR]:"
24280 #       string "DIR[ DIR]" will be prepended to VARIABLE
24281 # ":DIR[:DIR]"
24282 #       string "DIR[ DIR]" will be appended to VARIABLE
24283 # "DIRP[:DIRP]::[DIRA:]DIRA"
24284 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24285 #       "DIRA[ DIRA]" will be appended to VARIABLE
24286 # "DIR[:DIR]"
24287 #       VARIABLE will be replaced by "DIR[ DIR]"
24288 func_munge_path_list ()
24289 {
24290     case x$2 in
24291     x)
24292         ;;
24293     *:)
24294         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24295         ;;
24296     x:*)
24297         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24298         ;;
24299     *::*)
24300         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24301         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24302         ;;
24303     *)
24304         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24305         ;;
24306     esac
24307 }
24308
24309
24310 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24311 func_cc_basename ()
24312 {
24313     for cc_temp in $*""; do
24314       case $cc_temp in
24315         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24316         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24317         \-*) ;;
24318         *) break;;
24319       esac
24320     done
24321     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24322 }
24323
24324
24325 # ### END FUNCTIONS SHARED WITH CONFIGURE
24326
24327 _LT_EOF
24328
24329   case $host_os in
24330   aix3*)
24331     cat <<\_LT_EOF >> "$cfgfile"
24332 # AIX sometimes has problems with the GCC collect2 program.  For some
24333 # reason, if we set the COLLECT_NAMES environment variable, the problems
24334 # vanish in a puff of smoke.
24335 if test set != "${COLLECT_NAMES+set}"; then
24336   COLLECT_NAMES=
24337   export COLLECT_NAMES
24338 fi
24339 _LT_EOF
24340     ;;
24341   esac
24342
24343
24344 ltmain=$ac_aux_dir/ltmain.sh
24345
24346
24347   # We use sed instead of cat because bash on DJGPP gets confused if
24348   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24349   # text mode, it properly converts lines to CR/LF.  This bash problem
24350   # is reportedly fixed, but why not run on old versions too?
24351   sed '$q' "$ltmain" >> "$cfgfile" \
24352      || (rm -f "$cfgfile"; exit 1)
24353
24354    mv -f "$cfgfile" "$ofile" ||
24355     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24356   chmod +x "$ofile"
24357
24358
24359     cat <<_LT_EOF >> "$ofile"
24360
24361 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24362
24363 # The linker used to build libraries.
24364 LD=$lt_LD_CXX
24365
24366 # How to create reloadable object files.
24367 reload_flag=$lt_reload_flag_CXX
24368 reload_cmds=$lt_reload_cmds_CXX
24369
24370 # Commands used to build an old-style archive.
24371 old_archive_cmds=$lt_old_archive_cmds_CXX
24372
24373 # A language specific compiler.
24374 CC=$lt_compiler_CXX
24375
24376 # Is the compiler the GNU compiler?
24377 with_gcc=$GCC_CXX
24378
24379 # Compiler flag to turn off builtin functions.
24380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24381
24382 # Additional compiler flags for building library objects.
24383 pic_flag=$lt_lt_prog_compiler_pic_CXX
24384
24385 # How to pass a linker flag through the compiler.
24386 wl=$lt_lt_prog_compiler_wl_CXX
24387
24388 # Compiler flag to prevent dynamic linking.
24389 link_static_flag=$lt_lt_prog_compiler_static_CXX
24390
24391 # Does compiler simultaneously support -c and -o options?
24392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24393
24394 # Whether or not to add -lc for building shared libraries.
24395 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24396
24397 # Whether or not to disallow shared libs when runtime libs are static.
24398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24399
24400 # Compiler flag to allow reflexive dlopens.
24401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24402
24403 # Compiler flag to generate shared objects directly from archives.
24404 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24405
24406 # Whether the compiler copes with passing no objects directly.
24407 compiler_needs_object=$lt_compiler_needs_object_CXX
24408
24409 # Create an old-style archive from a shared archive.
24410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24411
24412 # Create a temporary old-style archive to link instead of a shared archive.
24413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24414
24415 # Commands used to build a shared archive.
24416 archive_cmds=$lt_archive_cmds_CXX
24417 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24418
24419 # Commands used to build a loadable module if different from building
24420 # a shared archive.
24421 module_cmds=$lt_module_cmds_CXX
24422 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24423
24424 # Whether we are building with GNU ld or not.
24425 with_gnu_ld=$lt_with_gnu_ld_CXX
24426
24427 # Flag that allows shared libraries with undefined symbols to be built.
24428 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24429
24430 # Flag that enforces no undefined symbols.
24431 no_undefined_flag=$lt_no_undefined_flag_CXX
24432
24433 # Flag to hardcode \$libdir into a binary during linking.
24434 # This must work even if \$libdir does not exist
24435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24436
24437 # Whether we need a single "-rpath" flag with a separated argument.
24438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24439
24440 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24441 # DIR into the resulting binary.
24442 hardcode_direct=$hardcode_direct_CXX
24443
24444 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24445 # DIR into the resulting binary and the resulting library dependency is
24446 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24447 # library is relocated.
24448 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24449
24450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24451 # into the resulting binary.
24452 hardcode_minus_L=$hardcode_minus_L_CXX
24453
24454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24455 # into the resulting binary.
24456 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24457
24458 # Set to "yes" if building a shared library automatically hardcodes DIR
24459 # into the library and all subsequent libraries and executables linked
24460 # against it.
24461 hardcode_automatic=$hardcode_automatic_CXX
24462
24463 # Set to yes if linker adds runtime paths of dependent libraries
24464 # to runtime path list.
24465 inherit_rpath=$inherit_rpath_CXX
24466
24467 # Whether libtool must link a program against all its dependency libraries.
24468 link_all_deplibs=$link_all_deplibs_CXX
24469
24470 # Set to "yes" if exported symbols are required.
24471 always_export_symbols=$always_export_symbols_CXX
24472
24473 # The commands to list exported symbols.
24474 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24475
24476 # Symbols that should not be listed in the preloaded symbols.
24477 exclude_expsyms=$lt_exclude_expsyms_CXX
24478
24479 # Symbols that must always be exported.
24480 include_expsyms=$lt_include_expsyms_CXX
24481
24482 # Commands necessary for linking programs (against libraries) with templates.
24483 prelink_cmds=$lt_prelink_cmds_CXX
24484
24485 # Commands necessary for finishing linking programs.
24486 postlink_cmds=$lt_postlink_cmds_CXX
24487
24488 # Specify filename containing input files.
24489 file_list_spec=$lt_file_list_spec_CXX
24490
24491 # How to hardcode a shared library path into an executable.
24492 hardcode_action=$hardcode_action_CXX
24493
24494 # The directories searched by this compiler when creating a shared library.
24495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24496
24497 # Dependencies to place before and after the objects being linked to
24498 # create a shared library.
24499 predep_objects=$lt_predep_objects_CXX
24500 postdep_objects=$lt_postdep_objects_CXX
24501 predeps=$lt_predeps_CXX
24502 postdeps=$lt_postdeps_CXX
24503
24504 # The library search path used internally by the compiler when linking
24505 # a shared library.
24506 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24507
24508 # ### END LIBTOOL TAG CONFIG: CXX
24509 _LT_EOF
24510
24511  ;;
24512
24513   esac
24514 done # for ac_tag
24515
24516
24517 as_fn_exit 0
24518 _ACEOF
24519 ac_clean_files=$ac_clean_files_save
24520
24521 test $ac_write_fail = 0 ||
24522   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24523
24524
24525 # configure is writing to config.log, and then calls config.status.
24526 # config.status does its own redirection, appending to config.log.
24527 # Unfortunately, on DOS this fails, as config.log is still kept open
24528 # by configure, so config.status won't be able to write to it; its
24529 # output is simply discarded.  So we exec the FD to /dev/null,
24530 # effectively closing config.log, so it can be properly (re)opened and
24531 # appended to by config.status.  When coming back to configure, we
24532 # need to make the FD available again.
24533 if test "$no_create" != yes; then
24534   ac_cs_success=:
24535   ac_config_status_args=
24536   test "$silent" = yes &&
24537     ac_config_status_args="$ac_config_status_args --quiet"
24538   exec 5>/dev/null
24539   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24540   exec 5>>config.log
24541   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24542   # would make configure fail if this is the last instruction.
24543   $ac_cs_success || as_fn_exit 1
24544 fi
24545 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24546   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24547 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24548 fi
24549
24550
24551 echo
24552 echo "C++ compiler version:"
24553 $CXX --version
24554 echo
24555
24556 { $as_echo "$as_me:${as_lineno-$LINENO}:
24557
24558 Autotools is no longer our supported build system for building the library
24559 for *nix distributions, please migrate to meson.
24560
24561 " >&5
24562 $as_echo "$as_me:
24563
24564 Autotools is no longer our supported build system for building the library
24565 for *nix distributions, please migrate to meson.
24566
24567 " >&6;}
24568
24569
24570 { $as_echo "$as_me:${as_lineno-$LINENO}:
24571
24572 Build configuration:
24573
24574 Unicode callbacks (you want at least one):
24575         Builtin                 true
24576         Glib:                   ${have_glib}
24577         ICU:                    ${have_icu}
24578
24579 Font callbacks (the more the merrier):
24580         FreeType:               ${have_freetype}
24581
24582 Tools used for command-line utilities:
24583         Cairo:                  ${have_cairo}
24584         Chafa:                  ${have_chafa}
24585
24586 Additional shapers:
24587         Graphite2:              ${have_graphite2}
24588
24589 Platform shapers (not normally needed):
24590         CoreText:               ${have_coretext}
24591         DirectWrite:            ${have_directwrite}
24592         GDI:                    ${have_gdi}
24593         Uniscribe:              ${have_uniscribe}
24594         WebAssembly:            ${have_wasm}
24595
24596 Other features:
24597         Documentation:          ${enable_gtk_doc}
24598         GObject bindings:       ${have_gobject}
24599         Introspection:          ${have_introspection}
24600 " >&5
24601 $as_echo "$as_me:
24602
24603 Build configuration:
24604
24605 Unicode callbacks (you want at least one):
24606         Builtin                 true
24607         Glib:                   ${have_glib}
24608         ICU:                    ${have_icu}
24609
24610 Font callbacks (the more the merrier):
24611         FreeType:               ${have_freetype}
24612
24613 Tools used for command-line utilities:
24614         Cairo:                  ${have_cairo}
24615         Chafa:                  ${have_chafa}
24616
24617 Additional shapers:
24618         Graphite2:              ${have_graphite2}
24619
24620 Platform shapers (not normally needed):
24621         CoreText:               ${have_coretext}
24622         DirectWrite:            ${have_directwrite}
24623         GDI:                    ${have_gdi}
24624         Uniscribe:              ${have_uniscribe}
24625         WebAssembly:            ${have_wasm}
24626
24627 Other features:
24628         Documentation:          ${enable_gtk_doc}
24629         GObject bindings:       ${have_gobject}
24630         Introspection:          ${have_introspection}
24631 " >&6;}