Imported Upstream version 2.6.7
[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 2.6.7.
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='2.6.7'
594 PACKAGE_STRING='HarfBuzz 2.6.7'
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_CORETEXT_FALSE
640 HAVE_CORETEXT_TRUE
641 CORETEXT_LIBS
642 CORETEXT_CFLAGS
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
645 DIRECTWRITE_LIBS
646 DIRECTWRITE_CXXFLAGS
647 HAVE_GDI_FALSE
648 HAVE_GDI_TRUE
649 GDI_LIBS
650 GDI_CFLAGS
651 HAVE_UNISCRIBE_FALSE
652 HAVE_UNISCRIBE_TRUE
653 UNISCRIBE_LIBS
654 UNISCRIBE_CFLAGS
655 HAVE_FREETYPE_FALSE
656 HAVE_FREETYPE_TRUE
657 FREETYPE_LIBS
658 FREETYPE_CFLAGS
659 FREETYPE_DEPS
660 HAVE_GRAPHITE2_FALSE
661 HAVE_GRAPHITE2_TRUE
662 GRAPHITE2_LIBS
663 GRAPHITE2_CFLAGS
664 GRAPHITE2_DEPS
665 HAVE_ICU_BUILTIN_FALSE
666 HAVE_ICU_BUILTIN_TRUE
667 HAVE_ICU_FALSE
668 HAVE_ICU_TRUE
669 ICU_CONFIG
670 ICU_LIBS
671 ICU_CFLAGS
672 HAVE_FONTCONFIG_FALSE
673 HAVE_FONTCONFIG_TRUE
674 FONTCONFIG_LIBS
675 FONTCONFIG_CFLAGS
676 HAVE_CAIRO_FT_FALSE
677 HAVE_CAIRO_FT_TRUE
678 CAIRO_FT_LIBS
679 CAIRO_FT_CFLAGS
680 HAVE_CAIRO_FALSE
681 HAVE_CAIRO_TRUE
682 CAIRO_LIBS
683 CAIRO_CFLAGS
684 HAVE_INTROSPECTION_FALSE
685 HAVE_INTROSPECTION_TRUE
686 INTROSPECTION_MAKEFILE
687 INTROSPECTION_LIBS
688 INTROSPECTION_CFLAGS
689 INTROSPECTION_TYPELIBDIR
690 INTROSPECTION_GIRDIR
691 INTROSPECTION_GENERATE
692 INTROSPECTION_COMPILER
693 INTROSPECTION_SCANNER
694 _GI_EXP_LIBDIR
695 _GI_EXP_DATADIR
696 have_gobject
697 HAVE_GOBJECT_FALSE
698 HAVE_GOBJECT_TRUE
699 GLIB_MKENUMS
700 GOBJECT_LIBS
701 GOBJECT_CFLAGS
702 HAVE_GLIB_FALSE
703 HAVE_GLIB_TRUE
704 GLIB_LIBS
705 GLIB_CFLAGS
706 GLIB_DEPS
707 HAVE_PTHREAD_FALSE
708 HAVE_PTHREAD_TRUE
709 PTHREAD_CFLAGS
710 PTHREAD_LIBS
711 PTHREAD_CC
712 ax_pthread_config
713 OS_WIN32_FALSE
714 OS_WIN32_TRUE
715 HAVE_GCC_FALSE
716 HAVE_GCC_TRUE
717 GTK_DOC_USE_REBASE_FALSE
718 GTK_DOC_USE_REBASE_TRUE
719 GTK_DOC_USE_LIBTOOL_FALSE
720 GTK_DOC_USE_LIBTOOL_TRUE
721 GTK_DOC_BUILD_PDF_FALSE
722 GTK_DOC_BUILD_PDF_TRUE
723 GTK_DOC_BUILD_HTML_FALSE
724 GTK_DOC_BUILD_HTML_TRUE
725 ENABLE_GTK_DOC_FALSE
726 ENABLE_GTK_DOC_TRUE
727 HAVE_GTK_DOC_FALSE
728 HAVE_GTK_DOC_TRUE
729 GTKDOC_DEPS_LIBS
730 GTKDOC_DEPS_CFLAGS
731 HTML_DIR
732 GTKDOC_MKPDF
733 GTKDOC_REBASE
734 GTKDOC_CHECK_PATH
735 GTKDOC_CHECK
736 WITH_LIBSTDCXX_FALSE
737 WITH_LIBSTDCXX_TRUE
738 HB_LIBTOOL_VERSION_INFO
739 HB_VERSION
740 HB_VERSION_MICRO
741 HB_VERSION_MINOR
742 HB_VERSION_MAJOR
743 GIT
744 RAGEL
745 PKG_CONFIG_LIBDIR
746 PKG_CONFIG_PATH
747 PKG_CONFIG
748 HAVE_CXX11
749 CXXCPP
750 am__fastdepCXX_FALSE
751 am__fastdepCXX_TRUE
752 CXXDEPMODE
753 ac_ct_CXX
754 CXXFLAGS
755 CXX
756 CPP
757 LT_SYS_LIBRARY_PATH
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 MANIFEST_TOOL
764 RANLIB
765 DLLTOOL
766 OBJDUMP
767 LN_S
768 NM
769 ac_ct_DUMPBIN
770 DUMPBIN
771 LD
772 FGREP
773 EGREP
774 GREP
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 LIBTOOL
784 am__fastdepCC_FALSE
785 am__fastdepCC_TRUE
786 CCDEPMODE
787 am__nodep
788 AMDEPBACKSLASH
789 AMDEP_FALSE
790 AMDEP_TRUE
791 am__include
792 DEPDIR
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 ac_ct_AR
801 AR
802 CODE_COVERAGE_RULES
803 CODE_COVERAGE_LDFLAGS
804 CODE_COVERAGE_LIBS
805 CODE_COVERAGE_CXXFLAGS
806 CODE_COVERAGE_CFLAGS
807 CODE_COVERAGE_CPPFLAGS
808 GENHTML
809 LCOV
810 GCOV
811 CODE_COVERAGE_ENABLED
812 CODE_COVERAGE_ENABLED_FALSE
813 CODE_COVERAGE_ENABLED_TRUE
814 SED
815 AM_BACKSLASH
816 AM_DEFAULT_VERBOSITY
817 AM_DEFAULT_V
818 AM_V
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
824 AWK
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL
880 am__quote'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_silent_rules
885 with_gcov
886 enable_code_coverage
887 enable_dependency_tracking
888 enable_static
889 enable_shared
890 with_pic
891 enable_fast_install
892 with_aix_soname
893 with_gnu_ld
894 with_sysroot
895 enable_libtool_lock
896 enable_largefile
897 with_libstdc__
898 with_html_dir
899 enable_gtk_doc
900 enable_gtk_doc_html
901 enable_gtk_doc_pdf
902 with_glib
903 with_gobject
904 enable_introspection
905 with_cairo
906 with_fontconfig
907 with_icu
908 with_graphite2
909 with_freetype
910 with_uniscribe
911 with_gdi
912 with_directwrite
913 with_coretext
914 '
915       ac_precious_vars='build_alias
916 host_alias
917 target_alias
918 CC
919 CFLAGS
920 LDFLAGS
921 LIBS
922 CPPFLAGS
923 LT_SYS_LIBRARY_PATH
924 CPP
925 CXX
926 CXXFLAGS
927 CCC
928 CXXCPP
929 PKG_CONFIG
930 PKG_CONFIG_PATH
931 PKG_CONFIG_LIBDIR
932 GTKDOC_DEPS_CFLAGS
933 GTKDOC_DEPS_LIBS
934 GLIB_CFLAGS
935 GLIB_LIBS
936 GOBJECT_CFLAGS
937 GOBJECT_LIBS
938 CAIRO_CFLAGS
939 CAIRO_LIBS
940 CAIRO_FT_CFLAGS
941 CAIRO_FT_LIBS
942 FONTCONFIG_CFLAGS
943 FONTCONFIG_LIBS
944 ICU_CFLAGS
945 ICU_LIBS
946 GRAPHITE2_CFLAGS
947 GRAPHITE2_LIBS
948 FREETYPE_CFLAGS
949 FREETYPE_LIBS'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
973
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
999
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1003 do
1004   # If the previous option needs an argument, assign it.
1005   if test -n "$ac_prev"; then
1006     eval $ac_prev=\$ac_option
1007     ac_prev=
1008     continue
1009   fi
1010
1011   case $ac_option in
1012   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013   *=)   ac_optarg= ;;
1014   *)    ac_optarg=yes ;;
1015   esac
1016
1017   # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019   case $ac_dashdash$ac_option in
1020   --)
1021     ac_dashdash=yes ;;
1022
1023   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027
1028   -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032
1033   -cache-file | --cache-file | --cache-fil | --cache-fi \
1034   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039
1040   --config-cache | -C)
1041     cache_file=config.cache ;;
1042
1043   -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047
1048   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049   | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054
1055   -disable-* | --disable-*)
1056     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059       as_fn_error $? "invalid feature name: $ac_useropt"
1060     ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063       *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067          ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085       as_fn_error $? "invalid feature name: $ac_useropt"
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099   | --exec | --exe | --ex)
1100     ac_prev=exec_prefix ;;
1101   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103   | --exec=* | --exe=* | --ex=*)
1104     exec_prefix=$ac_optarg ;;
1105
1106   -gas | --gas | --ga | --g)
1107     # Obsolete; use --with-gas.
1108     with_gas=yes ;;
1109
1110   -help | --help | --hel | --he | -h)
1111     ac_init_help=long ;;
1112   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113     ac_init_help=recursive ;;
1114   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115     ac_init_help=short ;;
1116
1117   -host | --host | --hos | --ho)
1118     ac_prev=host_alias ;;
1119   -host=* | --host=* | --hos=* | --ho=*)
1120     host_alias=$ac_optarg ;;
1121
1122   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123     ac_prev=htmldir ;;
1124   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125   | --ht=*)
1126     htmldir=$ac_optarg ;;
1127
1128   -includedir | --includedir | --includedi | --included | --include \
1129   | --includ | --inclu | --incl | --inc)
1130     ac_prev=includedir ;;
1131   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132   | --includ=* | --inclu=* | --incl=* | --inc=*)
1133     includedir=$ac_optarg ;;
1134
1135   -infodir | --infodir | --infodi | --infod | --info | --inf)
1136     ac_prev=infodir ;;
1137   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138     infodir=$ac_optarg ;;
1139
1140   -libdir | --libdir | --libdi | --libd)
1141     ac_prev=libdir ;;
1142   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143     libdir=$ac_optarg ;;
1144
1145   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146   | --libexe | --libex | --libe)
1147     ac_prev=libexecdir ;;
1148   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149   | --libexe=* | --libex=* | --libe=*)
1150     libexecdir=$ac_optarg ;;
1151
1152   -localedir | --localedir | --localedi | --localed | --locale)
1153     ac_prev=localedir ;;
1154   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155     localedir=$ac_optarg ;;
1156
1157   -localstatedir | --localstatedir | --localstatedi | --localstated \
1158   | --localstate | --localstat | --localsta | --localst | --locals)
1159     ac_prev=localstatedir ;;
1160   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162     localstatedir=$ac_optarg ;;
1163
1164   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165     ac_prev=mandir ;;
1166   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167     mandir=$ac_optarg ;;
1168
1169   -nfp | --nfp | --nf)
1170     # Obsolete; use --without-fp.
1171     with_fp=no ;;
1172
1173   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174   | --no-cr | --no-c | -n)
1175     no_create=yes ;;
1176
1177   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179     no_recursion=yes ;;
1180
1181   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183   | --oldin | --oldi | --old | --ol | --o)
1184     ac_prev=oldincludedir ;;
1185   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188     oldincludedir=$ac_optarg ;;
1189
1190   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191     ac_prev=prefix ;;
1192   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193     prefix=$ac_optarg ;;
1194
1195   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196   | --program-pre | --program-pr | --program-p)
1197     ac_prev=program_prefix ;;
1198   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200     program_prefix=$ac_optarg ;;
1201
1202   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203   | --program-suf | --program-su | --program-s)
1204     ac_prev=program_suffix ;;
1205   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207     program_suffix=$ac_optarg ;;
1208
1209   -program-transform-name | --program-transform-name \
1210   | --program-transform-nam | --program-transform-na \
1211   | --program-transform-n | --program-transform- \
1212   | --program-transform | --program-transfor \
1213   | --program-transfo | --program-transf \
1214   | --program-trans | --program-tran \
1215   | --progr-tra | --program-tr | --program-t)
1216     ac_prev=program_transform_name ;;
1217   -program-transform-name=* | --program-transform-name=* \
1218   | --program-transform-nam=* | --program-transform-na=* \
1219   | --program-transform-n=* | --program-transform-=* \
1220   | --program-transform=* | --program-transfor=* \
1221   | --program-transfo=* | --program-transf=* \
1222   | --program-trans=* | --program-tran=* \
1223   | --progr-tra=* | --program-tr=* | --program-t=*)
1224     program_transform_name=$ac_optarg ;;
1225
1226   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227     ac_prev=pdfdir ;;
1228   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229     pdfdir=$ac_optarg ;;
1230
1231   -psdir | --psdir | --psdi | --psd | --ps)
1232     ac_prev=psdir ;;
1233   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234     psdir=$ac_optarg ;;
1235
1236   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237   | -silent | --silent | --silen | --sile | --sil)
1238     silent=yes ;;
1239
1240   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241     ac_prev=sbindir ;;
1242   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243   | --sbi=* | --sb=*)
1244     sbindir=$ac_optarg ;;
1245
1246   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248   | --sharedst | --shareds | --shared | --share | --shar \
1249   | --sha | --sh)
1250     ac_prev=sharedstatedir ;;
1251   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254   | --sha=* | --sh=*)
1255     sharedstatedir=$ac_optarg ;;
1256
1257   -site | --site | --sit)
1258     ac_prev=site ;;
1259   -site=* | --site=* | --sit=*)
1260     site=$ac_optarg ;;
1261
1262   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263     ac_prev=srcdir ;;
1264   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265     srcdir=$ac_optarg ;;
1266
1267   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268   | --syscon | --sysco | --sysc | --sys | --sy)
1269     ac_prev=sysconfdir ;;
1270   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272     sysconfdir=$ac_optarg ;;
1273
1274   -target | --target | --targe | --targ | --tar | --ta | --t)
1275     ac_prev=target_alias ;;
1276   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277     target_alias=$ac_optarg ;;
1278
1279   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280     verbose=yes ;;
1281
1282   -version | --version | --versio | --versi | --vers | -V)
1283     ac_init_version=: ;;
1284
1285   -with-* | --with-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error $? "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=\$ac_optarg ;;
1300
1301   -without-* | --without-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid package name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval with_$ac_useropt=no ;;
1316
1317   --x)
1318     # Obsolete; use --with-x.
1319     with_x=yes ;;
1320
1321   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322   | --x-incl | --x-inc | --x-in | --x-i)
1323     ac_prev=x_includes ;;
1324   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326     x_includes=$ac_optarg ;;
1327
1328   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330     ac_prev=x_libraries ;;
1331   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333     x_libraries=$ac_optarg ;;
1334
1335   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1337     ;;
1338
1339   *=*)
1340     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341     # Reject names that are not valid shell variable names.
1342     case $ac_envvar in #(
1343       '' | [0-9]* | *[!_$as_cr_alnum]* )
1344       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345     esac
1346     eval $ac_envvar=\$ac_optarg
1347     export $ac_envvar ;;
1348
1349   *)
1350     # FIXME: should be removed in autoconf 3.0.
1351     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355     ;;
1356
1357   esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362   as_fn_error $? "missing argument to $ac_option"
1363 fi
1364
1365 if test -n "$ac_unrecognized_opts"; then
1366   case $enable_option_checking in
1367     no) ;;
1368     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370   esac
1371 fi
1372
1373 # Check all directory arguments for consistency.
1374 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375                 datadir sysconfdir sharedstatedir localstatedir includedir \
1376                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377                 libdir localedir mandir
1378 do
1379   eval ac_val=\$$ac_var
1380   # Remove trailing slashes.
1381   case $ac_val in
1382     */ )
1383       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384       eval $ac_var=\$ac_val;;
1385   esac
1386   # Be sure to have absolute directory names.
1387   case $ac_val in
1388     [\\/$]* | ?:[\\/]* )  continue;;
1389     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390   esac
1391   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403   if test "x$build_alias" = x; then
1404     cross_compiling=maybe
1405   elif test "x$build_alias" != "x$host_alias"; then
1406     cross_compiling=yes
1407   fi
1408 fi
1409
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412
1413 test "$silent" = yes && exec 6>/dev/null
1414
1415
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419   as_fn_error $? "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421   as_fn_error $? "pwd does not report name of working directory"
1422
1423
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426   ac_srcdir_defaulted=yes
1427   # Try the directory containing this script, then the parent directory.
1428   ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430          X"$as_myself" : 'X\(//\)[^/]' \| \
1431          X"$as_myself" : 'X\(//\)$' \| \
1432          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)[^/].*/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)$/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\).*/{
1447             s//\1/
1448             q
1449           }
1450           s/.*/./; q'`
1451   srcdir=$ac_confdir
1452   if test ! -r "$srcdir/$ac_unique_file"; then
1453     srcdir=..
1454   fi
1455 else
1456   ac_srcdir_defaulted=no
1457 fi
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1461 fi
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465         pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468   srcdir=.
1469 fi
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_env_${ac_var}_value=\$${ac_var}
1479   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1482
1483 #
1484 # Report the --help message.
1485 #
1486 if test "$ac_init_help" = "long"; then
1487   # Omit some internal or obsolete options to make the list less imposing.
1488   # This message is too long to be a string in the A/UX 3.1 sh.
1489   cat <<_ACEOF
1490 \`configure' configures HarfBuzz 2.6.7 to adapt to many kinds of systems.
1491
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE.  See below for descriptions of some of the useful variables.
1496
1497 Defaults for the options are specified in brackets.
1498
1499 Configuration:
1500   -h, --help              display this help and exit
1501       --help=short        display options specific to this package
1502       --help=recursive    display the short help of all the included packages
1503   -V, --version           display version information and exit
1504   -q, --quiet, --silent   do not print \`checking ...' messages
1505       --cache-file=FILE   cache test results in FILE [disabled]
1506   -C, --config-cache      alias for \`--cache-file=config.cache'
1507   -n, --no-create         do not create output files
1508       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1509
1510 Installation directories:
1511   --prefix=PREFIX         install architecture-independent files in PREFIX
1512                           [$ac_default_prefix]
1513   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1514                           [PREFIX]
1515
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1520
1521 For better control, use the options below.
1522
1523 Fine tuning of the installation directories:
1524   --bindir=DIR            user executables [EPREFIX/bin]
1525   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1526   --libexecdir=DIR        program executables [EPREFIX/libexec]
1527   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1528   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1529   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1530   --libdir=DIR            object code libraries [EPREFIX/lib]
1531   --includedir=DIR        C header files [PREFIX/include]
1532   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1533   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1534   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1535   --infodir=DIR           info documentation [DATAROOTDIR/info]
1536   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1537   --mandir=DIR            man documentation [DATAROOTDIR/man]
1538   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1539   --htmldir=DIR           html documentation [DOCDIR]
1540   --dvidir=DIR            dvi documentation [DOCDIR]
1541   --pdfdir=DIR            pdf documentation [DOCDIR]
1542   --psdir=DIR             ps documentation [DOCDIR]
1543 _ACEOF
1544
1545   cat <<\_ACEOF
1546
1547 Program names:
1548   --program-prefix=PREFIX            prepend PREFIX to installed program names
1549   --program-suffix=SUFFIX            append SUFFIX to installed program names
1550   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1551
1552 System types:
1553   --build=BUILD     configure for building on BUILD [guessed]
1554   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1555 _ACEOF
1556 fi
1557
1558 if test -n "$ac_init_help"; then
1559   case $ac_init_help in
1560      short | recursive ) echo "Configuration of HarfBuzz 2.6.7:";;
1561    esac
1562   cat <<\_ACEOF
1563
1564 Optional Features:
1565   --disable-option-checking  ignore unrecognized --enable/--with options
1566   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1567   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1568   --enable-silent-rules   less verbose build output (undo: "make V=1")
1569   --disable-silent-rules  verbose build output (undo: "make V=0")
1570   --enable-code-coverage  Whether to enable code coverage support
1571   --enable-dependency-tracking
1572                           do not reject slow dependency extractors
1573   --disable-dependency-tracking
1574                           speeds up one-time build
1575   --enable-static[=PKGS]  build static libraries [default=no]
1576   --enable-shared[=PKGS]  build shared libraries [default=yes]
1577   --enable-fast-install[=PKGS]
1578                           optimize for fast installation [default=yes]
1579   --disable-libtool-lock  avoid locking (might break parallel builds)
1580   --disable-largefile     omit support for large files
1581   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1582   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1583   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1584   --enable-introspection=[no/auto/yes]
1585                           Enable introspection for this build
1586
1587 Optional Packages:
1588   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1591   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1592                           both]
1593   --with-aix-soname=aix|svr4|both
1594                           shared library versioning (aka "SONAME") variant to
1595                           provide on AIX, [default=aix].
1596   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1597   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1598                           compiler's sysroot if not specified).
1599   --with-libstdc++=[yes/no]
1600                           Allow linking with libstdc++ [default=no]
1601   --with-html-dir=PATH    path to installed docs
1602   --with-glib=[yes/no/auto]
1603                           Use glib [default=auto]
1604   --with-gobject=[yes/no/auto]
1605                           Use gobject [default=no]
1606   --with-cairo=[yes/no/auto]
1607                           Use cairo [default=auto]
1608   --with-fontconfig=[yes/no/auto]
1609                           Use fontconfig [default=auto]
1610   --with-icu=[yes/no/builtin/auto]
1611                           Use ICU [default=auto]
1612   --with-graphite2=[yes/no/auto]
1613                           Use the graphite2 library [default=no]
1614   --with-freetype=[yes/no/auto]
1615                           Use the FreeType library [default=auto]
1616   --with-uniscribe=[yes/no/auto]
1617                           Use the Uniscribe library [default=no]
1618   --with-gdi=[yes/no/auto]
1619                           Provide GDI integration helpers [default=no]
1620   --with-directwrite=[yes/no/auto]
1621                           Use the DirectWrite library (experimental)
1622                           [default=no]
1623   --with-coretext=[yes/no/auto]
1624                           Use CoreText [default=no]
1625
1626 Some influential environment variables:
1627   CC          C compiler command
1628   CFLAGS      C compiler flags
1629   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630               nonstandard directory <lib dir>
1631   LIBS        libraries to pass to the linker, e.g. -l<library>
1632   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633               you have headers in a nonstandard directory <include dir>
1634   LT_SYS_LIBRARY_PATH
1635               User-defined run-time library search path.
1636   CPP         C preprocessor
1637   CXX         C++ compiler command
1638   CXXFLAGS    C++ compiler flags
1639   CXXCPP      C++ preprocessor
1640   PKG_CONFIG  path to pkg-config utility
1641   PKG_CONFIG_PATH
1642               directories to add to pkg-config's search path
1643   PKG_CONFIG_LIBDIR
1644               path overriding pkg-config's built-in search path
1645   GTKDOC_DEPS_CFLAGS
1646               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1647   GTKDOC_DEPS_LIBS
1648               linker flags for GTKDOC_DEPS, overriding pkg-config
1649   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1650   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1651   GOBJECT_CFLAGS
1652               C compiler flags for GOBJECT, overriding pkg-config
1653   GOBJECT_LIBS
1654               linker flags for GOBJECT, overriding pkg-config
1655   CAIRO_CFLAGS
1656               C compiler flags for CAIRO, overriding pkg-config
1657   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1658   CAIRO_FT_CFLAGS
1659               C compiler flags for CAIRO_FT, overriding pkg-config
1660   CAIRO_FT_LIBS
1661               linker flags for CAIRO_FT, overriding pkg-config
1662   FONTCONFIG_CFLAGS
1663               C compiler flags for FONTCONFIG, overriding pkg-config
1664   FONTCONFIG_LIBS
1665               linker flags for FONTCONFIG, overriding pkg-config
1666   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1667   ICU_LIBS    linker flags for ICU, overriding pkg-config
1668   GRAPHITE2_CFLAGS
1669               C compiler flags for GRAPHITE2, overriding pkg-config
1670   GRAPHITE2_LIBS
1671               linker flags for GRAPHITE2, overriding pkg-config
1672   FREETYPE_CFLAGS
1673               C compiler flags for FREETYPE, overriding pkg-config
1674   FREETYPE_LIBS
1675               linker flags for FREETYPE, overriding pkg-config
1676
1677 Use these variables to override the choices made by `configure' or to help
1678 it to find libraries and programs with nonstandard names/locations.
1679
1680 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1681 HarfBuzz home page: <http://harfbuzz.org/>.
1682 _ACEOF
1683 ac_status=$?
1684 fi
1685
1686 if test "$ac_init_help" = "recursive"; then
1687   # If there are subdirs, report their specific --help.
1688   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689     test -d "$ac_dir" ||
1690       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691       continue
1692     ac_builddir=.
1693
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 *)
1697   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698   # A ".." for each directory in $ac_dir_suffix.
1699   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700   case $ac_top_builddir_sub in
1701   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703   esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1709
1710 case $srcdir in
1711   .)  # We are building in place.
1712     ac_srcdir=.
1713     ac_top_srcdir=$ac_top_builddir_sub
1714     ac_abs_top_srcdir=$ac_pwd ;;
1715   [\\/]* | ?:[\\/]* )  # Absolute name.
1716     ac_srcdir=$srcdir$ac_dir_suffix;
1717     ac_top_srcdir=$srcdir
1718     ac_abs_top_srcdir=$srcdir ;;
1719   *) # Relative name.
1720     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721     ac_top_srcdir=$ac_top_build_prefix$srcdir
1722     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1725
1726     cd "$ac_dir" || { ac_status=$?; continue; }
1727     # Check for guested configure.
1728     if test -f "$ac_srcdir/configure.gnu"; then
1729       echo &&
1730       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731     elif test -f "$ac_srcdir/configure"; then
1732       echo &&
1733       $SHELL "$ac_srcdir/configure" --help=recursive
1734     else
1735       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736     fi || ac_status=$?
1737     cd "$ac_pwd" || { ac_status=$?; break; }
1738   done
1739 fi
1740
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743   cat <<\_ACEOF
1744 HarfBuzz configure 2.6.7
1745 generated by GNU Autoconf 2.69
1746
1747 Copyright (C) 2012 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751   exit
1752 fi
1753
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1757
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   rm -f conftest.$ac_objext
1765   if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_compile") 2>conftest.err
1773   ac_status=$?
1774   if test -s conftest.err; then
1775     grep -v '^ *+' conftest.err >conftest.er1
1776     cat conftest.er1 >&5
1777     mv -f conftest.er1 conftest.err
1778   fi
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; } && {
1781          test -z "$ac_c_werror_flag" ||
1782          test ! -s conftest.err
1783        } && test -s conftest.$ac_objext; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789         ac_retval=1
1790 fi
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_compile
1795
1796 # ac_fn_c_try_link LINENO
1797 # -----------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_link ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   rm -f conftest.$ac_objext conftest$ac_exeext
1803   if { { ac_try="$ac_link"
1804 case "(($ac_try" in
1805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806   *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810   (eval "$ac_link") 2>conftest.err
1811   ac_status=$?
1812   if test -s conftest.err; then
1813     grep -v '^ *+' conftest.err >conftest.er1
1814     cat conftest.er1 >&5
1815     mv -f conftest.er1 conftest.err
1816   fi
1817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818   test $ac_status = 0; } && {
1819          test -z "$ac_c_werror_flag" ||
1820          test ! -s conftest.err
1821        } && test -s conftest$ac_exeext && {
1822          test "$cross_compiling" = yes ||
1823          test -x conftest$ac_exeext
1824        }; then :
1825   ac_retval=0
1826 else
1827   $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830         ac_retval=1
1831 fi
1832   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834   # interfere with the next link command; also delete a directory that is
1835   # left behind by Apple's compiler.  We do this before executing the actions.
1836   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838   as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_link
1841
1842 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists and can be compiled using the include files in
1845 # INCLUDES, setting the cache variable VAR accordingly.
1846 ac_fn_c_check_header_compile ()
1847 {
1848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 else
1854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h.  */
1856 $4
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860   eval "$3=yes"
1861 else
1862   eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 fi
1866 eval ac_res=\$$3
1867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_c_check_header_compile
1872
1873 # ac_fn_c_try_cpp LINENO
1874 # ----------------------
1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_cpp ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 case "(($ac_try" in
1881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882   *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887   ac_status=$?
1888   if test -s conftest.err; then
1889     grep -v '^ *+' conftest.err >conftest.er1
1890     cat conftest.er1 >&5
1891     mv -f conftest.er1 conftest.err
1892   fi
1893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894   test $ac_status = 0; } > conftest.i && {
1895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1896          test ! -s conftest.err
1897        }; then :
1898   ac_retval=0
1899 else
1900   $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903     ac_retval=1
1904 fi
1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906   as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_cpp
1909
1910 # ac_fn_c_try_run LINENO
1911 # ----------------------
1912 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1913 # that executables *can* be run.
1914 ac_fn_c_try_run ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   if { { ac_try="$ac_link"
1918 case "(($ac_try" in
1919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920   *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924   (eval "$ac_link") 2>&5
1925   ac_status=$?
1926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1928   { { case "(($ac_try" in
1929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930   *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934   (eval "$ac_try") 2>&5
1935   ac_status=$?
1936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937   test $ac_status = 0; }; }; then :
1938   ac_retval=0
1939 else
1940   $as_echo "$as_me: program exited with status $ac_status" >&5
1941        $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1943
1944        ac_retval=$ac_status
1945 fi
1946   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948   as_fn_set_status $ac_retval
1949
1950 } # ac_fn_c_try_run
1951
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1967 #define $2 innocuous_$2
1968
1969 /* System header to define __stub macros and hopefully few prototypes,
1970     which can conflict with char $2 (); below.
1971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972     <limits.h> exists even on freestanding compilers.  */
1973
1974 #ifdef __STDC__
1975 # include <limits.h>
1976 #else
1977 # include <assert.h>
1978 #endif
1979
1980 #undef $2
1981
1982 /* Override any GCC internal prototype to avoid an error.
1983    Use char because int might match the return type of a GCC
1984    builtin and then its argument prototype would still apply.  */
1985 #ifdef __cplusplus
1986 extern "C"
1987 #endif
1988 char $2 ();
1989 /* The GNU C library defines this for functions which it implements
1990     to always fail with ENOSYS.  Some functions are actually named
1991     something starting with __ and the normal name is an alias.  */
1992 #if defined __stub_$2 || defined __stub___$2
1993 choke me
1994 #endif
1995
1996 int
1997 main ()
1998 {
1999 return $2 ();
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_link "$LINENO"; then :
2005   eval "$3=yes"
2006 else
2007   eval "$3=no"
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext \
2010     conftest$ac_exeext conftest.$ac_ext
2011 fi
2012 eval ac_res=\$$3
2013                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_c_check_func
2018
2019 # ac_fn_cxx_try_compile LINENO
2020 # ----------------------------
2021 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_cxx_try_compile ()
2023 {
2024   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025   rm -f conftest.$ac_objext
2026   if { { ac_try="$ac_compile"
2027 case "(($ac_try" in
2028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029   *) ac_try_echo=$ac_try;;
2030 esac
2031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032 $as_echo "$ac_try_echo"; } >&5
2033   (eval "$ac_compile") 2>conftest.err
2034   ac_status=$?
2035   if test -s conftest.err; then
2036     grep -v '^ *+' conftest.err >conftest.er1
2037     cat conftest.er1 >&5
2038     mv -f conftest.er1 conftest.err
2039   fi
2040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041   test $ac_status = 0; } && {
2042          test -z "$ac_cxx_werror_flag" ||
2043          test ! -s conftest.err
2044        } && test -s conftest.$ac_objext; then :
2045   ac_retval=0
2046 else
2047   $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2049
2050         ac_retval=1
2051 fi
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053   as_fn_set_status $ac_retval
2054
2055 } # ac_fn_cxx_try_compile
2056
2057 # ac_fn_cxx_try_cpp LINENO
2058 # ------------------------
2059 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_cxx_try_cpp ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   if { { ac_try="$ac_cpp conftest.$ac_ext"
2064 case "(($ac_try" in
2065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066   *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2071   ac_status=$?
2072   if test -s conftest.err; then
2073     grep -v '^ *+' conftest.err >conftest.er1
2074     cat conftest.er1 >&5
2075     mv -f conftest.er1 conftest.err
2076   fi
2077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078   test $ac_status = 0; } > conftest.i && {
2079          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2080          test ! -s conftest.err
2081        }; then :
2082   ac_retval=0
2083 else
2084   $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087     ac_retval=1
2088 fi
2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090   as_fn_set_status $ac_retval
2091
2092 } # ac_fn_cxx_try_cpp
2093
2094 # ac_fn_cxx_try_link LINENO
2095 # -------------------------
2096 # Try to link conftest.$ac_ext, and return whether this succeeded.
2097 ac_fn_cxx_try_link ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   rm -f conftest.$ac_objext conftest$ac_exeext
2101   if { { ac_try="$ac_link"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108   (eval "$ac_link") 2>conftest.err
2109   ac_status=$?
2110   if test -s conftest.err; then
2111     grep -v '^ *+' conftest.err >conftest.er1
2112     cat conftest.er1 >&5
2113     mv -f conftest.er1 conftest.err
2114   fi
2115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116   test $ac_status = 0; } && {
2117          test -z "$ac_cxx_werror_flag" ||
2118          test ! -s conftest.err
2119        } && test -s conftest$ac_exeext && {
2120          test "$cross_compiling" = yes ||
2121          test -x conftest$ac_exeext
2122        }; then :
2123   ac_retval=0
2124 else
2125   $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2127
2128         ac_retval=1
2129 fi
2130   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2131   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2132   # interfere with the next link command; also delete a directory that is
2133   # left behind by Apple's compiler.  We do this before executing the actions.
2134   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136   as_fn_set_status $ac_retval
2137
2138 } # ac_fn_cxx_try_link
2139
2140 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # -------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2144 # accordingly.
2145 ac_fn_c_check_header_mongrel ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   if eval \${$3+:} false; then :
2149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152   $as_echo_n "(cached) " >&6
2153 fi
2154 eval ac_res=\$$3
2155                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 else
2158   # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   ac_header_compiler=yes
2168 else
2169   ac_header_compiler=no
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2174
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_c_try_cpp "$LINENO"; then :
2183   ac_header_preproc=yes
2184 else
2185   ac_header_preproc=no
2186 fi
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2190
2191 # So?  What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2193   yes:no: )
2194     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198     ;;
2199   no:yes:* )
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2204     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ( $as_echo "## -------------------------------------------------------------- ##
2211 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2212 ## -------------------------------------------------------------- ##"
2213      ) | sed "s/^/$as_me: WARNING:     /" >&2
2214     ;;
2215 esac
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \${$3+:} false; then :
2219   $as_echo_n "(cached) " >&6
2220 else
2221   eval "$3=\$ac_header_compiler"
2222 fi
2223 eval ac_res=\$$3
2224                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 fi
2227   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229 } # ac_fn_c_check_header_mongrel
2230
2231 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2232 # --------------------------------------------
2233 # Tries to find the compile-time value of EXPR in a program that includes
2234 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2235 # computed
2236 ac_fn_c_compute_int ()
2237 {
2238   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239   if test "$cross_compiling" = yes; then
2240     # Depending upon the size, compute the lo and hi bounds.
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h.  */
2243 $4
2244 int
2245 main ()
2246 {
2247 static int test_array [1 - 2 * !(($2) >= 0)];
2248 test_array [0] = 0;
2249 return test_array [0];
2250
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256   ac_lo=0 ac_mid=0
2257   while :; do
2258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h.  */
2260 $4
2261 int
2262 main ()
2263 {
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 test_array [0] = 0;
2266 return test_array [0];
2267
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273   ac_hi=$ac_mid; break
2274 else
2275   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2276                         if test $ac_lo -le $ac_mid; then
2277                           ac_lo= ac_hi=
2278                           break
2279                         fi
2280                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283   done
2284 else
2285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 int
2289 main ()
2290 {
2291 static int test_array [1 - 2 * !(($2) < 0)];
2292 test_array [0] = 0;
2293 return test_array [0];
2294
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   ac_hi=-1 ac_mid=-1
2301   while :; do
2302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h.  */
2304 $4
2305 int
2306 main ()
2307 {
2308 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2309 test_array [0] = 0;
2310 return test_array [0];
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317   ac_lo=$ac_mid; break
2318 else
2319   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2320                         if test $ac_mid -le $ac_hi; then
2321                           ac_lo= ac_hi=
2322                           break
2323                         fi
2324                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327   done
2328 else
2329   ac_lo= ac_hi=
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 # Binary search between lo and hi bounds.
2335 while test "x$ac_lo" != "x$ac_hi"; do
2336   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h.  */
2339 $4
2340 int
2341 main ()
2342 {
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2344 test_array [0] = 0;
2345 return test_array [0];
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352   ac_hi=$ac_mid
2353 else
2354   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2355 fi
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 done
2358 case $ac_lo in #((
2359 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2360 '') ac_retval=1 ;;
2361 esac
2362   else
2363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h.  */
2365 $4
2366 static long int longval () { return $2; }
2367 static unsigned long int ulongval () { return $2; }
2368 #include <stdio.h>
2369 #include <stdlib.h>
2370 int
2371 main ()
2372 {
2373
2374   FILE *f = fopen ("conftest.val", "w");
2375   if (! f)
2376     return 1;
2377   if (($2) < 0)
2378     {
2379       long int i = longval ();
2380       if (i != ($2))
2381         return 1;
2382       fprintf (f, "%ld", i);
2383     }
2384   else
2385     {
2386       unsigned long int i = ulongval ();
2387       if (i != ($2))
2388         return 1;
2389       fprintf (f, "%lu", i);
2390     }
2391   /* Do not output a trailing newline, as this causes \r\n confusion
2392      on some platforms.  */
2393   return ferror (f) || fclose (f) != 0;
2394
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 if ac_fn_c_try_run "$LINENO"; then :
2400   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2401 else
2402   ac_retval=1
2403 fi
2404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2405   conftest.$ac_objext conftest.beam conftest.$ac_ext
2406 rm -f conftest.val
2407
2408   fi
2409   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410   as_fn_set_status $ac_retval
2411
2412 } # ac_fn_c_compute_int
2413
2414 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2415 # ---------------------------------------------------------
2416 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2417 # the include files in INCLUDES and setting the cache variable VAR
2418 # accordingly.
2419 ac_fn_cxx_check_header_mongrel ()
2420 {
2421   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422   if eval \${$3+:} false; then :
2423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if eval \${$3+:} false; then :
2426   $as_echo_n "(cached) " >&6
2427 fi
2428 eval ac_res=\$$3
2429                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430 $as_echo "$ac_res" >&6; }
2431 else
2432   # Is the header compilable?
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2434 $as_echo_n "checking $2 usability... " >&6; }
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h.  */
2437 $4
2438 #include <$2>
2439 _ACEOF
2440 if ac_fn_cxx_try_compile "$LINENO"; then :
2441   ac_header_compiler=yes
2442 else
2443   ac_header_compiler=no
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2447 $as_echo "$ac_header_compiler" >&6; }
2448
2449 # Is the header present?
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2451 $as_echo_n "checking $2 presence... " >&6; }
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 #include <$2>
2455 _ACEOF
2456 if ac_fn_cxx_try_cpp "$LINENO"; then :
2457   ac_header_preproc=yes
2458 else
2459   ac_header_preproc=no
2460 fi
2461 rm -f conftest.err conftest.i conftest.$ac_ext
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2463 $as_echo "$ac_header_preproc" >&6; }
2464
2465 # So?  What about this header?
2466 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2467   yes:no: )
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2469 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2471 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2472     ;;
2473   no:yes:* )
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2475 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2477 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2479 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2481 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2482     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2483 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2484 ( $as_echo "## -------------------------------------------------------------- ##
2485 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2486 ## -------------------------------------------------------------- ##"
2487      ) | sed "s/^/$as_me: WARNING:     /" >&2
2488     ;;
2489 esac
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2491 $as_echo_n "checking for $2... " >&6; }
2492 if eval \${$3+:} false; then :
2493   $as_echo_n "(cached) " >&6
2494 else
2495   eval "$3=\$ac_header_compiler"
2496 fi
2497 eval ac_res=\$$3
2498                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 fi
2501   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2502
2503 } # ac_fn_cxx_check_header_mongrel
2504
2505 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2506 # -------------------------------------------
2507 # Tests whether TYPE exists after having included INCLUDES, setting cache
2508 # variable VAR accordingly.
2509 ac_fn_c_check_type ()
2510 {
2511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513 $as_echo_n "checking for $2... " >&6; }
2514 if eval \${$3+:} false; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   eval "$3=no"
2518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h.  */
2520 $4
2521 int
2522 main ()
2523 {
2524 if (sizeof ($2))
2525          return 0;
2526   ;
2527   return 0;
2528 }
2529 _ACEOF
2530 if ac_fn_c_try_compile "$LINENO"; then :
2531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 $4
2534 int
2535 main ()
2536 {
2537 if (sizeof (($2)))
2538             return 0;
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544
2545 else
2546   eval "$3=yes"
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552 eval ac_res=\$$3
2553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556
2557 } # ac_fn_c_check_type
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2561
2562 It was created by HarfBuzz $as_me 2.6.7, which was
2563 generated by GNU Autoconf 2.69.  Invocation command line was
2564
2565   $ $0 $@
2566
2567 _ACEOF
2568 exec 5>>config.log
2569 {
2570 cat <<_ASUNAME
2571 ## --------- ##
2572 ## Platform. ##
2573 ## --------- ##
2574
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2580
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2583
2584 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2585 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2588 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2589 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2590 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2591
2592 _ASUNAME
2593
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     $as_echo "PATH: $as_dir"
2600   done
2601 IFS=$as_save_IFS
2602
2603 } >&5
2604
2605 cat >&5 <<_ACEOF
2606
2607
2608 ## ----------- ##
2609 ## Core tests. ##
2610 ## ----------- ##
2611
2612 _ACEOF
2613
2614
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2620 ac_configure_args=
2621 ac_configure_args0=
2622 ac_configure_args1=
2623 ac_must_keep_next=false
2624 for ac_pass in 1 2
2625 do
2626   for ac_arg
2627   do
2628     case $ac_arg in
2629     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631     | -silent | --silent | --silen | --sile | --sil)
2632       continue ;;
2633     *\'*)
2634       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2635     esac
2636     case $ac_pass in
2637     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2638     2)
2639       as_fn_append ac_configure_args1 " '$ac_arg'"
2640       if test $ac_must_keep_next = true; then
2641         ac_must_keep_next=false # Got value, back to normal.
2642       else
2643         case $ac_arg in
2644           *=* | --config-cache | -C | -disable-* | --disable-* \
2645           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647           | -with-* | --with-* | -without-* | --without-* | --x)
2648             case "$ac_configure_args0 " in
2649               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2650             esac
2651             ;;
2652           -* ) ac_must_keep_next=true ;;
2653         esac
2654       fi
2655       as_fn_append ac_configure_args " '$ac_arg'"
2656       ;;
2657     esac
2658   done
2659 done
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2662
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log.  We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669   # Save into config.log some information that might help in debugging.
2670   {
2671     echo
2672
2673     $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2676     echo
2677     # The following way of writing the cache mishandles newlines in values,
2678 (
2679   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680     eval ac_val=\$$ac_var
2681     case $ac_val in #(
2682     *${as_nl}*)
2683       case $ac_var in #(
2684       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2686       esac
2687       case $ac_var in #(
2688       _ | IFS | as_nl) ;; #(
2689       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690       *) { eval $ac_var=; unset $ac_var;} ;;
2691       esac ;;
2692     esac
2693   done
2694   (set) 2>&1 |
2695     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696     *${as_nl}ac_space=\ *)
2697       sed -n \
2698         "s/'\''/'\''\\\\'\'''\''/g;
2699           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2700       ;; #(
2701     *)
2702       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2703       ;;
2704     esac |
2705     sort
2706 )
2707     echo
2708
2709     $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2712     echo
2713     for ac_var in $ac_subst_vars
2714     do
2715       eval ac_val=\$$ac_var
2716       case $ac_val in
2717       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2718       esac
2719       $as_echo "$ac_var='\''$ac_val'\''"
2720     done | sort
2721     echo
2722
2723     if test -n "$ac_subst_files"; then
2724       $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2727       echo
2728       for ac_var in $ac_subst_files
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     fi
2738
2739     if test -s confdefs.h; then
2740       $as_echo "## ----------- ##
2741 ## confdefs.h. ##
2742 ## ----------- ##"
2743       echo
2744       cat confdefs.h
2745       echo
2746     fi
2747     test "$ac_signal" != 0 &&
2748       $as_echo "$as_me: caught signal $ac_signal"
2749     $as_echo "$as_me: exit $exit_status"
2750   } >&5
2751   rm -f core *.core core.conftest.* &&
2752     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2753     exit $exit_status
2754 ' 0
2755 for ac_signal in 1 2 13 15; do
2756   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2757 done
2758 ac_signal=0
2759
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2762
2763 $as_echo "/* confdefs.h */" > confdefs.h
2764
2765 # Predefined preprocessor variables.
2766
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2769 _ACEOF
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2773 _ACEOF
2774
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2777 _ACEOF
2778
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2781 _ACEOF
2782
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2785 _ACEOF
2786
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2789 _ACEOF
2790
2791
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2794 ac_site_file1=NONE
2795 ac_site_file2=NONE
2796 if test -n "$CONFIG_SITE"; then
2797   # We do not want a PATH search for config.site.
2798   case $CONFIG_SITE in #((
2799     -*)  ac_site_file1=./$CONFIG_SITE;;
2800     */*) ac_site_file1=$CONFIG_SITE;;
2801     *)   ac_site_file1=./$CONFIG_SITE;;
2802   esac
2803 elif test "x$prefix" != xNONE; then
2804   ac_site_file1=$prefix/share/config.site
2805   ac_site_file2=$prefix/etc/config.site
2806 else
2807   ac_site_file1=$ac_default_prefix/share/config.site
2808   ac_site_file2=$ac_default_prefix/etc/config.site
2809 fi
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2811 do
2812   test "x$ac_site_file" = xNONE && continue
2813   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816     sed 's/^/| /' "$ac_site_file" >&5
2817     . "$ac_site_file" \
2818       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2822   fi
2823 done
2824
2825 if test -r "$cache_file"; then
2826   # Some versions of bash will fail to source /dev/null (special files
2827   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2828   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2831     case $cache_file in
2832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833       *)                      . "./$cache_file";;
2834     esac
2835   fi
2836 else
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2839   >$cache_file
2840 fi
2841
2842 # Check that the precious variables saved in the cache have kept the same
2843 # value.
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847   eval ac_new_set=\$ac_env_${ac_var}_set
2848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849   eval ac_new_val=\$ac_env_${ac_var}_value
2850   case $ac_old_set,$ac_new_set in
2851     set,)
2852       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854       ac_cache_corrupted=: ;;
2855     ,set)
2856       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858       ac_cache_corrupted=: ;;
2859     ,);;
2860     *)
2861       if test "x$ac_old_val" != "x$ac_new_val"; then
2862         # differences in whitespace do not lead to failure.
2863         ac_old_val_w=`echo x $ac_old_val`
2864         ac_new_val_w=`echo x $ac_new_val`
2865         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868           ac_cache_corrupted=:
2869         else
2870           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872           eval $ac_var=\$ac_old_val
2873         fi
2874         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2875 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2876         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2878       fi;;
2879   esac
2880   # Pass precious variables to config.status.
2881   if test "$ac_new_set" = set; then
2882     case $ac_new_val in
2883     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884     *) ac_arg=$ac_var=$ac_new_val ;;
2885     esac
2886     case " $ac_configure_args " in
2887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2888       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2889     esac
2890   fi
2891 done
2892 if $ac_cache_corrupted; then
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2898 fi
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910
2911
2912
2913 ac_config_headers="$ac_config_headers config.h"
2914
2915
2916 am__api_version='1.16'
2917
2918 ac_aux_dir=
2919 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2920   if test -f "$ac_dir/install-sh"; then
2921     ac_aux_dir=$ac_dir
2922     ac_install_sh="$ac_aux_dir/install-sh -c"
2923     break
2924   elif test -f "$ac_dir/install.sh"; then
2925     ac_aux_dir=$ac_dir
2926     ac_install_sh="$ac_aux_dir/install.sh -c"
2927     break
2928   elif test -f "$ac_dir/shtool"; then
2929     ac_aux_dir=$ac_dir
2930     ac_install_sh="$ac_aux_dir/shtool install -c"
2931     break
2932   fi
2933 done
2934 if test -z "$ac_aux_dir"; then
2935   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2936 fi
2937
2938 # These three variables are undocumented and unsupported,
2939 # and are intended to be withdrawn in a future Autoconf release.
2940 # They can cause serious problems if a builder's source tree is in a directory
2941 # whose full name contains unusual characters.
2942 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2943 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2944 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2945
2946
2947 # Find a good install program.  We prefer a C program (faster),
2948 # so one script is as good as another.  But avoid the broken or
2949 # incompatible versions:
2950 # SysV /etc/install, /usr/sbin/install
2951 # SunOS /usr/etc/install
2952 # IRIX /sbin/install
2953 # AIX /bin/install
2954 # AmigaOS /C/install, which installs bootblocks on floppy discs
2955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2958 # OS/2's system install, which has a completely different semantic
2959 # ./install, which can be erroneously created by make from ./install.sh.
2960 # Reject install programs that cannot install multiple files.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2963 if test -z "$INSTALL"; then
2964 if ${ac_cv_path_install+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972     # Account for people who put trailing slashes in PATH elements.
2973 case $as_dir/ in #((
2974   ./ | .// | /[cC]/* | \
2975   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2976   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2977   /usr/ucb/* ) ;;
2978   *)
2979     # OSF1 and SCO ODT 3.0 have their own names for install.
2980     # Don't use installbsd from OSF since it installs stuff as root
2981     # by default.
2982     for ac_prog in ginstall scoinst install; do
2983       for ac_exec_ext in '' $ac_executable_extensions; do
2984         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2985           if test $ac_prog = install &&
2986             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987             # AIX install.  It has an incompatible calling convention.
2988             :
2989           elif test $ac_prog = install &&
2990             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991             # program-specific install script used by HP pwplus--don't use.
2992             :
2993           else
2994             rm -rf conftest.one conftest.two conftest.dir
2995             echo one > conftest.one
2996             echo two > conftest.two
2997             mkdir conftest.dir
2998             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2999               test -s conftest.one && test -s conftest.two &&
3000               test -s conftest.dir/conftest.one &&
3001               test -s conftest.dir/conftest.two
3002             then
3003               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3004               break 3
3005             fi
3006           fi
3007         fi
3008       done
3009     done
3010     ;;
3011 esac
3012
3013   done
3014 IFS=$as_save_IFS
3015
3016 rm -rf conftest.one conftest.two conftest.dir
3017
3018 fi
3019   if test "${ac_cv_path_install+set}" = set; then
3020     INSTALL=$ac_cv_path_install
3021   else
3022     # As a last resort, use the slow shell script.  Don't cache a
3023     # value for INSTALL within a source directory, because that will
3024     # break other packages using the cache if that directory is
3025     # removed, or if the value is a relative name.
3026     INSTALL=$ac_install_sh
3027   fi
3028 fi
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 $as_echo "$INSTALL" >&6; }
3031
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3035
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3037
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 $as_echo_n "checking whether build environment is sane... " >&6; }
3042 # Reject unsafe characters in $srcdir or the absolute working directory
3043 # name.  Accept space and tab only in the latter.
3044 am_lf='
3045 '
3046 case `pwd` in
3047   *[\\\"\#\$\&\'\`$am_lf]*)
3048     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3049 esac
3050 case $srcdir in
3051   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3052     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3053 esac
3054
3055 # Do 'set' in a subshell so we don't clobber the current shell's
3056 # arguments.  Must try -L first in case configure is actually a
3057 # symlink; some systems play weird games with the mod time of symlinks
3058 # (eg FreeBSD returns the mod time of the symlink's containing
3059 # directory).
3060 if (
3061    am_has_slept=no
3062    for am_try in 1 2; do
3063      echo "timestamp, slept: $am_has_slept" > conftest.file
3064      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065      if test "$*" = "X"; then
3066         # -L didn't work.
3067         set X `ls -t "$srcdir/configure" conftest.file`
3068      fi
3069      if test "$*" != "X $srcdir/configure conftest.file" \
3070         && test "$*" != "X conftest.file $srcdir/configure"; then
3071
3072         # If neither matched, then we have a broken ls.  This can happen
3073         # if, for instance, CONFIG_SHELL is bash and it inherits a
3074         # broken ls alias from the environment.  This has actually
3075         # happened.  Such a system could not be considered "sane".
3076         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3077   alias in your environment" "$LINENO" 5
3078      fi
3079      if test "$2" = conftest.file || test $am_try -eq 2; then
3080        break
3081      fi
3082      # Just in case.
3083      sleep 1
3084      am_has_slept=yes
3085    done
3086    test "$2" = conftest.file
3087    )
3088 then
3089    # Ok.
3090    :
3091 else
3092    as_fn_error $? "newly created file is older than distributed files!
3093 Check your system clock" "$LINENO" 5
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 $as_echo "yes" >&6; }
3097 # If we didn't sleep, we still need to ensure time stamps of config.status and
3098 # generated files are strictly newer.
3099 am_sleep_pid=
3100 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3101   ( sleep 1 ) &
3102   am_sleep_pid=$!
3103 fi
3104
3105 rm -f conftest.file
3106
3107 test "$program_prefix" != NONE &&
3108   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3109 # Use a double $ so make ignores it.
3110 test "$program_suffix" != NONE &&
3111   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3112 # Double any \ or $.
3113 # By default was `s,x,x', remove it if useless.
3114 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3115 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3116
3117 # Expand $ac_aux_dir to an absolute path.
3118 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3119
3120 if test x"${MISSING+set}" != xset; then
3121   case $am_aux_dir in
3122   *\ * | *\     *)
3123     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3124   *)
3125     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3126   esac
3127 fi
3128 # Use eval to expand $SHELL
3129 if eval "$MISSING --is-lightweight"; then
3130   am_missing_run="$MISSING "
3131 else
3132   am_missing_run=
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3134 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3135 fi
3136
3137 if test x"${install_sh+set}" != xset; then
3138   case $am_aux_dir in
3139   *\ * | *\     *)
3140     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3141   *)
3142     install_sh="\${SHELL} $am_aux_dir/install-sh"
3143   esac
3144 fi
3145
3146 # Installed binaries are usually stripped using 'strip' when the user
3147 # run "make install-strip".  However 'strip' might not be the right
3148 # tool to use in cross-compilation environments, therefore Automake
3149 # will honor the 'STRIP' environment variable to overrule this program.
3150 if test "$cross_compiling" != no; then
3151   if test -n "$ac_tool_prefix"; then
3152   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}strip; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_STRIP+:} false; then :
3157   $as_echo_n "(cached) " >&6
3158 else
3159   if test -n "$STRIP"; then
3160   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167     for ac_exec_ext in '' $ac_executable_extensions; do
3168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174   done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 STRIP=$ac_cv_prog_STRIP
3180 if test -n "$STRIP"; then
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3182 $as_echo "$STRIP" >&6; }
3183 else
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 if test -z "$ac_cv_prog_STRIP"; then
3191   ac_ct_STRIP=$STRIP
3192   # Extract the first word of "strip", so it can be a program name with args.
3193 set dummy strip; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test -n "$ac_ct_STRIP"; then
3200   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209     ac_cv_prog_ac_ct_STRIP="strip"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3220 if test -n "$ac_ct_STRIP"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3222 $as_echo "$ac_ct_STRIP" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228   if test "x$ac_ct_STRIP" = x; then
3229     STRIP=":"
3230   else
3231     case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237     STRIP=$ac_ct_STRIP
3238   fi
3239 else
3240   STRIP="$ac_cv_prog_STRIP"
3241 fi
3242
3243 fi
3244 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3245
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3247 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3248 if test -z "$MKDIR_P"; then
3249   if ${ac_cv_path_mkdir+:} false; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257     for ac_prog in mkdir gmkdir; do
3258          for ac_exec_ext in '' $ac_executable_extensions; do
3259            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3260            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3261              'mkdir (GNU coreutils) '* | \
3262              'mkdir (coreutils) '* | \
3263              'mkdir (fileutils) '4.1*)
3264                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3265                break 3;;
3266            esac
3267          done
3268        done
3269   done
3270 IFS=$as_save_IFS
3271
3272 fi
3273
3274   test -d ./--version && rmdir ./--version
3275   if test "${ac_cv_path_mkdir+set}" = set; then
3276     MKDIR_P="$ac_cv_path_mkdir -p"
3277   else
3278     # As a last resort, use the slow shell script.  Don't cache a
3279     # value for MKDIR_P within a source directory, because that will
3280     # break other packages using the cache if that directory is
3281     # removed, or if the value is a relative name.
3282     MKDIR_P="$ac_install_sh -d"
3283   fi
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3286 $as_echo "$MKDIR_P" >&6; }
3287
3288 for ac_prog in gawk mawk nawk awk
3289 do
3290   # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_AWK+:} false; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   if test -n "$AWK"; then
3298   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305     for ac_exec_ext in '' $ac_executable_extensions; do
3306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307     ac_cv_prog_AWK="$ac_prog"
3308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309     break 2
3310   fi
3311 done
3312   done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 AWK=$ac_cv_prog_AWK
3318 if test -n "$AWK"; then
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3320 $as_echo "$AWK" >&6; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327   test -n "$AWK" && break
3328 done
3329
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3332 set x ${MAKE-make}
3333 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3334 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   cat >conftest.make <<\_ACEOF
3338 SHELL = /bin/sh
3339 all:
3340         @echo '@@@%%%=$(MAKE)=@@@%%%'
3341 _ACEOF
3342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3344   *@@@%%%=?*=@@@%%%*)
3345     eval ac_cv_prog_make_${ac_make}_set=yes;;
3346   *)
3347     eval ac_cv_prog_make_${ac_make}_set=no;;
3348 esac
3349 rm -f conftest.make
3350 fi
3351 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353 $as_echo "yes" >&6; }
3354   SET_MAKE=
3355 else
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358   SET_MAKE="MAKE=${MAKE-make}"
3359 fi
3360
3361 rm -rf .tst 2>/dev/null
3362 mkdir .tst 2>/dev/null
3363 if test -d .tst; then
3364   am__leading_dot=.
3365 else
3366   am__leading_dot=_
3367 fi
3368 rmdir .tst 2>/dev/null
3369
3370 # Check whether --enable-silent-rules was given.
3371 if test "${enable_silent_rules+set}" = set; then :
3372   enableval=$enable_silent_rules;
3373 fi
3374
3375 case $enable_silent_rules in # (((
3376   yes) AM_DEFAULT_VERBOSITY=0;;
3377    no) AM_DEFAULT_VERBOSITY=1;;
3378     *) AM_DEFAULT_VERBOSITY=1;;
3379 esac
3380 am_make=${MAKE-make}
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3382 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3383 if ${am_cv_make_support_nested_variables+:} false; then :
3384   $as_echo_n "(cached) " >&6
3385 else
3386   if $as_echo 'TRUE=$(BAR$(V))
3387 BAR0=false
3388 BAR1=true
3389 V=1
3390 am__doit:
3391         @$(TRUE)
3392 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3393   am_cv_make_support_nested_variables=yes
3394 else
3395   am_cv_make_support_nested_variables=no
3396 fi
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3400 if test $am_cv_make_support_nested_variables = yes; then
3401     AM_V='$(V)'
3402   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3403 else
3404   AM_V=$AM_DEFAULT_VERBOSITY
3405   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3406 fi
3407 AM_BACKSLASH='\'
3408
3409 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3410   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3411   # is not polluted with repeated "-I."
3412   am__isrc=' -I$(srcdir)'
3413   # test to see if srcdir already configured
3414   if test -f $srcdir/config.status; then
3415     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3416   fi
3417 fi
3418
3419 # test whether we have cygpath
3420 if test -z "$CYGPATH_W"; then
3421   if (cygpath --version) >/dev/null 2>/dev/null; then
3422     CYGPATH_W='cygpath -w'
3423   else
3424     CYGPATH_W=echo
3425   fi
3426 fi
3427
3428
3429 # Define the identity of the package.
3430  PACKAGE='harfbuzz'
3431  VERSION='2.6.7'
3432
3433
3434 # Some tools Automake needs.
3435
3436 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3437
3438
3439 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3440
3441
3442 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3443
3444
3445 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3446
3447
3448 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3449
3450 # For better backward compatibility.  To be removed once Automake 1.9.x
3451 # dies out for good.  For more background, see:
3452 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3453 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3454 mkdir_p='$(MKDIR_P)'
3455
3456 # We need awk for the "check" target (and possibly the TAP driver).  The
3457 # system "awk" is bad on some platforms.
3458 # Always define AMTAR for backward compatibility.  Yes, it's still used
3459 # in the wild :-(  We should find a proper way to deprecate it ...
3460 AMTAR='$${TAR-tar}'
3461
3462
3463 # We'll loop over all known methods to create a tar archive until one works.
3464 _am_tools='gnutar plaintar pax cpio none'
3465
3466 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3467       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3468       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3469       # and bug#13588).
3470       am_max_uid=2097151 # 2^21 - 1
3471       am_max_gid=$am_max_uid
3472       # The $UID and $GID variables are not portable, so we need to resort
3473       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3474       # below are definitely unexpected, so allow the users to see them
3475       # (that is, avoid stderr redirection).
3476       am_uid=`id -u || echo unknown`
3477       am_gid=`id -g || echo unknown`
3478       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3479 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3480       if test $am_uid -le $am_max_uid; then
3481          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3482 $as_echo "yes" >&6; }
3483       else
3484          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486          _am_tools=none
3487       fi
3488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3489 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3490       if test $am_gid -le $am_max_gid; then
3491          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3493       else
3494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496         _am_tools=none
3497       fi
3498
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3500 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3501
3502   # Go ahead even if we have the value already cached.  We do so because we
3503   # need to set the values for the 'am__tar' and 'am__untar' variables.
3504   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3505
3506   for _am_tool in $_am_tools; do
3507     case $_am_tool in
3508     gnutar)
3509       for _am_tar in tar gnutar gtar; do
3510         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3511    ($_am_tar --version) >&5 2>&5
3512    ac_status=$?
3513    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514    (exit $ac_status); } && break
3515       done
3516       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3517       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3518       am__untar="$_am_tar -xf -"
3519       ;;
3520     plaintar)
3521       # Must skip GNU tar: if it does not support --format= it doesn't create
3522       # ustar tarball either.
3523       (tar --version) >/dev/null 2>&1 && continue
3524       am__tar='tar chf - "$$tardir"'
3525       am__tar_='tar chf - "$tardir"'
3526       am__untar='tar xf -'
3527       ;;
3528     pax)
3529       am__tar='pax -L -x ustar -w "$$tardir"'
3530       am__tar_='pax -L -x ustar -w "$tardir"'
3531       am__untar='pax -r'
3532       ;;
3533     cpio)
3534       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3535       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3536       am__untar='cpio -i -H ustar -d'
3537       ;;
3538     none)
3539       am__tar=false
3540       am__tar_=false
3541       am__untar=false
3542       ;;
3543     esac
3544
3545     # If the value was cached, stop now.  We just wanted to have am__tar
3546     # and am__untar set.
3547     test -n "${am_cv_prog_tar_ustar}" && break
3548
3549     # tar/untar a dummy directory, and stop if the command works.
3550     rm -rf conftest.dir
3551     mkdir conftest.dir
3552     echo GrepMe > conftest.dir/file
3553     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3554    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3555    ac_status=$?
3556    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557    (exit $ac_status); }
3558     rm -rf conftest.dir
3559     if test -s conftest.tar; then
3560       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3561    ($am__untar <conftest.tar) >&5 2>&5
3562    ac_status=$?
3563    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564    (exit $ac_status); }
3565       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3566    (cat conftest.dir/file) >&5 2>&5
3567    ac_status=$?
3568    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569    (exit $ac_status); }
3570       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3571     fi
3572   done
3573   rm -rf conftest.dir
3574
3575   if ${am_cv_prog_tar_ustar+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   am_cv_prog_tar_ustar=$_am_tool
3579 fi
3580
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3582 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3583
3584
3585
3586
3587
3588
3589 # POSIX will say in a future version that running "rm -f" with no argument
3590 # is OK; and we want to be able to make that assumption in our Makefile
3591 # recipes.  So use an aggressive probe to check that the usage we want is
3592 # actually supported "in the wild" to an acceptable degree.
3593 # See automake bug#10828.
3594 # To make any issue more visible, cause the running configure to be aborted
3595 # by default if the 'rm' program in use doesn't match our expectations; the
3596 # user can still override this though.
3597 if rm -f && rm -fr && rm -rf; then : OK; else
3598   cat >&2 <<'END'
3599 Oops!
3600
3601 Your 'rm' program seems unable to run without file operands specified
3602 on the command line, even when the '-f' option is present.  This is contrary
3603 to the behaviour of most rm programs out there, and not conforming with
3604 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3605
3606 Please tell bug-automake@gnu.org about your system, including the value
3607 of your $PATH and any error possibly output before this message.  This
3608 can help us improve future automake versions.
3609
3610 END
3611   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3612     echo 'Configuration will proceed anyway, since you have set the' >&2
3613     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3614     echo >&2
3615   else
3616     cat >&2 <<'END'
3617 Aborting the configuration process, to ensure you take notice of the issue.
3618
3619 You can download and install GNU coreutils to get an 'rm' implementation
3620 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3621
3622 If you want to complete the configuration process using your problematic
3623 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3624 to "yes", and re-run configure.
3625
3626 END
3627     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3628   fi
3629 fi
3630
3631 # Check whether --enable-silent-rules was given.
3632 if test "${enable_silent_rules+set}" = set; then :
3633   enableval=$enable_silent_rules;
3634 fi
3635
3636 case $enable_silent_rules in # (((
3637   yes) AM_DEFAULT_VERBOSITY=0;;
3638    no) AM_DEFAULT_VERBOSITY=1;;
3639     *) AM_DEFAULT_VERBOSITY=0;;
3640 esac
3641 am_make=${MAKE-make}
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3643 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3644 if ${am_cv_make_support_nested_variables+:} false; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   if $as_echo 'TRUE=$(BAR$(V))
3648 BAR0=false
3649 BAR1=true
3650 V=1
3651 am__doit:
3652         @$(TRUE)
3653 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3654   am_cv_make_support_nested_variables=yes
3655 else
3656   am_cv_make_support_nested_variables=no
3657 fi
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3660 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3661 if test $am_cv_make_support_nested_variables = yes; then
3662     AM_V='$(V)'
3663   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3664 else
3665   AM_V=$AM_DEFAULT_VERBOSITY
3666   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3667 fi
3668 AM_BACKSLASH='\'
3669
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3672 if ${ac_cv_path_SED+:} false; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3676      for ac_i in 1 2 3 4 5 6 7; do
3677        ac_script="$ac_script$as_nl$ac_script"
3678      done
3679      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3680      { ac_script=; unset ac_script;}
3681      if test -z "$SED"; then
3682   ac_path_SED_found=false
3683   # Loop through the user's path and test for each of PROGNAME-LIST
3684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689     for ac_prog in sed gsed; do
3690     for ac_exec_ext in '' $ac_executable_extensions; do
3691       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3692       as_fn_executable_p "$ac_path_SED" || continue
3693 # Check for GNU ac_path_SED and select it if it is found.
3694   # Check for GNU $ac_path_SED
3695 case `"$ac_path_SED" --version 2>&1` in
3696 *GNU*)
3697   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3698 *)
3699   ac_count=0
3700   $as_echo_n 0123456789 >"conftest.in"
3701   while :
3702   do
3703     cat "conftest.in" "conftest.in" >"conftest.tmp"
3704     mv "conftest.tmp" "conftest.in"
3705     cp "conftest.in" "conftest.nl"
3706     $as_echo '' >> "conftest.nl"
3707     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709     as_fn_arith $ac_count + 1 && ac_count=$as_val
3710     if test $ac_count -gt ${ac_path_SED_max-0}; then
3711       # Best one so far, save it but keep looking for a better one
3712       ac_cv_path_SED="$ac_path_SED"
3713       ac_path_SED_max=$ac_count
3714     fi
3715     # 10*(2^10) chars as input seems more than enough
3716     test $ac_count -gt 10 && break
3717   done
3718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719 esac
3720
3721       $ac_path_SED_found && break 3
3722     done
3723   done
3724   done
3725 IFS=$as_save_IFS
3726   if test -z "$ac_cv_path_SED"; then
3727     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3728   fi
3729 else
3730   ac_cv_path_SED=$SED
3731 fi
3732
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3735 $as_echo "$ac_cv_path_SED" >&6; }
3736  SED="$ac_cv_path_SED"
3737   rm -f conftest.sed
3738
3739
3740
3741
3742         # allow to override gcov location
3743
3744 # Check whether --with-gcov was given.
3745 if test "${with_gcov+set}" = set; then :
3746   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3747 else
3748   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3749 fi
3750
3751
3752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3753 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3754         # Check whether --enable-code-coverage was given.
3755 if test "${enable_code_coverage+set}" = set; then :
3756   enableval=$enable_code_coverage;
3757 else
3758   enable_code_coverage=no
3759 fi
3760
3761
3762          if test x$enable_code_coverage = xyes; then
3763   CODE_COVERAGE_ENABLED_TRUE=
3764   CODE_COVERAGE_ENABLED_FALSE='#'
3765 else
3766   CODE_COVERAGE_ENABLED_TRUE='#'
3767   CODE_COVERAGE_ENABLED_FALSE=
3768 fi
3769
3770         CODE_COVERAGE_ENABLED=$enable_code_coverage
3771
3772         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3773 $as_echo "$enable_code_coverage" >&6; }
3774
3775         if  test "$enable_code_coverage" = "yes" ; then :
3776
3777                 # check for gcov
3778                 if test -n "$ac_tool_prefix"; then
3779   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_GCOV+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -n "$GCOV"; then
3787   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794     for ac_exec_ext in '' $ac_executable_extensions; do
3795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801   done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 GCOV=$ac_cv_prog_GCOV
3807 if test -n "$GCOV"; then
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3809 $as_echo "$GCOV" >&6; }
3810 else
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815
3816 fi
3817 if test -z "$ac_cv_prog_GCOV"; then
3818   ac_ct_GCOV=$GCOV
3819   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3820 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   if test -n "$ac_ct_GCOV"; then
3827   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834     for ac_exec_ext in '' $ac_executable_extensions; do
3835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838     break 2
3839   fi
3840 done
3841   done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3847 if test -n "$ac_ct_GCOV"; then
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3849 $as_echo "$ac_ct_GCOV" >&6; }
3850 else
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3853 fi
3854
3855   if test "x$ac_ct_GCOV" = x; then
3856     GCOV=":"
3857   else
3858     case $cross_compiling:$ac_tool_warned in
3859 yes:)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862 ac_tool_warned=yes ;;
3863 esac
3864     GCOV=$ac_ct_GCOV
3865   fi
3866 else
3867   GCOV="$ac_cv_prog_GCOV"
3868 fi
3869
3870                 if test "X$GCOV" = "X:"; then :
3871   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3872 fi
3873
3874
3875                                 if  test "$GCC" = "no" ; then :
3876
3877                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3878
3879 fi
3880
3881                 # Extract the first word of "lcov", so it can be a program name with args.
3882 set dummy lcov; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_LCOV+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   if test -n "$LCOV"; then
3889   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896     for ac_exec_ext in '' $ac_executable_extensions; do
3897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898     ac_cv_prog_LCOV="lcov"
3899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903   done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 LCOV=$ac_cv_prog_LCOV
3909 if test -n "$LCOV"; then
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3911 $as_echo "$LCOV" >&6; }
3912 else
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918                 # Extract the first word of "genhtml", so it can be a program name with args.
3919 set dummy genhtml; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if ${ac_cv_prog_GENHTML+:} false; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   if test -n "$GENHTML"; then
3926   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933     for ac_exec_ext in '' $ac_executable_extensions; do
3934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935     ac_cv_prog_GENHTML="genhtml"
3936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940   done
3941 IFS=$as_save_IFS
3942
3943 fi
3944 fi
3945 GENHTML=$ac_cv_prog_GENHTML
3946 if test -n "$GENHTML"; then
3947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3948 $as_echo "$GENHTML" >&6; }
3949 else
3950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 fi
3953
3954
3955
3956                 if  test -z "$LCOV" ; then :
3957
3958                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3959
3960 fi
3961
3962                 if  test -z "$GENHTML" ; then :
3963
3964                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3965
3966 fi
3967
3968                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3969                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3970                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3971                 CODE_COVERAGE_LIBS="-lgcov"
3972                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3973
3974
3975
3976
3977
3978
3979
3980                 CODE_COVERAGE_RULES_CHECK='
3981         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3982         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3983 '
3984                 CODE_COVERAGE_RULES_CAPTURE='
3985         $(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)
3986         $(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)
3987         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3988         $(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)
3989         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3990 '
3991                 CODE_COVERAGE_RULES_CLEAN='
3992 clean: code-coverage-clean
3993 distclean: code-coverage-clean
3994 code-coverage-clean:
3995         -$(LCOV) --directory $(top_builddir) -z
3996         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3997         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
3998 '
3999
4000 else
4001
4002                 CODE_COVERAGE_RULES_CHECK='
4003         @echo "Need to reconfigure with --enable-code-coverage"
4004 '
4005                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4006                 CODE_COVERAGE_RULES_CLEAN=''
4007
4008 fi
4009
4010 CODE_COVERAGE_RULES='
4011 # Code coverage
4012 #
4013 # Optional:
4014 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4015 #    Multiple directories may be specified, separated by whitespace.
4016 #    (Default: $(top_builddir))
4017 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4018 #    by lcov for code coverage. (Default:
4019 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4020 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4021 #    reports to be created. (Default:
4022 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4023 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4024 #    set to 0 to disable it and leave empty to stay with the default.
4025 #    (Default: empty)
4026 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4027 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4028 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4029 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4030 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4031 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4032 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4033 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4034 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4035 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4036 #    lcov instance. (Default: empty)
4037 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4038 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4039 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4040 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4041 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4042 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4043 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4044 #
4045 # The generated report will be titled using the $(PACKAGE_NAME) and
4046 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4047 # use the git-version-gen script, available online.
4048
4049 # Optional variables
4050 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4051 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4052 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4053 CODE_COVERAGE_BRANCH_COVERAGE ?=
4054 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4055 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4056 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4057 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4058 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4059 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4060 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4061 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4062 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4063 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4064 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4065 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4066 CODE_COVERAGE_IGNORE_PATTERN ?=
4067
4068 GITIGNOREFILES ?=
4069 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4070
4071 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4072 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4073 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4074  $(CODE_COVERAGE_OUTPUT_FILE);
4075 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4076 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4077 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4078  $(CODE_COVERAGE_IGNORE_PATTERN);
4079 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4080 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4081 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4082 code_coverage_quiet = $(code_coverage_quiet_$(V))
4083 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4084 code_coverage_quiet_0 = --quiet
4085
4086 # sanitizes the test-name: replaces with underscores: dashes and dots
4087 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4088
4089 # Use recursive makes in order to ignore errors during check
4090 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4091
4092 # Capture code coverage data
4093 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4094
4095 # Hook rule executed before code-coverage-capture, overridable by the user
4096 code-coverage-capture-hook:
4097
4098 '"$CODE_COVERAGE_RULES_CLEAN"'
4099
4100 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4101 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4102
4103 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4104 '
4105
4106
4107
4108
4109
4110 # Initialize libtool
4111 DEPDIR="${am__leading_dot}deps"
4112
4113 ac_config_commands="$ac_config_commands depfiles"
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4116 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4117 cat > confinc.mk << 'END'
4118 am__doit:
4119         @echo this is the am__doit target >confinc.out
4120 .PHONY: am__doit
4121 END
4122 am__include="#"
4123 am__quote=
4124 # BSD make does it like this.
4125 echo '.include "confinc.mk" # ignored' > confmf.BSD
4126 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4127 echo 'include confinc.mk # ignored' > confmf.GNU
4128 _am_result=no
4129 for s in GNU BSD; do
4130   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4131    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4132    ac_status=$?
4133    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134    (exit $ac_status); }
4135   case $?:`cat confinc.out 2>/dev/null` in #(
4136   '0:this is the am__doit target') :
4137     case $s in #(
4138   BSD) :
4139     am__include='.include' am__quote='"' ;; #(
4140   *) :
4141     am__include='include' am__quote='' ;;
4142 esac ;; #(
4143   *) :
4144      ;;
4145 esac
4146   if test "$am__include" != "#"; then
4147     _am_result="yes ($s style)"
4148     break
4149   fi
4150 done
4151 rm -f confinc.* confmf.*
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4153 $as_echo "${_am_result}" >&6; }
4154
4155 # Check whether --enable-dependency-tracking was given.
4156 if test "${enable_dependency_tracking+set}" = set; then :
4157   enableval=$enable_dependency_tracking;
4158 fi
4159
4160 if test "x$enable_dependency_tracking" != xno; then
4161   am_depcomp="$ac_aux_dir/depcomp"
4162   AMDEPBACKSLASH='\'
4163   am__nodep='_no'
4164 fi
4165  if test "x$enable_dependency_tracking" != xno; then
4166   AMDEP_TRUE=
4167   AMDEP_FALSE='#'
4168 else
4169   AMDEP_TRUE='#'
4170   AMDEP_FALSE=
4171 fi
4172
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 if test -n "$ac_tool_prefix"; then
4180   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_CC+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -n "$CC"; then
4188   ac_cv_prog_CC="$CC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195     for ac_exec_ext in '' $ac_executable_extensions; do
4196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202   done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 CC=$ac_cv_prog_CC
4208 if test -n "$CC"; then
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4210 $as_echo "$CC" >&6; }
4211 else
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217 fi
4218 if test -z "$ac_cv_prog_CC"; then
4219   ac_ct_CC=$CC
4220   # Extract the first word of "gcc", so it can be a program name with args.
4221 set dummy gcc; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   if test -n "$ac_ct_CC"; then
4228   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235     for ac_exec_ext in '' $ac_executable_extensions; do
4236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237     ac_cv_prog_ac_ct_CC="gcc"
4238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242   done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4248 if test -n "$ac_ct_CC"; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4250 $as_echo "$ac_ct_CC" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256   if test "x$ac_ct_CC" = x; then
4257     CC=""
4258   else
4259     case $cross_compiling:$ac_tool_warned in
4260 yes:)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned=yes ;;
4264 esac
4265     CC=$ac_ct_CC
4266   fi
4267 else
4268   CC="$ac_cv_prog_CC"
4269 fi
4270
4271 if test -z "$CC"; then
4272           if test -n "$ac_tool_prefix"; then
4273     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}cc; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_CC+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -n "$CC"; then
4281   ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290     ac_cv_prog_CC="${ac_tool_prefix}cc"
4291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295   done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 CC=$ac_cv_prog_CC
4301 if test -n "$CC"; then
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303 $as_echo "$CC" >&6; }
4304 else
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310   fi
4311 fi
4312 if test -z "$CC"; then
4313   # Extract the first word of "cc", so it can be a program name with args.
4314 set dummy cc; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_prog_CC+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -n "$CC"; then
4321   ac_cv_prog_CC="$CC" # Let the user override the test.
4322 else
4323   ac_prog_rejected=no
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4332        ac_prog_rejected=yes
4333        continue
4334      fi
4335     ac_cv_prog_CC="cc"
4336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337     break 2
4338   fi
4339 done
4340   done
4341 IFS=$as_save_IFS
4342
4343 if test $ac_prog_rejected = yes; then
4344   # We found a bogon in the path, so make sure we never use it.
4345   set dummy $ac_cv_prog_CC
4346   shift
4347   if test $# != 0; then
4348     # We chose a different compiler from the bogus one.
4349     # However, it has the same basename, so the bogon will be chosen
4350     # first if we set CC to just the basename; use the full file name.
4351     shift
4352     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4353   fi
4354 fi
4355 fi
4356 fi
4357 CC=$ac_cv_prog_CC
4358 if test -n "$CC"; then
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 $as_echo "$CC" >&6; }
4361 else
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367 fi
4368 if test -z "$CC"; then
4369   if test -n "$ac_tool_prefix"; then
4370   for ac_prog in cl.exe
4371   do
4372     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_prog_CC+:} false; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   if test -n "$CC"; then
4380   ac_cv_prog_CC="$CC" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385   IFS=$as_save_IFS
4386   test -z "$as_dir" && as_dir=.
4387     for ac_exec_ext in '' $ac_executable_extensions; do
4388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391     break 2
4392   fi
4393 done
4394   done
4395 IFS=$as_save_IFS
4396
4397 fi
4398 fi
4399 CC=$ac_cv_prog_CC
4400 if test -n "$CC"; then
4401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 $as_echo "$CC" >&6; }
4403 else
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 fi
4407
4408
4409     test -n "$CC" && break
4410   done
4411 fi
4412 if test -z "$CC"; then
4413   ac_ct_CC=$CC
4414   for ac_prog in cl.exe
4415 do
4416   # Extract the first word of "$ac_prog", so it can be a program name with args.
4417 set dummy $ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4421   $as_echo_n "(cached) " >&6
4422 else
4423   if test -n "$ac_ct_CC"; then
4424   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431     for ac_exec_ext in '' $ac_executable_extensions; do
4432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433     ac_cv_prog_ac_ct_CC="$ac_prog"
4434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438   done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4444 if test -n "$ac_ct_CC"; then
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4446 $as_echo "$ac_ct_CC" >&6; }
4447 else
4448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451
4452
4453   test -n "$ac_ct_CC" && break
4454 done
4455
4456   if test "x$ac_ct_CC" = x; then
4457     CC=""
4458   else
4459     case $cross_compiling:$ac_tool_warned in
4460 yes:)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463 ac_tool_warned=yes ;;
4464 esac
4465     CC=$ac_ct_CC
4466   fi
4467 fi
4468
4469 fi
4470
4471
4472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "no acceptable C compiler found in \$PATH
4475 See \`config.log' for more details" "$LINENO" 5; }
4476
4477 # Provide some information about the compiler.
4478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4479 set X $ac_compile
4480 ac_compiler=$2
4481 for ac_option in --version -v -V -qversion; do
4482   { { ac_try="$ac_compiler $ac_option >&5"
4483 case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 $as_echo "$ac_try_echo"; } >&5
4489   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4490   ac_status=$?
4491   if test -s conftest.err; then
4492     sed '10a\
4493 ... rest of stderr output deleted ...
4494          10q' conftest.err >conftest.er1
4495     cat conftest.er1 >&5
4496   fi
4497   rm -f conftest.er1 conftest.err
4498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499   test $ac_status = 0; }
4500 done
4501
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h.  */
4504
4505 int
4506 main ()
4507 {
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 ac_clean_files_save=$ac_clean_files
4514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4515 # Try to create an executable without -o first, disregard a.out.
4516 # It will help us diagnose broken compilers, and finding out an intuition
4517 # of exeext.
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4519 $as_echo_n "checking whether the C compiler works... " >&6; }
4520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4521
4522 # The possible output files:
4523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4524
4525 ac_rmfiles=
4526 for ac_file in $ac_files
4527 do
4528   case $ac_file in
4529     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4530     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4531   esac
4532 done
4533 rm -f $ac_rmfiles
4534
4535 if { { ac_try="$ac_link_default"
4536 case "(($ac_try" in
4537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538   *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542   (eval "$ac_link_default") 2>&5
4543   ac_status=$?
4544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545   test $ac_status = 0; }; then :
4546   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4548 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4549 # so that the user can short-circuit this test for compilers unknown to
4550 # Autoconf.
4551 for ac_file in $ac_files ''
4552 do
4553   test -f "$ac_file" || continue
4554   case $ac_file in
4555     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4556         ;;
4557     [ab].out )
4558         # We found the default executable, but exeext='' is most
4559         # certainly right.
4560         break;;
4561     *.* )
4562         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4563         then :; else
4564            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4565         fi
4566         # We set ac_cv_exeext here because the later test for it is not
4567         # safe: cross compilers may not add the suffix if given an `-o'
4568         # argument, so we may need to know it at that point already.
4569         # Even if this section looks crufty: it has the advantage of
4570         # actually working.
4571         break;;
4572     * )
4573         break;;
4574   esac
4575 done
4576 test "$ac_cv_exeext" = no && ac_cv_exeext=
4577
4578 else
4579   ac_file=''
4580 fi
4581 if test -z "$ac_file"; then :
4582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error 77 "C compiler cannot create executables
4590 See \`config.log' for more details" "$LINENO" 5; }
4591 else
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 $as_echo "yes" >&6; }
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4596 $as_echo_n "checking for C compiler default output file name... " >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4598 $as_echo "$ac_file" >&6; }
4599 ac_exeext=$ac_cv_exeext
4600
4601 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4602 ac_clean_files=$ac_clean_files_save
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4604 $as_echo_n "checking for suffix of executables... " >&6; }
4605 if { { ac_try="$ac_link"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 $as_echo "$ac_try_echo"; } >&5
4612   (eval "$ac_link") 2>&5
4613   ac_status=$?
4614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615   test $ac_status = 0; }; then :
4616   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4617 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4618 # work properly (i.e., refer to `conftest.exe'), while it won't with
4619 # `rm'.
4620 for ac_file in conftest.exe conftest conftest.*; do
4621   test -f "$ac_file" || continue
4622   case $ac_file in
4623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4624     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4625           break;;
4626     * ) break;;
4627   esac
4628 done
4629 else
4630   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4633 See \`config.log' for more details" "$LINENO" 5; }
4634 fi
4635 rm -f conftest conftest$ac_cv_exeext
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4637 $as_echo "$ac_cv_exeext" >&6; }
4638
4639 rm -f conftest.$ac_ext
4640 EXEEXT=$ac_cv_exeext
4641 ac_exeext=$EXEEXT
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h.  */
4644 #include <stdio.h>
4645 int
4646 main ()
4647 {
4648 FILE *f = fopen ("conftest.out", "w");
4649  return ferror (f) || fclose (f) != 0;
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 ac_clean_files="$ac_clean_files conftest.out"
4656 # Check that the compiler produces executables we can run.  If not, either
4657 # the compiler is broken, or we cross compile.
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4659 $as_echo_n "checking whether we are cross compiling... " >&6; }
4660 if test "$cross_compiling" != yes; then
4661   { { ac_try="$ac_link"
4662 case "(($ac_try" in
4663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664   *) ac_try_echo=$ac_try;;
4665 esac
4666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667 $as_echo "$ac_try_echo"; } >&5
4668   (eval "$ac_link") 2>&5
4669   ac_status=$?
4670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671   test $ac_status = 0; }
4672   if { ac_try='./conftest$ac_cv_exeext'
4673   { { case "(($ac_try" in
4674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675   *) ac_try_echo=$ac_try;;
4676 esac
4677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4678 $as_echo "$ac_try_echo"; } >&5
4679   (eval "$ac_try") 2>&5
4680   ac_status=$?
4681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682   test $ac_status = 0; }; }; then
4683     cross_compiling=no
4684   else
4685     if test "$cross_compiling" = maybe; then
4686         cross_compiling=yes
4687     else
4688         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error $? "cannot run C compiled programs.
4691 If you meant to cross compile, use \`--host'.
4692 See \`config.log' for more details" "$LINENO" 5; }
4693     fi
4694   fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4697 $as_echo "$cross_compiling" >&6; }
4698
4699 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4700 ac_clean_files=$ac_clean_files_save
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4702 $as_echo_n "checking for suffix of object files... " >&6; }
4703 if ${ac_cv_objext+:} false; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h.  */
4708
4709 int
4710 main ()
4711 {
4712
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.o conftest.obj
4718 if { { ac_try="$ac_compile"
4719 case "(($ac_try" in
4720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721   *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725   (eval "$ac_compile") 2>&5
4726   ac_status=$?
4727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728   test $ac_status = 0; }; then :
4729   for ac_file in conftest.o conftest.obj conftest.*; do
4730   test -f "$ac_file" || continue;
4731   case $ac_file in
4732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4733     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4734        break;;
4735   esac
4736 done
4737 else
4738   $as_echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4743 as_fn_error $? "cannot compute suffix of object files: cannot compile
4744 See \`config.log' for more details" "$LINENO" 5; }
4745 fi
4746 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4749 $as_echo "$ac_cv_objext" >&6; }
4750 OBJEXT=$ac_cv_objext
4751 ac_objext=$OBJEXT
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4753 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4754 if ${ac_cv_c_compiler_gnu+:} false; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h.  */
4759
4760 int
4761 main ()
4762 {
4763 #ifndef __GNUC__
4764        choke me
4765 #endif
4766
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772   ac_compiler_gnu=yes
4773 else
4774   ac_compiler_gnu=no
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4778
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4781 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4782 if test $ac_compiler_gnu = yes; then
4783   GCC=yes
4784 else
4785   GCC=
4786 fi
4787 ac_test_CFLAGS=${CFLAGS+set}
4788 ac_save_CFLAGS=$CFLAGS
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4790 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4791 if ${ac_cv_prog_cc_g+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   ac_save_c_werror_flag=$ac_c_werror_flag
4795    ac_c_werror_flag=yes
4796    ac_cv_prog_cc_g=no
4797    CFLAGS="-g"
4798    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h.  */
4800
4801 int
4802 main ()
4803 {
4804
4805   ;
4806   return 0;
4807 }
4808 _ACEOF
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810   ac_cv_prog_cc_g=yes
4811 else
4812   CFLAGS=""
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
4826 else
4827   ac_c_werror_flag=$ac_save_c_werror_flag
4828          CFLAGS="-g"
4829          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h.  */
4831
4832 int
4833 main ()
4834 {
4835
4836   ;
4837   return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841   ac_cv_prog_cc_g=yes
4842 fi
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848    ac_c_werror_flag=$ac_save_c_werror_flag
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4851 $as_echo "$ac_cv_prog_cc_g" >&6; }
4852 if test "$ac_test_CFLAGS" = set; then
4853   CFLAGS=$ac_save_CFLAGS
4854 elif test $ac_cv_prog_cc_g = yes; then
4855   if test "$GCC" = yes; then
4856     CFLAGS="-g -O2"
4857   else
4858     CFLAGS="-g"
4859   fi
4860 else
4861   if test "$GCC" = yes; then
4862     CFLAGS="-O2"
4863   else
4864     CFLAGS=
4865   fi
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4868 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4869 if ${ac_cv_prog_cc_c89+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   ac_cv_prog_cc_c89=no
4873 ac_save_CC=$CC
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h.  */
4876 #include <stdarg.h>
4877 #include <stdio.h>
4878 struct stat;
4879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4880 struct buf { int x; };
4881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4882 static char *e (p, i)
4883      char **p;
4884      int i;
4885 {
4886   return p[i];
4887 }
4888 static char *f (char * (*g) (char **, int), char **p, ...)
4889 {
4890   char *s;
4891   va_list v;
4892   va_start (v,p);
4893   s = g (p, va_arg (v,int));
4894   va_end (v);
4895   return s;
4896 }
4897
4898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4899    function prototypes and stuff, but not '\xHH' hex character constants.
4900    These don't provoke an error unfortunately, instead are silently treated
4901    as 'x'.  The following induces an error, until -std is added to get
4902    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4903    array size at least.  It's necessary to write '\x00'==0 to get something
4904    that's true only with -std.  */
4905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4906
4907 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4908    inside strings and character constants.  */
4909 #define FOO(x) 'x'
4910 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4911
4912 int test (int i, double x);
4913 struct s1 {int (*f) (int a);};
4914 struct s2 {int (*f) (double a);};
4915 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4916 int argc;
4917 char **argv;
4918 int
4919 main ()
4920 {
4921 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4927         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4928 do
4929   CC="$ac_save_CC $ac_arg"
4930   if ac_fn_c_try_compile "$LINENO"; then :
4931   ac_cv_prog_cc_c89=$ac_arg
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext
4934   test "x$ac_cv_prog_cc_c89" != "xno" && break
4935 done
4936 rm -f conftest.$ac_ext
4937 CC=$ac_save_CC
4938
4939 fi
4940 # AC_CACHE_VAL
4941 case "x$ac_cv_prog_cc_c89" in
4942   x)
4943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4944 $as_echo "none needed" >&6; } ;;
4945   xno)
4946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4947 $as_echo "unsupported" >&6; } ;;
4948   *)
4949     CC="$CC $ac_cv_prog_cc_c89"
4950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4952 esac
4953 if test "x$ac_cv_prog_cc_c89" != xno; then :
4954
4955 fi
4956
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4969 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4970 if ${am_cv_prog_cc_c_o+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h.  */
4975
4976 int
4977 main ()
4978 {
4979
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984   # Make sure it works both with $CC and with simple cc.
4985   # Following AC_PROG_CC_C_O, we do the test twice because some
4986   # compilers refuse to overwrite an existing .o file with -o,
4987   # though they will create one.
4988   am_cv_prog_cc_c_o=yes
4989   for am_i in 1 2; do
4990     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4991    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4992    ac_status=$?
4993    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994    (exit $ac_status); } \
4995          && test -f conftest2.$ac_objext; then
4996       : OK
4997     else
4998       am_cv_prog_cc_c_o=no
4999       break
5000     fi
5001   done
5002   rm -f core conftest*
5003   unset am_i
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5006 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5007 if test "$am_cv_prog_cc_c_o" != yes; then
5008    # Losing compiler, so override with the script.
5009    # FIXME: It is wrong to rewrite CC.
5010    # But if we don't then we get into trouble of one sort or another.
5011    # A longer-term fix would be to have automake use am__CC in this case,
5012    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5013    CC="$am_aux_dir/compile $CC"
5014 fi
5015 ac_ext=c
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
5021
5022 depcc="$CC"   am_compiler_list=
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5025 $as_echo_n "checking dependency style of $depcc... " >&6; }
5026 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5030   # We make a subdir and do the tests there.  Otherwise we can end up
5031   # making bogus files that we don't know about and never remove.  For
5032   # instance it was reported that on HP-UX the gcc test will end up
5033   # making a dummy file named 'D' -- because '-MD' means "put the output
5034   # in D".
5035   rm -rf conftest.dir
5036   mkdir conftest.dir
5037   # Copy depcomp to subdir because otherwise we won't find it if we're
5038   # using a relative directory.
5039   cp "$am_depcomp" conftest.dir
5040   cd conftest.dir
5041   # We will build objects and dependencies in a subdirectory because
5042   # it helps to detect inapplicable dependency modes.  For instance
5043   # both Tru64's cc and ICC support -MD to output dependencies as a
5044   # side effect of compilation, but ICC will put the dependencies in
5045   # the current directory while Tru64 will put them in the object
5046   # directory.
5047   mkdir sub
5048
5049   am_cv_CC_dependencies_compiler_type=none
5050   if test "$am_compiler_list" = ""; then
5051      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5052   fi
5053   am__universal=false
5054   case " $depcc " in #(
5055      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5056      esac
5057
5058   for depmode in $am_compiler_list; do
5059     # Setup a source with many dependencies, because some compilers
5060     # like to wrap large dependency lists on column 80 (with \), and
5061     # we should not choose a depcomp mode which is confused by this.
5062     #
5063     # We need to recreate these files for each test, as the compiler may
5064     # overwrite some of them when testing with obscure command lines.
5065     # This happens at least with the AIX C compiler.
5066     : > sub/conftest.c
5067     for i in 1 2 3 4 5 6; do
5068       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5069       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5070       # Solaris 10 /bin/sh.
5071       echo '/* dummy */' > sub/conftst$i.h
5072     done
5073     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5074
5075     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5076     # mode.  It turns out that the SunPro C++ compiler does not properly
5077     # handle '-M -o', and we need to detect this.  Also, some Intel
5078     # versions had trouble with output in subdirs.
5079     am__obj=sub/conftest.${OBJEXT-o}
5080     am__minus_obj="-o $am__obj"
5081     case $depmode in
5082     gcc)
5083       # This depmode causes a compiler race in universal mode.
5084       test "$am__universal" = false || continue
5085       ;;
5086     nosideeffect)
5087       # After this tag, mechanisms are not by side-effect, so they'll
5088       # only be used when explicitly requested.
5089       if test "x$enable_dependency_tracking" = xyes; then
5090         continue
5091       else
5092         break
5093       fi
5094       ;;
5095     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5096       # This compiler won't grok '-c -o', but also, the minuso test has
5097       # not run yet.  These depmodes are late enough in the game, and
5098       # so weak that their functioning should not be impacted.
5099       am__obj=conftest.${OBJEXT-o}
5100       am__minus_obj=
5101       ;;
5102     none) break ;;
5103     esac
5104     if depmode=$depmode \
5105        source=sub/conftest.c object=$am__obj \
5106        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5107        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5108          >/dev/null 2>conftest.err &&
5109        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5110        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5111        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5112        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5113       # icc doesn't choke on unknown options, it will just issue warnings
5114       # or remarks (even with -Werror).  So we grep stderr for any message
5115       # that says an option was ignored or not supported.
5116       # When given -MP, icc 7.0 and 7.1 complain thusly:
5117       #   icc: Command line warning: ignoring option '-M'; no argument required
5118       # The diagnosis changed in icc 8.0:
5119       #   icc: Command line remark: option '-MP' not supported
5120       if (grep 'ignoring option' conftest.err ||
5121           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5122         am_cv_CC_dependencies_compiler_type=$depmode
5123         break
5124       fi
5125     fi
5126   done
5127
5128   cd ..
5129   rm -rf conftest.dir
5130 else
5131   am_cv_CC_dependencies_compiler_type=none
5132 fi
5133
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5138
5139  if
5140   test "x$enable_dependency_tracking" != xno \
5141   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5142   am__fastdepCC_TRUE=
5143   am__fastdepCC_FALSE='#'
5144 else
5145   am__fastdepCC_TRUE='#'
5146   am__fastdepCC_FALSE=
5147 fi
5148
5149
5150
5151 if test -n "$ac_tool_prefix"; then
5152   for ac_prog in ar lib "link -lib"
5153   do
5154     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_AR+:} false; then :
5159   $as_echo_n "(cached) " >&6
5160 else
5161   if test -n "$AR"; then
5162   ac_cv_prog_AR="$AR" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169     for ac_exec_ext in '' $ac_executable_extensions; do
5170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176   done
5177 IFS=$as_save_IFS
5178
5179 fi
5180 fi
5181 AR=$ac_cv_prog_AR
5182 if test -n "$AR"; then
5183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5184 $as_echo "$AR" >&6; }
5185 else
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191     test -n "$AR" && break
5192   done
5193 fi
5194 if test -z "$AR"; then
5195   ac_ct_AR=$AR
5196   for ac_prog in ar lib "link -lib"
5197 do
5198   # Extract the first word of "$ac_prog", so it can be a program name with args.
5199 set dummy $ac_prog; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   if test -n "$ac_ct_AR"; then
5206   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     ac_cv_prog_ac_ct_AR="$ac_prog"
5216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220   done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5226 if test -n "$ac_ct_AR"; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5228 $as_echo "$ac_ct_AR" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235   test -n "$ac_ct_AR" && break
5236 done
5237
5238   if test "x$ac_ct_AR" = x; then
5239     AR="false"
5240   else
5241     case $cross_compiling:$ac_tool_warned in
5242 yes:)
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247     AR=$ac_ct_AR
5248   fi
5249 fi
5250
5251 : ${AR=ar}
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5254 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5255 if ${am_cv_ar_interface+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   ac_ext=c
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263
5264    am_cv_ar_interface=ar
5265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h.  */
5267 int some_variable = 0;
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5271       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5272   (eval $am_ar_try) 2>&5
5273   ac_status=$?
5274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5275   test $ac_status = 0; }
5276       if test "$ac_status" -eq 0; then
5277         am_cv_ar_interface=ar
5278       else
5279         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5280         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5281   (eval $am_ar_try) 2>&5
5282   ac_status=$?
5283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284   test $ac_status = 0; }
5285         if test "$ac_status" -eq 0; then
5286           am_cv_ar_interface=lib
5287         else
5288           am_cv_ar_interface=unknown
5289         fi
5290       fi
5291       rm -f conftest.lib libconftest.a
5292
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295    ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5303 $as_echo "$am_cv_ar_interface" >&6; }
5304
5305 case $am_cv_ar_interface in
5306 ar)
5307   ;;
5308 lib)
5309   # Microsoft lib, so override with the ar-lib wrapper script.
5310   # FIXME: It is wrong to rewrite AR.
5311   # But if we don't then we get into trouble of one sort or another.
5312   # A longer-term fix would be to have automake use am__AR in this case,
5313   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5314   # similar.
5315   AR="$am_aux_dir/ar-lib $AR"
5316   ;;
5317 unknown)
5318   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5319   ;;
5320 esac
5321
5322
5323 case `pwd` in
5324   *\ * | *\     *)
5325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5327 esac
5328
5329
5330
5331 macro_version='2.4.6.42-b88ce-dirty'
5332 macro_revision='2.4.6.42'
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 ltmain=$ac_aux_dir/ltmain.sh
5347
5348 # Make sure we can run config.sub.
5349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5350   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5353 $as_echo_n "checking build system type... " >&6; }
5354 if ${ac_cv_build+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   ac_build_alias=$build_alias
5358 test "x$ac_build_alias" = x &&
5359   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5360 test "x$ac_build_alias" = x &&
5361   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5363   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5364
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5367 $as_echo "$ac_cv_build" >&6; }
5368 case $ac_cv_build in
5369 *-*-*) ;;
5370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5371 esac
5372 build=$ac_cv_build
5373 ac_save_IFS=$IFS; IFS='-'
5374 set x $ac_cv_build
5375 shift
5376 build_cpu=$1
5377 build_vendor=$2
5378 shift; shift
5379 # Remember, the first character of IFS is used to create $*,
5380 # except with old shells:
5381 build_os=$*
5382 IFS=$ac_save_IFS
5383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5387 $as_echo_n "checking host system type... " >&6; }
5388 if ${ac_cv_host+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   if test "x$host_alias" = x; then
5392   ac_cv_host=$ac_cv_build
5393 else
5394   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5395     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5396 fi
5397
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5400 $as_echo "$ac_cv_host" >&6; }
5401 case $ac_cv_host in
5402 *-*-*) ;;
5403 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5404 esac
5405 host=$ac_cv_host
5406 ac_save_IFS=$IFS; IFS='-'
5407 set x $ac_cv_host
5408 shift
5409 host_cpu=$1
5410 host_vendor=$2
5411 shift; shift
5412 # Remember, the first character of IFS is used to create $*,
5413 # except with old shells:
5414 host_os=$*
5415 IFS=$ac_save_IFS
5416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5417
5418
5419 # Backslashify metacharacters that are still active within
5420 # double-quoted strings.
5421 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5422
5423 # Same as above, but do not quote variable references.
5424 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5425
5426 # Sed substitution to delay expansion of an escaped shell variable in a
5427 # double_quote_subst'ed string.
5428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5429
5430 # Sed substitution to delay expansion of an escaped single quote.
5431 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5432
5433 # Sed substitution to avoid accidental globbing in evaled expressions
5434 no_glob_subst='s/\*/\\\*/g'
5435
5436 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5438 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5441 $as_echo_n "checking how to print strings... " >&6; }
5442 # Test print first, because it will be a builtin if present.
5443 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5444    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5445   ECHO='print -r --'
5446 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5447   ECHO='printf %s\n'
5448 else
5449   # Use this function as a fallback that always works.
5450   func_fallback_echo ()
5451   {
5452     eval 'cat <<_LTECHO_EOF
5453 $1
5454 _LTECHO_EOF'
5455   }
5456   ECHO='func_fallback_echo'
5457 fi
5458
5459 # func_echo_all arg...
5460 # Invoke $ECHO with all args, space-separated.
5461 func_echo_all ()
5462 {
5463     $ECHO ""
5464 }
5465
5466 case $ECHO in
5467   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5468 $as_echo "printf" >&6; } ;;
5469   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5470 $as_echo "print -r" >&6; } ;;
5471   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5472 $as_echo "cat" >&6; } ;;
5473 esac
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5490 if ${ac_cv_path_SED+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5494      for ac_i in 1 2 3 4 5 6 7; do
5495        ac_script="$ac_script$as_nl$ac_script"
5496      done
5497      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5498      { ac_script=; unset ac_script;}
5499      if test -z "$SED"; then
5500   ac_path_SED_found=false
5501   # Loop through the user's path and test for each of PROGNAME-LIST
5502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_prog in sed gsed; do
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5510       as_fn_executable_p "$ac_path_SED" || continue
5511 # Check for GNU ac_path_SED and select it if it is found.
5512   # Check for GNU $ac_path_SED
5513 case `"$ac_path_SED" --version 2>&1` in
5514 *GNU*)
5515   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5516 *)
5517   ac_count=0
5518   $as_echo_n 0123456789 >"conftest.in"
5519   while :
5520   do
5521     cat "conftest.in" "conftest.in" >"conftest.tmp"
5522     mv "conftest.tmp" "conftest.in"
5523     cp "conftest.in" "conftest.nl"
5524     $as_echo '' >> "conftest.nl"
5525     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5526     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5527     as_fn_arith $ac_count + 1 && ac_count=$as_val
5528     if test $ac_count -gt ${ac_path_SED_max-0}; then
5529       # Best one so far, save it but keep looking for a better one
5530       ac_cv_path_SED="$ac_path_SED"
5531       ac_path_SED_max=$ac_count
5532     fi
5533     # 10*(2^10) chars as input seems more than enough
5534     test $ac_count -gt 10 && break
5535   done
5536   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5537 esac
5538
5539       $ac_path_SED_found && break 3
5540     done
5541   done
5542   done
5543 IFS=$as_save_IFS
5544   if test -z "$ac_cv_path_SED"; then
5545     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5546   fi
5547 else
5548   ac_cv_path_SED=$SED
5549 fi
5550
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5553 $as_echo "$ac_cv_path_SED" >&6; }
5554  SED="$ac_cv_path_SED"
5555   rm -f conftest.sed
5556
5557 test -z "$SED" && SED=sed
5558 Xsed="$SED -e 1s/^X//"
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5572 if ${ac_cv_path_GREP+:} false; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   if test -z "$GREP"; then
5576   ac_path_GREP_found=false
5577   # Loop through the user's path and test for each of PROGNAME-LIST
5578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583     for ac_prog in grep ggrep; do
5584     for ac_exec_ext in '' $ac_executable_extensions; do
5585       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5586       as_fn_executable_p "$ac_path_GREP" || continue
5587 # Check for GNU ac_path_GREP and select it if it is found.
5588   # Check for GNU $ac_path_GREP
5589 case `"$ac_path_GREP" --version 2>&1` in
5590 *GNU*)
5591   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5592 *)
5593   ac_count=0
5594   $as_echo_n 0123456789 >"conftest.in"
5595   while :
5596   do
5597     cat "conftest.in" "conftest.in" >"conftest.tmp"
5598     mv "conftest.tmp" "conftest.in"
5599     cp "conftest.in" "conftest.nl"
5600     $as_echo 'GREP' >> "conftest.nl"
5601     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603     as_fn_arith $ac_count + 1 && ac_count=$as_val
5604     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5605       # Best one so far, save it but keep looking for a better one
5606       ac_cv_path_GREP="$ac_path_GREP"
5607       ac_path_GREP_max=$ac_count
5608     fi
5609     # 10*(2^10) chars as input seems more than enough
5610     test $ac_count -gt 10 && break
5611   done
5612   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 esac
5614
5615       $ac_path_GREP_found && break 3
5616     done
5617   done
5618   done
5619 IFS=$as_save_IFS
5620   if test -z "$ac_cv_path_GREP"; then
5621     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5622   fi
5623 else
5624   ac_cv_path_GREP=$GREP
5625 fi
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5629 $as_echo "$ac_cv_path_GREP" >&6; }
5630  GREP="$ac_cv_path_GREP"
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5634 $as_echo_n "checking for egrep... " >&6; }
5635 if ${ac_cv_path_EGREP+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5639    then ac_cv_path_EGREP="$GREP -E"
5640    else
5641      if test -z "$EGREP"; then
5642   ac_path_EGREP_found=false
5643   # Loop through the user's path and test for each of PROGNAME-LIST
5644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649     for ac_prog in egrep; do
5650     for ac_exec_ext in '' $ac_executable_extensions; do
5651       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5652       as_fn_executable_p "$ac_path_EGREP" || continue
5653 # Check for GNU ac_path_EGREP and select it if it is found.
5654   # Check for GNU $ac_path_EGREP
5655 case `"$ac_path_EGREP" --version 2>&1` in
5656 *GNU*)
5657   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5658 *)
5659   ac_count=0
5660   $as_echo_n 0123456789 >"conftest.in"
5661   while :
5662   do
5663     cat "conftest.in" "conftest.in" >"conftest.tmp"
5664     mv "conftest.tmp" "conftest.in"
5665     cp "conftest.in" "conftest.nl"
5666     $as_echo 'EGREP' >> "conftest.nl"
5667     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5668     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5669     as_fn_arith $ac_count + 1 && ac_count=$as_val
5670     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5671       # Best one so far, save it but keep looking for a better one
5672       ac_cv_path_EGREP="$ac_path_EGREP"
5673       ac_path_EGREP_max=$ac_count
5674     fi
5675     # 10*(2^10) chars as input seems more than enough
5676     test $ac_count -gt 10 && break
5677   done
5678   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5679 esac
5680
5681       $ac_path_EGREP_found && break 3
5682     done
5683   done
5684   done
5685 IFS=$as_save_IFS
5686   if test -z "$ac_cv_path_EGREP"; then
5687     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688   fi
5689 else
5690   ac_cv_path_EGREP=$EGREP
5691 fi
5692
5693    fi
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5696 $as_echo "$ac_cv_path_EGREP" >&6; }
5697  EGREP="$ac_cv_path_EGREP"
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5701 $as_echo_n "checking for fgrep... " >&6; }
5702 if ${ac_cv_path_FGREP+:} false; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5706    then ac_cv_path_FGREP="$GREP -F"
5707    else
5708      if test -z "$FGREP"; then
5709   ac_path_FGREP_found=false
5710   # Loop through the user's path and test for each of PROGNAME-LIST
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_prog in fgrep; do
5717     for ac_exec_ext in '' $ac_executable_extensions; do
5718       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5719       as_fn_executable_p "$ac_path_FGREP" || continue
5720 # Check for GNU ac_path_FGREP and select it if it is found.
5721   # Check for GNU $ac_path_FGREP
5722 case `"$ac_path_FGREP" --version 2>&1` in
5723 *GNU*)
5724   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5725 *)
5726   ac_count=0
5727   $as_echo_n 0123456789 >"conftest.in"
5728   while :
5729   do
5730     cat "conftest.in" "conftest.in" >"conftest.tmp"
5731     mv "conftest.tmp" "conftest.in"
5732     cp "conftest.in" "conftest.nl"
5733     $as_echo 'FGREP' >> "conftest.nl"
5734     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5736     as_fn_arith $ac_count + 1 && ac_count=$as_val
5737     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5738       # Best one so far, save it but keep looking for a better one
5739       ac_cv_path_FGREP="$ac_path_FGREP"
5740       ac_path_FGREP_max=$ac_count
5741     fi
5742     # 10*(2^10) chars as input seems more than enough
5743     test $ac_count -gt 10 && break
5744   done
5745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5746 esac
5747
5748       $ac_path_FGREP_found && break 3
5749     done
5750   done
5751   done
5752 IFS=$as_save_IFS
5753   if test -z "$ac_cv_path_FGREP"; then
5754     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5755   fi
5756 else
5757   ac_cv_path_FGREP=$FGREP
5758 fi
5759
5760    fi
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5763 $as_echo "$ac_cv_path_FGREP" >&6; }
5764  FGREP="$ac_cv_path_FGREP"
5765
5766
5767 test -z "$GREP" && GREP=grep
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 # Check whether --with-gnu-ld was given.
5788 if test "${with_gnu_ld+set}" = set; then :
5789   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5790 else
5791   with_gnu_ld=no
5792 fi
5793
5794 ac_prog=ld
5795 if test yes = "$GCC"; then
5796   # Check if gcc -print-prog-name=ld gives a path.
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5798 $as_echo_n "checking for ld used by $CC... " >&6; }
5799   case $host in
5800   *-*-mingw*)
5801     # gcc leaves a trailing carriage return, which upsets mingw
5802     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5803   *)
5804     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5805   esac
5806   case $ac_prog in
5807     # Accept absolute paths.
5808     [\\/]* | ?:[\\/]*)
5809       re_direlt='/[^/][^/]*/\.\./'
5810       # Canonicalize the pathname of ld
5811       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5812       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5813         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5814       done
5815       test -z "$LD" && LD=$ac_prog
5816       ;;
5817   "")
5818     # If it fails, then pretend we aren't using GCC.
5819     ac_prog=ld
5820     ;;
5821   *)
5822     # If it is relative, then search for the first ld in PATH.
5823     with_gnu_ld=unknown
5824     ;;
5825   esac
5826 elif test yes = "$with_gnu_ld"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5828 $as_echo_n "checking for GNU ld... " >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5831 $as_echo_n "checking for non-GNU ld... " >&6; }
5832 fi
5833 if ${lt_cv_path_LD+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -z "$LD"; then
5837   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5838   for ac_dir in $PATH; do
5839     IFS=$lt_save_ifs
5840     test -z "$ac_dir" && ac_dir=.
5841     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5842       lt_cv_path_LD=$ac_dir/$ac_prog
5843       # Check to see if the program is GNU ld.  I'd rather use --version,
5844       # but apparently some variants of GNU ld only accept -v.
5845       # Break only if it was the GNU/non-GNU ld that we prefer.
5846       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5847       *GNU* | *'with BFD'*)
5848         test no != "$with_gnu_ld" && break
5849         ;;
5850       *)
5851         test yes != "$with_gnu_ld" && break
5852         ;;
5853       esac
5854     fi
5855   done
5856   IFS=$lt_save_ifs
5857 else
5858   lt_cv_path_LD=$LD # Let the user override the test with a path.
5859 fi
5860 fi
5861
5862 LD=$lt_cv_path_LD
5863 if test -n "$LD"; then
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5865 $as_echo "$LD" >&6; }
5866 else
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5872 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5873 if ${lt_cv_prog_gnu_ld+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5877 case `$LD -v 2>&1 </dev/null` in
5878 *GNU* | *'with BFD'*)
5879   lt_cv_prog_gnu_ld=yes
5880   ;;
5881 *)
5882   lt_cv_prog_gnu_ld=no
5883   ;;
5884 esac
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5887 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5888 with_gnu_ld=$lt_cv_prog_gnu_ld
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5899 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5900 if ${lt_cv_path_NM+:} false; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903   if test -n "$NM"; then
5904   # Let the user override the test.
5905   lt_cv_path_NM=$NM
5906 else
5907   lt_nm_to_check=${ac_tool_prefix}nm
5908   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5909     lt_nm_to_check="$lt_nm_to_check nm"
5910   fi
5911   for lt_tmp_nm in $lt_nm_to_check; do
5912     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5913     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5914       IFS=$lt_save_ifs
5915       test -z "$ac_dir" && ac_dir=.
5916       tmp_nm=$ac_dir/$lt_tmp_nm
5917       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5918         # Check to see if the nm accepts a BSD-compat flag.
5919         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5920         #   nm: unknown option "B" ignored
5921         # Tru64's nm complains that /dev/null is an invalid object file
5922         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5923         case $build_os in
5924         mingw*) lt_bad_file=conftest.nm/nofile ;;
5925         *) lt_bad_file=/dev/null ;;
5926         esac
5927         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5928         *$lt_bad_file* | *'Invalid file or object type'*)
5929           lt_cv_path_NM="$tmp_nm -B"
5930           break 2
5931           ;;
5932         *)
5933           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5934           */dev/null*)
5935             lt_cv_path_NM="$tmp_nm -p"
5936             break 2
5937             ;;
5938           *)
5939             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5940             continue # so that we can try to find one that supports BSD flags
5941             ;;
5942           esac
5943           ;;
5944         esac
5945       fi
5946     done
5947     IFS=$lt_save_ifs
5948   done
5949   : ${lt_cv_path_NM=no}
5950 fi
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5953 $as_echo "$lt_cv_path_NM" >&6; }
5954 if test no != "$lt_cv_path_NM"; then
5955   NM=$lt_cv_path_NM
5956 else
5957   # Didn't find any BSD compatible name lister, look for dumpbin.
5958   if test -n "$DUMPBIN"; then :
5959     # Let the user override the test.
5960   else
5961     if test -n "$ac_tool_prefix"; then
5962   for ac_prog in dumpbin "link -dump"
5963   do
5964     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_DUMPBIN+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   if test -n "$DUMPBIN"; then
5972   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979     for ac_exec_ext in '' $ac_executable_extensions; do
5980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986   done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 DUMPBIN=$ac_cv_prog_DUMPBIN
5992 if test -n "$DUMPBIN"; then
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5994 $as_echo "$DUMPBIN" >&6; }
5995 else
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999
6000
6001     test -n "$DUMPBIN" && break
6002   done
6003 fi
6004 if test -z "$DUMPBIN"; then
6005   ac_ct_DUMPBIN=$DUMPBIN
6006   for ac_prog in dumpbin "link -dump"
6007 do
6008   # Extract the first word of "$ac_prog", so it can be a program name with args.
6009 set dummy $ac_prog; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   if test -n "$ac_ct_DUMPBIN"; then
6016   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023     for ac_exec_ext in '' $ac_executable_extensions; do
6024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030   done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6036 if test -n "$ac_ct_DUMPBIN"; then
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6038 $as_echo "$ac_ct_DUMPBIN" >&6; }
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044
6045   test -n "$ac_ct_DUMPBIN" && break
6046 done
6047
6048   if test "x$ac_ct_DUMPBIN" = x; then
6049     DUMPBIN=":"
6050   else
6051     case $cross_compiling:$ac_tool_warned in
6052 yes:)
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055 ac_tool_warned=yes ;;
6056 esac
6057     DUMPBIN=$ac_ct_DUMPBIN
6058   fi
6059 fi
6060
6061     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6062     *COFF*)
6063       DUMPBIN="$DUMPBIN -symbols -headers"
6064       ;;
6065     *)
6066       DUMPBIN=:
6067       ;;
6068     esac
6069   fi
6070
6071   if test : != "$DUMPBIN"; then
6072     NM=$DUMPBIN
6073   fi
6074 fi
6075 test -z "$NM" && NM=nm
6076
6077
6078
6079
6080
6081
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6083 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6084 if ${lt_cv_nm_interface+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   lt_cv_nm_interface="BSD nm"
6088   echo "int some_variable = 0;" > conftest.$ac_ext
6089   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6090   (eval "$ac_compile" 2>conftest.err)
6091   cat conftest.err >&5
6092   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6093   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6094   cat conftest.err >&5
6095   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6096   cat conftest.out >&5
6097   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6098     lt_cv_nm_interface="MS dumpbin"
6099   fi
6100   rm -f conftest*
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6103 $as_echo "$lt_cv_nm_interface" >&6; }
6104
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6106 $as_echo_n "checking whether ln -s works... " >&6; }
6107 LN_S=$as_ln_s
6108 if test "$LN_S" = "ln -s"; then
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6110 $as_echo "yes" >&6; }
6111 else
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6113 $as_echo "no, using $LN_S" >&6; }
6114 fi
6115
6116 # find the maximum length of command line arguments
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6118 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6119 if ${lt_cv_sys_max_cmd_len+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122     i=0
6123   teststring=ABCD
6124
6125   case $build_os in
6126   msdosdjgpp*)
6127     # On DJGPP, this test can blow up pretty badly due to problems in libc
6128     # (any single argument exceeding 2000 bytes causes a buffer overrun
6129     # during glob expansion).  Even if it were fixed, the result of this
6130     # check would be larger than it should be.
6131     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6132     ;;
6133
6134   gnu*)
6135     # Under GNU Hurd, this test is not required because there is
6136     # no limit to the length of command line arguments.
6137     # Libtool will interpret -1 as no limit whatsoever
6138     lt_cv_sys_max_cmd_len=-1;
6139     ;;
6140
6141   cygwin* | mingw* | cegcc*)
6142     # On Win9x/ME, this test blows up -- it succeeds, but takes
6143     # about 5 minutes as the teststring grows exponentially.
6144     # Worse, since 9x/ME are not pre-emptively multitasking,
6145     # you end up with a "frozen" computer, even though with patience
6146     # the test eventually succeeds (with a max line length of 256k).
6147     # Instead, let's just punt: use the minimum linelength reported by
6148     # all of the supported platforms: 8192 (on NT/2K/XP).
6149     lt_cv_sys_max_cmd_len=8192;
6150     ;;
6151
6152   mint*)
6153     # On MiNT this can take a long time and run out of memory.
6154     lt_cv_sys_max_cmd_len=8192;
6155     ;;
6156
6157   amigaos*)
6158     # On AmigaOS with pdksh, this test takes hours, literally.
6159     # So we just punt and use a minimum line length of 8192.
6160     lt_cv_sys_max_cmd_len=8192;
6161     ;;
6162
6163   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6164     # This has been around since 386BSD, at least.  Likely further.
6165     if test -x /sbin/sysctl; then
6166       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6167     elif test -x /usr/sbin/sysctl; then
6168       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6169     else
6170       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6171     fi
6172     # And add a safety zone
6173     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6174     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6175     ;;
6176
6177   interix*)
6178     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6179     lt_cv_sys_max_cmd_len=196608
6180     ;;
6181
6182   os2*)
6183     # The test takes a long time on OS/2.
6184     lt_cv_sys_max_cmd_len=8192
6185     ;;
6186
6187   osf*)
6188     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6189     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6190     # nice to cause kernel panics so lets avoid the loop below.
6191     # First set a reasonable default.
6192     lt_cv_sys_max_cmd_len=16384
6193     #
6194     if test -x /sbin/sysconfig; then
6195       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6196         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6197       esac
6198     fi
6199     ;;
6200   sco3.2v5*)
6201     lt_cv_sys_max_cmd_len=102400
6202     ;;
6203   sysv5* | sco5v6* | sysv4.2uw2*)
6204     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6205     if test -n "$kargmax"; then
6206       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6207     else
6208       lt_cv_sys_max_cmd_len=32768
6209     fi
6210     ;;
6211   *)
6212     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6213     if test -n "$lt_cv_sys_max_cmd_len" && \
6214        test undefined != "$lt_cv_sys_max_cmd_len"; then
6215       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217     else
6218       # Make teststring a little bigger before we do anything with it.
6219       # a 1K string should be a reasonable start.
6220       for i in 1 2 3 4 5 6 7 8; do
6221         teststring=$teststring$teststring
6222       done
6223       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6224       # If test is not a shell built-in, we'll probably end up computing a
6225       # maximum length that is only half of the actual maximum length, but
6226       # we can't tell.
6227       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6228                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6229               test 17 != "$i" # 1/2 MB should be enough
6230       do
6231         i=`expr $i + 1`
6232         teststring=$teststring$teststring
6233       done
6234       # Only check the string length outside the loop.
6235       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6236       teststring=
6237       # Add a significant safety factor because C++ compilers can tack on
6238       # massive amounts of additional arguments before passing them to the
6239       # linker.  It appears as though 1/2 is a usable value.
6240       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6241     fi
6242     ;;
6243   esac
6244
6245 fi
6246
6247 if test -n "$lt_cv_sys_max_cmd_len"; then
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6249 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6250 else
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6252 $as_echo "none" >&6; }
6253 fi
6254 max_cmd_len=$lt_cv_sys_max_cmd_len
6255
6256
6257
6258
6259
6260
6261 : ${CP="cp -f"}
6262 : ${MV="mv -f"}
6263 : ${RM="rm -f"}
6264
6265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6266   lt_unset=unset
6267 else
6268   lt_unset=false
6269 fi
6270
6271
6272
6273
6274
6275 # test EBCDIC or ASCII
6276 case `echo X|tr X '\101'` in
6277  A) # ASCII based system
6278     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6279   lt_SP2NL='tr \040 \012'
6280   lt_NL2SP='tr \015\012 \040\040'
6281   ;;
6282  *) # EBCDIC based system
6283   lt_SP2NL='tr \100 \n'
6284   lt_NL2SP='tr \r\n \100\100'
6285   ;;
6286 esac
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6297 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6298 if ${lt_cv_to_host_file_cmd+:} false; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301   case $host in
6302   *-*-mingw* )
6303     case $build in
6304       *-*-mingw* ) # actually msys
6305         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6306         ;;
6307       *-*-cygwin* )
6308         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6309         ;;
6310       * ) # otherwise, assume *nix
6311         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6312         ;;
6313     esac
6314     ;;
6315   *-*-cygwin* )
6316     case $build in
6317       *-*-mingw* ) # actually msys
6318         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6319         ;;
6320       *-*-cygwin* )
6321         lt_cv_to_host_file_cmd=func_convert_file_noop
6322         ;;
6323       * ) # otherwise, assume *nix
6324         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6325         ;;
6326     esac
6327     ;;
6328   * ) # unhandled hosts (and "normal" native builds)
6329     lt_cv_to_host_file_cmd=func_convert_file_noop
6330     ;;
6331 esac
6332
6333 fi
6334
6335 to_host_file_cmd=$lt_cv_to_host_file_cmd
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6337 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6338
6339
6340
6341
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6344 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6345 if ${lt_cv_to_tool_file_cmd+:} false; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   #assume ordinary cross tools, or native build.
6349 lt_cv_to_tool_file_cmd=func_convert_file_noop
6350 case $host in
6351   *-*-mingw* )
6352     case $build in
6353       *-*-mingw* ) # actually msys
6354         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6355         ;;
6356     esac
6357     ;;
6358 esac
6359
6360 fi
6361
6362 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6364 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6365
6366
6367
6368
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6371 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6372 if ${lt_cv_ld_reload_flag+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   lt_cv_ld_reload_flag='-r'
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6378 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6379 reload_flag=$lt_cv_ld_reload_flag
6380 case $reload_flag in
6381 "" | " "*) ;;
6382 *) reload_flag=" $reload_flag" ;;
6383 esac
6384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6385 case $host_os in
6386   cygwin* | mingw* | pw32* | cegcc*)
6387     if test yes != "$GCC"; then
6388       reload_cmds=false
6389     fi
6390     ;;
6391   darwin*)
6392     if test yes = "$GCC"; then
6393       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6394     else
6395       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6396     fi
6397     ;;
6398 esac
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408 if test -n "$ac_tool_prefix"; then
6409   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_OBJDUMP+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   if test -n "$OBJDUMP"; then
6417   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424     for ac_exec_ext in '' $ac_executable_extensions; do
6425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431   done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 OBJDUMP=$ac_cv_prog_OBJDUMP
6437 if test -n "$OBJDUMP"; then
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6439 $as_echo "$OBJDUMP" >&6; }
6440 else
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443 fi
6444
6445
6446 fi
6447 if test -z "$ac_cv_prog_OBJDUMP"; then
6448   ac_ct_OBJDUMP=$OBJDUMP
6449   # Extract the first word of "objdump", so it can be a program name with args.
6450 set dummy objdump; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   if test -n "$ac_ct_OBJDUMP"; then
6457   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6477 if test -n "$ac_ct_OBJDUMP"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6479 $as_echo "$ac_ct_OBJDUMP" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485   if test "x$ac_ct_OBJDUMP" = x; then
6486     OBJDUMP="false"
6487   else
6488     case $cross_compiling:$ac_tool_warned in
6489 yes:)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6492 ac_tool_warned=yes ;;
6493 esac
6494     OBJDUMP=$ac_ct_OBJDUMP
6495   fi
6496 else
6497   OBJDUMP="$ac_cv_prog_OBJDUMP"
6498 fi
6499
6500 test -z "$OBJDUMP" && OBJDUMP=objdump
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6511 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6512 if ${lt_cv_deplibs_check_method+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   lt_cv_file_magic_cmd='$MAGIC_CMD'
6516 lt_cv_file_magic_test_file=
6517 lt_cv_deplibs_check_method='unknown'
6518 # Need to set the preceding variable on all platforms that support
6519 # interlibrary dependencies.
6520 # 'none' -- dependencies not supported.
6521 # 'unknown' -- same as none, but documents that we really don't know.
6522 # 'pass_all' -- all dependencies passed with no checks.
6523 # 'test_compile' -- check by making test program.
6524 # 'file_magic [[regex]]' -- check by looking for files in library path
6525 # that responds to the $file_magic_cmd with a given extended regex.
6526 # If you have 'file' or equivalent on your system and you're not sure
6527 # whether 'pass_all' will *always* work, you probably want this one.
6528
6529 case $host_os in
6530 aix[4-9]*)
6531   lt_cv_deplibs_check_method=pass_all
6532   ;;
6533
6534 beos*)
6535   lt_cv_deplibs_check_method=pass_all
6536   ;;
6537
6538 bsdi[45]*)
6539   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6540   lt_cv_file_magic_cmd='/usr/bin/file -L'
6541   lt_cv_file_magic_test_file=/shlib/libc.so
6542   ;;
6543
6544 cygwin*)
6545   # func_win32_libid is a shell function defined in ltmain.sh
6546   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6547   lt_cv_file_magic_cmd='func_win32_libid'
6548   ;;
6549
6550 mingw* | pw32*)
6551   # Base MSYS/MinGW do not provide the 'file' command needed by
6552   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6553   # unless we find 'file', for example because we are cross-compiling.
6554   if ( file / ) >/dev/null 2>&1; then
6555     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6556     lt_cv_file_magic_cmd='func_win32_libid'
6557   else
6558     # Keep this pattern in sync with the one in func_win32_libid.
6559     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6560     lt_cv_file_magic_cmd='$OBJDUMP -f'
6561   fi
6562   ;;
6563
6564 cegcc*)
6565   # use the weaker test based on 'objdump'. See mingw*.
6566   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6567   lt_cv_file_magic_cmd='$OBJDUMP -f'
6568   ;;
6569
6570 darwin* | rhapsody*)
6571   lt_cv_deplibs_check_method=pass_all
6572   ;;
6573
6574 freebsd* | dragonfly*)
6575   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6576     case $host_cpu in
6577     i*86 )
6578       # Not sure whether the presence of OpenBSD here was a mistake.
6579       # Let's accept both of them until this is cleared up.
6580       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6581       lt_cv_file_magic_cmd=/usr/bin/file
6582       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6583       ;;
6584     esac
6585   else
6586     lt_cv_deplibs_check_method=pass_all
6587   fi
6588   ;;
6589
6590 haiku*)
6591   lt_cv_deplibs_check_method=pass_all
6592   ;;
6593
6594 hpux10.20* | hpux11*)
6595   lt_cv_file_magic_cmd=/usr/bin/file
6596   case $host_cpu in
6597   ia64*)
6598     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6599     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6600     ;;
6601   hppa*64*)
6602     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]'
6603     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6604     ;;
6605   *)
6606     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6607     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6608     ;;
6609   esac
6610   ;;
6611
6612 interix[3-9]*)
6613   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6614   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6615   ;;
6616
6617 irix5* | irix6* | nonstopux*)
6618   case $LD in
6619   *-32|*"-32 ") libmagic=32-bit;;
6620   *-n32|*"-n32 ") libmagic=N32;;
6621   *-64|*"-64 ") libmagic=64-bit;;
6622   *) libmagic=never-match;;
6623   esac
6624   lt_cv_deplibs_check_method=pass_all
6625   ;;
6626
6627 # This must be glibc/ELF.
6628 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6629   lt_cv_deplibs_check_method=pass_all
6630   ;;
6631
6632 netbsd*)
6633   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6634     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6635   else
6636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6637   fi
6638   ;;
6639
6640 newos6*)
6641   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6642   lt_cv_file_magic_cmd=/usr/bin/file
6643   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6644   ;;
6645
6646 *nto* | *qnx*)
6647   lt_cv_deplibs_check_method=pass_all
6648   ;;
6649
6650 openbsd* | bitrig*)
6651   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6652     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6653   else
6654     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6655   fi
6656   ;;
6657
6658 osf3* | osf4* | osf5*)
6659   lt_cv_deplibs_check_method=pass_all
6660   ;;
6661
6662 rdos*)
6663   lt_cv_deplibs_check_method=pass_all
6664   ;;
6665
6666 solaris*)
6667   lt_cv_deplibs_check_method=pass_all
6668   ;;
6669
6670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6671   lt_cv_deplibs_check_method=pass_all
6672   ;;
6673
6674 sysv4 | sysv4.3*)
6675   case $host_vendor in
6676   motorola)
6677     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]'
6678     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6679     ;;
6680   ncr)
6681     lt_cv_deplibs_check_method=pass_all
6682     ;;
6683   sequent)
6684     lt_cv_file_magic_cmd='/bin/file'
6685     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6686     ;;
6687   sni)
6688     lt_cv_file_magic_cmd='/bin/file'
6689     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6690     lt_cv_file_magic_test_file=/lib/libc.so
6691     ;;
6692   siemens)
6693     lt_cv_deplibs_check_method=pass_all
6694     ;;
6695   pc)
6696     lt_cv_deplibs_check_method=pass_all
6697     ;;
6698   esac
6699   ;;
6700
6701 tpf*)
6702   lt_cv_deplibs_check_method=pass_all
6703   ;;
6704 os2*)
6705   lt_cv_deplibs_check_method=pass_all
6706   ;;
6707 esac
6708
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6712
6713 file_magic_glob=
6714 want_nocaseglob=no
6715 if test "$build" = "$host"; then
6716   case $host_os in
6717   mingw* | pw32*)
6718     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6719       want_nocaseglob=yes
6720     else
6721       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6722     fi
6723     ;;
6724   esac
6725 fi
6726
6727 file_magic_cmd=$lt_cv_file_magic_cmd
6728 deplibs_check_method=$lt_cv_deplibs_check_method
6729 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 if test -n "$ac_tool_prefix"; then
6753   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_DLLTOOL+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   if test -n "$DLLTOOL"; then
6761   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768     for ac_exec_ext in '' $ac_executable_extensions; do
6769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775   done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 DLLTOOL=$ac_cv_prog_DLLTOOL
6781 if test -n "$DLLTOOL"; then
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6783 $as_echo "$DLLTOOL" >&6; }
6784 else
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789
6790 fi
6791 if test -z "$ac_cv_prog_DLLTOOL"; then
6792   ac_ct_DLLTOOL=$DLLTOOL
6793   # Extract the first word of "dlltool", so it can be a program name with args.
6794 set dummy dlltool; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$ac_ct_DLLTOOL"; then
6801   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6821 if test -n "$ac_ct_DLLTOOL"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6823 $as_echo "$ac_ct_DLLTOOL" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829   if test "x$ac_ct_DLLTOOL" = x; then
6830     DLLTOOL="false"
6831   else
6832     case $cross_compiling:$ac_tool_warned in
6833 yes:)
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836 ac_tool_warned=yes ;;
6837 esac
6838     DLLTOOL=$ac_ct_DLLTOOL
6839   fi
6840 else
6841   DLLTOOL="$ac_cv_prog_DLLTOOL"
6842 fi
6843
6844 test -z "$DLLTOOL" && DLLTOOL=dlltool
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6856 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6857 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   lt_cv_sharedlib_from_linklib_cmd='unknown'
6861
6862 case $host_os in
6863 cygwin* | mingw* | pw32* | cegcc*)
6864   # two different shell functions defined in ltmain.sh;
6865   # decide which one to use based on capabilities of $DLLTOOL
6866   case `$DLLTOOL --help 2>&1` in
6867   *--identify-strict*)
6868     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6869     ;;
6870   *)
6871     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6872     ;;
6873   esac
6874   ;;
6875 *)
6876   # fallback: assume linklib IS sharedlib
6877   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6878   ;;
6879 esac
6880
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6883 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6884 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6885 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6886
6887
6888
6889
6890
6891
6892
6893 if test -n "$ac_tool_prefix"; then
6894   for ac_prog in ar
6895   do
6896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_AR+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$AR"; then
6904   ac_cv_prog_AR="$AR" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 AR=$ac_cv_prog_AR
6924 if test -n "$AR"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6926 $as_echo "$AR" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932
6933     test -n "$AR" && break
6934   done
6935 fi
6936 if test -z "$AR"; then
6937   ac_ct_AR=$AR
6938   for ac_prog in ar
6939 do
6940   # Extract the first word of "$ac_prog", so it can be a program name with args.
6941 set dummy $ac_prog; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   if test -n "$ac_ct_AR"; then
6948   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955     for ac_exec_ext in '' $ac_executable_extensions; do
6956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957     ac_cv_prog_ac_ct_AR="$ac_prog"
6958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962   done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6968 if test -n "$ac_ct_AR"; then
6969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6970 $as_echo "$ac_ct_AR" >&6; }
6971 else
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976
6977   test -n "$ac_ct_AR" && break
6978 done
6979
6980   if test "x$ac_ct_AR" = x; then
6981     AR="false"
6982   else
6983     case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     AR=$ac_ct_AR
6990   fi
6991 fi
6992
6993 : ${AR=ar}
6994
6995
6996
6997
6998
6999
7000 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7001 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7002 # higher priority because thats what people were doing historically (setting
7003 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7004 # variable obsoleted/removed.
7005
7006 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7007 lt_ar_flags=$AR_FLAGS
7008
7009
7010
7011
7012
7013
7014 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7015 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7016
7017
7018
7019
7020
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7023 $as_echo_n "checking for archiver @FILE support... " >&6; }
7024 if ${lt_cv_ar_at_file+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   lt_cv_ar_at_file=no
7028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030
7031 int
7032 main ()
7033 {
7034
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 if ac_fn_c_try_compile "$LINENO"; then :
7040   echo conftest.$ac_objext > conftest.lst
7041       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7042       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7043   (eval $lt_ar_try) 2>&5
7044   ac_status=$?
7045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046   test $ac_status = 0; }
7047       if test 0 -eq "$ac_status"; then
7048         # Ensure the archiver fails upon bogus file names.
7049         rm -f conftest.$ac_objext libconftest.a
7050         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7051   (eval $lt_ar_try) 2>&5
7052   ac_status=$?
7053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054   test $ac_status = 0; }
7055         if test 0 -ne "$ac_status"; then
7056           lt_cv_ar_at_file=@
7057         fi
7058       fi
7059       rm -f conftest.* libconftest.a
7060
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7066 $as_echo "$lt_cv_ar_at_file" >&6; }
7067
7068 if test no = "$lt_cv_ar_at_file"; then
7069   archiver_list_spec=
7070 else
7071   archiver_list_spec=$lt_cv_ar_at_file
7072 fi
7073
7074
7075
7076
7077
7078
7079
7080 if test -n "$ac_tool_prefix"; then
7081   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}strip; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_STRIP+:} false; then :
7086   $as_echo_n "(cached) " >&6
7087 else
7088   if test -n "$STRIP"; then
7089   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096     for ac_exec_ext in '' $ac_executable_extensions; do
7097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103   done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 STRIP=$ac_cv_prog_STRIP
7109 if test -n "$STRIP"; then
7110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7111 $as_echo "$STRIP" >&6; }
7112 else
7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117
7118 fi
7119 if test -z "$ac_cv_prog_STRIP"; then
7120   ac_ct_STRIP=$STRIP
7121   # Extract the first word of "strip", so it can be a program name with args.
7122 set dummy strip; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7126   $as_echo_n "(cached) " >&6
7127 else
7128   if test -n "$ac_ct_STRIP"; then
7129   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136     for ac_exec_ext in '' $ac_executable_extensions; do
7137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138     ac_cv_prog_ac_ct_STRIP="strip"
7139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143   done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7149 if test -n "$ac_ct_STRIP"; then
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7151 $as_echo "$ac_ct_STRIP" >&6; }
7152 else
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157   if test "x$ac_ct_STRIP" = x; then
7158     STRIP=":"
7159   else
7160     case $cross_compiling:$ac_tool_warned in
7161 yes:)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166     STRIP=$ac_ct_STRIP
7167   fi
7168 else
7169   STRIP="$ac_cv_prog_STRIP"
7170 fi
7171
7172 test -z "$STRIP" && STRIP=:
7173
7174
7175
7176
7177
7178
7179 if test -n "$ac_tool_prefix"; then
7180   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_RANLIB+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   if test -n "$RANLIB"; then
7188   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195     for ac_exec_ext in '' $ac_executable_extensions; do
7196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202   done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 RANLIB=$ac_cv_prog_RANLIB
7208 if test -n "$RANLIB"; then
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7210 $as_echo "$RANLIB" >&6; }
7211 else
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216
7217 fi
7218 if test -z "$ac_cv_prog_RANLIB"; then
7219   ac_ct_RANLIB=$RANLIB
7220   # Extract the first word of "ranlib", so it can be a program name with args.
7221 set dummy ranlib; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227   if test -n "$ac_ct_RANLIB"; then
7228   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235     for ac_exec_ext in '' $ac_executable_extensions; do
7236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237     ac_cv_prog_ac_ct_RANLIB="ranlib"
7238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242   done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248 if test -n "$ac_ct_RANLIB"; then
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7250 $as_echo "$ac_ct_RANLIB" >&6; }
7251 else
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256   if test "x$ac_ct_RANLIB" = x; then
7257     RANLIB=":"
7258   else
7259     case $cross_compiling:$ac_tool_warned in
7260 yes:)
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7264 esac
7265     RANLIB=$ac_ct_RANLIB
7266   fi
7267 else
7268   RANLIB="$ac_cv_prog_RANLIB"
7269 fi
7270
7271 test -z "$RANLIB" && RANLIB=:
7272
7273
7274
7275
7276
7277
7278 # Determine commands to create old-style static archives.
7279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7280 old_postinstall_cmds='chmod 644 $oldlib'
7281 old_postuninstall_cmds=
7282
7283 if test -n "$RANLIB"; then
7284   case $host_os in
7285   bitrig* | openbsd*)
7286     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7287     ;;
7288   *)
7289     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7290     ;;
7291   esac
7292   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7293 fi
7294
7295 case $host_os in
7296   darwin*)
7297     lock_old_archive_extraction=yes ;;
7298   *)
7299     lock_old_archive_extraction=no ;;
7300 esac
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
7340 # If no C compiler was specified, use CC.
7341 LTCC=${LTCC-"$CC"}
7342
7343 # If no C compiler flags were specified, use CFLAGS.
7344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7345
7346 # Allow CC to be a program name with arguments.
7347 compiler=$CC
7348
7349
7350 # Check for command to grab the raw symbol name followed by C symbol from nm.
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7352 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7353 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356
7357 # These are sane defaults that work on at least a few old systems.
7358 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7359
7360 # Character class describing NM global symbol codes.
7361 symcode='[BCDEGRST]'
7362
7363 # Regexp to match symbols that can be accessed directly from C.
7364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7365
7366 # Define system-specific variables.
7367 case $host_os in
7368 aix*)
7369   symcode='[BCDT]'
7370   ;;
7371 cygwin* | mingw* | pw32* | cegcc*)
7372   symcode='[ABCDGISTW]'
7373   ;;
7374 hpux*)
7375   if test ia64 = "$host_cpu"; then
7376     symcode='[ABCDEGRST]'
7377   fi
7378   ;;
7379 irix* | nonstopux*)
7380   symcode='[BCDEGRST]'
7381   ;;
7382 osf*)
7383   symcode='[BCDEGQRST]'
7384   ;;
7385 solaris*)
7386   symcode='[BDRT]'
7387   ;;
7388 sco3.2v5*)
7389   symcode='[DT]'
7390   ;;
7391 sysv4.2uw2*)
7392   symcode='[DT]'
7393   ;;
7394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7395   symcode='[ABDT]'
7396   ;;
7397 sysv4)
7398   symcode='[DFNSTU]'
7399   ;;
7400 esac
7401
7402 # If we're using GNU nm, then use its standard symbol codes.
7403 case `$NM -V 2>&1` in
7404 *GNU* | *'with BFD'*)
7405   symcode='[ABCDGIRSTW]' ;;
7406 esac
7407
7408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7409   # Gets list of data symbols to import.
7410   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7411   # Adjust the below global symbol transforms to fixup imported variables.
7412   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7413   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7414   lt_c_name_lib_hook="\
7415   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7416   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7417 else
7418   # Disable hooks by default.
7419   lt_cv_sys_global_symbol_to_import=
7420   lt_cdecl_hook=
7421   lt_c_name_hook=
7422   lt_c_name_lib_hook=
7423 fi
7424
7425 # Transform an extracted symbol line into a proper C declaration.
7426 # Some systems (esp. on ia64) link data and code symbols differently,
7427 # so use this general approach.
7428 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7429 $lt_cdecl_hook\
7430 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7431 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7432
7433 # Transform an extracted symbol line into symbol name and symbol address
7434 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7435 $lt_c_name_hook\
7436 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7437 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7438
7439 # Transform an extracted symbol line into symbol name with lib prefix and
7440 # symbol address.
7441 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7442 $lt_c_name_lib_hook\
7443 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7444 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7445 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7446
7447 # Handle CRLF in mingw tool chain
7448 opt_cr=
7449 case $build_os in
7450 mingw*)
7451   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7452   ;;
7453 esac
7454
7455 # Try without a prefix underscore, then with it.
7456 for ac_symprfx in "" "_"; do
7457
7458   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7459   symxfrm="\\1 $ac_symprfx\\2 \\2"
7460
7461   # Write the raw and C identifiers.
7462   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7463     # Fake it for dumpbin and say T for any non-static function,
7464     # D for any global variable and I for any imported variable.
7465     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7466     # which start with @ or ?.
7467     lt_cv_sys_global_symbol_pipe="$AWK '"\
7468 "     {last_section=section; section=\$ 3};"\
7469 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7470 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7471 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7472 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7473 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7474 "     \$ 0!~/External *\|/{next};"\
7475 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7476 "     {if(hide[section]) next};"\
7477 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7478 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7479 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7480 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7481 "     ' prfx=^$ac_symprfx"
7482   else
7483     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7484   fi
7485   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7486
7487   # Check to see that the pipe works correctly.
7488   pipe_works=no
7489
7490   rm -f conftest*
7491   cat > conftest.$ac_ext <<_LT_EOF
7492 #ifdef __cplusplus
7493 extern "C" {
7494 #endif
7495 char nm_test_var;
7496 void nm_test_func(void);
7497 void nm_test_func(void){}
7498 #ifdef __cplusplus
7499 }
7500 #endif
7501 int main(){nm_test_var='a';nm_test_func();return(0);}
7502 _LT_EOF
7503
7504   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7505   (eval $ac_compile) 2>&5
7506   ac_status=$?
7507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508   test $ac_status = 0; }; then
7509     # Now try to grab the symbols.
7510     nlist=conftest.nm
7511     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7512   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7513   ac_status=$?
7514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515   test $ac_status = 0; } && test -s "$nlist"; then
7516       # Try sorting and uniquifying the output.
7517       if sort "$nlist" | uniq > "$nlist"T; then
7518         mv -f "$nlist"T "$nlist"
7519       else
7520         rm -f "$nlist"T
7521       fi
7522
7523       # Make sure that we snagged all the symbols we need.
7524       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7525         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7526           cat <<_LT_EOF > conftest.$ac_ext
7527 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7528 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7529 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7530    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7531 # define LT_DLSYM_CONST
7532 #elif defined __osf__
7533 /* This system does not cope well with relocations in const data.  */
7534 # define LT_DLSYM_CONST
7535 #else
7536 # define LT_DLSYM_CONST const
7537 #endif
7538
7539 #ifdef __cplusplus
7540 extern "C" {
7541 #endif
7542
7543 _LT_EOF
7544           # Now generate the symbol file.
7545           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7546
7547           cat <<_LT_EOF >> conftest.$ac_ext
7548
7549 /* The mapping between symbol names and symbols.  */
7550 LT_DLSYM_CONST struct {
7551   const char *name;
7552   void       *address;
7553 }
7554 lt__PROGRAM__LTX_preloaded_symbols[] =
7555 {
7556   { "@PROGRAM@", (void *) 0 },
7557 _LT_EOF
7558           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7559           cat <<\_LT_EOF >> conftest.$ac_ext
7560   {0, (void *) 0}
7561 };
7562
7563 /* This works around a problem in FreeBSD linker */
7564 #ifdef FREEBSD_WORKAROUND
7565 static const void *lt_preloaded_setup() {
7566   return lt__PROGRAM__LTX_preloaded_symbols;
7567 }
7568 #endif
7569
7570 #ifdef __cplusplus
7571 }
7572 #endif
7573 _LT_EOF
7574           # Now try linking the two files.
7575           mv conftest.$ac_objext conftstm.$ac_objext
7576           lt_globsym_save_LIBS=$LIBS
7577           lt_globsym_save_CFLAGS=$CFLAGS
7578           LIBS=conftstm.$ac_objext
7579           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7580           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7581   (eval $ac_link) 2>&5
7582   ac_status=$?
7583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7585             pipe_works=yes
7586           fi
7587           LIBS=$lt_globsym_save_LIBS
7588           CFLAGS=$lt_globsym_save_CFLAGS
7589         else
7590           echo "cannot find nm_test_func in $nlist" >&5
7591         fi
7592       else
7593         echo "cannot find nm_test_var in $nlist" >&5
7594       fi
7595     else
7596       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7597     fi
7598   else
7599     echo "$progname: failed program was:" >&5
7600     cat conftest.$ac_ext >&5
7601   fi
7602   rm -rf conftest* conftst*
7603
7604   # Do not use the global_symbol_pipe unless it works.
7605   if test yes = "$pipe_works"; then
7606     break
7607   else
7608     lt_cv_sys_global_symbol_pipe=
7609   fi
7610 done
7611
7612 fi
7613
7614 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7615   lt_cv_sys_global_symbol_to_cdecl=
7616 fi
7617 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7619 $as_echo "failed" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7622 $as_echo "ok" >&6; }
7623 fi
7624
7625 # Response file support.
7626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7627   nm_file_list_spec='@'
7628 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7629   nm_file_list_spec='@'
7630 fi
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
7665
7666
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7669 $as_echo_n "checking for sysroot... " >&6; }
7670
7671 # Check whether --with-sysroot was given.
7672 if test "${with_sysroot+set}" = set; then :
7673   withval=$with_sysroot;
7674 else
7675   with_sysroot=no
7676 fi
7677
7678
7679 lt_sysroot=
7680 case $with_sysroot in #(
7681  yes)
7682    if test yes = "$GCC"; then
7683      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7684    fi
7685    ;; #(
7686  /*)
7687    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7688    ;; #(
7689  no|'')
7690    ;; #(
7691  *)
7692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7693 $as_echo "$with_sysroot" >&6; }
7694    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7695    ;;
7696 esac
7697
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7699 $as_echo "${lt_sysroot:-no}" >&6; }
7700
7701
7702
7703
7704
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7706 $as_echo_n "checking for a working dd... " >&6; }
7707 if ${ac_cv_path_lt_DD+:} false; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   printf 0123456789abcdef0123456789abcdef >conftest.i
7711 cat conftest.i conftest.i >conftest2.i
7712 : ${lt_DD:=$DD}
7713 if test -z "$lt_DD"; then
7714   ac_path_lt_DD_found=false
7715   # Loop through the user's path and test for each of PROGNAME-LIST
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721     for ac_prog in dd; do
7722     for ac_exec_ext in '' $ac_executable_extensions; do
7723       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7724       as_fn_executable_p "$ac_path_lt_DD" || continue
7725 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7726   cmp -s conftest.i conftest.out \
7727   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7728 fi
7729       $ac_path_lt_DD_found && break 3
7730     done
7731   done
7732   done
7733 IFS=$as_save_IFS
7734   if test -z "$ac_cv_path_lt_DD"; then
7735     :
7736   fi
7737 else
7738   ac_cv_path_lt_DD=$lt_DD
7739 fi
7740
7741 rm -f conftest.i conftest2.i conftest.out
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7744 $as_echo "$ac_cv_path_lt_DD" >&6; }
7745
7746
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7748 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7749 if ${lt_cv_truncate_bin+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   printf 0123456789abcdef0123456789abcdef >conftest.i
7753 cat conftest.i conftest.i >conftest2.i
7754 lt_cv_truncate_bin=
7755 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7756   cmp -s conftest.i conftest.out \
7757   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7758 fi
7759 rm -f conftest.i conftest2.i conftest.out
7760 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7763 $as_echo "$lt_cv_truncate_bin" >&6; }
7764
7765
7766
7767
7768
7769
7770
7771 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7772 func_cc_basename ()
7773 {
7774     for cc_temp in $*""; do
7775       case $cc_temp in
7776         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7777         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7778         \-*) ;;
7779         *) break;;
7780       esac
7781     done
7782     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7783 }
7784
7785 # Check whether --enable-libtool-lock was given.
7786 if test "${enable_libtool_lock+set}" = set; then :
7787   enableval=$enable_libtool_lock;
7788 fi
7789
7790 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7791
7792 # Some flags need to be propagated to the compiler or linker for good
7793 # libtool support.
7794 case $host in
7795 ia64-*-hpux*)
7796   # Find out what ABI is being produced by ac_compile, and set mode
7797   # options accordingly.
7798   echo 'int i;' > conftest.$ac_ext
7799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800   (eval $ac_compile) 2>&5
7801   ac_status=$?
7802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803   test $ac_status = 0; }; then
7804     case `/usr/bin/file conftest.$ac_objext` in
7805       *ELF-32*)
7806         HPUX_IA64_MODE=32
7807         ;;
7808       *ELF-64*)
7809         HPUX_IA64_MODE=64
7810         ;;
7811     esac
7812   fi
7813   rm -rf conftest*
7814   ;;
7815 *-*-irix6*)
7816   # Find out what ABI is being produced by ac_compile, and set linker
7817   # options accordingly.
7818   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820   (eval $ac_compile) 2>&5
7821   ac_status=$?
7822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823   test $ac_status = 0; }; then
7824     if test yes = "$lt_cv_prog_gnu_ld"; then
7825       case `/usr/bin/file conftest.$ac_objext` in
7826         *32-bit*)
7827           LD="${LD-ld} -melf32bsmip"
7828           ;;
7829         *N32*)
7830           LD="${LD-ld} -melf32bmipn32"
7831           ;;
7832         *64-bit*)
7833           LD="${LD-ld} -melf64bmip"
7834         ;;
7835       esac
7836     else
7837       case `/usr/bin/file conftest.$ac_objext` in
7838         *32-bit*)
7839           LD="${LD-ld} -32"
7840           ;;
7841         *N32*)
7842           LD="${LD-ld} -n32"
7843           ;;
7844         *64-bit*)
7845           LD="${LD-ld} -64"
7846           ;;
7847       esac
7848     fi
7849   fi
7850   rm -rf conftest*
7851   ;;
7852
7853 mips64*-*linux*)
7854   # Find out what ABI is being produced by ac_compile, and set linker
7855   # options accordingly.
7856   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858   (eval $ac_compile) 2>&5
7859   ac_status=$?
7860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861   test $ac_status = 0; }; then
7862     emul=elf
7863     case `/usr/bin/file conftest.$ac_objext` in
7864       *32-bit*)
7865         emul="${emul}32"
7866         ;;
7867       *64-bit*)
7868         emul="${emul}64"
7869         ;;
7870     esac
7871     case `/usr/bin/file conftest.$ac_objext` in
7872       *MSB*)
7873         emul="${emul}btsmip"
7874         ;;
7875       *LSB*)
7876         emul="${emul}ltsmip"
7877         ;;
7878     esac
7879     case `/usr/bin/file conftest.$ac_objext` in
7880       *N32*)
7881         emul="${emul}n32"
7882         ;;
7883     esac
7884     LD="${LD-ld} -m $emul"
7885   fi
7886   rm -rf conftest*
7887   ;;
7888
7889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7891   # Find out what ABI is being produced by ac_compile, and set linker
7892   # options accordingly.  Note that the listed cases only cover the
7893   # situations where additional linker options are needed (such as when
7894   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7895   # vice versa); the common cases where no linker options are needed do
7896   # not appear in the list.
7897   echo 'int i;' > conftest.$ac_ext
7898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899   (eval $ac_compile) 2>&5
7900   ac_status=$?
7901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902   test $ac_status = 0; }; then
7903     case `/usr/bin/file conftest.o` in
7904       *32-bit*)
7905         case $host in
7906           x86_64-*kfreebsd*-gnu)
7907             LD="${LD-ld} -m elf_i386_fbsd"
7908             ;;
7909           x86_64-*linux*)
7910             case `/usr/bin/file conftest.o` in
7911               *x86-64*)
7912                 LD="${LD-ld} -m elf32_x86_64"
7913                 ;;
7914               *)
7915                 LD="${LD-ld} -m elf_i386"
7916                 ;;
7917             esac
7918             ;;
7919           powerpc64le-*linux*)
7920             LD="${LD-ld} -m elf32lppclinux"
7921             ;;
7922           powerpc64-*linux*)
7923             LD="${LD-ld} -m elf32ppclinux"
7924             ;;
7925           s390x-*linux*)
7926             LD="${LD-ld} -m elf_s390"
7927             ;;
7928           sparc64-*linux*)
7929             LD="${LD-ld} -m elf32_sparc"
7930             ;;
7931         esac
7932         ;;
7933       *64-bit*)
7934         case $host in
7935           x86_64-*kfreebsd*-gnu)
7936             LD="${LD-ld} -m elf_x86_64_fbsd"
7937             ;;
7938           x86_64-*linux*)
7939             LD="${LD-ld} -m elf_x86_64"
7940             ;;
7941           powerpcle-*linux*)
7942             LD="${LD-ld} -m elf64lppc"
7943             ;;
7944           powerpc-*linux*)
7945             LD="${LD-ld} -m elf64ppc"
7946             ;;
7947           s390*-*linux*|s390*-*tpf*)
7948             LD="${LD-ld} -m elf64_s390"
7949             ;;
7950           sparc*-*linux*)
7951             LD="${LD-ld} -m elf64_sparc"
7952             ;;
7953         esac
7954         ;;
7955     esac
7956   fi
7957   rm -rf conftest*
7958   ;;
7959
7960 *-*-sco3.2v5*)
7961   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7962   SAVE_CFLAGS=$CFLAGS
7963   CFLAGS="$CFLAGS -belf"
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7965 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7966 if ${lt_cv_cc_needs_belf+:} false; then :
7967   $as_echo_n "(cached) " >&6
7968 else
7969   ac_ext=c
7970 ac_cpp='$CPP $CPPFLAGS'
7971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h.  */
7977
7978 int
7979 main ()
7980 {
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_link "$LINENO"; then :
7987   lt_cv_cc_needs_belf=yes
7988 else
7989   lt_cv_cc_needs_belf=no
7990 fi
7991 rm -f core conftest.err conftest.$ac_objext \
7992     conftest$ac_exeext conftest.$ac_ext
7993      ac_ext=c
7994 ac_cpp='$CPP $CPPFLAGS'
7995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8001 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8002   if test yes != "$lt_cv_cc_needs_belf"; then
8003     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8004     CFLAGS=$SAVE_CFLAGS
8005   fi
8006   ;;
8007 *-*solaris*)
8008   # Find out what ABI is being produced by ac_compile, and set linker
8009   # options accordingly.
8010   echo 'int i;' > conftest.$ac_ext
8011   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8012   (eval $ac_compile) 2>&5
8013   ac_status=$?
8014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015   test $ac_status = 0; }; then
8016     case `/usr/bin/file conftest.o` in
8017     *64-bit*)
8018       case $lt_cv_prog_gnu_ld in
8019       yes*)
8020         case $host in
8021         i?86-*-solaris*|x86_64-*-solaris*)
8022           LD="${LD-ld} -m elf_x86_64"
8023           ;;
8024         sparc*-*-solaris*)
8025           LD="${LD-ld} -m elf64_sparc"
8026           ;;
8027         esac
8028         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8029         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8030           LD=${LD-ld}_sol2
8031         fi
8032         ;;
8033       *)
8034         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8035           LD="${LD-ld} -64"
8036         fi
8037         ;;
8038       esac
8039       ;;
8040     esac
8041   fi
8042   rm -rf conftest*
8043   ;;
8044 esac
8045
8046 need_locks=$enable_libtool_lock
8047
8048 if test -n "$ac_tool_prefix"; then
8049   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8050 set dummy ${ac_tool_prefix}mt; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$MANIFEST_TOOL"; then
8057   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8077 if test -n "$MANIFEST_TOOL"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8079 $as_echo "$MANIFEST_TOOL" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086 fi
8087 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8088   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8089   # Extract the first word of "mt", so it can be a program name with args.
8090 set dummy mt; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   if test -n "$ac_ct_MANIFEST_TOOL"; then
8097   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104     for ac_exec_ext in '' $ac_executable_extensions; do
8105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111   done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8117 if test -n "$ac_ct_MANIFEST_TOOL"; then
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8119 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124
8125   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8126     MANIFEST_TOOL=":"
8127   else
8128     case $cross_compiling:$ac_tool_warned in
8129 yes:)
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8133 esac
8134     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8135   fi
8136 else
8137   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8138 fi
8139
8140 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8142 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8143 if ${lt_cv_path_mainfest_tool+:} false; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146   lt_cv_path_mainfest_tool=no
8147   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8148   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8149   cat conftest.err >&5
8150   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8151     lt_cv_path_mainfest_tool=yes
8152   fi
8153   rm -f conftest*
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8156 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8157 if test yes != "$lt_cv_path_mainfest_tool"; then
8158   MANIFEST_TOOL=:
8159 fi
8160
8161
8162
8163
8164
8165
8166   case $host_os in
8167     rhapsody* | darwin*)
8168     if test -n "$ac_tool_prefix"; then
8169   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8170 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   if test -n "$DSYMUTIL"; then
8177   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182   IFS=$as_save_IFS
8183   test -z "$as_dir" && as_dir=.
8184     for ac_exec_ext in '' $ac_executable_extensions; do
8185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188     break 2
8189   fi
8190 done
8191   done
8192 IFS=$as_save_IFS
8193
8194 fi
8195 fi
8196 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8197 if test -n "$DSYMUTIL"; then
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8199 $as_echo "$DSYMUTIL" >&6; }
8200 else
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8203 fi
8204
8205
8206 fi
8207 if test -z "$ac_cv_prog_DSYMUTIL"; then
8208   ac_ct_DSYMUTIL=$DSYMUTIL
8209   # Extract the first word of "dsymutil", so it can be a program name with args.
8210 set dummy dsymutil; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8214   $as_echo_n "(cached) " >&6
8215 else
8216   if test -n "$ac_ct_DSYMUTIL"; then
8217   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222   IFS=$as_save_IFS
8223   test -z "$as_dir" && as_dir=.
8224     for ac_exec_ext in '' $ac_executable_extensions; do
8225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228     break 2
8229   fi
8230 done
8231   done
8232 IFS=$as_save_IFS
8233
8234 fi
8235 fi
8236 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8237 if test -n "$ac_ct_DSYMUTIL"; then
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8239 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8240 else
8241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245   if test "x$ac_ct_DSYMUTIL" = x; then
8246     DSYMUTIL=":"
8247   else
8248     case $cross_compiling:$ac_tool_warned in
8249 yes:)
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252 ac_tool_warned=yes ;;
8253 esac
8254     DSYMUTIL=$ac_ct_DSYMUTIL
8255   fi
8256 else
8257   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8258 fi
8259
8260     if test -n "$ac_tool_prefix"; then
8261   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if ${ac_cv_prog_NMEDIT+:} false; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   if test -n "$NMEDIT"; then
8269   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274   IFS=$as_save_IFS
8275   test -z "$as_dir" && as_dir=.
8276     for ac_exec_ext in '' $ac_executable_extensions; do
8277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280     break 2
8281   fi
8282 done
8283   done
8284 IFS=$as_save_IFS
8285
8286 fi
8287 fi
8288 NMEDIT=$ac_cv_prog_NMEDIT
8289 if test -n "$NMEDIT"; then
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8291 $as_echo "$NMEDIT" >&6; }
8292 else
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298 fi
8299 if test -z "$ac_cv_prog_NMEDIT"; then
8300   ac_ct_NMEDIT=$NMEDIT
8301   # Extract the first word of "nmedit", so it can be a program name with args.
8302 set dummy nmedit; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   if test -n "$ac_ct_NMEDIT"; then
8309   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316     for ac_exec_ext in '' $ac_executable_extensions; do
8317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323   done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8329 if test -n "$ac_ct_NMEDIT"; then
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8331 $as_echo "$ac_ct_NMEDIT" >&6; }
8332 else
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8335 fi
8336
8337   if test "x$ac_ct_NMEDIT" = x; then
8338     NMEDIT=":"
8339   else
8340     case $cross_compiling:$ac_tool_warned in
8341 yes:)
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8344 ac_tool_warned=yes ;;
8345 esac
8346     NMEDIT=$ac_ct_NMEDIT
8347   fi
8348 else
8349   NMEDIT="$ac_cv_prog_NMEDIT"
8350 fi
8351
8352     if test -n "$ac_tool_prefix"; then
8353   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8354 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_LIPO+:} false; then :
8358   $as_echo_n "(cached) " >&6
8359 else
8360   if test -n "$LIPO"; then
8361   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368     for ac_exec_ext in '' $ac_executable_extensions; do
8369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375   done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 LIPO=$ac_cv_prog_LIPO
8381 if test -n "$LIPO"; then
8382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8383 $as_echo "$LIPO" >&6; }
8384 else
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388
8389
8390 fi
8391 if test -z "$ac_cv_prog_LIPO"; then
8392   ac_ct_LIPO=$LIPO
8393   # Extract the first word of "lipo", so it can be a program name with args.
8394 set dummy lipo; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   if test -n "$ac_ct_LIPO"; then
8401   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   test -z "$as_dir" && as_dir=.
8408     for ac_exec_ext in '' $ac_executable_extensions; do
8409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410     ac_cv_prog_ac_ct_LIPO="lipo"
8411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412     break 2
8413   fi
8414 done
8415   done
8416 IFS=$as_save_IFS
8417
8418 fi
8419 fi
8420 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8421 if test -n "$ac_ct_LIPO"; then
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8423 $as_echo "$ac_ct_LIPO" >&6; }
8424 else
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429   if test "x$ac_ct_LIPO" = x; then
8430     LIPO=":"
8431   else
8432     case $cross_compiling:$ac_tool_warned in
8433 yes:)
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436 ac_tool_warned=yes ;;
8437 esac
8438     LIPO=$ac_ct_LIPO
8439   fi
8440 else
8441   LIPO="$ac_cv_prog_LIPO"
8442 fi
8443
8444     if test -n "$ac_tool_prefix"; then
8445   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8446 set dummy ${ac_tool_prefix}otool; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_OTOOL+:} false; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   if test -n "$OTOOL"; then
8453   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458   IFS=$as_save_IFS
8459   test -z "$as_dir" && as_dir=.
8460     for ac_exec_ext in '' $ac_executable_extensions; do
8461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464     break 2
8465   fi
8466 done
8467   done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 OTOOL=$ac_cv_prog_OTOOL
8473 if test -n "$OTOOL"; then
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8475 $as_echo "$OTOOL" >&6; }
8476 else
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8479 fi
8480
8481
8482 fi
8483 if test -z "$ac_cv_prog_OTOOL"; then
8484   ac_ct_OTOOL=$OTOOL
8485   # Extract the first word of "otool", so it can be a program name with args.
8486 set dummy otool; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   if test -n "$ac_ct_OTOOL"; then
8493   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498   IFS=$as_save_IFS
8499   test -z "$as_dir" && as_dir=.
8500     for ac_exec_ext in '' $ac_executable_extensions; do
8501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502     ac_cv_prog_ac_ct_OTOOL="otool"
8503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504     break 2
8505   fi
8506 done
8507   done
8508 IFS=$as_save_IFS
8509
8510 fi
8511 fi
8512 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8513 if test -n "$ac_ct_OTOOL"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8515 $as_echo "$ac_ct_OTOOL" >&6; }
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521   if test "x$ac_ct_OTOOL" = x; then
8522     OTOOL=":"
8523   else
8524     case $cross_compiling:$ac_tool_warned in
8525 yes:)
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8528 ac_tool_warned=yes ;;
8529 esac
8530     OTOOL=$ac_ct_OTOOL
8531   fi
8532 else
8533   OTOOL="$ac_cv_prog_OTOOL"
8534 fi
8535
8536     if test -n "$ac_tool_prefix"; then
8537   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8538 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_OTOOL64+:} false; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   if test -n "$OTOOL64"; then
8545   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550   IFS=$as_save_IFS
8551   test -z "$as_dir" && as_dir=.
8552     for ac_exec_ext in '' $ac_executable_extensions; do
8553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556     break 2
8557   fi
8558 done
8559   done
8560 IFS=$as_save_IFS
8561
8562 fi
8563 fi
8564 OTOOL64=$ac_cv_prog_OTOOL64
8565 if test -n "$OTOOL64"; then
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8567 $as_echo "$OTOOL64" >&6; }
8568 else
8569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574 fi
8575 if test -z "$ac_cv_prog_OTOOL64"; then
8576   ac_ct_OTOOL64=$OTOOL64
8577   # Extract the first word of "otool64", so it can be a program name with args.
8578 set dummy otool64; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   if test -n "$ac_ct_OTOOL64"; then
8585   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590   IFS=$as_save_IFS
8591   test -z "$as_dir" && as_dir=.
8592     for ac_exec_ext in '' $ac_executable_extensions; do
8593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594     ac_cv_prog_ac_ct_OTOOL64="otool64"
8595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596     break 2
8597   fi
8598 done
8599   done
8600 IFS=$as_save_IFS
8601
8602 fi
8603 fi
8604 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8605 if test -n "$ac_ct_OTOOL64"; then
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8607 $as_echo "$ac_ct_OTOOL64" >&6; }
8608 else
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613   if test "x$ac_ct_OTOOL64" = x; then
8614     OTOOL64=":"
8615   else
8616     case $cross_compiling:$ac_tool_warned in
8617 yes:)
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8620 ac_tool_warned=yes ;;
8621 esac
8622     OTOOL64=$ac_ct_OTOOL64
8623   fi
8624 else
8625   OTOOL64="$ac_cv_prog_OTOOL64"
8626 fi
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8655 $as_echo_n "checking for -single_module linker flag... " >&6; }
8656 if ${lt_cv_apple_cc_single_mod+:} false; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   lt_cv_apple_cc_single_mod=no
8660       if test -z "$LT_MULTI_MODULE"; then
8661         # By default we will add the -single_module flag. You can override
8662         # by either setting the environment variable LT_MULTI_MODULE
8663         # non-empty at configure time, or by adding -multi_module to the
8664         # link flags.
8665         rm -rf libconftest.dylib*
8666         echo "int foo(void){return 1;}" > conftest.c
8667         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8668 -dynamiclib -Wl,-single_module conftest.c" >&5
8669         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8670           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8671         _lt_result=$?
8672         # If there is a non-empty error log, and "single_module"
8673         # appears in it, assume the flag caused a linker warning
8674         if test -s conftest.err && $GREP single_module conftest.err; then
8675           cat conftest.err >&5
8676         # Otherwise, if the output was created with a 0 exit code from
8677         # the compiler, it worked.
8678         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8679           lt_cv_apple_cc_single_mod=yes
8680         else
8681           cat conftest.err >&5
8682         fi
8683         rm -rf libconftest.dylib*
8684         rm -f conftest.*
8685       fi
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8688 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8689
8690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8691 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8692 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   lt_cv_ld_exported_symbols_list=no
8696       save_LDFLAGS=$LDFLAGS
8697       echo "_main" > conftest.sym
8698       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8699       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h.  */
8701
8702 int
8703 main ()
8704 {
8705
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711   lt_cv_ld_exported_symbols_list=yes
8712 else
8713   lt_cv_ld_exported_symbols_list=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext \
8716     conftest$ac_exeext conftest.$ac_ext
8717         LDFLAGS=$save_LDFLAGS
8718
8719 fi
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8721 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8722
8723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8724 $as_echo_n "checking for -force_load linker flag... " >&6; }
8725 if ${lt_cv_ld_force_load+:} false; then :
8726   $as_echo_n "(cached) " >&6
8727 else
8728   lt_cv_ld_force_load=no
8729       cat > conftest.c << _LT_EOF
8730 int forced_loaded() { return 2;}
8731 _LT_EOF
8732       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8733       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8734       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8735       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8736       echo "$RANLIB libconftest.a" >&5
8737       $RANLIB libconftest.a 2>&5
8738       cat > conftest.c << _LT_EOF
8739 int main() { return 0;}
8740 _LT_EOF
8741       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8742       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8743       _lt_result=$?
8744       if test -s conftest.err && $GREP force_load conftest.err; then
8745         cat conftest.err >&5
8746       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8747         lt_cv_ld_force_load=yes
8748       else
8749         cat conftest.err >&5
8750       fi
8751         rm -f conftest.err libconftest.a conftest conftest.c
8752         rm -rf conftest.dSYM
8753
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8756 $as_echo "$lt_cv_ld_force_load" >&6; }
8757     case $host_os in
8758     rhapsody* | darwin1.[012])
8759       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8760     darwin1.*)
8761       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8762     darwin*) # darwin 5.x on
8763       # if running on 10.5 or later, the deployment target defaults
8764       # to the OS version, if on x86, and 10.4, the deployment
8765       # target defaults to 10.4. Don't you love it?
8766       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8767         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8768           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8769         10.[012][,.]*)
8770           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8771         10.*)
8772           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8773       esac
8774     ;;
8775   esac
8776     if test yes = "$lt_cv_apple_cc_single_mod"; then
8777       _lt_dar_single_mod='$single_module'
8778     fi
8779     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8780       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8781     else
8782       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8783     fi
8784     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8785       _lt_dsymutil='~$DSYMUTIL $lib || :'
8786     else
8787       _lt_dsymutil=
8788     fi
8789     ;;
8790   esac
8791
8792 # func_munge_path_list VARIABLE PATH
8793 # -----------------------------------
8794 # VARIABLE is name of variable containing _space_ separated list of
8795 # directories to be munged by the contents of PATH, which is string
8796 # having a format:
8797 # "DIR[:DIR]:"
8798 #       string "DIR[ DIR]" will be prepended to VARIABLE
8799 # ":DIR[:DIR]"
8800 #       string "DIR[ DIR]" will be appended to VARIABLE
8801 # "DIRP[:DIRP]::[DIRA:]DIRA"
8802 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8803 #       "DIRA[ DIRA]" will be appended to VARIABLE
8804 # "DIR[:DIR]"
8805 #       VARIABLE will be replaced by "DIR[ DIR]"
8806 func_munge_path_list ()
8807 {
8808     case x$2 in
8809     x)
8810         ;;
8811     *:)
8812         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8813         ;;
8814     x:*)
8815         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8816         ;;
8817     *::*)
8818         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8819         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8820         ;;
8821     *)
8822         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8823         ;;
8824     esac
8825 }
8826
8827 ac_ext=c
8828 ac_cpp='$CPP $CPPFLAGS'
8829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8834 # On Suns, sometimes $CPP names a directory.
8835 if test -n "$CPP" && test -d "$CPP"; then
8836   CPP=
8837 fi
8838 if test -z "$CPP"; then
8839   if ${ac_cv_prog_CPP+:} false; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842       # Double quotes because CPP needs to be expanded
8843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8844     do
8845       ac_preproc_ok=false
8846 for ac_c_preproc_warn_flag in '' yes
8847 do
8848   # Use a header file that comes with gcc, so configuring glibc
8849   # with a fresh cross-compiler works.
8850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8851   # <limits.h> exists even on freestanding compilers.
8852   # On the NeXT, cc -E runs the code through the compiler's parser,
8853   # not just through cpp. "Syntax error" is here to catch this case.
8854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h.  */
8856 #ifdef __STDC__
8857 # include <limits.h>
8858 #else
8859 # include <assert.h>
8860 #endif
8861                      Syntax error
8862 _ACEOF
8863 if ac_fn_c_try_cpp "$LINENO"; then :
8864
8865 else
8866   # Broken: fails on valid input.
8867 continue
8868 fi
8869 rm -f conftest.err conftest.i conftest.$ac_ext
8870
8871   # OK, works on sane cases.  Now check whether nonexistent headers
8872   # can be detected and how.
8873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h.  */
8875 #include <ac_nonexistent.h>
8876 _ACEOF
8877 if ac_fn_c_try_cpp "$LINENO"; then :
8878   # Broken: success on invalid input.
8879 continue
8880 else
8881   # Passes both tests.
8882 ac_preproc_ok=:
8883 break
8884 fi
8885 rm -f conftest.err conftest.i conftest.$ac_ext
8886
8887 done
8888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8889 rm -f conftest.i conftest.err conftest.$ac_ext
8890 if $ac_preproc_ok; then :
8891   break
8892 fi
8893
8894     done
8895     ac_cv_prog_CPP=$CPP
8896
8897 fi
8898   CPP=$ac_cv_prog_CPP
8899 else
8900   ac_cv_prog_CPP=$CPP
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8903 $as_echo "$CPP" >&6; }
8904 ac_preproc_ok=false
8905 for ac_c_preproc_warn_flag in '' yes
8906 do
8907   # Use a header file that comes with gcc, so configuring glibc
8908   # with a fresh cross-compiler works.
8909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8910   # <limits.h> exists even on freestanding compilers.
8911   # On the NeXT, cc -E runs the code through the compiler's parser,
8912   # not just through cpp. "Syntax error" is here to catch this case.
8913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h.  */
8915 #ifdef __STDC__
8916 # include <limits.h>
8917 #else
8918 # include <assert.h>
8919 #endif
8920                      Syntax error
8921 _ACEOF
8922 if ac_fn_c_try_cpp "$LINENO"; then :
8923
8924 else
8925   # Broken: fails on valid input.
8926 continue
8927 fi
8928 rm -f conftest.err conftest.i conftest.$ac_ext
8929
8930   # OK, works on sane cases.  Now check whether nonexistent headers
8931   # can be detected and how.
8932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h.  */
8934 #include <ac_nonexistent.h>
8935 _ACEOF
8936 if ac_fn_c_try_cpp "$LINENO"; then :
8937   # Broken: success on invalid input.
8938 continue
8939 else
8940   # Passes both tests.
8941 ac_preproc_ok=:
8942 break
8943 fi
8944 rm -f conftest.err conftest.i conftest.$ac_ext
8945
8946 done
8947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8948 rm -f conftest.i conftest.err conftest.$ac_ext
8949 if $ac_preproc_ok; then :
8950
8951 else
8952   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8955 See \`config.log' for more details" "$LINENO" 5; }
8956 fi
8957
8958 ac_ext=c
8959 ac_cpp='$CPP $CPPFLAGS'
8960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8963
8964
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8966 $as_echo_n "checking for ANSI C header files... " >&6; }
8967 if ${ac_cv_header_stdc+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h.  */
8972 #include <stdlib.h>
8973 #include <stdarg.h>
8974 #include <string.h>
8975 #include <float.h>
8976
8977 int
8978 main ()
8979 {
8980
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 if ac_fn_c_try_compile "$LINENO"; then :
8986   ac_cv_header_stdc=yes
8987 else
8988   ac_cv_header_stdc=no
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991
8992 if test $ac_cv_header_stdc = yes; then
8993   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h.  */
8996 #include <string.h>
8997
8998 _ACEOF
8999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9000   $EGREP "memchr" >/dev/null 2>&1; then :
9001
9002 else
9003   ac_cv_header_stdc=no
9004 fi
9005 rm -f conftest*
9006
9007 fi
9008
9009 if test $ac_cv_header_stdc = yes; then
9010   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h.  */
9013 #include <stdlib.h>
9014
9015 _ACEOF
9016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9017   $EGREP "free" >/dev/null 2>&1; then :
9018
9019 else
9020   ac_cv_header_stdc=no
9021 fi
9022 rm -f conftest*
9023
9024 fi
9025
9026 if test $ac_cv_header_stdc = yes; then
9027   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9028   if test "$cross_compiling" = yes; then :
9029   :
9030 else
9031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h.  */
9033 #include <ctype.h>
9034 #include <stdlib.h>
9035 #if ((' ' & 0x0FF) == 0x020)
9036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9038 #else
9039 # define ISLOWER(c) \
9040                    (('a' <= (c) && (c) <= 'i') \
9041                      || ('j' <= (c) && (c) <= 'r') \
9042                      || ('s' <= (c) && (c) <= 'z'))
9043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9044 #endif
9045
9046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9047 int
9048 main ()
9049 {
9050   int i;
9051   for (i = 0; i < 256; i++)
9052     if (XOR (islower (i), ISLOWER (i))
9053         || toupper (i) != TOUPPER (i))
9054       return 2;
9055   return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_run "$LINENO"; then :
9059
9060 else
9061   ac_cv_header_stdc=no
9062 fi
9063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9064   conftest.$ac_objext conftest.beam conftest.$ac_ext
9065 fi
9066
9067 fi
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9070 $as_echo "$ac_cv_header_stdc" >&6; }
9071 if test $ac_cv_header_stdc = yes; then
9072
9073 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9074
9075 fi
9076
9077 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9078 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9079                   inttypes.h stdint.h unistd.h
9080 do :
9081   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9082 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9083 "
9084 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9085   cat >>confdefs.h <<_ACEOF
9086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9087 _ACEOF
9088
9089 fi
9090
9091 done
9092
9093
9094 for ac_header in dlfcn.h
9095 do :
9096   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9097 "
9098 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9099   cat >>confdefs.h <<_ACEOF
9100 #define HAVE_DLFCN_H 1
9101 _ACEOF
9102
9103 fi
9104
9105 done
9106
9107
9108
9109
9110
9111 # Set options
9112 # Check whether --enable-static was given.
9113 if test "${enable_static+set}" = set; then :
9114   enableval=$enable_static; p=${PACKAGE-default}
9115     case $enableval in
9116     yes) enable_static=yes ;;
9117     no) enable_static=no ;;
9118     *)
9119      enable_static=no
9120       # Look at the argument we got.  We use all the common list separators.
9121       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9122       for pkg in $enableval; do
9123         IFS=$lt_save_ifs
9124         if test "X$pkg" = "X$p"; then
9125           enable_static=yes
9126         fi
9127       done
9128       IFS=$lt_save_ifs
9129       ;;
9130     esac
9131 else
9132   enable_static=no
9133 fi
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144         enable_dlopen=no
9145
9146
9147   enable_win32_dll=no
9148
9149
9150             # Check whether --enable-shared was given.
9151 if test "${enable_shared+set}" = set; then :
9152   enableval=$enable_shared; p=${PACKAGE-default}
9153     case $enableval in
9154     yes) enable_shared=yes ;;
9155     no) enable_shared=no ;;
9156     *)
9157       enable_shared=no
9158       # Look at the argument we got.  We use all the common list separators.
9159       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9160       for pkg in $enableval; do
9161         IFS=$lt_save_ifs
9162         if test "X$pkg" = "X$p"; then
9163           enable_shared=yes
9164         fi
9165       done
9166       IFS=$lt_save_ifs
9167       ;;
9168     esac
9169 else
9170   enable_shared=yes
9171 fi
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 # Check whether --with-pic was given.
9184 if test "${with_pic+set}" = set; then :
9185   withval=$with_pic; lt_p=${PACKAGE-default}
9186     case $withval in
9187     yes|no) pic_mode=$withval ;;
9188     *)
9189       pic_mode=default
9190       # Look at the argument we got.  We use all the common list separators.
9191       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9192       for lt_pkg in $withval; do
9193         IFS=$lt_save_ifs
9194         if test "X$lt_pkg" = "X$lt_p"; then
9195           pic_mode=yes
9196         fi
9197       done
9198       IFS=$lt_save_ifs
9199       ;;
9200     esac
9201 else
9202   pic_mode=default
9203 fi
9204
9205
9206
9207
9208
9209
9210
9211
9212   # Check whether --enable-fast-install was given.
9213 if test "${enable_fast_install+set}" = set; then :
9214   enableval=$enable_fast_install; p=${PACKAGE-default}
9215     case $enableval in
9216     yes) enable_fast_install=yes ;;
9217     no) enable_fast_install=no ;;
9218     *)
9219       enable_fast_install=no
9220       # Look at the argument we got.  We use all the common list separators.
9221       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9222       for pkg in $enableval; do
9223         IFS=$lt_save_ifs
9224         if test "X$pkg" = "X$p"; then
9225           enable_fast_install=yes
9226         fi
9227       done
9228       IFS=$lt_save_ifs
9229       ;;
9230     esac
9231 else
9232   enable_fast_install=yes
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242   shared_archive_member_spec=
9243 case $host,$enable_shared in
9244 power*-*-aix[5-9]*,yes)
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9246 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9247
9248 # Check whether --with-aix-soname was given.
9249 if test "${with_aix_soname+set}" = set; then :
9250   withval=$with_aix_soname; case $withval in
9251     aix|svr4|both)
9252       ;;
9253     *)
9254       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9255       ;;
9256     esac
9257     lt_cv_with_aix_soname=$with_aix_soname
9258 else
9259   if ${lt_cv_with_aix_soname+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   lt_cv_with_aix_soname=aix
9263 fi
9264
9265     with_aix_soname=$lt_cv_with_aix_soname
9266 fi
9267
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9269 $as_echo "$with_aix_soname" >&6; }
9270   if test aix != "$with_aix_soname"; then
9271     # For the AIX way of multilib, we name the shared archive member
9272     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9273     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9274     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9275     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9276     if test 64 = "${OBJECT_MODE-32}"; then
9277       shared_archive_member_spec=shr_64
9278     else
9279       shared_archive_member_spec=shr
9280     fi
9281   fi
9282   ;;
9283 *)
9284   with_aix_soname=aix
9285   ;;
9286 esac
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297 # This can be used to rebuild libtool when needed
9298 LIBTOOL_DEPS=$ltmain
9299
9300 # Always use our own libtool.
9301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
9329
9330
9331
9332 test -z "$LN_S" && LN_S="ln -s"
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 if test -n "${ZSH_VERSION+set}"; then
9348    setopt NO_GLOB_SUBST
9349 fi
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9352 $as_echo_n "checking for objdir... " >&6; }
9353 if ${lt_cv_objdir+:} false; then :
9354   $as_echo_n "(cached) " >&6
9355 else
9356   rm -f .libs 2>/dev/null
9357 mkdir .libs 2>/dev/null
9358 if test -d .libs; then
9359   lt_cv_objdir=.libs
9360 else
9361   # MS-DOS does not allow filenames that begin with a dot.
9362   lt_cv_objdir=_libs
9363 fi
9364 rmdir .libs 2>/dev/null
9365 fi
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9367 $as_echo "$lt_cv_objdir" >&6; }
9368 objdir=$lt_cv_objdir
9369
9370
9371
9372
9373
9374 cat >>confdefs.h <<_ACEOF
9375 #define LT_OBJDIR "$lt_cv_objdir/"
9376 _ACEOF
9377
9378
9379
9380
9381 case $host_os in
9382 aix3*)
9383   # AIX sometimes has problems with the GCC collect2 program.  For some
9384   # reason, if we set the COLLECT_NAMES environment variable, the problems
9385   # vanish in a puff of smoke.
9386   if test set != "${COLLECT_NAMES+set}"; then
9387     COLLECT_NAMES=
9388     export COLLECT_NAMES
9389   fi
9390   ;;
9391 esac
9392
9393 # Global variables:
9394 ofile=libtool
9395 can_build_shared=yes
9396
9397 # All known linkers require a '.a' archive for static linking (except MSVC and
9398 # ICC, which need '.lib').
9399 libext=a
9400
9401 with_gnu_ld=$lt_cv_prog_gnu_ld
9402
9403 old_CC=$CC
9404 old_CFLAGS=$CFLAGS
9405
9406 # Set sane defaults for various variables
9407 test -z "$CC" && CC=cc
9408 test -z "$LTCC" && LTCC=$CC
9409 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9410 test -z "$LD" && LD=ld
9411 test -z "$ac_objext" && ac_objext=o
9412
9413 func_cc_basename $compiler
9414 cc_basename=$func_cc_basename_result
9415
9416
9417 # Only perform the check for file, if the check method requires it
9418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9419 case $deplibs_check_method in
9420 file_magic*)
9421   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   case $MAGIC_CMD in
9428 [\\/*] |  ?:[\\/]*)
9429   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9430   ;;
9431 *)
9432   lt_save_MAGIC_CMD=$MAGIC_CMD
9433   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9434   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9435   for ac_dir in $ac_dummy; do
9436     IFS=$lt_save_ifs
9437     test -z "$ac_dir" && ac_dir=.
9438     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9439       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9440       if test -n "$file_magic_test_file"; then
9441         case $deplibs_check_method in
9442         "file_magic "*)
9443           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9444           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9445           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9446             $EGREP "$file_magic_regex" > /dev/null; then
9447             :
9448           else
9449             cat <<_LT_EOF 1>&2
9450
9451 *** Warning: the command libtool uses to detect shared libraries,
9452 *** $file_magic_cmd, produces output that libtool cannot recognize.
9453 *** The result is that libtool may fail to recognize shared libraries
9454 *** as such.  This will affect the creation of libtool libraries that
9455 *** depend on shared libraries, but programs linked with such libtool
9456 *** libraries will work regardless of this problem.  Nevertheless, you
9457 *** may want to report the problem to your system manager and/or to
9458 *** bug-libtool@gnu.org
9459
9460 _LT_EOF
9461           fi ;;
9462         esac
9463       fi
9464       break
9465     fi
9466   done
9467   IFS=$lt_save_ifs
9468   MAGIC_CMD=$lt_save_MAGIC_CMD
9469   ;;
9470 esac
9471 fi
9472
9473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9474 if test -n "$MAGIC_CMD"; then
9475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9476 $as_echo "$MAGIC_CMD" >&6; }
9477 else
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9480 fi
9481
9482
9483
9484
9485
9486 if test -z "$lt_cv_path_MAGIC_CMD"; then
9487   if test -n "$ac_tool_prefix"; then
9488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9489 $as_echo_n "checking for file... " >&6; }
9490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9491   $as_echo_n "(cached) " >&6
9492 else
9493   case $MAGIC_CMD in
9494 [\\/*] |  ?:[\\/]*)
9495   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9496   ;;
9497 *)
9498   lt_save_MAGIC_CMD=$MAGIC_CMD
9499   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9500   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9501   for ac_dir in $ac_dummy; do
9502     IFS=$lt_save_ifs
9503     test -z "$ac_dir" && ac_dir=.
9504     if test -f "$ac_dir/file"; then
9505       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9506       if test -n "$file_magic_test_file"; then
9507         case $deplibs_check_method in
9508         "file_magic "*)
9509           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9510           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9511           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9512             $EGREP "$file_magic_regex" > /dev/null; then
9513             :
9514           else
9515             cat <<_LT_EOF 1>&2
9516
9517 *** Warning: the command libtool uses to detect shared libraries,
9518 *** $file_magic_cmd, produces output that libtool cannot recognize.
9519 *** The result is that libtool may fail to recognize shared libraries
9520 *** as such.  This will affect the creation of libtool libraries that
9521 *** depend on shared libraries, but programs linked with such libtool
9522 *** libraries will work regardless of this problem.  Nevertheless, you
9523 *** may want to report the problem to your system manager and/or to
9524 *** bug-libtool@gnu.org
9525
9526 _LT_EOF
9527           fi ;;
9528         esac
9529       fi
9530       break
9531     fi
9532   done
9533   IFS=$lt_save_ifs
9534   MAGIC_CMD=$lt_save_MAGIC_CMD
9535   ;;
9536 esac
9537 fi
9538
9539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9540 if test -n "$MAGIC_CMD"; then
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9542 $as_echo "$MAGIC_CMD" >&6; }
9543 else
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9546 fi
9547
9548
9549   else
9550     MAGIC_CMD=:
9551   fi
9552 fi
9553
9554   fi
9555   ;;
9556 esac
9557
9558 # Use C for the default configuration in the libtool script
9559
9560 lt_save_CC=$CC
9561 ac_ext=c
9562 ac_cpp='$CPP $CPPFLAGS'
9563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9566
9567
9568 # Source file extension for C test sources.
9569 ac_ext=c
9570
9571 # Object file extension for compiled C test sources.
9572 objext=o
9573 objext=$objext
9574
9575 # Code to be used in simple compile tests
9576 lt_simple_compile_test_code="int some_variable = 0;"
9577
9578 # Code to be used in simple link tests
9579 lt_simple_link_test_code='int main(){return(0);}'
9580
9581
9582
9583
9584
9585
9586
9587 # If no C compiler was specified, use CC.
9588 LTCC=${LTCC-"$CC"}
9589
9590 # If no C compiler flags were specified, use CFLAGS.
9591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9592
9593 # Allow CC to be a program name with arguments.
9594 compiler=$CC
9595
9596 # Save the default compiler, since it gets overwritten when the other
9597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9598 compiler_DEFAULT=$CC
9599
9600 # save warnings/boilerplate of simple test code
9601 ac_outfile=conftest.$ac_objext
9602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9604 _lt_compiler_boilerplate=`cat conftest.err`
9605 $RM conftest*
9606
9607 ac_outfile=conftest.$ac_objext
9608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9610 _lt_linker_boilerplate=`cat conftest.err`
9611 $RM -r conftest*
9612
9613
9614 ## CAVEAT EMPTOR:
9615 ## There is no encapsulation within the following macros, do not change
9616 ## the running order or otherwise move them around unless you know exactly
9617 ## what you are doing...
9618 if test -n "$compiler"; then
9619
9620 lt_prog_compiler_no_builtin_flag=
9621
9622 if test yes = "$GCC"; then
9623   case $cc_basename in
9624   nvcc*)
9625     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9626   *)
9627     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9628   esac
9629
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9631 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9632 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   lt_cv_prog_compiler_rtti_exceptions=no
9636    ac_outfile=conftest.$ac_objext
9637    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9638    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9639    # Insert the option either (1) after the last *FLAGS variable, or
9640    # (2) before a word containing "conftest.", or (3) at the end.
9641    # Note that $ac_compile itself does not contain backslashes and begins
9642    # with a dollar sign (not a hyphen), so the echo should work correctly.
9643    # The option is referenced via a variable to avoid confusing sed.
9644    lt_compile=`echo "$ac_compile" | $SED \
9645    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9647    -e 's:$: $lt_compiler_flag:'`
9648    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9649    (eval "$lt_compile" 2>conftest.err)
9650    ac_status=$?
9651    cat conftest.err >&5
9652    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653    if (exit $ac_status) && test -s "$ac_outfile"; then
9654      # The compiler can only warn and ignore the option if not recognized
9655      # So say no if there are warnings other than the usual output.
9656      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9657      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9658      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9659        lt_cv_prog_compiler_rtti_exceptions=yes
9660      fi
9661    fi
9662    $RM conftest*
9663
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9666 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9667
9668 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9669     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9670 else
9671     :
9672 fi
9673
9674 fi
9675
9676
9677
9678
9679
9680
9681   lt_prog_compiler_wl=
9682 lt_prog_compiler_pic=
9683 lt_prog_compiler_static=
9684
9685
9686   if test yes = "$GCC"; then
9687     lt_prog_compiler_wl='-Wl,'
9688     lt_prog_compiler_static='-static'
9689
9690     case $host_os in
9691       aix*)
9692       # All AIX code is PIC.
9693       if test ia64 = "$host_cpu"; then
9694         # AIX 5 now supports IA64 processor
9695         lt_prog_compiler_static='-Bstatic'
9696       fi
9697       lt_prog_compiler_pic='-fPIC'
9698       ;;
9699
9700     amigaos*)
9701       case $host_cpu in
9702       powerpc)
9703             # see comment about AmigaOS4 .so support
9704             lt_prog_compiler_pic='-fPIC'
9705         ;;
9706       m68k)
9707             # FIXME: we need at least 68020 code to build shared libraries, but
9708             # adding the '-m68020' flag to GCC prevents building anything better,
9709             # like '-m68040'.
9710             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9711         ;;
9712       esac
9713       ;;
9714
9715     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9716       # PIC is the default for these OSes.
9717       ;;
9718
9719     mingw* | cygwin* | pw32* | os2* | cegcc*)
9720       # This hack is so that the source file can tell whether it is being
9721       # built for inclusion in a dll (and should export symbols for example).
9722       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9723       # (--disable-auto-import) libraries
9724       lt_prog_compiler_pic='-DDLL_EXPORT'
9725       case $host_os in
9726       os2*)
9727         lt_prog_compiler_static='$wl-static'
9728         ;;
9729       esac
9730       ;;
9731
9732     darwin* | rhapsody*)
9733       # PIC is the default on this platform
9734       # Common symbols not allowed in MH_DYLIB files
9735       lt_prog_compiler_pic='-fno-common'
9736       ;;
9737
9738     haiku*)
9739       # PIC is the default for Haiku.
9740       # The "-static" flag exists, but is broken.
9741       lt_prog_compiler_static=
9742       ;;
9743
9744     hpux*)
9745       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9746       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9747       # sets the default TLS model and affects inlining.
9748       case $host_cpu in
9749       hppa*64*)
9750         # +Z the default
9751         ;;
9752       *)
9753         lt_prog_compiler_pic='-fPIC'
9754         ;;
9755       esac
9756       ;;
9757
9758     interix[3-9]*)
9759       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9760       # Instead, we relocate shared libraries at runtime.
9761       ;;
9762
9763     msdosdjgpp*)
9764       # Just because we use GCC doesn't mean we suddenly get shared libraries
9765       # on systems that don't support them.
9766       lt_prog_compiler_can_build_shared=no
9767       enable_shared=no
9768       ;;
9769
9770     *nto* | *qnx*)
9771       # QNX uses GNU C++, but need to define -shared option too, otherwise
9772       # it will coredump.
9773       lt_prog_compiler_pic='-fPIC -shared'
9774       ;;
9775
9776     sysv4*MP*)
9777       if test -d /usr/nec; then
9778         lt_prog_compiler_pic=-Kconform_pic
9779       fi
9780       ;;
9781
9782     *)
9783       lt_prog_compiler_pic='-fPIC'
9784       ;;
9785     esac
9786
9787     case $cc_basename in
9788     nvcc*) # Cuda Compiler Driver 2.2
9789       lt_prog_compiler_wl='-Xlinker '
9790       if test -n "$lt_prog_compiler_pic"; then
9791         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9792       fi
9793       ;;
9794     esac
9795   else
9796     # PORTME Check for flag to pass linker flags through the system compiler.
9797     case $host_os in
9798     aix*)
9799       lt_prog_compiler_wl='-Wl,'
9800       if test ia64 = "$host_cpu"; then
9801         # AIX 5 now supports IA64 processor
9802         lt_prog_compiler_static='-Bstatic'
9803       else
9804         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9805       fi
9806       ;;
9807
9808     darwin* | rhapsody*)
9809       # PIC is the default on this platform
9810       # Common symbols not allowed in MH_DYLIB files
9811       lt_prog_compiler_pic='-fno-common'
9812       case $cc_basename in
9813       nagfor*)
9814         # NAG Fortran compiler
9815         lt_prog_compiler_wl='-Wl,-Wl,,'
9816         lt_prog_compiler_pic='-PIC'
9817         lt_prog_compiler_static='-Bstatic'
9818         ;;
9819       esac
9820       ;;
9821
9822     mingw* | cygwin* | pw32* | os2* | cegcc*)
9823       # This hack is so that the source file can tell whether it is being
9824       # built for inclusion in a dll (and should export symbols for example).
9825       lt_prog_compiler_pic='-DDLL_EXPORT'
9826       case $host_os in
9827       os2*)
9828         lt_prog_compiler_static='$wl-static'
9829         ;;
9830       esac
9831       ;;
9832
9833     hpux9* | hpux10* | hpux11*)
9834       lt_prog_compiler_wl='-Wl,'
9835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9836       # not for PA HP-UX.
9837       case $host_cpu in
9838       hppa*64*|ia64*)
9839         # +Z the default
9840         ;;
9841       *)
9842         lt_prog_compiler_pic='+Z'
9843         ;;
9844       esac
9845       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9846       lt_prog_compiler_static='$wl-a ${wl}archive'
9847       ;;
9848
9849     irix5* | irix6* | nonstopux*)
9850       lt_prog_compiler_wl='-Wl,'
9851       # PIC (with -KPIC) is the default.
9852       lt_prog_compiler_static='-non_shared'
9853       ;;
9854
9855     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9856       case $cc_basename in
9857       # old Intel for x86_64, which still supported -KPIC.
9858       ecc*)
9859         lt_prog_compiler_wl='-Wl,'
9860         lt_prog_compiler_pic='-KPIC'
9861         lt_prog_compiler_static='-static'
9862         ;;
9863       # icc used to be incompatible with GCC.
9864       # ICC 10 doesn't accept -KPIC any more.
9865       icc* | ifort*)
9866         lt_prog_compiler_wl='-Wl,'
9867         lt_prog_compiler_pic='-fPIC'
9868         lt_prog_compiler_static='-static'
9869         ;;
9870       # Lahey Fortran 8.1.
9871       lf95*)
9872         lt_prog_compiler_wl='-Wl,'
9873         lt_prog_compiler_pic='--shared'
9874         lt_prog_compiler_static='--static'
9875         ;;
9876       nagfor*)
9877         # NAG Fortran compiler
9878         lt_prog_compiler_wl='-Wl,-Wl,,'
9879         lt_prog_compiler_pic='-PIC'
9880         lt_prog_compiler_static='-Bstatic'
9881         ;;
9882       tcc*)
9883         # Fabrice Bellard et al's Tiny C Compiler
9884         lt_prog_compiler_wl='-Wl,'
9885         lt_prog_compiler_pic='-fPIC'
9886         lt_prog_compiler_static='-static'
9887         ;;
9888       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9889         # Portland Group compilers (*not* the Pentium gcc compiler,
9890         # which looks to be a dead project)
9891         lt_prog_compiler_wl='-Wl,'
9892         lt_prog_compiler_pic='-fpic'
9893         lt_prog_compiler_static='-Bstatic'
9894         ;;
9895       ccc*)
9896         lt_prog_compiler_wl='-Wl,'
9897         # All Alpha code is PIC.
9898         lt_prog_compiler_static='-non_shared'
9899         ;;
9900       xl* | bgxl* | bgf* | mpixl*)
9901         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9902         lt_prog_compiler_wl='-Wl,'
9903         lt_prog_compiler_pic='-qpic'
9904         lt_prog_compiler_static='-qstaticlink'
9905         ;;
9906       *)
9907         case `$CC -V 2>&1 | sed 5q` in
9908         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9909           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9910           lt_prog_compiler_pic='-KPIC'
9911           lt_prog_compiler_static='-Bstatic'
9912           lt_prog_compiler_wl=''
9913           ;;
9914         *Sun\ F* | *Sun*Fortran*)
9915           lt_prog_compiler_pic='-KPIC'
9916           lt_prog_compiler_static='-Bstatic'
9917           lt_prog_compiler_wl='-Qoption ld '
9918           ;;
9919         *Sun\ C*)
9920           # Sun C 5.9
9921           lt_prog_compiler_pic='-KPIC'
9922           lt_prog_compiler_static='-Bstatic'
9923           lt_prog_compiler_wl='-Wl,'
9924           ;;
9925         *Intel*\ [CF]*Compiler*)
9926           lt_prog_compiler_wl='-Wl,'
9927           lt_prog_compiler_pic='-fPIC'
9928           lt_prog_compiler_static='-static'
9929           ;;
9930         *Portland\ Group*)
9931           lt_prog_compiler_wl='-Wl,'
9932           lt_prog_compiler_pic='-fpic'
9933           lt_prog_compiler_static='-Bstatic'
9934           ;;
9935         esac
9936         ;;
9937       esac
9938       ;;
9939
9940     newsos6)
9941       lt_prog_compiler_pic='-KPIC'
9942       lt_prog_compiler_static='-Bstatic'
9943       ;;
9944
9945     *nto* | *qnx*)
9946       # QNX uses GNU C++, but need to define -shared option too, otherwise
9947       # it will coredump.
9948       lt_prog_compiler_pic='-fPIC -shared'
9949       ;;
9950
9951     osf3* | osf4* | osf5*)
9952       lt_prog_compiler_wl='-Wl,'
9953       # All OSF/1 code is PIC.
9954       lt_prog_compiler_static='-non_shared'
9955       ;;
9956
9957     rdos*)
9958       lt_prog_compiler_static='-non_shared'
9959       ;;
9960
9961     solaris*)
9962       lt_prog_compiler_pic='-KPIC'
9963       lt_prog_compiler_static='-Bstatic'
9964       case $cc_basename in
9965       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9966         lt_prog_compiler_wl='-Qoption ld ';;
9967       *)
9968         lt_prog_compiler_wl='-Wl,';;
9969       esac
9970       ;;
9971
9972     sunos4*)
9973       lt_prog_compiler_wl='-Qoption ld '
9974       lt_prog_compiler_pic='-PIC'
9975       lt_prog_compiler_static='-Bstatic'
9976       ;;
9977
9978     sysv4 | sysv4.2uw2* | sysv4.3*)
9979       lt_prog_compiler_wl='-Wl,'
9980       lt_prog_compiler_pic='-KPIC'
9981       lt_prog_compiler_static='-Bstatic'
9982       ;;
9983
9984     sysv4*MP*)
9985       if test -d /usr/nec; then
9986         lt_prog_compiler_pic='-Kconform_pic'
9987         lt_prog_compiler_static='-Bstatic'
9988       fi
9989       ;;
9990
9991     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9992       lt_prog_compiler_wl='-Wl,'
9993       lt_prog_compiler_pic='-KPIC'
9994       lt_prog_compiler_static='-Bstatic'
9995       ;;
9996
9997     unicos*)
9998       lt_prog_compiler_wl='-Wl,'
9999       lt_prog_compiler_can_build_shared=no
10000       ;;
10001
10002     uts4*)
10003       lt_prog_compiler_pic='-pic'
10004       lt_prog_compiler_static='-Bstatic'
10005       ;;
10006
10007     *)
10008       lt_prog_compiler_can_build_shared=no
10009       ;;
10010     esac
10011   fi
10012
10013 case $host_os in
10014   # For platforms that do not support PIC, -DPIC is meaningless:
10015   *djgpp*)
10016     lt_prog_compiler_pic=
10017     ;;
10018   *)
10019     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10020     ;;
10021 esac
10022
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10025 if ${lt_cv_prog_compiler_pic+:} false; then :
10026   $as_echo_n "(cached) " >&6
10027 else
10028   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10029 fi
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10031 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10032 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10033
10034 #
10035 # Check to make sure the PIC flag actually works.
10036 #
10037 if test -n "$lt_prog_compiler_pic"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10039 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10040 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   lt_cv_prog_compiler_pic_works=no
10044    ac_outfile=conftest.$ac_objext
10045    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10046    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10047    # Insert the option either (1) after the last *FLAGS variable, or
10048    # (2) before a word containing "conftest.", or (3) at the end.
10049    # Note that $ac_compile itself does not contain backslashes and begins
10050    # with a dollar sign (not a hyphen), so the echo should work correctly.
10051    # The option is referenced via a variable to avoid confusing sed.
10052    lt_compile=`echo "$ac_compile" | $SED \
10053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10055    -e 's:$: $lt_compiler_flag:'`
10056    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10057    (eval "$lt_compile" 2>conftest.err)
10058    ac_status=$?
10059    cat conftest.err >&5
10060    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061    if (exit $ac_status) && test -s "$ac_outfile"; then
10062      # The compiler can only warn and ignore the option if not recognized
10063      # So say no if there are warnings other than the usual output.
10064      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10065      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10066      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10067        lt_cv_prog_compiler_pic_works=yes
10068      fi
10069    fi
10070    $RM conftest*
10071
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10074 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10075
10076 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10077     case $lt_prog_compiler_pic in
10078      "" | " "*) ;;
10079      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10080      esac
10081 else
10082     lt_prog_compiler_pic=
10083      lt_prog_compiler_can_build_shared=no
10084 fi
10085
10086 fi
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098 #
10099 # Check to make sure the static flag actually works.
10100 #
10101 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10103 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10104 if ${lt_cv_prog_compiler_static_works+:} false; then :
10105   $as_echo_n "(cached) " >&6
10106 else
10107   lt_cv_prog_compiler_static_works=no
10108    save_LDFLAGS=$LDFLAGS
10109    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10110    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10111    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10112      # The linker can only warn and ignore the option if not recognized
10113      # So say no if there are warnings
10114      if test -s conftest.err; then
10115        # Append any errors to the config.log.
10116        cat conftest.err 1>&5
10117        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10118        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10119        if diff conftest.exp conftest.er2 >/dev/null; then
10120          lt_cv_prog_compiler_static_works=yes
10121        fi
10122      else
10123        lt_cv_prog_compiler_static_works=yes
10124      fi
10125    fi
10126    $RM -r conftest*
10127    LDFLAGS=$save_LDFLAGS
10128
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10131 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10132
10133 if test yes = "$lt_cv_prog_compiler_static_works"; then
10134     :
10135 else
10136     lt_prog_compiler_static=
10137 fi
10138
10139
10140
10141
10142
10143
10144
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147 if ${lt_cv_prog_compiler_c_o+:} false; then :
10148   $as_echo_n "(cached) " >&6
10149 else
10150   lt_cv_prog_compiler_c_o=no
10151    $RM -r conftest 2>/dev/null
10152    mkdir conftest
10153    cd conftest
10154    mkdir out
10155    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10156
10157    lt_compiler_flag="-o out/conftest2.$ac_objext"
10158    # Insert the option either (1) after the last *FLAGS variable, or
10159    # (2) before a word containing "conftest.", or (3) at the end.
10160    # Note that $ac_compile itself does not contain backslashes and begins
10161    # with a dollar sign (not a hyphen), so the echo should work correctly.
10162    lt_compile=`echo "$ac_compile" | $SED \
10163    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10165    -e 's:$: $lt_compiler_flag:'`
10166    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10167    (eval "$lt_compile" 2>out/conftest.err)
10168    ac_status=$?
10169    cat out/conftest.err >&5
10170    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10172    then
10173      # The compiler can only warn and ignore the option if not recognized
10174      # So say no if there are warnings
10175      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10176      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10177      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10178        lt_cv_prog_compiler_c_o=yes
10179      fi
10180    fi
10181    chmod u+w . 2>&5
10182    $RM conftest*
10183    # SGI C++ compiler will create directory out/ii_files/ for
10184    # template instantiation
10185    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10186    $RM out/* && rmdir out
10187    cd ..
10188    $RM -r conftest
10189    $RM conftest*
10190
10191 fi
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10194
10195
10196
10197
10198
10199
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10202 if ${lt_cv_prog_compiler_c_o+:} false; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   lt_cv_prog_compiler_c_o=no
10206    $RM -r conftest 2>/dev/null
10207    mkdir conftest
10208    cd conftest
10209    mkdir out
10210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211
10212    lt_compiler_flag="-o out/conftest2.$ac_objext"
10213    # Insert the option either (1) after the last *FLAGS variable, or
10214    # (2) before a word containing "conftest.", or (3) at the end.
10215    # Note that $ac_compile itself does not contain backslashes and begins
10216    # with a dollar sign (not a hyphen), so the echo should work correctly.
10217    lt_compile=`echo "$ac_compile" | $SED \
10218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10220    -e 's:$: $lt_compiler_flag:'`
10221    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10222    (eval "$lt_compile" 2>out/conftest.err)
10223    ac_status=$?
10224    cat out/conftest.err >&5
10225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10227    then
10228      # The compiler can only warn and ignore the option if not recognized
10229      # So say no if there are warnings
10230      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10233        lt_cv_prog_compiler_c_o=yes
10234      fi
10235    fi
10236    chmod u+w . 2>&5
10237    $RM conftest*
10238    # SGI C++ compiler will create directory out/ii_files/ for
10239    # template instantiation
10240    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10241    $RM out/* && rmdir out
10242    cd ..
10243    $RM -r conftest
10244    $RM conftest*
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10249
10250
10251
10252
10253 hard_links=nottested
10254 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10255   # do not overwrite the value of need_locks provided by the user
10256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10257 $as_echo_n "checking if we can lock with hard links... " >&6; }
10258   hard_links=yes
10259   $RM conftest*
10260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261   touch conftest.a
10262   ln conftest.a conftest.b 2>&5 || hard_links=no
10263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10265 $as_echo "$hard_links" >&6; }
10266   if test no = "$hard_links"; then
10267     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10268 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10269     need_locks=warn
10270   fi
10271 else
10272   need_locks=no
10273 fi
10274
10275
10276
10277
10278
10279
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10281 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10282
10283   runpath_var=
10284   allow_undefined_flag=
10285   always_export_symbols=no
10286   archive_cmds=
10287   archive_expsym_cmds=
10288   compiler_needs_object=no
10289   enable_shared_with_static_runtimes=no
10290   export_dynamic_flag_spec=
10291   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10292   hardcode_automatic=no
10293   hardcode_direct=no
10294   hardcode_direct_absolute=no
10295   hardcode_libdir_flag_spec=
10296   hardcode_libdir_separator=
10297   hardcode_minus_L=no
10298   hardcode_shlibpath_var=unsupported
10299   inherit_rpath=no
10300   link_all_deplibs=unknown
10301   module_cmds=
10302   module_expsym_cmds=
10303   old_archive_from_new_cmds=
10304   old_archive_from_expsyms_cmds=
10305   thread_safe_flag_spec=
10306   whole_archive_flag_spec=
10307   # include_expsyms should be a list of space-separated symbols to be *always*
10308   # included in the symbol list
10309   include_expsyms=
10310   # exclude_expsyms can be an extended regexp of symbols to exclude
10311   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10312   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10313   # as well as any symbol that contains 'd'.
10314   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10315   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10316   # platforms (ab)use it in PIC code, but their linkers get confused if
10317   # the symbol is explicitly referenced.  Since portable code cannot
10318   # rely on this symbol name, it's probably fine to never include it in
10319   # preloaded symbol tables.
10320   # Exclude shared library initialization/finalization symbols.
10321   extract_expsyms_cmds=
10322
10323   case $host_os in
10324   cygwin* | mingw* | pw32* | cegcc*)
10325     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10326     # When not using gcc, we currently assume that we are using
10327     # Microsoft Visual C++ or Intel C++ Compiler.
10328     if test yes != "$GCC"; then
10329       with_gnu_ld=no
10330     fi
10331     ;;
10332   interix*)
10333     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10334     with_gnu_ld=yes
10335     ;;
10336   openbsd* | bitrig*)
10337     with_gnu_ld=no
10338     ;;
10339   esac
10340
10341   ld_shlibs=yes
10342
10343   # On some targets, GNU ld is compatible enough with the native linker
10344   # that we're better off using the native interface for both.
10345   lt_use_gnu_ld_interface=no
10346   if test yes = "$with_gnu_ld"; then
10347     case $host_os in
10348       aix*)
10349         # The AIX port of GNU ld has always aspired to compatibility
10350         # with the native linker.  However, as the warning in the GNU ld
10351         # block says, versions before 2.19.5* couldn't really create working
10352         # shared libraries, regardless of the interface used.
10353         case `$LD -v 2>&1` in
10354           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10355           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10356           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10357           *)
10358             lt_use_gnu_ld_interface=yes
10359             ;;
10360         esac
10361         ;;
10362       *)
10363         lt_use_gnu_ld_interface=yes
10364         ;;
10365     esac
10366   fi
10367
10368   if test yes = "$lt_use_gnu_ld_interface"; then
10369     # If archive_cmds runs LD, not CC, wlarc should be empty
10370     wlarc='$wl'
10371
10372     # Set some defaults for GNU ld with shared library support. These
10373     # are reset later if shared libraries are not supported. Putting them
10374     # here allows them to be overridden if necessary.
10375     runpath_var=LD_RUN_PATH
10376     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10377     export_dynamic_flag_spec='$wl--export-dynamic'
10378     # ancient GNU ld didn't support --whole-archive et. al.
10379     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10380       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10381     else
10382       whole_archive_flag_spec=
10383     fi
10384     supports_anon_versioning=no
10385     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10386       *GNU\ gold*) supports_anon_versioning=yes ;;
10387       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10388       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10389       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10390       *\ 2.11.*) ;; # other 2.11 versions
10391       *) supports_anon_versioning=yes ;;
10392     esac
10393
10394     # See if GNU ld supports shared libraries.
10395     case $host_os in
10396     aix[3-9]*)
10397       # On AIX/PPC, the GNU linker is very broken
10398       if test ia64 != "$host_cpu"; then
10399         ld_shlibs=no
10400         cat <<_LT_EOF 1>&2
10401
10402 *** Warning: the GNU linker, at least up to release 2.19, is reported
10403 *** to be unable to reliably create shared libraries on AIX.
10404 *** Therefore, libtool is disabling shared libraries support.  If you
10405 *** really care for shared libraries, you may want to install binutils
10406 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10407 *** You will then need to restart the configuration process.
10408
10409 _LT_EOF
10410       fi
10411       ;;
10412
10413     amigaos*)
10414       case $host_cpu in
10415       powerpc)
10416             # see comment about AmigaOS4 .so support
10417             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10418             archive_expsym_cmds=''
10419         ;;
10420       m68k)
10421             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)'
10422             hardcode_libdir_flag_spec='-L$libdir'
10423             hardcode_minus_L=yes
10424         ;;
10425       esac
10426       ;;
10427
10428     beos*)
10429       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10430         allow_undefined_flag=unsupported
10431         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10432         # support --undefined.  This deserves some investigation.  FIXME
10433         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10434       else
10435         ld_shlibs=no
10436       fi
10437       ;;
10438
10439     cygwin* | mingw* | pw32* | cegcc*)
10440       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10441       # as there is no search path for DLLs.
10442       hardcode_libdir_flag_spec='-L$libdir'
10443       export_dynamic_flag_spec='$wl--export-all-symbols'
10444       allow_undefined_flag=unsupported
10445       always_export_symbols=no
10446       enable_shared_with_static_runtimes=yes
10447       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'
10448       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10449
10450       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10451         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10452         # If the export-symbols file already is a .def file, use it as
10453         # is; otherwise, prepend EXPORTS...
10454         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10455           cp $export_symbols $output_objdir/$soname.def;
10456         else
10457           echo EXPORTS > $output_objdir/$soname.def;
10458           cat $export_symbols >> $output_objdir/$soname.def;
10459         fi~
10460         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10461       else
10462         ld_shlibs=no
10463       fi
10464       ;;
10465
10466     haiku*)
10467       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10468       link_all_deplibs=yes
10469       ;;
10470
10471     os2*)
10472       hardcode_libdir_flag_spec='-L$libdir'
10473       hardcode_minus_L=yes
10474       allow_undefined_flag=unsupported
10475       shrext_cmds=.dll
10476       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10477         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10478         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10479         $ECHO EXPORTS >> $output_objdir/$libname.def~
10480         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10481         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10482         emximp -o $lib $output_objdir/$libname.def'
10483       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10484         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10485         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10486         $ECHO EXPORTS >> $output_objdir/$libname.def~
10487         prefix_cmds="$SED"~
10488         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10489           prefix_cmds="$prefix_cmds -e 1d";
10490         fi~
10491         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10492         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10493         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10494         emximp -o $lib $output_objdir/$libname.def'
10495       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10496       enable_shared_with_static_runtimes=yes
10497       file_list_spec='@'
10498       ;;
10499
10500     interix[3-9]*)
10501       hardcode_direct=no
10502       hardcode_shlibpath_var=no
10503       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10504       export_dynamic_flag_spec='$wl-E'
10505       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10506       # Instead, shared libraries are loaded at an image base (0x10000000 by
10507       # default) and relocated if they conflict, which is a slow very memory
10508       # consuming and fragmenting process.  To avoid this, we pick a random,
10509       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10510       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10511       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10512       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'
10513       ;;
10514
10515     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10516       tmp_diet=no
10517       if test linux-dietlibc = "$host_os"; then
10518         case $cc_basename in
10519           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10520         esac
10521       fi
10522       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10523          && test no = "$tmp_diet"
10524       then
10525         tmp_addflag=' $pic_flag'
10526         tmp_sharedflag='-shared'
10527         case $cc_basename,$host_cpu in
10528         pgcc*)                          # Portland Group C compiler
10529           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'
10530           tmp_addflag=' $pic_flag'
10531           ;;
10532         pgf77* | pgf90* | pgf95* | pgfortran*)
10533                                         # Portland Group f77 and f90 compilers
10534           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'
10535           tmp_addflag=' $pic_flag -Mnomain' ;;
10536         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10537           tmp_addflag=' -i_dynamic' ;;
10538         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10539           tmp_addflag=' -i_dynamic -nofor_main' ;;
10540         ifc* | ifort*)                  # Intel Fortran compiler
10541           tmp_addflag=' -nofor_main' ;;
10542         lf95*)                          # Lahey Fortran 8.1
10543           whole_archive_flag_spec=
10544           tmp_sharedflag='--shared' ;;
10545         nagfor*)                        # NAGFOR 5.3
10546           tmp_sharedflag='-Wl,-shared' ;;
10547         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10548           tmp_sharedflag='-qmkshrobj'
10549           tmp_addflag= ;;
10550         nvcc*)  # Cuda Compiler Driver 2.2
10551           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'
10552           compiler_needs_object=yes
10553           ;;
10554         esac
10555         case `$CC -V 2>&1 | sed 5q` in
10556         *Sun\ C*)                       # Sun C 5.9
10557           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'
10558           compiler_needs_object=yes
10559           tmp_sharedflag='-G' ;;
10560         *Sun\ F*)                       # Sun Fortran 8.3
10561           tmp_sharedflag='-G' ;;
10562         esac
10563         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564
10565         if test yes = "$supports_anon_versioning"; then
10566           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10567             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10568             echo "local: *; };" >> $output_objdir/$libname.ver~
10569             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10570         fi
10571
10572         case $cc_basename in
10573         tcc*)
10574           export_dynamic_flag_spec='-rdynamic'
10575           ;;
10576         xlf* | bgf* | bgxlf* | mpixlf*)
10577           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10578           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10579           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10580           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10581           if test yes = "$supports_anon_versioning"; then
10582             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10583               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10584               echo "local: *; };" >> $output_objdir/$libname.ver~
10585               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10586           fi
10587           ;;
10588         esac
10589       else
10590         ld_shlibs=no
10591       fi
10592       ;;
10593
10594     netbsd*)
10595       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10596         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10597         wlarc=
10598       else
10599         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10600         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10601       fi
10602       ;;
10603
10604     solaris*)
10605       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10606         ld_shlibs=no
10607         cat <<_LT_EOF 1>&2
10608
10609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10610 *** create shared libraries on Solaris systems.  Therefore, libtool
10611 *** is disabling shared libraries support.  We urge you to upgrade GNU
10612 *** binutils to release 2.9.1 or newer.  Another option is to modify
10613 *** your PATH or compiler configuration so that the native linker is
10614 *** used, and then restart.
10615
10616 _LT_EOF
10617       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10618         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10619         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10620       else
10621         ld_shlibs=no
10622       fi
10623       ;;
10624
10625     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10626       case `$LD -v 2>&1` in
10627         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10628         ld_shlibs=no
10629         cat <<_LT_EOF 1>&2
10630
10631 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10632 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10633 *** is disabling shared libraries support.  We urge you to upgrade GNU
10634 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10635 *** your PATH or compiler configuration so that the native linker is
10636 *** used, and then restart.
10637
10638 _LT_EOF
10639         ;;
10640         *)
10641           # For security reasons, it is highly recommended that you always
10642           # use absolute paths for naming shared libraries, and exclude the
10643           # DT_RUNPATH tag from executables and libraries.  But doing so
10644           # requires that you compile everything twice, which is a pain.
10645           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10646             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10647             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10648             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10649           else
10650             ld_shlibs=no
10651           fi
10652         ;;
10653       esac
10654       ;;
10655
10656     sunos4*)
10657       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10658       wlarc=
10659       hardcode_direct=yes
10660       hardcode_shlibpath_var=no
10661       ;;
10662
10663     *)
10664       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10665         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10666         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10667       else
10668         ld_shlibs=no
10669       fi
10670       ;;
10671     esac
10672
10673     if test no = "$ld_shlibs"; then
10674       runpath_var=
10675       hardcode_libdir_flag_spec=
10676       export_dynamic_flag_spec=
10677       whole_archive_flag_spec=
10678     fi
10679   else
10680     # PORTME fill in a description of your system's linker (not GNU ld)
10681     case $host_os in
10682     aix3*)
10683       allow_undefined_flag=unsupported
10684       always_export_symbols=yes
10685       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'
10686       # Note: this linker hardcodes the directories in LIBPATH if there
10687       # are no directories specified by -L.
10688       hardcode_minus_L=yes
10689       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10690         # Neither direct hardcoding nor static linking is supported with a
10691         # broken collect2.
10692         hardcode_direct=unsupported
10693       fi
10694       ;;
10695
10696     aix[4-9]*)
10697       if test ia64 = "$host_cpu"; then
10698         # On IA64, the linker does run time linking by default, so we don't
10699         # have to do anything special.
10700         aix_use_runtimelinking=no
10701         exp_sym_flag='-Bexport'
10702         no_entry_flag=
10703       else
10704         # If we're using GNU nm, then we don't want the "-C" option.
10705         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10706         # Without the "-l" option, or with the "-B" option, AIX nm treats
10707         # weak defined symbols like other global defined symbols, whereas
10708         # GNU nm marks them as "W".
10709         # While the 'weak' keyword is ignored in the Export File, we need
10710         # it in the Import File for the 'aix-soname' feature, so we have
10711         # to replace the "-B" option with "-P" for AIX nm.
10712         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10713           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'
10714         else
10715           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 == "L") || (\$ 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'
10716         fi
10717         aix_use_runtimelinking=no
10718
10719         # Test if we are trying to use run time linking or normal
10720         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10721         # have runtime linking enabled, and use it for executables.
10722         # For shared libraries, we enable/disable runtime linking
10723         # depending on the kind of the shared library created -
10724         # when "with_aix_soname,aix_use_runtimelinking" is:
10725         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10726         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10727         #            lib.a           static archive
10728         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10729         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10730         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10731         #            lib.a(lib.so.V) shared, rtl:no
10732         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10733         #            lib.a           static archive
10734         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10735           for ld_flag in $LDFLAGS; do
10736           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10737             aix_use_runtimelinking=yes
10738             break
10739           fi
10740           done
10741           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10742             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10743             # so we don't have lib.a shared libs to link our executables.
10744             # We have to force runtime linking in this case.
10745             aix_use_runtimelinking=yes
10746             LDFLAGS="$LDFLAGS -Wl,-brtl"
10747           fi
10748           ;;
10749         esac
10750
10751         exp_sym_flag='-bexport'
10752         no_entry_flag='-bnoentry'
10753       fi
10754
10755       # When large executables or shared objects are built, AIX ld can
10756       # have problems creating the table of contents.  If linking a library
10757       # or program results in "error TOC overflow" add -mminimal-toc to
10758       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10759       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10760
10761       archive_cmds=''
10762       hardcode_direct=yes
10763       hardcode_direct_absolute=yes
10764       hardcode_libdir_separator=':'
10765       link_all_deplibs=yes
10766       file_list_spec='$wl-f,'
10767       case $with_aix_soname,$aix_use_runtimelinking in
10768       aix,*) ;; # traditional, no import file
10769       svr4,* | *,yes) # use import file
10770         # The Import File defines what to hardcode.
10771         hardcode_direct=no
10772         hardcode_direct_absolute=no
10773         ;;
10774       esac
10775
10776       if test yes = "$GCC"; then
10777         case $host_os in aix4.[012]|aix4.[012].*)
10778         # We only want to do this on AIX 4.2 and lower, the check
10779         # below for broken collect2 doesn't work under 4.3+
10780           collect2name=`$CC -print-prog-name=collect2`
10781           if test -f "$collect2name" &&
10782            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10783           then
10784           # We have reworked collect2
10785           :
10786           else
10787           # We have old collect2
10788           hardcode_direct=unsupported
10789           # It fails to find uninstalled libraries when the uninstalled
10790           # path is not listed in the libpath.  Setting hardcode_minus_L
10791           # to unsupported forces relinking
10792           hardcode_minus_L=yes
10793           hardcode_libdir_flag_spec='-L$libdir'
10794           hardcode_libdir_separator=
10795           fi
10796           ;;
10797         esac
10798         shared_flag='-shared'
10799         if test yes = "$aix_use_runtimelinking"; then
10800           shared_flag="$shared_flag "'$wl-G'
10801         fi
10802         # Need to ensure runtime linking is disabled for the traditional
10803         # shared library, or the linker may eventually find shared libraries
10804         # /with/ Import File - we do not want to mix them.
10805         shared_flag_aix='-shared'
10806         shared_flag_svr4='-shared $wl-G'
10807       else
10808         # not using gcc
10809         if test ia64 = "$host_cpu"; then
10810         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10811         # chokes on -Wl,-G. The following line is correct:
10812           shared_flag='-G'
10813         else
10814           if test yes = "$aix_use_runtimelinking"; then
10815             shared_flag='$wl-G'
10816           else
10817             shared_flag='$wl-bM:SRE'
10818           fi
10819           shared_flag_aix='$wl-bM:SRE'
10820           shared_flag_svr4='$wl-G'
10821         fi
10822       fi
10823
10824       export_dynamic_flag_spec='$wl-bexpall'
10825       # It seems that -bexpall does not export symbols beginning with
10826       # underscore (_), so it is better to generate a list of symbols to export.
10827       always_export_symbols=yes
10828       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10829         # Warning - without using the other runtime loading flags (-brtl),
10830         # -berok will link without error, but may produce a broken library.
10831         allow_undefined_flag='-berok'
10832         # Determine the default libpath from the value encoded in an
10833         # empty executable.
10834         if test set = "${lt_cv_aix_libpath+set}"; then
10835   aix_libpath=$lt_cv_aix_libpath
10836 else
10837   if ${lt_cv_aix_libpath_+:} false; then :
10838   $as_echo_n "(cached) " >&6
10839 else
10840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h.  */
10842
10843 int
10844 main ()
10845 {
10846
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852
10853   lt_aix_libpath_sed='
10854       /Import File Strings/,/^$/ {
10855           /^0/ {
10856               s/^0  *\([^ ]*\) *$/\1/
10857               p
10858           }
10859       }'
10860   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10861   # Check for a 64-bit object if we didn't find anything.
10862   if test -z "$lt_cv_aix_libpath_"; then
10863     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10864   fi
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867     conftest$ac_exeext conftest.$ac_ext
10868   if test -z "$lt_cv_aix_libpath_"; then
10869     lt_cv_aix_libpath_=/usr/lib:/lib
10870   fi
10871
10872 fi
10873
10874   aix_libpath=$lt_cv_aix_libpath_
10875 fi
10876
10877         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10878         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
10879       else
10880         if test ia64 = "$host_cpu"; then
10881           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10882           allow_undefined_flag="-z nodefs"
10883           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"
10884         else
10885          # Determine the default libpath from the value encoded in an
10886          # empty executable.
10887          if test set = "${lt_cv_aix_libpath+set}"; then
10888   aix_libpath=$lt_cv_aix_libpath
10889 else
10890   if ${lt_cv_aix_libpath_+:} false; then :
10891   $as_echo_n "(cached) " >&6
10892 else
10893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h.  */
10895
10896 int
10897 main ()
10898 {
10899
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905
10906   lt_aix_libpath_sed='
10907       /Import File Strings/,/^$/ {
10908           /^0/ {
10909               s/^0  *\([^ ]*\) *$/\1/
10910               p
10911           }
10912       }'
10913   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10914   # Check for a 64-bit object if we didn't find anything.
10915   if test -z "$lt_cv_aix_libpath_"; then
10916     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10917   fi
10918 fi
10919 rm -f core conftest.err conftest.$ac_objext \
10920     conftest$ac_exeext conftest.$ac_ext
10921   if test -z "$lt_cv_aix_libpath_"; then
10922     lt_cv_aix_libpath_=/usr/lib:/lib
10923   fi
10924
10925 fi
10926
10927   aix_libpath=$lt_cv_aix_libpath_
10928 fi
10929
10930          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10931           # Warning - without using the other run time loading flags,
10932           # -berok will link without error, but may produce a broken library.
10933           no_undefined_flag=' $wl-bernotok'
10934           allow_undefined_flag=' $wl-berok'
10935           if test yes = "$with_gnu_ld"; then
10936             # We only use this code for GNU lds that support --whole-archive.
10937             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10938           else
10939             # Exported symbols can be pulled into shared objects from archives
10940             whole_archive_flag_spec='$convenience'
10941           fi
10942           archive_cmds_need_lc=yes
10943           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10944           # -brtl affects multiple linker settings, -berok does not and is overridden later
10945           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10946           if test svr4 != "$with_aix_soname"; then
10947             # This is similar to how AIX traditionally builds its shared libraries.
10948             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'
10949           fi
10950           if test aix != "$with_aix_soname"; then
10951             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'
10952           else
10953             # used by -dlpreopen to get the symbols
10954             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10955           fi
10956           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10957         fi
10958       fi
10959       ;;
10960
10961     amigaos*)
10962       case $host_cpu in
10963       powerpc)
10964             # see comment about AmigaOS4 .so support
10965             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10966             archive_expsym_cmds=''
10967         ;;
10968       m68k)
10969             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)'
10970             hardcode_libdir_flag_spec='-L$libdir'
10971             hardcode_minus_L=yes
10972         ;;
10973       esac
10974       ;;
10975
10976     bsdi[45]*)
10977       export_dynamic_flag_spec=-rdynamic
10978       ;;
10979
10980     cygwin* | mingw* | pw32* | cegcc*)
10981       # When not using gcc, we currently assume that we are using
10982       # Microsoft Visual C++ or Intel C++ Compiler.
10983       # hardcode_libdir_flag_spec is actually meaningless, as there is
10984       # no search path for DLLs.
10985       case $cc_basename in
10986       cl* | icl*)
10987         # Native MSVC or ICC
10988         hardcode_libdir_flag_spec=' '
10989         allow_undefined_flag=unsupported
10990         always_export_symbols=yes
10991         file_list_spec='@'
10992         # Tell ltmain to make .lib files, not .a files.
10993         libext=lib
10994         # Tell ltmain to make .dll files, not .so files.
10995         shrext_cmds=.dll
10996         # FIXME: Setting linknames here is a bad hack.
10997         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10998         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10999             cp "$export_symbols" "$output_objdir/$soname.def";
11000             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11001           else
11002             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11003           fi~
11004           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11005           linknames='
11006         # The linker will not automatically build a static lib if we build a DLL.
11007         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11008         enable_shared_with_static_runtimes=yes
11009         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11010         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11011         # Don't use ranlib
11012         old_postinstall_cmds='chmod 644 $oldlib'
11013         postlink_cmds='lt_outputfile="@OUTPUT@"~
11014           lt_tool_outputfile="@TOOL_OUTPUT@"~
11015           case $lt_outputfile in
11016             *.exe|*.EXE) ;;
11017             *)
11018               lt_outputfile=$lt_outputfile.exe
11019               lt_tool_outputfile=$lt_tool_outputfile.exe
11020               ;;
11021           esac~
11022           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11023             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11024             $RM "$lt_outputfile.manifest";
11025           fi'
11026         ;;
11027       *)
11028         # Assume MSVC and ICC wrapper
11029         hardcode_libdir_flag_spec=' '
11030         allow_undefined_flag=unsupported
11031         # Tell ltmain to make .lib files, not .a files.
11032         libext=lib
11033         # Tell ltmain to make .dll files, not .so files.
11034         shrext_cmds=.dll
11035         # FIXME: Setting linknames here is a bad hack.
11036         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11037         # The linker will automatically build a .lib file if we build a DLL.
11038         old_archive_from_new_cmds='true'
11039         # FIXME: Should let the user specify the lib program.
11040         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11041         enable_shared_with_static_runtimes=yes
11042         ;;
11043       esac
11044       ;;
11045
11046     darwin* | rhapsody*)
11047
11048
11049   archive_cmds_need_lc=no
11050   hardcode_direct=no
11051   hardcode_automatic=yes
11052   hardcode_shlibpath_var=unsupported
11053   if test yes = "$lt_cv_ld_force_load"; then
11054     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\"`'
11055
11056   else
11057     whole_archive_flag_spec=''
11058   fi
11059   link_all_deplibs=yes
11060   allow_undefined_flag=$_lt_dar_allow_undefined
11061   case $cc_basename in
11062      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11063      *) _lt_dar_can_shared=$GCC ;;
11064   esac
11065   if test yes = "$_lt_dar_can_shared"; then
11066     output_verbose_link_cmd=func_echo_all
11067     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11068     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11069     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"
11070     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"
11071
11072   else
11073   ld_shlibs=no
11074   fi
11075
11076       ;;
11077
11078     dgux*)
11079       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080       hardcode_libdir_flag_spec='-L$libdir'
11081       hardcode_shlibpath_var=no
11082       ;;
11083
11084     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11085     # support.  Future versions do this automatically, but an explicit c++rt0.o
11086     # does not break anything, and helps significantly (at the cost of a little
11087     # extra space).
11088     freebsd2.2*)
11089       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11090       hardcode_libdir_flag_spec='-R$libdir'
11091       hardcode_direct=yes
11092       hardcode_shlibpath_var=no
11093       ;;
11094
11095     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11096     freebsd2.*)
11097       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11098       hardcode_direct=yes
11099       hardcode_minus_L=yes
11100       hardcode_shlibpath_var=no
11101       ;;
11102
11103     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11104     freebsd* | dragonfly*)
11105       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11106       hardcode_libdir_flag_spec='-R$libdir'
11107       hardcode_direct=yes
11108       hardcode_shlibpath_var=no
11109       ;;
11110
11111     hpux9*)
11112       if test yes = "$GCC"; then
11113         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'
11114       else
11115         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'
11116       fi
11117       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11118       hardcode_libdir_separator=:
11119       hardcode_direct=yes
11120
11121       # hardcode_minus_L: Not really in the search PATH,
11122       # but as the default location of the library.
11123       hardcode_minus_L=yes
11124       export_dynamic_flag_spec='$wl-E'
11125       ;;
11126
11127     hpux10*)
11128       if test yes,no = "$GCC,$with_gnu_ld"; then
11129         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11130       else
11131         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11132       fi
11133       if test no = "$with_gnu_ld"; then
11134         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11135         hardcode_libdir_separator=:
11136         hardcode_direct=yes
11137         hardcode_direct_absolute=yes
11138         export_dynamic_flag_spec='$wl-E'
11139         # hardcode_minus_L: Not really in the search PATH,
11140         # but as the default location of the library.
11141         hardcode_minus_L=yes
11142       fi
11143       ;;
11144
11145     hpux11*)
11146       if test yes,no = "$GCC,$with_gnu_ld"; then
11147         case $host_cpu in
11148         hppa*64*)
11149           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11150           ;;
11151         ia64*)
11152           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11153           ;;
11154         *)
11155           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11156           ;;
11157         esac
11158       else
11159         case $host_cpu in
11160         hppa*64*)
11161           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11162           ;;
11163         ia64*)
11164           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11165           ;;
11166         *)
11167
11168           # Older versions of the 11.00 compiler do not understand -b yet
11169           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11170           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11171 $as_echo_n "checking if $CC understands -b... " >&6; }
11172 if ${lt_cv_prog_compiler__b+:} false; then :
11173   $as_echo_n "(cached) " >&6
11174 else
11175   lt_cv_prog_compiler__b=no
11176    save_LDFLAGS=$LDFLAGS
11177    LDFLAGS="$LDFLAGS -b"
11178    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11179    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11180      # The linker can only warn and ignore the option if not recognized
11181      # So say no if there are warnings
11182      if test -s conftest.err; then
11183        # Append any errors to the config.log.
11184        cat conftest.err 1>&5
11185        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11186        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11187        if diff conftest.exp conftest.er2 >/dev/null; then
11188          lt_cv_prog_compiler__b=yes
11189        fi
11190      else
11191        lt_cv_prog_compiler__b=yes
11192      fi
11193    fi
11194    $RM -r conftest*
11195    LDFLAGS=$save_LDFLAGS
11196
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11199 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11200
11201 if test yes = "$lt_cv_prog_compiler__b"; then
11202     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11203 else
11204     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11205 fi
11206
11207           ;;
11208         esac
11209       fi
11210       if test no = "$with_gnu_ld"; then
11211         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11212         hardcode_libdir_separator=:
11213
11214         case $host_cpu in
11215         hppa*64*|ia64*)
11216           hardcode_direct=no
11217           hardcode_shlibpath_var=no
11218           ;;
11219         *)
11220           hardcode_direct=yes
11221           hardcode_direct_absolute=yes
11222           export_dynamic_flag_spec='$wl-E'
11223
11224           # hardcode_minus_L: Not really in the search PATH,
11225           # but as the default location of the library.
11226           hardcode_minus_L=yes
11227           ;;
11228         esac
11229       fi
11230       ;;
11231
11232     irix5* | irix6* | nonstopux*)
11233       if test yes = "$GCC"; then
11234         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'
11235         # Try to use the -exported_symbol ld option, if it does not
11236         # work, assume that -exports_file does not work either and
11237         # implicitly export all symbols.
11238         # This should be the same for all languages, so no per-tag cache variable.
11239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11240 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11241 if ${lt_cv_irix_exported_symbol+:} false; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   save_LDFLAGS=$LDFLAGS
11245            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11246            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h.  */
11248 int foo (void) { return 0; }
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"; then :
11251   lt_cv_irix_exported_symbol=yes
11252 else
11253   lt_cv_irix_exported_symbol=no
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext \
11256     conftest$ac_exeext conftest.$ac_ext
11257            LDFLAGS=$save_LDFLAGS
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11260 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11261         if test yes = "$lt_cv_irix_exported_symbol"; then
11262           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'
11263         fi
11264       else
11265         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'
11266         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'
11267       fi
11268       archive_cmds_need_lc='no'
11269       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11270       hardcode_libdir_separator=:
11271       inherit_rpath=yes
11272       link_all_deplibs=yes
11273       ;;
11274
11275     linux*)
11276       case $cc_basename in
11277       tcc*)
11278         # Fabrice Bellard et al's Tiny C Compiler
11279         ld_shlibs=yes
11280         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11281         ;;
11282       esac
11283       ;;
11284
11285     netbsd*)
11286       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11287         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11288       else
11289         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11290       fi
11291       hardcode_libdir_flag_spec='-R$libdir'
11292       hardcode_direct=yes
11293       hardcode_shlibpath_var=no
11294       ;;
11295
11296     newsos6)
11297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298       hardcode_direct=yes
11299       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11300       hardcode_libdir_separator=:
11301       hardcode_shlibpath_var=no
11302       ;;
11303
11304     *nto* | *qnx*)
11305       ;;
11306
11307     openbsd* | bitrig*)
11308       if test -f /usr/libexec/ld.so; then
11309         hardcode_direct=yes
11310         hardcode_shlibpath_var=no
11311         hardcode_direct_absolute=yes
11312         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11313           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11314           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11315           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11316           export_dynamic_flag_spec='$wl-E'
11317         else
11318           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11319           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11320         fi
11321       else
11322         ld_shlibs=no
11323       fi
11324       ;;
11325
11326     os2*)
11327       hardcode_libdir_flag_spec='-L$libdir'
11328       hardcode_minus_L=yes
11329       allow_undefined_flag=unsupported
11330       shrext_cmds=.dll
11331       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11332         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11333         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11334         $ECHO EXPORTS >> $output_objdir/$libname.def~
11335         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11336         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11337         emximp -o $lib $output_objdir/$libname.def'
11338       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11339         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11340         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11341         $ECHO EXPORTS >> $output_objdir/$libname.def~
11342         prefix_cmds="$SED"~
11343         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11344           prefix_cmds="$prefix_cmds -e 1d";
11345         fi~
11346         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11347         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11348         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11349         emximp -o $lib $output_objdir/$libname.def'
11350       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11351       enable_shared_with_static_runtimes=yes
11352       file_list_spec='@'
11353       ;;
11354
11355     osf3*)
11356       if test yes = "$GCC"; then
11357         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11358         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'
11359       else
11360         allow_undefined_flag=' -expect_unresolved \*'
11361         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'
11362       fi
11363       archive_cmds_need_lc='no'
11364       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11365       hardcode_libdir_separator=:
11366       ;;
11367
11368     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11369       if test yes = "$GCC"; then
11370         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11371         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'
11372         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11373       else
11374         allow_undefined_flag=' -expect_unresolved \*'
11375         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'
11376         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~
11377           $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'
11378
11379         # Both c and cxx compiler support -rpath directly
11380         hardcode_libdir_flag_spec='-rpath $libdir'
11381       fi
11382       archive_cmds_need_lc='no'
11383       hardcode_libdir_separator=:
11384       ;;
11385
11386     solaris*)
11387       no_undefined_flag=' -z defs'
11388       if test yes = "$GCC"; then
11389         wlarc='$wl'
11390         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11391         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11392           $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'
11393       else
11394         case `$CC -V 2>&1` in
11395         *"Compilers 5.0"*)
11396           wlarc=''
11397           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11398           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11399             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11400           ;;
11401         *)
11402           wlarc='$wl'
11403           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11404           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11405             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11406           ;;
11407         esac
11408       fi
11409       hardcode_libdir_flag_spec='-R$libdir'
11410       hardcode_shlibpath_var=no
11411       case $host_os in
11412       solaris2.[0-5] | solaris2.[0-5].*) ;;
11413       *)
11414         # The compiler driver will combine and reorder linker options,
11415         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11416         # but is careful enough not to reorder.
11417         # Supported since Solaris 2.6 (maybe 2.5.1?)
11418         if test yes = "$GCC"; then
11419           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11420         else
11421           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11422         fi
11423         ;;
11424       esac
11425       link_all_deplibs=yes
11426       ;;
11427
11428     sunos4*)
11429       if test sequent = "$host_vendor"; then
11430         # Use $CC to link under sequent, because it throws in some extra .o
11431         # files that make .init and .fini sections work.
11432         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11433       else
11434         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11435       fi
11436       hardcode_libdir_flag_spec='-L$libdir'
11437       hardcode_direct=yes
11438       hardcode_minus_L=yes
11439       hardcode_shlibpath_var=no
11440       ;;
11441
11442     sysv4)
11443       case $host_vendor in
11444         sni)
11445           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11446           hardcode_direct=yes # is this really true???
11447         ;;
11448         siemens)
11449           ## LD is ld it makes a PLAMLIB
11450           ## CC just makes a GrossModule.
11451           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11452           reload_cmds='$CC -r -o $output$reload_objs'
11453           hardcode_direct=no
11454         ;;
11455         motorola)
11456           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11458         ;;
11459       esac
11460       runpath_var='LD_RUN_PATH'
11461       hardcode_shlibpath_var=no
11462       ;;
11463
11464     sysv4.3*)
11465       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11466       hardcode_shlibpath_var=no
11467       export_dynamic_flag_spec='-Bexport'
11468       ;;
11469
11470     sysv4*MP*)
11471       if test -d /usr/nec; then
11472         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11473         hardcode_shlibpath_var=no
11474         runpath_var=LD_RUN_PATH
11475         hardcode_runpath_var=yes
11476         ld_shlibs=yes
11477       fi
11478       ;;
11479
11480     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11481       no_undefined_flag='$wl-z,text'
11482       archive_cmds_need_lc=no
11483       hardcode_shlibpath_var=no
11484       runpath_var='LD_RUN_PATH'
11485
11486       if test yes = "$GCC"; then
11487         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11488         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11489       else
11490         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11491         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11492       fi
11493       ;;
11494
11495     sysv5* | sco3.2v5* | sco5v6*)
11496       # Note: We CANNOT use -z defs as we might desire, because we do not
11497       # link with -lc, and that would cause any symbols used from libc to
11498       # always be unresolved, which means just about no library would
11499       # ever link correctly.  If we're not using GNU ld we use -z text
11500       # though, which does catch some bad symbols but isn't as heavy-handed
11501       # as -z defs.
11502       no_undefined_flag='$wl-z,text'
11503       allow_undefined_flag='$wl-z,nodefs'
11504       archive_cmds_need_lc=no
11505       hardcode_shlibpath_var=no
11506       hardcode_libdir_flag_spec='$wl-R,$libdir'
11507       hardcode_libdir_separator=':'
11508       link_all_deplibs=yes
11509       export_dynamic_flag_spec='$wl-Bexport'
11510       runpath_var='LD_RUN_PATH'
11511
11512       if test yes = "$GCC"; then
11513         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11514         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11515       else
11516         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11517         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11518       fi
11519       ;;
11520
11521     uts4*)
11522       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11523       hardcode_libdir_flag_spec='-L$libdir'
11524       hardcode_shlibpath_var=no
11525       ;;
11526
11527     *)
11528       ld_shlibs=no
11529       ;;
11530     esac
11531
11532     if test sni = "$host_vendor"; then
11533       case $host in
11534       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11535         export_dynamic_flag_spec='$wl-Blargedynsym'
11536         ;;
11537       esac
11538     fi
11539   fi
11540
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11542 $as_echo "$ld_shlibs" >&6; }
11543 test no = "$ld_shlibs" && can_build_shared=no
11544
11545 with_gnu_ld=$with_gnu_ld
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561 #
11562 # Do we need to explicitly link libc?
11563 #
11564 case "x$archive_cmds_need_lc" in
11565 x|xyes)
11566   # Assume -lc should be added
11567   archive_cmds_need_lc=yes
11568
11569   if test yes,yes = "$GCC,$enable_shared"; then
11570     case $archive_cmds in
11571     *'~'*)
11572       # FIXME: we may have to deal with multi-command sequences.
11573       ;;
11574     '$CC '*)
11575       # Test whether the compiler implicitly links with -lc since on some
11576       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11577       # to ld, don't add -lc before -lgcc.
11578       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11580 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11581   $as_echo_n "(cached) " >&6
11582 else
11583   $RM conftest*
11584         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11585
11586         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11587   (eval $ac_compile) 2>&5
11588   ac_status=$?
11589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11590   test $ac_status = 0; } 2>conftest.err; then
11591           soname=conftest
11592           lib=conftest
11593           libobjs=conftest.$ac_objext
11594           deplibs=
11595           wl=$lt_prog_compiler_wl
11596           pic_flag=$lt_prog_compiler_pic
11597           compiler_flags=-v
11598           linker_flags=-v
11599           verstring=
11600           output_objdir=.
11601           libname=conftest
11602           lt_save_allow_undefined_flag=$allow_undefined_flag
11603           allow_undefined_flag=
11604           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11605   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11606   ac_status=$?
11607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11608   test $ac_status = 0; }
11609           then
11610             lt_cv_archive_cmds_need_lc=no
11611           else
11612             lt_cv_archive_cmds_need_lc=yes
11613           fi
11614           allow_undefined_flag=$lt_save_allow_undefined_flag
11615         else
11616           cat conftest.err 1>&5
11617         fi
11618         $RM conftest*
11619
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11622 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11623       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11624       ;;
11625     esac
11626   fi
11627   ;;
11628 esac
11629
11630
11631
11632
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11783
11784 if test yes = "$GCC"; then
11785   case $host_os in
11786     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11787     *) lt_awk_arg='/^libraries:/' ;;
11788   esac
11789   case $host_os in
11790     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11791     *) lt_sed_strip_eq='s|=/|/|g' ;;
11792   esac
11793   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11794   case $lt_search_path_spec in
11795   *\;*)
11796     # if the path contains ";" then we assume it to be the separator
11797     # otherwise default to the standard path separator (i.e. ":") - it is
11798     # assumed that no part of a normal pathname contains ";" but that should
11799     # okay in the real world where ";" in dirpaths is itself problematic.
11800     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11801     ;;
11802   *)
11803     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11804     ;;
11805   esac
11806   # Ok, now we have the path, separated by spaces, we can step through it
11807   # and add multilib dir if necessary...
11808   lt_tmp_lt_search_path_spec=
11809   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11810   # ...but if some path component already ends with the multilib dir we assume
11811   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11812   case "$lt_multi_os_dir; $lt_search_path_spec " in
11813   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11814     lt_multi_os_dir=
11815     ;;
11816   esac
11817   for lt_sys_path in $lt_search_path_spec; do
11818     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11819       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11820     elif test -n "$lt_multi_os_dir"; then
11821       test -d "$lt_sys_path" && \
11822         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11823     fi
11824   done
11825   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11826 BEGIN {RS = " "; FS = "/|\n";} {
11827   lt_foo = "";
11828   lt_count = 0;
11829   for (lt_i = NF; lt_i > 0; lt_i--) {
11830     if ($lt_i != "" && $lt_i != ".") {
11831       if ($lt_i == "..") {
11832         lt_count++;
11833       } else {
11834         if (lt_count == 0) {
11835           lt_foo = "/" $lt_i lt_foo;
11836         } else {
11837           lt_count--;
11838         }
11839       }
11840     }
11841   }
11842   if (lt_foo != "") { lt_freq[lt_foo]++; }
11843   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11844 }'`
11845   # AWK program above erroneously prepends '/' to C:/dos/paths
11846   # for these hosts.
11847   case $host_os in
11848     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11849       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11850   esac
11851   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11852 else
11853   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11854 fi
11855 library_names_spec=
11856 libname_spec='lib$name'
11857 soname_spec=
11858 shrext_cmds=.so
11859 postinstall_cmds=
11860 postuninstall_cmds=
11861 finish_cmds=
11862 finish_eval=
11863 shlibpath_var=
11864 shlibpath_overrides_runpath=unknown
11865 version_type=none
11866 dynamic_linker="$host_os ld.so"
11867 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11868 need_lib_prefix=unknown
11869 hardcode_into_libs=no
11870
11871 # when you set need_version to no, make sure it does not cause -set_version
11872 # flags to be left without arguments
11873 need_version=unknown
11874
11875
11876
11877 case $host_os in
11878 aix3*)
11879   version_type=linux # correct to gnu/linux during the next big refactor
11880   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11881   shlibpath_var=LIBPATH
11882
11883   # AIX 3 has no versioning support, so we append a major version to the name.
11884   soname_spec='$libname$release$shared_ext$major'
11885   ;;
11886
11887 aix[4-9]*)
11888   version_type=linux # correct to gnu/linux during the next big refactor
11889   need_lib_prefix=no
11890   need_version=no
11891   hardcode_into_libs=yes
11892   if test ia64 = "$host_cpu"; then
11893     # AIX 5 supports IA64
11894     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11895     shlibpath_var=LD_LIBRARY_PATH
11896   else
11897     # With GCC up to 2.95.x, collect2 would create an import file
11898     # for dependence libraries.  The import file would start with
11899     # the line '#! .'.  This would cause the generated library to
11900     # depend on '.', always an invalid library.  This was fixed in
11901     # development snapshots of GCC prior to 3.0.
11902     case $host_os in
11903       aix4 | aix4.[01] | aix4.[01].*)
11904       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11905            echo ' yes '
11906            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11907         :
11908       else
11909         can_build_shared=no
11910       fi
11911       ;;
11912     esac
11913     # Using Import Files as archive members, it is possible to support
11914     # filename-based versioning of shared library archives on AIX. While
11915     # this would work for both with and without runtime linking, it will
11916     # prevent static linking of such archives. So we do filename-based
11917     # shared library versioning with .so extension only, which is used
11918     # when both runtime linking and shared linking is enabled.
11919     # Unfortunately, runtime linking may impact performance, so we do
11920     # not want this to be the default eventually. Also, we use the
11921     # versioned .so libs for executables only if there is the -brtl
11922     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11923     # To allow for filename-based versioning support, we need to create
11924     # libNAME.so.V as an archive file, containing:
11925     # *) an Import File, referring to the versioned filename of the
11926     #    archive as well as the shared archive member, telling the
11927     #    bitwidth (32 or 64) of that shared object, and providing the
11928     #    list of exported symbols of that shared object, eventually
11929     #    decorated with the 'weak' keyword
11930     # *) the shared object with the F_LOADONLY flag set, to really avoid
11931     #    it being seen by the linker.
11932     # At run time we better use the real file rather than another symlink,
11933     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11934
11935     case $with_aix_soname,$aix_use_runtimelinking in
11936     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11937     # soname into executable. Probably we can add versioning support to
11938     # collect2, so additional links can be useful in future.
11939     aix,yes) # traditional libtool
11940       dynamic_linker='AIX unversionable lib.so'
11941       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11942       # instead of lib<name>.a to let people know that these are not
11943       # typical AIX shared libraries.
11944       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11945       ;;
11946     aix,no) # traditional AIX only
11947       dynamic_linker='AIX lib.a(lib.so.V)'
11948       # We preserve .a as extension for shared libraries through AIX4.2
11949       # and later when we are not doing run time linking.
11950       library_names_spec='$libname$release.a $libname.a'
11951       soname_spec='$libname$release$shared_ext$major'
11952       ;;
11953     svr4,*) # full svr4 only
11954       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11955       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11956       # We do not specify a path in Import Files, so LIBPATH fires.
11957       shlibpath_overrides_runpath=yes
11958       ;;
11959     *,yes) # both, prefer svr4
11960       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11961       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11962       # unpreferred sharedlib libNAME.a needs extra handling
11963       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"'
11964       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"'
11965       # We do not specify a path in Import Files, so LIBPATH fires.
11966       shlibpath_overrides_runpath=yes
11967       ;;
11968     *,no) # both, prefer aix
11969       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11970       library_names_spec='$libname$release.a $libname.a'
11971       soname_spec='$libname$release$shared_ext$major'
11972       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11973       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)'
11974       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"'
11975       ;;
11976     esac
11977     shlibpath_var=LIBPATH
11978   fi
11979   ;;
11980
11981 amigaos*)
11982   case $host_cpu in
11983   powerpc)
11984     # Since July 2007 AmigaOS4 officially supports .so libraries.
11985     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11986     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11987     ;;
11988   m68k)
11989     library_names_spec='$libname.ixlibrary $libname.a'
11990     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11991     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'
11992     ;;
11993   esac
11994   ;;
11995
11996 beos*)
11997   library_names_spec='$libname$shared_ext'
11998   dynamic_linker="$host_os ld.so"
11999   shlibpath_var=LIBRARY_PATH
12000   ;;
12001
12002 bsdi[45]*)
12003   version_type=linux # correct to gnu/linux during the next big refactor
12004   need_version=no
12005   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12006   soname_spec='$libname$release$shared_ext$major'
12007   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12008   shlibpath_var=LD_LIBRARY_PATH
12009   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12010   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12011   # the default ld.so.conf also contains /usr/contrib/lib and
12012   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12013   # libtool to hard-code these into programs
12014   ;;
12015
12016 cygwin* | mingw* | pw32* | cegcc*)
12017   version_type=windows
12018   shrext_cmds=.dll
12019   need_version=no
12020   need_lib_prefix=no
12021
12022   case $GCC,$cc_basename in
12023   yes,*)
12024     # gcc
12025     library_names_spec='$libname.dll.a'
12026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12027     postinstall_cmds='base_file=`basename \$file`~
12028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12029       dldir=$destdir/`dirname \$dlpath`~
12030       test -d \$dldir || mkdir -p \$dldir~
12031       $install_prog $dir/$dlname \$dldir/$dlname~
12032       chmod a+x \$dldir/$dlname~
12033       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12034         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12035       fi'
12036     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12037       dlpath=$dir/\$dldll~
12038        $RM \$dlpath'
12039     shlibpath_overrides_runpath=yes
12040
12041     case $host_os in
12042     cygwin*)
12043       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12044       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12045
12046       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12047       ;;
12048     mingw* | cegcc*)
12049       # MinGW DLLs use traditional 'lib' prefix
12050       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12051       ;;
12052     pw32*)
12053       # pw32 DLLs use 'pw' prefix rather than 'lib'
12054       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12055       ;;
12056     esac
12057     dynamic_linker='Win32 ld.exe'
12058     ;;
12059
12060   *,cl* | *,icl*)
12061     # Native MSVC or ICC
12062     libname_spec='$name'
12063     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12064     library_names_spec='$libname.dll.lib'
12065
12066     case $build_os in
12067     mingw*)
12068       sys_lib_search_path_spec=
12069       lt_save_ifs=$IFS
12070       IFS=';'
12071       for lt_path in $LIB
12072       do
12073         IFS=$lt_save_ifs
12074         # Let DOS variable expansion print the short 8.3 style file name.
12075         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12076         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12077       done
12078       IFS=$lt_save_ifs
12079       # Convert to MSYS style.
12080       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12081       ;;
12082     cygwin*)
12083       # Convert to unix form, then to dos form, then back to unix form
12084       # but this time dos style (no spaces!) so that the unix form looks
12085       # like /cygdrive/c/PROGRA~1:/cygdr...
12086       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12087       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12088       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12089       ;;
12090     *)
12091       sys_lib_search_path_spec=$LIB
12092       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12093         # It is most probably a Windows format PATH.
12094         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12095       else
12096         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12097       fi
12098       # FIXME: find the short name or the path components, as spaces are
12099       # common. (e.g. "Program Files" -> "PROGRA~1")
12100       ;;
12101     esac
12102
12103     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12104     postinstall_cmds='base_file=`basename \$file`~
12105       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12106       dldir=$destdir/`dirname \$dlpath`~
12107       test -d \$dldir || mkdir -p \$dldir~
12108       $install_prog $dir/$dlname \$dldir/$dlname'
12109     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12110       dlpath=$dir/\$dldll~
12111        $RM \$dlpath'
12112     shlibpath_overrides_runpath=yes
12113     dynamic_linker='Win32 link.exe'
12114     ;;
12115
12116   *)
12117     # Assume MSVC and ICC wrapper
12118     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12119     dynamic_linker='Win32 ld.exe'
12120     ;;
12121   esac
12122   # FIXME: first we should search . and the directory the executable is in
12123   shlibpath_var=PATH
12124   ;;
12125
12126 darwin* | rhapsody*)
12127   dynamic_linker="$host_os dyld"
12128   version_type=darwin
12129   need_lib_prefix=no
12130   need_version=no
12131   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12132   soname_spec='$libname$release$major$shared_ext'
12133   shlibpath_overrides_runpath=yes
12134   shlibpath_var=DYLD_LIBRARY_PATH
12135   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12136
12137   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12138   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12139   ;;
12140
12141 dgux*)
12142   version_type=linux # correct to gnu/linux during the next big refactor
12143   need_lib_prefix=no
12144   need_version=no
12145   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146   soname_spec='$libname$release$shared_ext$major'
12147   shlibpath_var=LD_LIBRARY_PATH
12148   ;;
12149
12150 freebsd* | dragonfly*)
12151   # DragonFly does not have aout.  When/if they implement a new
12152   # versioning mechanism, adjust this.
12153   if test -x /usr/bin/objformat; then
12154     objformat=`/usr/bin/objformat`
12155   else
12156     case $host_os in
12157     freebsd[23].*) objformat=aout ;;
12158     *) objformat=elf ;;
12159     esac
12160   fi
12161   version_type=freebsd-$objformat
12162   case $version_type in
12163     freebsd-elf*)
12164       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12165       soname_spec='$libname$release$shared_ext$major'
12166       need_version=no
12167       need_lib_prefix=no
12168       ;;
12169     freebsd-*)
12170       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12171       need_version=yes
12172       ;;
12173   esac
12174   shlibpath_var=LD_LIBRARY_PATH
12175   case $host_os in
12176   freebsd2.*)
12177     shlibpath_overrides_runpath=yes
12178     ;;
12179   freebsd3.[01]* | freebsdelf3.[01]*)
12180     shlibpath_overrides_runpath=yes
12181     hardcode_into_libs=yes
12182     ;;
12183   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12184   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12185     shlibpath_overrides_runpath=no
12186     hardcode_into_libs=yes
12187     ;;
12188   *) # from 4.6 on, and DragonFly
12189     shlibpath_overrides_runpath=yes
12190     hardcode_into_libs=yes
12191     ;;
12192   esac
12193   ;;
12194
12195 haiku*)
12196   version_type=linux # correct to gnu/linux during the next big refactor
12197   need_lib_prefix=no
12198   need_version=no
12199   dynamic_linker="$host_os runtime_loader"
12200   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201   soname_spec='$libname$release$shared_ext$major'
12202   shlibpath_var=LIBRARY_PATH
12203   shlibpath_overrides_runpath=no
12204   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12205   hardcode_into_libs=yes
12206   ;;
12207
12208 hpux9* | hpux10* | hpux11*)
12209   # Give a soname corresponding to the major version so that dld.sl refuses to
12210   # link against other versions.
12211   version_type=sunos
12212   need_lib_prefix=no
12213   need_version=no
12214   case $host_cpu in
12215   ia64*)
12216     shrext_cmds='.so'
12217     hardcode_into_libs=yes
12218     dynamic_linker="$host_os dld.so"
12219     shlibpath_var=LD_LIBRARY_PATH
12220     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12221     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12222     soname_spec='$libname$release$shared_ext$major'
12223     if test 32 = "$HPUX_IA64_MODE"; then
12224       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12225       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12226     else
12227       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12228       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12229     fi
12230     ;;
12231   hppa*64*)
12232     shrext_cmds='.sl'
12233     hardcode_into_libs=yes
12234     dynamic_linker="$host_os dld.sl"
12235     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12236     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12237     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12238     soname_spec='$libname$release$shared_ext$major'
12239     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12240     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12241     ;;
12242   *)
12243     shrext_cmds='.sl'
12244     dynamic_linker="$host_os dld.sl"
12245     shlibpath_var=SHLIB_PATH
12246     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12247     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248     soname_spec='$libname$release$shared_ext$major'
12249     ;;
12250   esac
12251   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12252   postinstall_cmds='chmod 555 $lib'
12253   # or fails outright, so override atomically:
12254   install_override_mode=555
12255   ;;
12256
12257 interix[3-9]*)
12258   version_type=linux # correct to gnu/linux during the next big refactor
12259   need_lib_prefix=no
12260   need_version=no
12261   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262   soname_spec='$libname$release$shared_ext$major'
12263   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12264   shlibpath_var=LD_LIBRARY_PATH
12265   shlibpath_overrides_runpath=no
12266   hardcode_into_libs=yes
12267   ;;
12268
12269 irix5* | irix6* | nonstopux*)
12270   case $host_os in
12271     nonstopux*) version_type=nonstopux ;;
12272     *)
12273         if test yes = "$lt_cv_prog_gnu_ld"; then
12274                 version_type=linux # correct to gnu/linux during the next big refactor
12275         else
12276                 version_type=irix
12277         fi ;;
12278   esac
12279   need_lib_prefix=no
12280   need_version=no
12281   soname_spec='$libname$release$shared_ext$major'
12282   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12283   case $host_os in
12284   irix5* | nonstopux*)
12285     libsuff= shlibsuff=
12286     ;;
12287   *)
12288     case $LD in # libtool.m4 will add one of these switches to LD
12289     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12290       libsuff= shlibsuff= libmagic=32-bit;;
12291     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12292       libsuff=32 shlibsuff=N32 libmagic=N32;;
12293     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12294       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12295     *) libsuff= shlibsuff= libmagic=never-match;;
12296     esac
12297     ;;
12298   esac
12299   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12300   shlibpath_overrides_runpath=no
12301   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12302   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12303   hardcode_into_libs=yes
12304   ;;
12305
12306 # No shared lib support for Linux oldld, aout, or coff.
12307 linux*oldld* | linux*aout* | linux*coff*)
12308   dynamic_linker=no
12309   ;;
12310
12311 linux*android*)
12312   version_type=none # Android doesn't support versioned libraries.
12313   need_lib_prefix=no
12314   need_version=no
12315   library_names_spec='$libname$release$shared_ext'
12316   soname_spec='$libname$release$shared_ext'
12317   finish_cmds=
12318   shlibpath_var=LD_LIBRARY_PATH
12319   shlibpath_overrides_runpath=yes
12320
12321   # This implies no fast_install, which is unacceptable.
12322   # Some rework will be needed to allow for fast_install
12323   # before this can be enabled.
12324   hardcode_into_libs=yes
12325
12326   dynamic_linker='Android linker'
12327   # Don't embed -rpath directories since the linker doesn't support them.
12328   hardcode_libdir_flag_spec='-L$libdir'
12329   ;;
12330
12331 # This must be glibc/ELF.
12332 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12333   version_type=linux # correct to gnu/linux during the next big refactor
12334   need_lib_prefix=no
12335   need_version=no
12336   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12337   soname_spec='$libname$release$shared_ext$major'
12338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12339   shlibpath_var=LD_LIBRARY_PATH
12340   shlibpath_overrides_runpath=no
12341
12342   # Some binutils ld are patched to set DT_RUNPATH
12343   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12344   $as_echo_n "(cached) " >&6
12345 else
12346   lt_cv_shlibpath_overrides_runpath=no
12347     save_LDFLAGS=$LDFLAGS
12348     save_libdir=$libdir
12349     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12350          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12351     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h.  */
12353
12354 int
12355 main ()
12356 {
12357
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12364   lt_cv_shlibpath_overrides_runpath=yes
12365 fi
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext \
12368     conftest$ac_exeext conftest.$ac_ext
12369     LDFLAGS=$save_LDFLAGS
12370     libdir=$save_libdir
12371
12372 fi
12373
12374   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12375
12376   # This implies no fast_install, which is unacceptable.
12377   # Some rework will be needed to allow for fast_install
12378   # before this can be enabled.
12379   hardcode_into_libs=yes
12380
12381   # Ideally, we could use ldconfig to report *all* directores which are
12382   # searched for libraries, however this is still not possible.  Aside from not
12383   # being certain /sbin/ldconfig is available, command
12384   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12385   # even though it is searched at run-time.  Try to do the best guess by
12386   # appending ld.so.conf contents (and includes) to the search path.
12387   if test -f /etc/ld.so.conf; then
12388     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' ' '`
12389     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12390   fi
12391
12392   # We used to test for /lib/ld.so.1 and disable shared libraries on
12393   # powerpc, because MkLinux only supported shared libraries with the
12394   # GNU dynamic linker.  Since this was broken with cross compilers,
12395   # most powerpc-linux boxes support dynamic linking these days and
12396   # people can always --disable-shared, the test was removed, and we
12397   # assume the GNU/Linux dynamic linker is in use.
12398   dynamic_linker='GNU/Linux ld.so'
12399   ;;
12400
12401 netbsd*)
12402   version_type=sunos
12403   need_lib_prefix=no
12404   need_version=no
12405   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12406     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12408     dynamic_linker='NetBSD (a.out) ld.so'
12409   else
12410     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12411     soname_spec='$libname$release$shared_ext$major'
12412     dynamic_linker='NetBSD ld.elf_so'
12413   fi
12414   shlibpath_var=LD_LIBRARY_PATH
12415   shlibpath_overrides_runpath=yes
12416   hardcode_into_libs=yes
12417   ;;
12418
12419 newsos6)
12420   version_type=linux # correct to gnu/linux during the next big refactor
12421   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422   shlibpath_var=LD_LIBRARY_PATH
12423   shlibpath_overrides_runpath=yes
12424   ;;
12425
12426 *nto* | *qnx*)
12427   version_type=qnx
12428   need_lib_prefix=no
12429   need_version=no
12430   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431   soname_spec='$libname$release$shared_ext$major'
12432   shlibpath_var=LD_LIBRARY_PATH
12433   shlibpath_overrides_runpath=no
12434   hardcode_into_libs=yes
12435   dynamic_linker='ldqnx.so'
12436   ;;
12437
12438 openbsd* | bitrig*)
12439   version_type=sunos
12440   sys_lib_dlsearch_path_spec=/usr/lib
12441   need_lib_prefix=no
12442   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12443     need_version=no
12444   else
12445     need_version=yes
12446   fi
12447   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12448   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12449   shlibpath_var=LD_LIBRARY_PATH
12450   shlibpath_overrides_runpath=yes
12451   ;;
12452
12453 os2*)
12454   libname_spec='$name'
12455   version_type=windows
12456   shrext_cmds=.dll
12457   need_version=no
12458   need_lib_prefix=no
12459   # OS/2 can only load a DLL with a base name of 8 characters or less.
12460   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12461     v=$($ECHO $release$versuffix | tr -d .-);
12462     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12463     $ECHO $n$v`$shared_ext'
12464   library_names_spec='${libname}_dll.$libext'
12465   dynamic_linker='OS/2 ld.exe'
12466   shlibpath_var=BEGINLIBPATH
12467   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12468   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12469   postinstall_cmds='base_file=`basename \$file`~
12470     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12471     dldir=$destdir/`dirname \$dlpath`~
12472     test -d \$dldir || mkdir -p \$dldir~
12473     $install_prog $dir/$dlname \$dldir/$dlname~
12474     chmod a+x \$dldir/$dlname~
12475     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12476       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12477     fi'
12478   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12479     dlpath=$dir/\$dldll~
12480     $RM \$dlpath'
12481   ;;
12482
12483 osf3* | osf4* | osf5*)
12484   version_type=osf
12485   need_lib_prefix=no
12486   need_version=no
12487   soname_spec='$libname$release$shared_ext$major'
12488   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489   shlibpath_var=LD_LIBRARY_PATH
12490   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12491   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12492   ;;
12493
12494 rdos*)
12495   dynamic_linker=no
12496   ;;
12497
12498 solaris*)
12499   version_type=linux # correct to gnu/linux during the next big refactor
12500   need_lib_prefix=no
12501   need_version=no
12502   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12503   soname_spec='$libname$release$shared_ext$major'
12504   shlibpath_var=LD_LIBRARY_PATH
12505   shlibpath_overrides_runpath=yes
12506   hardcode_into_libs=yes
12507   # ldd complains unless libraries are executable
12508   postinstall_cmds='chmod +x $lib'
12509   ;;
12510
12511 sunos4*)
12512   version_type=sunos
12513   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12514   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12515   shlibpath_var=LD_LIBRARY_PATH
12516   shlibpath_overrides_runpath=yes
12517   if test yes = "$with_gnu_ld"; then
12518     need_lib_prefix=no
12519   fi
12520   need_version=yes
12521   ;;
12522
12523 sysv4 | sysv4.3*)
12524   version_type=linux # correct to gnu/linux during the next big refactor
12525   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12526   soname_spec='$libname$release$shared_ext$major'
12527   shlibpath_var=LD_LIBRARY_PATH
12528   case $host_vendor in
12529     sni)
12530       shlibpath_overrides_runpath=no
12531       need_lib_prefix=no
12532       runpath_var=LD_RUN_PATH
12533       ;;
12534     siemens)
12535       need_lib_prefix=no
12536       ;;
12537     motorola)
12538       need_lib_prefix=no
12539       need_version=no
12540       shlibpath_overrides_runpath=no
12541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12542       ;;
12543   esac
12544   ;;
12545
12546 sysv4*MP*)
12547   if test -d /usr/nec; then
12548     version_type=linux # correct to gnu/linux during the next big refactor
12549     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12550     soname_spec='$libname$shared_ext.$major'
12551     shlibpath_var=LD_LIBRARY_PATH
12552   fi
12553   ;;
12554
12555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12556   version_type=sco
12557   need_lib_prefix=no
12558   need_version=no
12559   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12560   soname_spec='$libname$release$shared_ext$major'
12561   shlibpath_var=LD_LIBRARY_PATH
12562   shlibpath_overrides_runpath=yes
12563   hardcode_into_libs=yes
12564   if test yes = "$with_gnu_ld"; then
12565     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12566   else
12567     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12568     case $host_os in
12569       sco3.2v5*)
12570         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12571         ;;
12572     esac
12573   fi
12574   sys_lib_dlsearch_path_spec='/usr/lib'
12575   ;;
12576
12577 tpf*)
12578   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12579   version_type=linux # correct to gnu/linux during the next big refactor
12580   need_lib_prefix=no
12581   need_version=no
12582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583   shlibpath_var=LD_LIBRARY_PATH
12584   shlibpath_overrides_runpath=no
12585   hardcode_into_libs=yes
12586   ;;
12587
12588 uts4*)
12589   version_type=linux # correct to gnu/linux during the next big refactor
12590   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591   soname_spec='$libname$release$shared_ext$major'
12592   shlibpath_var=LD_LIBRARY_PATH
12593   ;;
12594
12595 *)
12596   dynamic_linker=no
12597   ;;
12598 esac
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12600 $as_echo "$dynamic_linker" >&6; }
12601 test no = "$dynamic_linker" && can_build_shared=no
12602
12603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12604 if test yes = "$GCC"; then
12605   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12606 fi
12607
12608 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12609   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12610 fi
12611
12612 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12613   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12614 fi
12615
12616 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12617 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12618
12619 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12620 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12621
12622 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12623 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12723 hardcode_action=
12724 if test -n "$hardcode_libdir_flag_spec" ||
12725    test -n "$runpath_var" ||
12726    test yes = "$hardcode_automatic"; then
12727
12728   # We can hardcode non-existent directories.
12729   if test no != "$hardcode_direct" &&
12730      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12731      # have to relink, otherwise we might link with an installed library
12732      # when we should be linking with a yet-to-be-installed one
12733      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12734      test no != "$hardcode_minus_L"; then
12735     # Linking always hardcodes the temporary library directory.
12736     hardcode_action=relink
12737   else
12738     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12739     hardcode_action=immediate
12740   fi
12741 else
12742   # We cannot hardcode anything, or else we can only hardcode existing
12743   # directories.
12744   hardcode_action=unsupported
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12747 $as_echo "$hardcode_action" >&6; }
12748
12749 if test relink = "$hardcode_action" ||
12750    test yes = "$inherit_rpath"; then
12751   # Fast installation is not supported
12752   enable_fast_install=no
12753 elif test yes = "$shlibpath_overrides_runpath" ||
12754      test no = "$enable_shared"; then
12755   # Fast installation is not necessary
12756   enable_fast_install=needless
12757 fi
12758
12759
12760
12761
12762
12763
12764   if test yes != "$enable_dlopen"; then
12765   enable_dlopen=unknown
12766   enable_dlopen_self=unknown
12767   enable_dlopen_self_static=unknown
12768 else
12769   lt_cv_dlopen=no
12770   lt_cv_dlopen_libs=
12771
12772   case $host_os in
12773   beos*)
12774     lt_cv_dlopen=load_add_on
12775     lt_cv_dlopen_libs=
12776     lt_cv_dlopen_self=yes
12777     ;;
12778
12779   mingw* | pw32* | cegcc*)
12780     lt_cv_dlopen=LoadLibrary
12781     lt_cv_dlopen_libs=
12782     ;;
12783
12784   cygwin*)
12785     lt_cv_dlopen=dlopen
12786     lt_cv_dlopen_libs=
12787     ;;
12788
12789   darwin*)
12790     # if libdl is installed we need to link against it
12791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12793 if ${ac_cv_lib_dl_dlopen+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ldl  $LIBS"
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800
12801 /* Override any GCC internal prototype to avoid an error.
12802    Use char because int might match the return type of a GCC
12803    builtin and then its argument prototype would still apply.  */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char dlopen ();
12808 int
12809 main ()
12810 {
12811 return dlopen ();
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817   ac_cv_lib_dl_dlopen=yes
12818 else
12819   ac_cv_lib_dl_dlopen=no
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822     conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12828   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12829 else
12830
12831     lt_cv_dlopen=dyld
12832     lt_cv_dlopen_libs=
12833     lt_cv_dlopen_self=yes
12834
12835 fi
12836
12837     ;;
12838
12839   tpf*)
12840     # Don't try to run any link tests for TPF.  We know it's impossible
12841     # because TPF is a cross-compiler, and we know how we open DSOs.
12842     lt_cv_dlopen=dlopen
12843     lt_cv_dlopen_libs=
12844     lt_cv_dlopen_self=no
12845     ;;
12846
12847   *)
12848     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12849 if test "x$ac_cv_func_shl_load" = xyes; then :
12850   lt_cv_dlopen=shl_load
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12853 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12854 if ${ac_cv_lib_dld_shl_load+:} false; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   ac_check_lib_save_LIBS=$LIBS
12858 LIBS="-ldld  $LIBS"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h.  */
12861
12862 /* Override any GCC internal prototype to avoid an error.
12863    Use char because int might match the return type of a GCC
12864    builtin and then its argument prototype would still apply.  */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char shl_load ();
12869 int
12870 main ()
12871 {
12872 return shl_load ();
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878   ac_cv_lib_dld_shl_load=yes
12879 else
12880   ac_cv_lib_dld_shl_load=no
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext \
12883     conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12887 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12888 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12889   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12890 else
12891   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12892 if test "x$ac_cv_func_dlopen" = xyes; then :
12893   lt_cv_dlopen=dlopen
12894 else
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12897 if ${ac_cv_lib_dl_dlopen+:} false; then :
12898   $as_echo_n "(cached) " >&6
12899 else
12900   ac_check_lib_save_LIBS=$LIBS
12901 LIBS="-ldl  $LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h.  */
12904
12905 /* Override any GCC internal prototype to avoid an error.
12906    Use char because int might match the return type of a GCC
12907    builtin and then its argument prototype would still apply.  */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char dlopen ();
12912 int
12913 main ()
12914 {
12915 return dlopen ();
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921   ac_cv_lib_dl_dlopen=yes
12922 else
12923   ac_cv_lib_dl_dlopen=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926     conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12930 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12931 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12932   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12933 else
12934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12935 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12936 if ${ac_cv_lib_svld_dlopen+:} false; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939   ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-lsvld  $LIBS"
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h.  */
12943
12944 /* Override any GCC internal prototype to avoid an error.
12945    Use char because int might match the return type of a GCC
12946    builtin and then its argument prototype would still apply.  */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 char dlopen ();
12951 int
12952 main ()
12953 {
12954 return dlopen ();
12955   ;
12956   return 0;
12957 }
12958 _ACEOF
12959 if ac_fn_c_try_link "$LINENO"; then :
12960   ac_cv_lib_svld_dlopen=yes
12961 else
12962   ac_cv_lib_svld_dlopen=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext \
12965     conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12969 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12970 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12971   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12972 else
12973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12974 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12975 if ${ac_cv_lib_dld_dld_link+:} false; then :
12976   $as_echo_n "(cached) " >&6
12977 else
12978   ac_check_lib_save_LIBS=$LIBS
12979 LIBS="-ldld  $LIBS"
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h.  */
12982
12983 /* Override any GCC internal prototype to avoid an error.
12984    Use char because int might match the return type of a GCC
12985    builtin and then its argument prototype would still apply.  */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 char dld_link ();
12990 int
12991 main ()
12992 {
12993 return dld_link ();
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_link "$LINENO"; then :
12999   ac_cv_lib_dld_dld_link=yes
13000 else
13001   ac_cv_lib_dld_dld_link=no
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext \
13004     conftest$ac_exeext conftest.$ac_ext
13005 LIBS=$ac_check_lib_save_LIBS
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13008 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13009 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13010   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13011 fi
13012
13013
13014 fi
13015
13016
13017 fi
13018
13019
13020 fi
13021
13022
13023 fi
13024
13025
13026 fi
13027
13028     ;;
13029   esac
13030
13031   if test no = "$lt_cv_dlopen"; then
13032     enable_dlopen=no
13033   else
13034     enable_dlopen=yes
13035   fi
13036
13037   case $lt_cv_dlopen in
13038   dlopen)
13039     save_CPPFLAGS=$CPPFLAGS
13040     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13041
13042     save_LDFLAGS=$LDFLAGS
13043     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13044
13045     save_LIBS=$LIBS
13046     LIBS="$lt_cv_dlopen_libs $LIBS"
13047
13048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13049 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13050 if ${lt_cv_dlopen_self+:} false; then :
13051   $as_echo_n "(cached) " >&6
13052 else
13053           if test yes = "$cross_compiling"; then :
13054   lt_cv_dlopen_self=cross
13055 else
13056   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13057   lt_status=$lt_dlunknown
13058   cat > conftest.$ac_ext <<_LT_EOF
13059 #line $LINENO "configure"
13060 #include "confdefs.h"
13061
13062 #if HAVE_DLFCN_H
13063 #include <dlfcn.h>
13064 #endif
13065
13066 #include <stdio.h>
13067
13068 #ifdef RTLD_GLOBAL
13069 #  define LT_DLGLOBAL           RTLD_GLOBAL
13070 #else
13071 #  ifdef DL_GLOBAL
13072 #    define LT_DLGLOBAL         DL_GLOBAL
13073 #  else
13074 #    define LT_DLGLOBAL         0
13075 #  endif
13076 #endif
13077
13078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13079    find out it does not work in some platform. */
13080 #ifndef LT_DLLAZY_OR_NOW
13081 #  ifdef RTLD_LAZY
13082 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13083 #  else
13084 #    ifdef DL_LAZY
13085 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13086 #    else
13087 #      ifdef RTLD_NOW
13088 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13089 #      else
13090 #        ifdef DL_NOW
13091 #          define LT_DLLAZY_OR_NOW      DL_NOW
13092 #        else
13093 #          define LT_DLLAZY_OR_NOW      0
13094 #        endif
13095 #      endif
13096 #    endif
13097 #  endif
13098 #endif
13099
13100 /* When -fvisibility=hidden is used, assume the code has been annotated
13101    correspondingly for the symbols needed.  */
13102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13103 int fnord () __attribute__((visibility("default")));
13104 #endif
13105
13106 int fnord () { return 42; }
13107 int main ()
13108 {
13109   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13110   int status = $lt_dlunknown;
13111
13112   if (self)
13113     {
13114       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13115       else
13116         {
13117           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13118           else puts (dlerror ());
13119         }
13120       /* dlclose (self); */
13121     }
13122   else
13123     puts (dlerror ());
13124
13125   return status;
13126 }
13127 _LT_EOF
13128   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13129   (eval $ac_link) 2>&5
13130   ac_status=$?
13131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13133     (./conftest; exit; ) >&5 2>/dev/null
13134     lt_status=$?
13135     case x$lt_status in
13136       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13137       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13138       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13139     esac
13140   else :
13141     # compilation failed
13142     lt_cv_dlopen_self=no
13143   fi
13144 fi
13145 rm -fr conftest*
13146
13147
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13150 $as_echo "$lt_cv_dlopen_self" >&6; }
13151
13152     if test yes = "$lt_cv_dlopen_self"; then
13153       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13154       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13155 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13156 if ${lt_cv_dlopen_self_static+:} false; then :
13157   $as_echo_n "(cached) " >&6
13158 else
13159           if test yes = "$cross_compiling"; then :
13160   lt_cv_dlopen_self_static=cross
13161 else
13162   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13163   lt_status=$lt_dlunknown
13164   cat > conftest.$ac_ext <<_LT_EOF
13165 #line $LINENO "configure"
13166 #include "confdefs.h"
13167
13168 #if HAVE_DLFCN_H
13169 #include <dlfcn.h>
13170 #endif
13171
13172 #include <stdio.h>
13173
13174 #ifdef RTLD_GLOBAL
13175 #  define LT_DLGLOBAL           RTLD_GLOBAL
13176 #else
13177 #  ifdef DL_GLOBAL
13178 #    define LT_DLGLOBAL         DL_GLOBAL
13179 #  else
13180 #    define LT_DLGLOBAL         0
13181 #  endif
13182 #endif
13183
13184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13185    find out it does not work in some platform. */
13186 #ifndef LT_DLLAZY_OR_NOW
13187 #  ifdef RTLD_LAZY
13188 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13189 #  else
13190 #    ifdef DL_LAZY
13191 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13192 #    else
13193 #      ifdef RTLD_NOW
13194 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13195 #      else
13196 #        ifdef DL_NOW
13197 #          define LT_DLLAZY_OR_NOW      DL_NOW
13198 #        else
13199 #          define LT_DLLAZY_OR_NOW      0
13200 #        endif
13201 #      endif
13202 #    endif
13203 #  endif
13204 #endif
13205
13206 /* When -fvisibility=hidden is used, assume the code has been annotated
13207    correspondingly for the symbols needed.  */
13208 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13209 int fnord () __attribute__((visibility("default")));
13210 #endif
13211
13212 int fnord () { return 42; }
13213 int main ()
13214 {
13215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13216   int status = $lt_dlunknown;
13217
13218   if (self)
13219     {
13220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13221       else
13222         {
13223           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13224           else puts (dlerror ());
13225         }
13226       /* dlclose (self); */
13227     }
13228   else
13229     puts (dlerror ());
13230
13231   return status;
13232 }
13233 _LT_EOF
13234   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13235   (eval $ac_link) 2>&5
13236   ac_status=$?
13237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13239     (./conftest; exit; ) >&5 2>/dev/null
13240     lt_status=$?
13241     case x$lt_status in
13242       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13243       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13244       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13245     esac
13246   else :
13247     # compilation failed
13248     lt_cv_dlopen_self_static=no
13249   fi
13250 fi
13251 rm -fr conftest*
13252
13253
13254 fi
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13256 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13257     fi
13258
13259     CPPFLAGS=$save_CPPFLAGS
13260     LDFLAGS=$save_LDFLAGS
13261     LIBS=$save_LIBS
13262     ;;
13263   esac
13264
13265   case $lt_cv_dlopen_self in
13266   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13267   *) enable_dlopen_self=unknown ;;
13268   esac
13269
13270   case $lt_cv_dlopen_self_static in
13271   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13272   *) enable_dlopen_self_static=unknown ;;
13273   esac
13274 fi
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292 striplib=
13293 old_striplib=
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13295 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13296 if test -z "$STRIP"; then
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299 else
13300   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13301     old_striplib="$STRIP --strip-debug"
13302     striplib="$STRIP --strip-unneeded"
13303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13305   else
13306     case $host_os in
13307     darwin*)
13308       # FIXME - insert some real tests, host_os isn't really good enough
13309       striplib="$STRIP -x"
13310       old_striplib="$STRIP -S"
13311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13313       ;;
13314     freebsd*)
13315       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13316         old_striplib="$STRIP --strip-debug"
13317         striplib="$STRIP --strip-unneeded"
13318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13319 $as_echo "yes" >&6; }
13320       else
13321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13323       fi
13324       ;;
13325     *)
13326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328       ;;
13329     esac
13330   fi
13331 fi
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344   # Report what library types will actually be built
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13346 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13348 $as_echo "$can_build_shared" >&6; }
13349
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13351 $as_echo_n "checking whether to build shared libraries... " >&6; }
13352   test no = "$can_build_shared" && enable_shared=no
13353
13354   # On AIX, shared libraries and static libraries use the same namespace, and
13355   # are all built from PIC.
13356   case $host_os in
13357   aix3*)
13358     test yes = "$enable_shared" && enable_static=no
13359     if test -n "$RANLIB"; then
13360       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13361       postinstall_cmds='$RANLIB $lib'
13362     fi
13363     ;;
13364
13365   aix[4-9]*)
13366     if test ia64 != "$host_cpu"; then
13367       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13368       yes,aix,yes) ;;                   # shared object as lib.so file only
13369       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13370       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13371       esac
13372     fi
13373     ;;
13374   esac
13375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13376 $as_echo "$enable_shared" >&6; }
13377
13378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13379 $as_echo_n "checking whether to build static libraries... " >&6; }
13380   # Make sure either enable_shared or enable_static is yes.
13381   test yes = "$enable_shared" || enable_static=yes
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13383 $as_echo "$enable_static" >&6; }
13384
13385
13386
13387
13388 fi
13389 ac_ext=c
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394
13395 CC=$lt_save_CC
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411         ac_config_commands="$ac_config_commands libtool"
13412
13413
13414
13415
13416 # Only expand once:
13417
13418
13419
13420 # Check for programs
13421 ac_ext=c
13422 ac_cpp='$CPP $CPPFLAGS'
13423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426 if test -n "$ac_tool_prefix"; then
13427   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_prog_CC+:} false; then :
13432   $as_echo_n "(cached) " >&6
13433 else
13434   if test -n "$CC"; then
13435   ac_cv_prog_CC="$CC" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13439 do
13440   IFS=$as_save_IFS
13441   test -z "$as_dir" && as_dir=.
13442     for ac_exec_ext in '' $ac_executable_extensions; do
13443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446     break 2
13447   fi
13448 done
13449   done
13450 IFS=$as_save_IFS
13451
13452 fi
13453 fi
13454 CC=$ac_cv_prog_CC
13455 if test -n "$CC"; then
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13457 $as_echo "$CC" >&6; }
13458 else
13459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13461 fi
13462
13463
13464 fi
13465 if test -z "$ac_cv_prog_CC"; then
13466   ac_ct_CC=$CC
13467   # Extract the first word of "gcc", so it can be a program name with args.
13468 set dummy gcc; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13472   $as_echo_n "(cached) " >&6
13473 else
13474   if test -n "$ac_ct_CC"; then
13475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13476 else
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13479 do
13480   IFS=$as_save_IFS
13481   test -z "$as_dir" && as_dir=.
13482     for ac_exec_ext in '' $ac_executable_extensions; do
13483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13484     ac_cv_prog_ac_ct_CC="gcc"
13485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486     break 2
13487   fi
13488 done
13489   done
13490 IFS=$as_save_IFS
13491
13492 fi
13493 fi
13494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13495 if test -n "$ac_ct_CC"; then
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13497 $as_echo "$ac_ct_CC" >&6; }
13498 else
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13501 fi
13502
13503   if test "x$ac_ct_CC" = x; then
13504     CC=""
13505   else
13506     case $cross_compiling:$ac_tool_warned in
13507 yes:)
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13510 ac_tool_warned=yes ;;
13511 esac
13512     CC=$ac_ct_CC
13513   fi
13514 else
13515   CC="$ac_cv_prog_CC"
13516 fi
13517
13518 if test -z "$CC"; then
13519           if test -n "$ac_tool_prefix"; then
13520     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13521 set dummy ${ac_tool_prefix}cc; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_CC+:} false; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   if test -n "$CC"; then
13528   ac_cv_prog_CC="$CC" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533   IFS=$as_save_IFS
13534   test -z "$as_dir" && as_dir=.
13535     for ac_exec_ext in '' $ac_executable_extensions; do
13536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537     ac_cv_prog_CC="${ac_tool_prefix}cc"
13538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539     break 2
13540   fi
13541 done
13542   done
13543 IFS=$as_save_IFS
13544
13545 fi
13546 fi
13547 CC=$ac_cv_prog_CC
13548 if test -n "$CC"; then
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13550 $as_echo "$CC" >&6; }
13551 else
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554 fi
13555
13556
13557   fi
13558 fi
13559 if test -z "$CC"; then
13560   # Extract the first word of "cc", so it can be a program name with args.
13561 set dummy cc; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if ${ac_cv_prog_CC+:} false; then :
13565   $as_echo_n "(cached) " >&6
13566 else
13567   if test -n "$CC"; then
13568   ac_cv_prog_CC="$CC" # Let the user override the test.
13569 else
13570   ac_prog_rejected=no
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13579        ac_prog_rejected=yes
13580        continue
13581      fi
13582     ac_cv_prog_CC="cc"
13583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584     break 2
13585   fi
13586 done
13587   done
13588 IFS=$as_save_IFS
13589
13590 if test $ac_prog_rejected = yes; then
13591   # We found a bogon in the path, so make sure we never use it.
13592   set dummy $ac_cv_prog_CC
13593   shift
13594   if test $# != 0; then
13595     # We chose a different compiler from the bogus one.
13596     # However, it has the same basename, so the bogon will be chosen
13597     # first if we set CC to just the basename; use the full file name.
13598     shift
13599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13600   fi
13601 fi
13602 fi
13603 fi
13604 CC=$ac_cv_prog_CC
13605 if test -n "$CC"; then
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13607 $as_echo "$CC" >&6; }
13608 else
13609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611 fi
13612
13613
13614 fi
13615 if test -z "$CC"; then
13616   if test -n "$ac_tool_prefix"; then
13617   for ac_prog in cl.exe
13618   do
13619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if ${ac_cv_prog_CC+:} false; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626   if test -n "$CC"; then
13627   ac_cv_prog_CC="$CC" # Let the user override the test.
13628 else
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13631 do
13632   IFS=$as_save_IFS
13633   test -z "$as_dir" && as_dir=.
13634     for ac_exec_ext in '' $ac_executable_extensions; do
13635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638     break 2
13639   fi
13640 done
13641   done
13642 IFS=$as_save_IFS
13643
13644 fi
13645 fi
13646 CC=$ac_cv_prog_CC
13647 if test -n "$CC"; then
13648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13649 $as_echo "$CC" >&6; }
13650 else
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 fi
13654
13655
13656     test -n "$CC" && break
13657   done
13658 fi
13659 if test -z "$CC"; then
13660   ac_ct_CC=$CC
13661   for ac_prog in cl.exe
13662 do
13663   # Extract the first word of "$ac_prog", so it can be a program name with args.
13664 set dummy $ac_prog; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13668   $as_echo_n "(cached) " >&6
13669 else
13670   if test -n "$ac_ct_CC"; then
13671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676   IFS=$as_save_IFS
13677   test -z "$as_dir" && as_dir=.
13678     for ac_exec_ext in '' $ac_executable_extensions; do
13679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13680     ac_cv_prog_ac_ct_CC="$ac_prog"
13681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682     break 2
13683   fi
13684 done
13685   done
13686 IFS=$as_save_IFS
13687
13688 fi
13689 fi
13690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13691 if test -n "$ac_ct_CC"; then
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13693 $as_echo "$ac_ct_CC" >&6; }
13694 else
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699
13700   test -n "$ac_ct_CC" && break
13701 done
13702
13703   if test "x$ac_ct_CC" = x; then
13704     CC=""
13705   else
13706     case $cross_compiling:$ac_tool_warned in
13707 yes:)
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710 ac_tool_warned=yes ;;
13711 esac
13712     CC=$ac_ct_CC
13713   fi
13714 fi
13715
13716 fi
13717
13718
13719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13721 as_fn_error $? "no acceptable C compiler found in \$PATH
13722 See \`config.log' for more details" "$LINENO" 5; }
13723
13724 # Provide some information about the compiler.
13725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13726 set X $ac_compile
13727 ac_compiler=$2
13728 for ac_option in --version -v -V -qversion; do
13729   { { ac_try="$ac_compiler $ac_option >&5"
13730 case "(($ac_try" in
13731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732   *) ac_try_echo=$ac_try;;
13733 esac
13734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13735 $as_echo "$ac_try_echo"; } >&5
13736   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13737   ac_status=$?
13738   if test -s conftest.err; then
13739     sed '10a\
13740 ... rest of stderr output deleted ...
13741          10q' conftest.err >conftest.er1
13742     cat conftest.er1 >&5
13743   fi
13744   rm -f conftest.er1 conftest.err
13745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746   test $ac_status = 0; }
13747 done
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13750 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13751 if ${ac_cv_c_compiler_gnu+:} false; then :
13752   $as_echo_n "(cached) " >&6
13753 else
13754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h.  */
13756
13757 int
13758 main ()
13759 {
13760 #ifndef __GNUC__
13761        choke me
13762 #endif
13763
13764   ;
13765   return 0;
13766 }
13767 _ACEOF
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769   ac_compiler_gnu=yes
13770 else
13771   ac_compiler_gnu=no
13772 fi
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13775
13776 fi
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13778 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13779 if test $ac_compiler_gnu = yes; then
13780   GCC=yes
13781 else
13782   GCC=
13783 fi
13784 ac_test_CFLAGS=${CFLAGS+set}
13785 ac_save_CFLAGS=$CFLAGS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13787 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13788 if ${ac_cv_prog_cc_g+:} false; then :
13789   $as_echo_n "(cached) " >&6
13790 else
13791   ac_save_c_werror_flag=$ac_c_werror_flag
13792    ac_c_werror_flag=yes
13793    ac_cv_prog_cc_g=no
13794    CFLAGS="-g"
13795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h.  */
13797
13798 int
13799 main ()
13800 {
13801
13802   ;
13803   return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807   ac_cv_prog_cc_g=yes
13808 else
13809   CFLAGS=""
13810       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h.  */
13812
13813 int
13814 main ()
13815 {
13816
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822
13823 else
13824   ac_c_werror_flag=$ac_save_c_werror_flag
13825          CFLAGS="-g"
13826          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h.  */
13828
13829 int
13830 main ()
13831 {
13832
13833   ;
13834   return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838   ac_cv_prog_cc_g=yes
13839 fi
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845    ac_c_werror_flag=$ac_save_c_werror_flag
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13848 $as_echo "$ac_cv_prog_cc_g" >&6; }
13849 if test "$ac_test_CFLAGS" = set; then
13850   CFLAGS=$ac_save_CFLAGS
13851 elif test $ac_cv_prog_cc_g = yes; then
13852   if test "$GCC" = yes; then
13853     CFLAGS="-g -O2"
13854   else
13855     CFLAGS="-g"
13856   fi
13857 else
13858   if test "$GCC" = yes; then
13859     CFLAGS="-O2"
13860   else
13861     CFLAGS=
13862   fi
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13866 if ${ac_cv_prog_cc_c89+:} false; then :
13867   $as_echo_n "(cached) " >&6
13868 else
13869   ac_cv_prog_cc_c89=no
13870 ac_save_CC=$CC
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #include <stdarg.h>
13874 #include <stdio.h>
13875 struct stat;
13876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13877 struct buf { int x; };
13878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13879 static char *e (p, i)
13880      char **p;
13881      int i;
13882 {
13883   return p[i];
13884 }
13885 static char *f (char * (*g) (char **, int), char **p, ...)
13886 {
13887   char *s;
13888   va_list v;
13889   va_start (v,p);
13890   s = g (p, va_arg (v,int));
13891   va_end (v);
13892   return s;
13893 }
13894
13895 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13896    function prototypes and stuff, but not '\xHH' hex character constants.
13897    These don't provoke an error unfortunately, instead are silently treated
13898    as 'x'.  The following induces an error, until -std is added to get
13899    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13900    array size at least.  It's necessary to write '\x00'==0 to get something
13901    that's true only with -std.  */
13902 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13903
13904 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13905    inside strings and character constants.  */
13906 #define FOO(x) 'x'
13907 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13908
13909 int test (int i, double x);
13910 struct s1 {int (*f) (int a);};
13911 struct s2 {int (*f) (double a);};
13912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13913 int argc;
13914 char **argv;
13915 int
13916 main ()
13917 {
13918 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13924         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13925 do
13926   CC="$ac_save_CC $ac_arg"
13927   if ac_fn_c_try_compile "$LINENO"; then :
13928   ac_cv_prog_cc_c89=$ac_arg
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext
13931   test "x$ac_cv_prog_cc_c89" != "xno" && break
13932 done
13933 rm -f conftest.$ac_ext
13934 CC=$ac_save_CC
13935
13936 fi
13937 # AC_CACHE_VAL
13938 case "x$ac_cv_prog_cc_c89" in
13939   x)
13940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13941 $as_echo "none needed" >&6; } ;;
13942   xno)
13943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13944 $as_echo "unsupported" >&6; } ;;
13945   *)
13946     CC="$CC $ac_cv_prog_cc_c89"
13947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13948 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13949 esac
13950 if test "x$ac_cv_prog_cc_c89" != xno; then :
13951
13952 fi
13953
13954 ac_ext=c
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13959
13960 ac_ext=c
13961 ac_cpp='$CPP $CPPFLAGS'
13962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13966 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13967 if ${am_cv_prog_cc_c_o+:} false; then :
13968   $as_echo_n "(cached) " >&6
13969 else
13970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h.  */
13972
13973 int
13974 main ()
13975 {
13976
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981   # Make sure it works both with $CC and with simple cc.
13982   # Following AC_PROG_CC_C_O, we do the test twice because some
13983   # compilers refuse to overwrite an existing .o file with -o,
13984   # though they will create one.
13985   am_cv_prog_cc_c_o=yes
13986   for am_i in 1 2; do
13987     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13988    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13989    ac_status=$?
13990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991    (exit $ac_status); } \
13992          && test -f conftest2.$ac_objext; then
13993       : OK
13994     else
13995       am_cv_prog_cc_c_o=no
13996       break
13997     fi
13998   done
13999   rm -f core conftest*
14000   unset am_i
14001 fi
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14003 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14004 if test "$am_cv_prog_cc_c_o" != yes; then
14005    # Losing compiler, so override with the script.
14006    # FIXME: It is wrong to rewrite CC.
14007    # But if we don't then we get into trouble of one sort or another.
14008    # A longer-term fix would be to have automake use am__CC in this case,
14009    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14010    CC="$am_aux_dir/compile $CC"
14011 fi
14012 ac_ext=c
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
14018
14019 depcc="$CC"   am_compiler_list=
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14022 $as_echo_n "checking dependency style of $depcc... " >&6; }
14023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14027   # We make a subdir and do the tests there.  Otherwise we can end up
14028   # making bogus files that we don't know about and never remove.  For
14029   # instance it was reported that on HP-UX the gcc test will end up
14030   # making a dummy file named 'D' -- because '-MD' means "put the output
14031   # in D".
14032   rm -rf conftest.dir
14033   mkdir conftest.dir
14034   # Copy depcomp to subdir because otherwise we won't find it if we're
14035   # using a relative directory.
14036   cp "$am_depcomp" conftest.dir
14037   cd conftest.dir
14038   # We will build objects and dependencies in a subdirectory because
14039   # it helps to detect inapplicable dependency modes.  For instance
14040   # both Tru64's cc and ICC support -MD to output dependencies as a
14041   # side effect of compilation, but ICC will put the dependencies in
14042   # the current directory while Tru64 will put them in the object
14043   # directory.
14044   mkdir sub
14045
14046   am_cv_CC_dependencies_compiler_type=none
14047   if test "$am_compiler_list" = ""; then
14048      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14049   fi
14050   am__universal=false
14051   case " $depcc " in #(
14052      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14053      esac
14054
14055   for depmode in $am_compiler_list; do
14056     # Setup a source with many dependencies, because some compilers
14057     # like to wrap large dependency lists on column 80 (with \), and
14058     # we should not choose a depcomp mode which is confused by this.
14059     #
14060     # We need to recreate these files for each test, as the compiler may
14061     # overwrite some of them when testing with obscure command lines.
14062     # This happens at least with the AIX C compiler.
14063     : > sub/conftest.c
14064     for i in 1 2 3 4 5 6; do
14065       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14066       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14067       # Solaris 10 /bin/sh.
14068       echo '/* dummy */' > sub/conftst$i.h
14069     done
14070     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14071
14072     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14073     # mode.  It turns out that the SunPro C++ compiler does not properly
14074     # handle '-M -o', and we need to detect this.  Also, some Intel
14075     # versions had trouble with output in subdirs.
14076     am__obj=sub/conftest.${OBJEXT-o}
14077     am__minus_obj="-o $am__obj"
14078     case $depmode in
14079     gcc)
14080       # This depmode causes a compiler race in universal mode.
14081       test "$am__universal" = false || continue
14082       ;;
14083     nosideeffect)
14084       # After this tag, mechanisms are not by side-effect, so they'll
14085       # only be used when explicitly requested.
14086       if test "x$enable_dependency_tracking" = xyes; then
14087         continue
14088       else
14089         break
14090       fi
14091       ;;
14092     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14093       # This compiler won't grok '-c -o', but also, the minuso test has
14094       # not run yet.  These depmodes are late enough in the game, and
14095       # so weak that their functioning should not be impacted.
14096       am__obj=conftest.${OBJEXT-o}
14097       am__minus_obj=
14098       ;;
14099     none) break ;;
14100     esac
14101     if depmode=$depmode \
14102        source=sub/conftest.c object=$am__obj \
14103        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14104        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14105          >/dev/null 2>conftest.err &&
14106        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14107        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14108        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14109        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14110       # icc doesn't choke on unknown options, it will just issue warnings
14111       # or remarks (even with -Werror).  So we grep stderr for any message
14112       # that says an option was ignored or not supported.
14113       # When given -MP, icc 7.0 and 7.1 complain thusly:
14114       #   icc: Command line warning: ignoring option '-M'; no argument required
14115       # The diagnosis changed in icc 8.0:
14116       #   icc: Command line remark: option '-MP' not supported
14117       if (grep 'ignoring option' conftest.err ||
14118           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14119         am_cv_CC_dependencies_compiler_type=$depmode
14120         break
14121       fi
14122     fi
14123   done
14124
14125   cd ..
14126   rm -rf conftest.dir
14127 else
14128   am_cv_CC_dependencies_compiler_type=none
14129 fi
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14135
14136  if
14137   test "x$enable_dependency_tracking" != xno \
14138   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14139   am__fastdepCC_TRUE=
14140   am__fastdepCC_FALSE='#'
14141 else
14142   am__fastdepCC_TRUE='#'
14143   am__fastdepCC_FALSE=
14144 fi
14145
14146
14147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14148 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14149 if ${ac_cv_prog_cc_c99+:} false; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152   ac_cv_prog_cc_c99=no
14153 ac_save_CC=$CC
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h.  */
14156 #include <stdarg.h>
14157 #include <stdbool.h>
14158 #include <stdlib.h>
14159 #include <wchar.h>
14160 #include <stdio.h>
14161
14162 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14163 #define debug(...) fprintf (stderr, __VA_ARGS__)
14164 #define showlist(...) puts (#__VA_ARGS__)
14165 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14166 static void
14167 test_varargs_macros (void)
14168 {
14169   int x = 1234;
14170   int y = 5678;
14171   debug ("Flag");
14172   debug ("X = %d\n", x);
14173   showlist (The first, second, and third items.);
14174   report (x>y, "x is %d but y is %d", x, y);
14175 }
14176
14177 // Check long long types.
14178 #define BIG64 18446744073709551615ull
14179 #define BIG32 4294967295ul
14180 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14181 #if !BIG_OK
14182   your preprocessor is broken;
14183 #endif
14184 #if BIG_OK
14185 #else
14186   your preprocessor is broken;
14187 #endif
14188 static long long int bignum = -9223372036854775807LL;
14189 static unsigned long long int ubignum = BIG64;
14190
14191 struct incomplete_array
14192 {
14193   int datasize;
14194   double data[];
14195 };
14196
14197 struct named_init {
14198   int number;
14199   const wchar_t *name;
14200   double average;
14201 };
14202
14203 typedef const char *ccp;
14204
14205 static inline int
14206 test_restrict (ccp restrict text)
14207 {
14208   // See if C++-style comments work.
14209   // Iterate through items via the restricted pointer.
14210   // Also check for declarations in for loops.
14211   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14212     continue;
14213   return 0;
14214 }
14215
14216 // Check varargs and va_copy.
14217 static void
14218 test_varargs (const char *format, ...)
14219 {
14220   va_list args;
14221   va_start (args, format);
14222   va_list args_copy;
14223   va_copy (args_copy, args);
14224
14225   const char *str;
14226   int number;
14227   float fnumber;
14228
14229   while (*format)
14230     {
14231       switch (*format++)
14232         {
14233         case 's': // string
14234           str = va_arg (args_copy, const char *);
14235           break;
14236         case 'd': // int
14237           number = va_arg (args_copy, int);
14238           break;
14239         case 'f': // float
14240           fnumber = va_arg (args_copy, double);
14241           break;
14242         default:
14243           break;
14244         }
14245     }
14246   va_end (args_copy);
14247   va_end (args);
14248 }
14249
14250 int
14251 main ()
14252 {
14253
14254   // Check bool.
14255   _Bool success = false;
14256
14257   // Check restrict.
14258   if (test_restrict ("String literal") == 0)
14259     success = true;
14260   char *restrict newvar = "Another string";
14261
14262   // Check varargs.
14263   test_varargs ("s, d' f .", "string", 65, 34.234);
14264   test_varargs_macros ();
14265
14266   // Check flexible array members.
14267   struct incomplete_array *ia =
14268     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14269   ia->datasize = 10;
14270   for (int i = 0; i < ia->datasize; ++i)
14271     ia->data[i] = i * 1.234;
14272
14273   // Check named initializers.
14274   struct named_init ni = {
14275     .number = 34,
14276     .name = L"Test wide string",
14277     .average = 543.34343,
14278   };
14279
14280   ni.number = 58;
14281
14282   int dynamic_array[ni.number];
14283   dynamic_array[ni.number - 1] = 543;
14284
14285   // work around unused variable warnings
14286   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14287           || dynamic_array[ni.number - 1] != 543);
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14294 do
14295   CC="$ac_save_CC $ac_arg"
14296   if ac_fn_c_try_compile "$LINENO"; then :
14297   ac_cv_prog_cc_c99=$ac_arg
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext
14300   test "x$ac_cv_prog_cc_c99" != "xno" && break
14301 done
14302 rm -f conftest.$ac_ext
14303 CC=$ac_save_CC
14304
14305 fi
14306 # AC_CACHE_VAL
14307 case "x$ac_cv_prog_cc_c99" in
14308   x)
14309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14310 $as_echo "none needed" >&6; } ;;
14311   xno)
14312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14313 $as_echo "unsupported" >&6; } ;;
14314   *)
14315     CC="$CC $ac_cv_prog_cc_c99"
14316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14317 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14318 esac
14319 if test "x$ac_cv_prog_cc_c99" != xno; then :
14320
14321 fi
14322
14323
14324
14325 ac_ext=cpp
14326 ac_cpp='$CXXCPP $CPPFLAGS'
14327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14330 if test -z "$CXX"; then
14331   if test -n "$CCC"; then
14332     CXX=$CCC
14333   else
14334     if test -n "$ac_tool_prefix"; then
14335   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14336   do
14337     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_prog_CXX+:} false; then :
14342   $as_echo_n "(cached) " >&6
14343 else
14344   if test -n "$CXX"; then
14345   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14346 else
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14349 do
14350   IFS=$as_save_IFS
14351   test -z "$as_dir" && as_dir=.
14352     for ac_exec_ext in '' $ac_executable_extensions; do
14353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14356     break 2
14357   fi
14358 done
14359   done
14360 IFS=$as_save_IFS
14361
14362 fi
14363 fi
14364 CXX=$ac_cv_prog_CXX
14365 if test -n "$CXX"; then
14366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14367 $as_echo "$CXX" >&6; }
14368 else
14369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14371 fi
14372
14373
14374     test -n "$CXX" && break
14375   done
14376 fi
14377 if test -z "$CXX"; then
14378   ac_ct_CXX=$CXX
14379   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14380 do
14381   # Extract the first word of "$ac_prog", so it can be a program name with args.
14382 set dummy $ac_prog; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14386   $as_echo_n "(cached) " >&6
14387 else
14388   if test -n "$ac_ct_CXX"; then
14389   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394   IFS=$as_save_IFS
14395   test -z "$as_dir" && as_dir=.
14396     for ac_exec_ext in '' $ac_executable_extensions; do
14397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398     ac_cv_prog_ac_ct_CXX="$ac_prog"
14399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400     break 2
14401   fi
14402 done
14403   done
14404 IFS=$as_save_IFS
14405
14406 fi
14407 fi
14408 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14409 if test -n "$ac_ct_CXX"; then
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14411 $as_echo "$ac_ct_CXX" >&6; }
14412 else
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14415 fi
14416
14417
14418   test -n "$ac_ct_CXX" && break
14419 done
14420
14421   if test "x$ac_ct_CXX" = x; then
14422     CXX="g++"
14423   else
14424     case $cross_compiling:$ac_tool_warned in
14425 yes:)
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14428 ac_tool_warned=yes ;;
14429 esac
14430     CXX=$ac_ct_CXX
14431   fi
14432 fi
14433
14434   fi
14435 fi
14436 # Provide some information about the compiler.
14437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14438 set X $ac_compile
14439 ac_compiler=$2
14440 for ac_option in --version -v -V -qversion; do
14441   { { ac_try="$ac_compiler $ac_option >&5"
14442 case "(($ac_try" in
14443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444   *) ac_try_echo=$ac_try;;
14445 esac
14446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14447 $as_echo "$ac_try_echo"; } >&5
14448   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14449   ac_status=$?
14450   if test -s conftest.err; then
14451     sed '10a\
14452 ... rest of stderr output deleted ...
14453          10q' conftest.err >conftest.er1
14454     cat conftest.er1 >&5
14455   fi
14456   rm -f conftest.er1 conftest.err
14457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458   test $ac_status = 0; }
14459 done
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14463 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14464   $as_echo_n "(cached) " >&6
14465 else
14466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h.  */
14468
14469 int
14470 main ()
14471 {
14472 #ifndef __GNUC__
14473        choke me
14474 #endif
14475
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_cxx_try_compile "$LINENO"; then :
14481   ac_compiler_gnu=yes
14482 else
14483   ac_compiler_gnu=no
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14487
14488 fi
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14490 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14491 if test $ac_compiler_gnu = yes; then
14492   GXX=yes
14493 else
14494   GXX=
14495 fi
14496 ac_test_CXXFLAGS=${CXXFLAGS+set}
14497 ac_save_CXXFLAGS=$CXXFLAGS
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14499 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14500 if ${ac_cv_prog_cxx_g+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14504    ac_cxx_werror_flag=yes
14505    ac_cv_prog_cxx_g=no
14506    CXXFLAGS="-g"
14507    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h.  */
14509
14510 int
14511 main ()
14512 {
14513
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 if ac_fn_cxx_try_compile "$LINENO"; then :
14519   ac_cv_prog_cxx_g=yes
14520 else
14521   CXXFLAGS=""
14522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h.  */
14524
14525 int
14526 main ()
14527 {
14528
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_cxx_try_compile "$LINENO"; then :
14534
14535 else
14536   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14537          CXXFLAGS="-g"
14538          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h.  */
14540
14541 int
14542 main ()
14543 {
14544
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_cxx_try_compile "$LINENO"; then :
14550   ac_cv_prog_cxx_g=yes
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14558 fi
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14560 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14561 if test "$ac_test_CXXFLAGS" = set; then
14562   CXXFLAGS=$ac_save_CXXFLAGS
14563 elif test $ac_cv_prog_cxx_g = yes; then
14564   if test "$GXX" = yes; then
14565     CXXFLAGS="-g -O2"
14566   else
14567     CXXFLAGS="-g"
14568   fi
14569 else
14570   if test "$GXX" = yes; then
14571     CXXFLAGS="-O2"
14572   else
14573     CXXFLAGS=
14574   fi
14575 fi
14576 ac_ext=c
14577 ac_cpp='$CPP $CPPFLAGS'
14578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14581
14582 depcc="$CXX"  am_compiler_list=
14583
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14585 $as_echo_n "checking dependency style of $depcc... " >&6; }
14586 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14587   $as_echo_n "(cached) " >&6
14588 else
14589   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14590   # We make a subdir and do the tests there.  Otherwise we can end up
14591   # making bogus files that we don't know about and never remove.  For
14592   # instance it was reported that on HP-UX the gcc test will end up
14593   # making a dummy file named 'D' -- because '-MD' means "put the output
14594   # in D".
14595   rm -rf conftest.dir
14596   mkdir conftest.dir
14597   # Copy depcomp to subdir because otherwise we won't find it if we're
14598   # using a relative directory.
14599   cp "$am_depcomp" conftest.dir
14600   cd conftest.dir
14601   # We will build objects and dependencies in a subdirectory because
14602   # it helps to detect inapplicable dependency modes.  For instance
14603   # both Tru64's cc and ICC support -MD to output dependencies as a
14604   # side effect of compilation, but ICC will put the dependencies in
14605   # the current directory while Tru64 will put them in the object
14606   # directory.
14607   mkdir sub
14608
14609   am_cv_CXX_dependencies_compiler_type=none
14610   if test "$am_compiler_list" = ""; then
14611      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14612   fi
14613   am__universal=false
14614   case " $depcc " in #(
14615      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14616      esac
14617
14618   for depmode in $am_compiler_list; do
14619     # Setup a source with many dependencies, because some compilers
14620     # like to wrap large dependency lists on column 80 (with \), and
14621     # we should not choose a depcomp mode which is confused by this.
14622     #
14623     # We need to recreate these files for each test, as the compiler may
14624     # overwrite some of them when testing with obscure command lines.
14625     # This happens at least with the AIX C compiler.
14626     : > sub/conftest.c
14627     for i in 1 2 3 4 5 6; do
14628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14629       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14630       # Solaris 10 /bin/sh.
14631       echo '/* dummy */' > sub/conftst$i.h
14632     done
14633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14634
14635     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14636     # mode.  It turns out that the SunPro C++ compiler does not properly
14637     # handle '-M -o', and we need to detect this.  Also, some Intel
14638     # versions had trouble with output in subdirs.
14639     am__obj=sub/conftest.${OBJEXT-o}
14640     am__minus_obj="-o $am__obj"
14641     case $depmode in
14642     gcc)
14643       # This depmode causes a compiler race in universal mode.
14644       test "$am__universal" = false || continue
14645       ;;
14646     nosideeffect)
14647       # After this tag, mechanisms are not by side-effect, so they'll
14648       # only be used when explicitly requested.
14649       if test "x$enable_dependency_tracking" = xyes; then
14650         continue
14651       else
14652         break
14653       fi
14654       ;;
14655     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14656       # This compiler won't grok '-c -o', but also, the minuso test has
14657       # not run yet.  These depmodes are late enough in the game, and
14658       # so weak that their functioning should not be impacted.
14659       am__obj=conftest.${OBJEXT-o}
14660       am__minus_obj=
14661       ;;
14662     none) break ;;
14663     esac
14664     if depmode=$depmode \
14665        source=sub/conftest.c object=$am__obj \
14666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14667        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14668          >/dev/null 2>conftest.err &&
14669        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14670        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14671        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14672        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14673       # icc doesn't choke on unknown options, it will just issue warnings
14674       # or remarks (even with -Werror).  So we grep stderr for any message
14675       # that says an option was ignored or not supported.
14676       # When given -MP, icc 7.0 and 7.1 complain thusly:
14677       #   icc: Command line warning: ignoring option '-M'; no argument required
14678       # The diagnosis changed in icc 8.0:
14679       #   icc: Command line remark: option '-MP' not supported
14680       if (grep 'ignoring option' conftest.err ||
14681           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14682         am_cv_CXX_dependencies_compiler_type=$depmode
14683         break
14684       fi
14685     fi
14686   done
14687
14688   cd ..
14689   rm -rf conftest.dir
14690 else
14691   am_cv_CXX_dependencies_compiler_type=none
14692 fi
14693
14694 fi
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14696 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14698
14699  if
14700   test "x$enable_dependency_tracking" != xno \
14701   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14702   am__fastdepCXX_TRUE=
14703   am__fastdepCXX_FALSE='#'
14704 else
14705   am__fastdepCXX_TRUE='#'
14706   am__fastdepCXX_FALSE=
14707 fi
14708
14709
14710
14711
14712 func_stripname_cnf ()
14713 {
14714   case $2 in
14715   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14716   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14717   esac
14718 } # func_stripname_cnf
14719
14720       if test -n "$CXX" && ( test no != "$CXX" &&
14721     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14722     (test g++ != "$CXX"))); then
14723   ac_ext=cpp
14724 ac_cpp='$CXXCPP $CPPFLAGS'
14725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14729 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14730 if test -z "$CXXCPP"; then
14731   if ${ac_cv_prog_CXXCPP+:} false; then :
14732   $as_echo_n "(cached) " >&6
14733 else
14734       # Double quotes because CXXCPP needs to be expanded
14735     for CXXCPP in "$CXX -E" "/lib/cpp"
14736     do
14737       ac_preproc_ok=false
14738 for ac_cxx_preproc_warn_flag in '' yes
14739 do
14740   # Use a header file that comes with gcc, so configuring glibc
14741   # with a fresh cross-compiler works.
14742   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14743   # <limits.h> exists even on freestanding compilers.
14744   # On the NeXT, cc -E runs the code through the compiler's parser,
14745   # not just through cpp. "Syntax error" is here to catch this case.
14746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h.  */
14748 #ifdef __STDC__
14749 # include <limits.h>
14750 #else
14751 # include <assert.h>
14752 #endif
14753                      Syntax error
14754 _ACEOF
14755 if ac_fn_cxx_try_cpp "$LINENO"; then :
14756
14757 else
14758   # Broken: fails on valid input.
14759 continue
14760 fi
14761 rm -f conftest.err conftest.i conftest.$ac_ext
14762
14763   # OK, works on sane cases.  Now check whether nonexistent headers
14764   # can be detected and how.
14765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h.  */
14767 #include <ac_nonexistent.h>
14768 _ACEOF
14769 if ac_fn_cxx_try_cpp "$LINENO"; then :
14770   # Broken: success on invalid input.
14771 continue
14772 else
14773   # Passes both tests.
14774 ac_preproc_ok=:
14775 break
14776 fi
14777 rm -f conftest.err conftest.i conftest.$ac_ext
14778
14779 done
14780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14781 rm -f conftest.i conftest.err conftest.$ac_ext
14782 if $ac_preproc_ok; then :
14783   break
14784 fi
14785
14786     done
14787     ac_cv_prog_CXXCPP=$CXXCPP
14788
14789 fi
14790   CXXCPP=$ac_cv_prog_CXXCPP
14791 else
14792   ac_cv_prog_CXXCPP=$CXXCPP
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14795 $as_echo "$CXXCPP" >&6; }
14796 ac_preproc_ok=false
14797 for ac_cxx_preproc_warn_flag in '' yes
14798 do
14799   # Use a header file that comes with gcc, so configuring glibc
14800   # with a fresh cross-compiler works.
14801   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14802   # <limits.h> exists even on freestanding compilers.
14803   # On the NeXT, cc -E runs the code through the compiler's parser,
14804   # not just through cpp. "Syntax error" is here to catch this case.
14805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h.  */
14807 #ifdef __STDC__
14808 # include <limits.h>
14809 #else
14810 # include <assert.h>
14811 #endif
14812                      Syntax error
14813 _ACEOF
14814 if ac_fn_cxx_try_cpp "$LINENO"; then :
14815
14816 else
14817   # Broken: fails on valid input.
14818 continue
14819 fi
14820 rm -f conftest.err conftest.i conftest.$ac_ext
14821
14822   # OK, works on sane cases.  Now check whether nonexistent headers
14823   # can be detected and how.
14824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h.  */
14826 #include <ac_nonexistent.h>
14827 _ACEOF
14828 if ac_fn_cxx_try_cpp "$LINENO"; then :
14829   # Broken: success on invalid input.
14830 continue
14831 else
14832   # Passes both tests.
14833 ac_preproc_ok=:
14834 break
14835 fi
14836 rm -f conftest.err conftest.i conftest.$ac_ext
14837
14838 done
14839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14840 rm -f conftest.i conftest.err conftest.$ac_ext
14841 if $ac_preproc_ok; then :
14842
14843 else
14844   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14847 See \`config.log' for more details" "$LINENO" 5; }
14848 fi
14849
14850 ac_ext=c
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
14856 else
14857   _lt_caught_CXX_error=yes
14858 fi
14859
14860 ac_ext=cpp
14861 ac_cpp='$CXXCPP $CPPFLAGS'
14862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14865
14866 archive_cmds_need_lc_CXX=no
14867 allow_undefined_flag_CXX=
14868 always_export_symbols_CXX=no
14869 archive_expsym_cmds_CXX=
14870 compiler_needs_object_CXX=no
14871 export_dynamic_flag_spec_CXX=
14872 hardcode_direct_CXX=no
14873 hardcode_direct_absolute_CXX=no
14874 hardcode_libdir_flag_spec_CXX=
14875 hardcode_libdir_separator_CXX=
14876 hardcode_minus_L_CXX=no
14877 hardcode_shlibpath_var_CXX=unsupported
14878 hardcode_automatic_CXX=no
14879 inherit_rpath_CXX=no
14880 module_cmds_CXX=
14881 module_expsym_cmds_CXX=
14882 link_all_deplibs_CXX=unknown
14883 old_archive_cmds_CXX=$old_archive_cmds
14884 reload_flag_CXX=$reload_flag
14885 reload_cmds_CXX=$reload_cmds
14886 no_undefined_flag_CXX=
14887 whole_archive_flag_spec_CXX=
14888 enable_shared_with_static_runtimes_CXX=no
14889
14890 # Source file extension for C++ test sources.
14891 ac_ext=cpp
14892
14893 # Object file extension for compiled C++ test sources.
14894 objext=o
14895 objext_CXX=$objext
14896
14897 # No sense in running all these tests if we already determined that
14898 # the CXX compiler isn't working.  Some variables (like enable_shared)
14899 # are currently assumed to apply to all compilers on this platform,
14900 # and will be corrupted by setting them based on a non-working compiler.
14901 if test yes != "$_lt_caught_CXX_error"; then
14902   # Code to be used in simple compile tests
14903   lt_simple_compile_test_code="int some_variable = 0;"
14904
14905   # Code to be used in simple link tests
14906   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14907
14908   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14909
14910
14911
14912
14913
14914
14915 # If no C compiler was specified, use CC.
14916 LTCC=${LTCC-"$CC"}
14917
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14920
14921 # Allow CC to be a program name with arguments.
14922 compiler=$CC
14923
14924
14925   # save warnings/boilerplate of simple test code
14926   ac_outfile=conftest.$ac_objext
14927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14929 _lt_compiler_boilerplate=`cat conftest.err`
14930 $RM conftest*
14931
14932   ac_outfile=conftest.$ac_objext
14933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14935 _lt_linker_boilerplate=`cat conftest.err`
14936 $RM -r conftest*
14937
14938
14939   # Allow CC to be a program name with arguments.
14940   lt_save_CC=$CC
14941   lt_save_CFLAGS=$CFLAGS
14942   lt_save_LD=$LD
14943   lt_save_GCC=$GCC
14944   GCC=$GXX
14945   lt_save_with_gnu_ld=$with_gnu_ld
14946   lt_save_path_LD=$lt_cv_path_LD
14947   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14948     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14949   else
14950     $as_unset lt_cv_prog_gnu_ld
14951   fi
14952   if test -n "${lt_cv_path_LDCXX+set}"; then
14953     lt_cv_path_LD=$lt_cv_path_LDCXX
14954   else
14955     $as_unset lt_cv_path_LD
14956   fi
14957   test -z "${LDCXX+set}" || LD=$LDCXX
14958   CC=${CXX-"c++"}
14959   CFLAGS=$CXXFLAGS
14960   compiler=$CC
14961   compiler_CXX=$CC
14962   func_cc_basename $compiler
14963 cc_basename=$func_cc_basename_result
14964
14965
14966   if test -n "$compiler"; then
14967     # We don't want -fno-exception when compiling C++ code, so set the
14968     # no_builtin_flag separately
14969     if test yes = "$GXX"; then
14970       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14971     else
14972       lt_prog_compiler_no_builtin_flag_CXX=
14973     fi
14974
14975     if test yes = "$GXX"; then
14976       # Set up default GNU C++ configuration
14977
14978
14979
14980 # Check whether --with-gnu-ld was given.
14981 if test "${with_gnu_ld+set}" = set; then :
14982   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14983 else
14984   with_gnu_ld=no
14985 fi
14986
14987 ac_prog=ld
14988 if test yes = "$GCC"; then
14989   # Check if gcc -print-prog-name=ld gives a path.
14990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14991 $as_echo_n "checking for ld used by $CC... " >&6; }
14992   case $host in
14993   *-*-mingw*)
14994     # gcc leaves a trailing carriage return, which upsets mingw
14995     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14996   *)
14997     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14998   esac
14999   case $ac_prog in
15000     # Accept absolute paths.
15001     [\\/]* | ?:[\\/]*)
15002       re_direlt='/[^/][^/]*/\.\./'
15003       # Canonicalize the pathname of ld
15004       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15005       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15006         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15007       done
15008       test -z "$LD" && LD=$ac_prog
15009       ;;
15010   "")
15011     # If it fails, then pretend we aren't using GCC.
15012     ac_prog=ld
15013     ;;
15014   *)
15015     # If it is relative, then search for the first ld in PATH.
15016     with_gnu_ld=unknown
15017     ;;
15018   esac
15019 elif test yes = "$with_gnu_ld"; then
15020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15021 $as_echo_n "checking for GNU ld... " >&6; }
15022 else
15023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15024 $as_echo_n "checking for non-GNU ld... " >&6; }
15025 fi
15026 if ${lt_cv_path_LD+:} false; then :
15027   $as_echo_n "(cached) " >&6
15028 else
15029   if test -z "$LD"; then
15030   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15031   for ac_dir in $PATH; do
15032     IFS=$lt_save_ifs
15033     test -z "$ac_dir" && ac_dir=.
15034     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15035       lt_cv_path_LD=$ac_dir/$ac_prog
15036       # Check to see if the program is GNU ld.  I'd rather use --version,
15037       # but apparently some variants of GNU ld only accept -v.
15038       # Break only if it was the GNU/non-GNU ld that we prefer.
15039       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15040       *GNU* | *'with BFD'*)
15041         test no != "$with_gnu_ld" && break
15042         ;;
15043       *)
15044         test yes != "$with_gnu_ld" && break
15045         ;;
15046       esac
15047     fi
15048   done
15049   IFS=$lt_save_ifs
15050 else
15051   lt_cv_path_LD=$LD # Let the user override the test with a path.
15052 fi
15053 fi
15054
15055 LD=$lt_cv_path_LD
15056 if test -n "$LD"; then
15057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15058 $as_echo "$LD" >&6; }
15059 else
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15062 fi
15063 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15066 if ${lt_cv_prog_gnu_ld+:} false; then :
15067   $as_echo_n "(cached) " >&6
15068 else
15069   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15070 case `$LD -v 2>&1 </dev/null` in
15071 *GNU* | *'with BFD'*)
15072   lt_cv_prog_gnu_ld=yes
15073   ;;
15074 *)
15075   lt_cv_prog_gnu_ld=no
15076   ;;
15077 esac
15078 fi
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15081 with_gnu_ld=$lt_cv_prog_gnu_ld
15082
15083
15084
15085
15086
15087
15088
15089       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15090       # archiving commands below assume that GNU ld is being used.
15091       if test yes = "$with_gnu_ld"; then
15092         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15093         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'
15094
15095         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15096         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15097
15098         # If archive_cmds runs LD, not CC, wlarc should be empty
15099         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15100         #     investigate it a little bit more. (MM)
15101         wlarc='$wl'
15102
15103         # ancient GNU ld didn't support --whole-archive et. al.
15104         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15105           $GREP 'no-whole-archive' > /dev/null; then
15106           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15107         else
15108           whole_archive_flag_spec_CXX=
15109         fi
15110       else
15111         with_gnu_ld=no
15112         wlarc=
15113
15114         # A generic and very simple default shared library creation
15115         # command for GNU C++ for the case where it uses the native
15116         # linker, instead of GNU ld.  If possible, this setting should
15117         # overridden to take advantage of the native linker features on
15118         # the platform it is being used on.
15119         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15120       fi
15121
15122       # Commands to make compiler produce verbose output that lists
15123       # what "hidden" libraries, object files and flags are used when
15124       # linking a shared library.
15125       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15126
15127     else
15128       GXX=no
15129       with_gnu_ld=no
15130       wlarc=
15131     fi
15132
15133     # PORTME: fill in a description of your system's C++ link characteristics
15134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15136     ld_shlibs_CXX=yes
15137     case $host_os in
15138       aix3*)
15139         # FIXME: insert proper C++ library support
15140         ld_shlibs_CXX=no
15141         ;;
15142       aix[4-9]*)
15143         if test ia64 = "$host_cpu"; then
15144           # On IA64, the linker does run time linking by default, so we don't
15145           # have to do anything special.
15146           aix_use_runtimelinking=no
15147           exp_sym_flag='-Bexport'
15148           no_entry_flag=
15149         else
15150           aix_use_runtimelinking=no
15151
15152           # Test if we are trying to use run time linking or normal
15153           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15154           # have runtime linking enabled, and use it for executables.
15155           # For shared libraries, we enable/disable runtime linking
15156           # depending on the kind of the shared library created -
15157           # when "with_aix_soname,aix_use_runtimelinking" is:
15158           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15159           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15160           #            lib.a           static archive
15161           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15162           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15163           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15164           #            lib.a(lib.so.V) shared, rtl:no
15165           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15166           #            lib.a           static archive
15167           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15168             for ld_flag in $LDFLAGS; do
15169               case $ld_flag in
15170               *-brtl*)
15171                 aix_use_runtimelinking=yes
15172                 break
15173                 ;;
15174               esac
15175             done
15176             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15177               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15178               # so we don't have lib.a shared libs to link our executables.
15179               # We have to force runtime linking in this case.
15180               aix_use_runtimelinking=yes
15181               LDFLAGS="$LDFLAGS -Wl,-brtl"
15182             fi
15183             ;;
15184           esac
15185
15186           exp_sym_flag='-bexport'
15187           no_entry_flag='-bnoentry'
15188         fi
15189
15190         # When large executables or shared objects are built, AIX ld can
15191         # have problems creating the table of contents.  If linking a library
15192         # or program results in "error TOC overflow" add -mminimal-toc to
15193         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15194         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15195
15196         archive_cmds_CXX=''
15197         hardcode_direct_CXX=yes
15198         hardcode_direct_absolute_CXX=yes
15199         hardcode_libdir_separator_CXX=':'
15200         link_all_deplibs_CXX=yes
15201         file_list_spec_CXX='$wl-f,'
15202         case $with_aix_soname,$aix_use_runtimelinking in
15203         aix,*) ;;       # no import file
15204         svr4,* | *,yes) # use import file
15205           # The Import File defines what to hardcode.
15206           hardcode_direct_CXX=no
15207           hardcode_direct_absolute_CXX=no
15208           ;;
15209         esac
15210
15211         if test yes = "$GXX"; then
15212           case $host_os in aix4.[012]|aix4.[012].*)
15213           # We only want to do this on AIX 4.2 and lower, the check
15214           # below for broken collect2 doesn't work under 4.3+
15215           collect2name=`$CC -print-prog-name=collect2`
15216           if test -f "$collect2name" &&
15217              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15218           then
15219             # We have reworked collect2
15220             :
15221           else
15222             # We have old collect2
15223             hardcode_direct_CXX=unsupported
15224             # It fails to find uninstalled libraries when the uninstalled
15225             # path is not listed in the libpath.  Setting hardcode_minus_L
15226             # to unsupported forces relinking
15227             hardcode_minus_L_CXX=yes
15228             hardcode_libdir_flag_spec_CXX='-L$libdir'
15229             hardcode_libdir_separator_CXX=
15230           fi
15231           esac
15232           shared_flag='-shared'
15233           if test yes = "$aix_use_runtimelinking"; then
15234             shared_flag=$shared_flag' $wl-G'
15235           fi
15236           # Need to ensure runtime linking is disabled for the traditional
15237           # shared library, or the linker may eventually find shared libraries
15238           # /with/ Import File - we do not want to mix them.
15239           shared_flag_aix='-shared'
15240           shared_flag_svr4='-shared $wl-G'
15241         else
15242           # not using gcc
15243           if test ia64 = "$host_cpu"; then
15244           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15245           # chokes on -Wl,-G. The following line is correct:
15246           shared_flag='-G'
15247           else
15248             if test yes = "$aix_use_runtimelinking"; then
15249               shared_flag='$wl-G'
15250             else
15251               shared_flag='$wl-bM:SRE'
15252             fi
15253             shared_flag_aix='$wl-bM:SRE'
15254             shared_flag_svr4='$wl-G'
15255           fi
15256         fi
15257
15258         export_dynamic_flag_spec_CXX='$wl-bexpall'
15259         # It seems that -bexpall does not export symbols beginning with
15260         # underscore (_), so it is better to generate a list of symbols to
15261         # export.
15262         always_export_symbols_CXX=yes
15263         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15264           # Warning - without using the other runtime loading flags (-brtl),
15265           # -berok will link without error, but may produce a broken library.
15266           # The "-G" linker flag allows undefined symbols.
15267           no_undefined_flag_CXX='-bernotok'
15268           # Determine the default libpath from the value encoded in an empty
15269           # executable.
15270           if test set = "${lt_cv_aix_libpath+set}"; then
15271   aix_libpath=$lt_cv_aix_libpath
15272 else
15273   if ${lt_cv_aix_libpath__CXX+:} false; then :
15274   $as_echo_n "(cached) " >&6
15275 else
15276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h.  */
15278
15279 int
15280 main ()
15281 {
15282
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_cxx_try_link "$LINENO"; then :
15288
15289   lt_aix_libpath_sed='
15290       /Import File Strings/,/^$/ {
15291           /^0/ {
15292               s/^0  *\([^ ]*\) *$/\1/
15293               p
15294           }
15295       }'
15296   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15297   # Check for a 64-bit object if we didn't find anything.
15298   if test -z "$lt_cv_aix_libpath__CXX"; then
15299     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15300   fi
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext \
15303     conftest$ac_exeext conftest.$ac_ext
15304   if test -z "$lt_cv_aix_libpath__CXX"; then
15305     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15306   fi
15307
15308 fi
15309
15310   aix_libpath=$lt_cv_aix_libpath__CXX
15311 fi
15312
15313           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15314
15315           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
15316         else
15317           if test ia64 = "$host_cpu"; then
15318             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15319             allow_undefined_flag_CXX="-z nodefs"
15320             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"
15321           else
15322             # Determine the default libpath from the value encoded in an
15323             # empty executable.
15324             if test set = "${lt_cv_aix_libpath+set}"; then
15325   aix_libpath=$lt_cv_aix_libpath
15326 else
15327   if ${lt_cv_aix_libpath__CXX+:} false; then :
15328   $as_echo_n "(cached) " >&6
15329 else
15330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h.  */
15332
15333 int
15334 main ()
15335 {
15336
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_cxx_try_link "$LINENO"; then :
15342
15343   lt_aix_libpath_sed='
15344       /Import File Strings/,/^$/ {
15345           /^0/ {
15346               s/^0  *\([^ ]*\) *$/\1/
15347               p
15348           }
15349       }'
15350   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15351   # Check for a 64-bit object if we didn't find anything.
15352   if test -z "$lt_cv_aix_libpath__CXX"; then
15353     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15354   fi
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext \
15357     conftest$ac_exeext conftest.$ac_ext
15358   if test -z "$lt_cv_aix_libpath__CXX"; then
15359     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15360   fi
15361
15362 fi
15363
15364   aix_libpath=$lt_cv_aix_libpath__CXX
15365 fi
15366
15367             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15368             # Warning - without using the other run time loading flags,
15369             # -berok will link without error, but may produce a broken library.
15370             no_undefined_flag_CXX=' $wl-bernotok'
15371             allow_undefined_flag_CXX=' $wl-berok'
15372             if test yes = "$with_gnu_ld"; then
15373               # We only use this code for GNU lds that support --whole-archive.
15374               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15375             else
15376               # Exported symbols can be pulled into shared objects from archives
15377               whole_archive_flag_spec_CXX='$convenience'
15378             fi
15379             archive_cmds_need_lc_CXX=yes
15380             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15381             # -brtl affects multiple linker settings, -berok does not and is overridden later
15382             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15383             if test svr4 != "$with_aix_soname"; then
15384               # This is similar to how AIX traditionally builds its shared
15385               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15386               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'
15387             fi
15388             if test aix != "$with_aix_soname"; then
15389               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'
15390             else
15391               # used by -dlpreopen to get the symbols
15392               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15393             fi
15394             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15395           fi
15396         fi
15397         ;;
15398
15399       beos*)
15400         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15401           allow_undefined_flag_CXX=unsupported
15402           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15403           # support --undefined.  This deserves some investigation.  FIXME
15404           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15405         else
15406           ld_shlibs_CXX=no
15407         fi
15408         ;;
15409
15410       chorus*)
15411         case $cc_basename in
15412           *)
15413           # FIXME: insert proper C++ library support
15414           ld_shlibs_CXX=no
15415           ;;
15416         esac
15417         ;;
15418
15419       cygwin* | mingw* | pw32* | cegcc*)
15420         case $GXX,$cc_basename in
15421         ,cl* | no,cl* | ,icl* | no,icl*)
15422           # Native MSVC or ICC
15423           # hardcode_libdir_flag_spec is actually meaningless, as there is
15424           # no search path for DLLs.
15425           hardcode_libdir_flag_spec_CXX=' '
15426           allow_undefined_flag_CXX=unsupported
15427           always_export_symbols_CXX=yes
15428           file_list_spec_CXX='@'
15429           # Tell ltmain to make .lib files, not .a files.
15430           libext=lib
15431           # Tell ltmain to make .dll files, not .so files.
15432           shrext_cmds=.dll
15433           # FIXME: Setting linknames here is a bad hack.
15434           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15435           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15436               cp "$export_symbols" "$output_objdir/$soname.def";
15437               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15438             else
15439               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15440             fi~
15441             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15442             linknames='
15443           # The linker will not automatically build a static lib if we build a DLL.
15444           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15445           enable_shared_with_static_runtimes_CXX=yes
15446           # Don't use ranlib
15447           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15448           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15449             lt_tool_outputfile="@TOOL_OUTPUT@"~
15450             case $lt_outputfile in
15451               *.exe|*.EXE) ;;
15452               *)
15453                 lt_outputfile=$lt_outputfile.exe
15454                 lt_tool_outputfile=$lt_tool_outputfile.exe
15455                 ;;
15456             esac~
15457             func_to_tool_file "$lt_outputfile"~
15458             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15459               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15460               $RM "$lt_outputfile.manifest";
15461             fi'
15462           ;;
15463         *)
15464           # g++
15465           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15466           # as there is no search path for DLLs.
15467           hardcode_libdir_flag_spec_CXX='-L$libdir'
15468           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15469           allow_undefined_flag_CXX=unsupported
15470           always_export_symbols_CXX=no
15471           enable_shared_with_static_runtimes_CXX=yes
15472
15473           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15474             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'
15475             # If the export-symbols file already is a .def file, use it as
15476             # is; otherwise, prepend EXPORTS...
15477             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15478               cp $export_symbols $output_objdir/$soname.def;
15479             else
15480               echo EXPORTS > $output_objdir/$soname.def;
15481               cat $export_symbols >> $output_objdir/$soname.def;
15482             fi~
15483             $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'
15484           else
15485             ld_shlibs_CXX=no
15486           fi
15487           ;;
15488         esac
15489         ;;
15490       darwin* | rhapsody*)
15491
15492
15493   archive_cmds_need_lc_CXX=no
15494   hardcode_direct_CXX=no
15495   hardcode_automatic_CXX=yes
15496   hardcode_shlibpath_var_CXX=unsupported
15497   if test yes = "$lt_cv_ld_force_load"; then
15498     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\"`'
15499
15500   else
15501     whole_archive_flag_spec_CXX=''
15502   fi
15503   link_all_deplibs_CXX=yes
15504   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15505   case $cc_basename in
15506      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15507      *) _lt_dar_can_shared=$GCC ;;
15508   esac
15509   if test yes = "$_lt_dar_can_shared"; then
15510     output_verbose_link_cmd=func_echo_all
15511     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"
15512     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15513     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"
15514     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"
15515        if test yes != "$lt_cv_apple_cc_single_mod"; then
15516       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"
15517       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"
15518     fi
15519
15520   else
15521   ld_shlibs_CXX=no
15522   fi
15523
15524         ;;
15525
15526       os2*)
15527         hardcode_libdir_flag_spec_CXX='-L$libdir'
15528         hardcode_minus_L_CXX=yes
15529         allow_undefined_flag_CXX=unsupported
15530         shrext_cmds=.dll
15531         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15532           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15533           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15534           $ECHO EXPORTS >> $output_objdir/$libname.def~
15535           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15536           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15537           emximp -o $lib $output_objdir/$libname.def'
15538         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15539           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15540           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15541           $ECHO EXPORTS >> $output_objdir/$libname.def~
15542           prefix_cmds="$SED"~
15543           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15544             prefix_cmds="$prefix_cmds -e 1d";
15545           fi~
15546           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15547           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15548           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15549           emximp -o $lib $output_objdir/$libname.def'
15550         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15551         enable_shared_with_static_runtimes_CXX=yes
15552         file_list_spec_CXX='@'
15553         ;;
15554
15555       dgux*)
15556         case $cc_basename in
15557           ec++*)
15558             # FIXME: insert proper C++ library support
15559             ld_shlibs_CXX=no
15560             ;;
15561           ghcx*)
15562             # Green Hills C++ Compiler
15563             # FIXME: insert proper C++ library support
15564             ld_shlibs_CXX=no
15565             ;;
15566           *)
15567             # FIXME: insert proper C++ library support
15568             ld_shlibs_CXX=no
15569             ;;
15570         esac
15571         ;;
15572
15573       freebsd2.*)
15574         # C++ shared libraries reported to be fairly broken before
15575         # switch to ELF
15576         ld_shlibs_CXX=no
15577         ;;
15578
15579       freebsd-elf*)
15580         archive_cmds_need_lc_CXX=no
15581         ;;
15582
15583       freebsd* | dragonfly*)
15584         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15585         # conventions
15586         ld_shlibs_CXX=yes
15587         ;;
15588
15589       haiku*)
15590         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15591         link_all_deplibs_CXX=yes
15592         ;;
15593
15594       hpux9*)
15595         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15596         hardcode_libdir_separator_CXX=:
15597         export_dynamic_flag_spec_CXX='$wl-E'
15598         hardcode_direct_CXX=yes
15599         hardcode_minus_L_CXX=yes # Not in the search PATH,
15600                                              # but as the default
15601                                              # location of the library.
15602
15603         case $cc_basename in
15604           CC*)
15605             # FIXME: insert proper C++ library support
15606             ld_shlibs_CXX=no
15607             ;;
15608           aCC*)
15609             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'
15610             # Commands to make compiler produce verbose output that lists
15611             # what "hidden" libraries, object files and flags are used when
15612             # linking a shared library.
15613             #
15614             # There doesn't appear to be a way to prevent this compiler from
15615             # explicitly linking system object files so we need to strip them
15616             # from the output so that they don't get included in the library
15617             # dependencies.
15618             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"'
15619             ;;
15620           *)
15621             if test yes = "$GXX"; then
15622               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'
15623             else
15624               # FIXME: insert proper C++ library support
15625               ld_shlibs_CXX=no
15626             fi
15627             ;;
15628         esac
15629         ;;
15630
15631       hpux10*|hpux11*)
15632         if test no = "$with_gnu_ld"; then
15633           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15634           hardcode_libdir_separator_CXX=:
15635
15636           case $host_cpu in
15637             hppa*64*|ia64*)
15638               ;;
15639             *)
15640               export_dynamic_flag_spec_CXX='$wl-E'
15641               ;;
15642           esac
15643         fi
15644         case $host_cpu in
15645           hppa*64*|ia64*)
15646             hardcode_direct_CXX=no
15647             hardcode_shlibpath_var_CXX=no
15648             ;;
15649           *)
15650             hardcode_direct_CXX=yes
15651             hardcode_direct_absolute_CXX=yes
15652             hardcode_minus_L_CXX=yes # Not in the search PATH,
15653                                                  # but as the default
15654                                                  # location of the library.
15655             ;;
15656         esac
15657
15658         case $cc_basename in
15659           CC*)
15660             # FIXME: insert proper C++ library support
15661             ld_shlibs_CXX=no
15662             ;;
15663           aCC*)
15664             case $host_cpu in
15665               hppa*64*)
15666                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15667                 ;;
15668               ia64*)
15669                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15670                 ;;
15671               *)
15672                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15673                 ;;
15674             esac
15675             # Commands to make compiler produce verbose output that lists
15676             # what "hidden" libraries, object files and flags are used when
15677             # linking a shared library.
15678             #
15679             # There doesn't appear to be a way to prevent this compiler from
15680             # explicitly linking system object files so we need to strip them
15681             # from the output so that they don't get included in the library
15682             # dependencies.
15683             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"'
15684             ;;
15685           *)
15686             if test yes = "$GXX"; then
15687               if test no = "$with_gnu_ld"; then
15688                 case $host_cpu in
15689                   hppa*64*)
15690                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15691                     ;;
15692                   ia64*)
15693                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15694                     ;;
15695                   *)
15696                     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'
15697                     ;;
15698                 esac
15699               fi
15700             else
15701               # FIXME: insert proper C++ library support
15702               ld_shlibs_CXX=no
15703             fi
15704             ;;
15705         esac
15706         ;;
15707
15708       interix[3-9]*)
15709         hardcode_direct_CXX=no
15710         hardcode_shlibpath_var_CXX=no
15711         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15712         export_dynamic_flag_spec_CXX='$wl-E'
15713         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15714         # Instead, shared libraries are loaded at an image base (0x10000000 by
15715         # default) and relocated if they conflict, which is a slow very memory
15716         # consuming and fragmenting process.  To avoid this, we pick a random,
15717         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15718         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15719         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'
15720         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'
15721         ;;
15722       irix5* | irix6*)
15723         case $cc_basename in
15724           CC*)
15725             # SGI C++
15726             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'
15727
15728             # Archives containing C++ object files must be created using
15729             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15730             # necessary to make sure instantiated templates are included
15731             # in the archive.
15732             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15733             ;;
15734           *)
15735             if test yes = "$GXX"; then
15736               if test no = "$with_gnu_ld"; then
15737                 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'
15738               else
15739                 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'
15740               fi
15741             fi
15742             link_all_deplibs_CXX=yes
15743             ;;
15744         esac
15745         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15746         hardcode_libdir_separator_CXX=:
15747         inherit_rpath_CXX=yes
15748         ;;
15749
15750       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15751         case $cc_basename in
15752           KCC*)
15753             # Kuck and Associates, Inc. (KAI) C++ Compiler
15754
15755             # KCC will only create a shared library if the output file
15756             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15757             # to its proper name (with version) after linking.
15758             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'
15759             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'
15760             # Commands to make compiler produce verbose output that lists
15761             # what "hidden" libraries, object files and flags are used when
15762             # linking a shared library.
15763             #
15764             # There doesn't appear to be a way to prevent this compiler from
15765             # explicitly linking system object files so we need to strip them
15766             # from the output so that they don't get included in the library
15767             # dependencies.
15768             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"'
15769
15770             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15771             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15772
15773             # Archives containing C++ object files must be created using
15774             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15775             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15776             ;;
15777           icpc* | ecpc* )
15778             # Intel C++
15779             with_gnu_ld=yes
15780             # version 8.0 and above of icpc choke on multiply defined symbols
15781             # if we add $predep_objects and $postdep_objects, however 7.1 and
15782             # earlier do not add the objects themselves.
15783             case `$CC -V 2>&1` in
15784               *"Version 7."*)
15785                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15786                 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'
15787                 ;;
15788               *)  # Version 8.0 or newer
15789                 tmp_idyn=
15790                 case $host_cpu in
15791                   ia64*) tmp_idyn=' -i_dynamic';;
15792                 esac
15793                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15794                 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'
15795                 ;;
15796             esac
15797             archive_cmds_need_lc_CXX=no
15798             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15799             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15800             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15801             ;;
15802           pgCC* | pgcpp*)
15803             # Portland Group C++ compiler
15804             case `$CC -V` in
15805             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15806               prelink_cmds_CXX='tpldir=Template.dir~
15807                rm -rf $tpldir~
15808                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15809                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15810               old_archive_cmds_CXX='tpldir=Template.dir~
15811                 rm -rf $tpldir~
15812                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15813                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15814                 $RANLIB $oldlib'
15815               archive_cmds_CXX='tpldir=Template.dir~
15816                 rm -rf $tpldir~
15817                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15818                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15819               archive_expsym_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 $wl-retain-symbols-file $wl$export_symbols -o $lib'
15823               ;;
15824             *) # Version 6 and above use weak symbols
15825               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15826               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'
15827               ;;
15828             esac
15829
15830             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15831             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15832             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'
15833             ;;
15834           cxx*)
15835             # Compaq C++
15836             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15837             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'
15838
15839             runpath_var=LD_RUN_PATH
15840             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15841             hardcode_libdir_separator_CXX=:
15842
15843             # Commands to make compiler produce verbose output that lists
15844             # what "hidden" libraries, object files and flags are used when
15845             # linking a shared library.
15846             #
15847             # There doesn't appear to be a way to prevent this compiler from
15848             # explicitly linking system object files so we need to strip them
15849             # from the output so that they don't get included in the library
15850             # dependencies.
15851             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'
15852             ;;
15853           xl* | mpixl* | bgxl*)
15854             # IBM XL 8.0 on PPC, with GNU ld
15855             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15856             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15857             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15858             if test yes = "$supports_anon_versioning"; then
15859               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15860                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15861                 echo "local: *; };" >> $output_objdir/$libname.ver~
15862                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15863             fi
15864             ;;
15865           *)
15866             case `$CC -V 2>&1 | sed 5q` in
15867             *Sun\ C*)
15868               # Sun C++ 5.9
15869               no_undefined_flag_CXX=' -zdefs'
15870               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15871               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'
15872               hardcode_libdir_flag_spec_CXX='-R$libdir'
15873               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'
15874               compiler_needs_object_CXX=yes
15875
15876               # Not sure whether something based on
15877               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15878               # would be better.
15879               output_verbose_link_cmd='func_echo_all'
15880
15881               # Archives containing C++ object files must be created using
15882               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15883               # necessary to make sure instantiated templates are included
15884               # in the archive.
15885               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15886               ;;
15887             esac
15888             ;;
15889         esac
15890         ;;
15891
15892       lynxos*)
15893         # FIXME: insert proper C++ library support
15894         ld_shlibs_CXX=no
15895         ;;
15896
15897       m88k*)
15898         # FIXME: insert proper C++ library support
15899         ld_shlibs_CXX=no
15900         ;;
15901
15902       mvs*)
15903         case $cc_basename in
15904           cxx*)
15905             # FIXME: insert proper C++ library support
15906             ld_shlibs_CXX=no
15907             ;;
15908           *)
15909             # FIXME: insert proper C++ library support
15910             ld_shlibs_CXX=no
15911             ;;
15912         esac
15913         ;;
15914
15915       netbsd*)
15916         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15917           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15918           wlarc=
15919           hardcode_libdir_flag_spec_CXX='-R$libdir'
15920           hardcode_direct_CXX=yes
15921           hardcode_shlibpath_var_CXX=no
15922         fi
15923         # Workaround some broken pre-1.5 toolchains
15924         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15925         ;;
15926
15927       *nto* | *qnx*)
15928         ld_shlibs_CXX=yes
15929         ;;
15930
15931       openbsd* | bitrig*)
15932         if test -f /usr/libexec/ld.so; then
15933           hardcode_direct_CXX=yes
15934           hardcode_shlibpath_var_CXX=no
15935           hardcode_direct_absolute_CXX=yes
15936           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15937           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15938           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15939             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15940             export_dynamic_flag_spec_CXX='$wl-E'
15941             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15942           fi
15943           output_verbose_link_cmd=func_echo_all
15944         else
15945           ld_shlibs_CXX=no
15946         fi
15947         ;;
15948
15949       osf3* | osf4* | osf5*)
15950         case $cc_basename in
15951           KCC*)
15952             # Kuck and Associates, Inc. (KAI) C++ Compiler
15953
15954             # KCC will only create a shared library if the output file
15955             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15956             # to its proper name (with version) after linking.
15957             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'
15958
15959             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15960             hardcode_libdir_separator_CXX=:
15961
15962             # Archives containing C++ object files must be created using
15963             # the KAI C++ compiler.
15964             case $host in
15965               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15966               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15967             esac
15968             ;;
15969           RCC*)
15970             # Rational C++ 2.4.1
15971             # FIXME: insert proper C++ library support
15972             ld_shlibs_CXX=no
15973             ;;
15974           cxx*)
15975             case $host in
15976               osf3*)
15977                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15978                 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'
15979                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15980                 ;;
15981               *)
15982                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15983                 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'
15984                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15985                   echo "-hidden">> $lib.exp~
15986                   $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~
15987                   $RM $lib.exp'
15988                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15989                 ;;
15990             esac
15991
15992             hardcode_libdir_separator_CXX=:
15993
15994             # Commands to make compiler produce verbose output that lists
15995             # what "hidden" libraries, object files and flags are used when
15996             # linking a shared library.
15997             #
15998             # There doesn't appear to be a way to prevent this compiler from
15999             # explicitly linking system object files so we need to strip them
16000             # from the output so that they don't get included in the library
16001             # dependencies.
16002             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"'
16003             ;;
16004           *)
16005             if test yes,no = "$GXX,$with_gnu_ld"; then
16006               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16007               case $host in
16008                 osf3*)
16009                   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'
16010                   ;;
16011                 *)
16012                   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'
16013                   ;;
16014               esac
16015
16016               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16017               hardcode_libdir_separator_CXX=:
16018
16019               # Commands to make compiler produce verbose output that lists
16020               # what "hidden" libraries, object files and flags are used when
16021               # linking a shared library.
16022               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16023
16024             else
16025               # FIXME: insert proper C++ library support
16026               ld_shlibs_CXX=no
16027             fi
16028             ;;
16029         esac
16030         ;;
16031
16032       psos*)
16033         # FIXME: insert proper C++ library support
16034         ld_shlibs_CXX=no
16035         ;;
16036
16037       sunos4*)
16038         case $cc_basename in
16039           CC*)
16040             # Sun C++ 4.x
16041             # FIXME: insert proper C++ library support
16042             ld_shlibs_CXX=no
16043             ;;
16044           lcc*)
16045             # Lucid
16046             # FIXME: insert proper C++ library support
16047             ld_shlibs_CXX=no
16048             ;;
16049           *)
16050             # FIXME: insert proper C++ library support
16051             ld_shlibs_CXX=no
16052             ;;
16053         esac
16054         ;;
16055
16056       solaris*)
16057         case $cc_basename in
16058           CC* | sunCC*)
16059             # Sun C++ 4.2, 5.x and Centerline C++
16060             archive_cmds_need_lc_CXX=yes
16061             no_undefined_flag_CXX=' -zdefs'
16062             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16063             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16064               $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'
16065
16066             hardcode_libdir_flag_spec_CXX='-R$libdir'
16067             hardcode_shlibpath_var_CXX=no
16068             case $host_os in
16069               solaris2.[0-5] | solaris2.[0-5].*) ;;
16070               *)
16071                 # The compiler driver will combine and reorder linker options,
16072                 # but understands '-z linker_flag'.
16073                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16074                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16075                 ;;
16076             esac
16077             link_all_deplibs_CXX=yes
16078
16079             output_verbose_link_cmd='func_echo_all'
16080
16081             # Archives containing C++ object files must be created using
16082             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16083             # necessary to make sure instantiated templates are included
16084             # in the archive.
16085             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16086             ;;
16087           gcx*)
16088             # Green Hills C++ Compiler
16089             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16090
16091             # The C++ compiler must be used to create the archive.
16092             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16093             ;;
16094           *)
16095             # GNU C++ compiler with Solaris linker
16096             if test yes,no = "$GXX,$with_gnu_ld"; then
16097               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16098               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16099                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16100                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16101                   $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'
16102
16103                 # Commands to make compiler produce verbose output that lists
16104                 # what "hidden" libraries, object files and flags are used when
16105                 # linking a shared library.
16106                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16107               else
16108                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16109                 # platform.
16110                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16111                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16112                   $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'
16113
16114                 # Commands to make compiler produce verbose output that lists
16115                 # what "hidden" libraries, object files and flags are used when
16116                 # linking a shared library.
16117                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16118               fi
16119
16120               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16121               case $host_os in
16122                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16123                 *)
16124                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16125                   ;;
16126               esac
16127             fi
16128             ;;
16129         esac
16130         ;;
16131
16132     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16133       no_undefined_flag_CXX='$wl-z,text'
16134       archive_cmds_need_lc_CXX=no
16135       hardcode_shlibpath_var_CXX=no
16136       runpath_var='LD_RUN_PATH'
16137
16138       case $cc_basename in
16139         CC*)
16140           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142           ;;
16143         *)
16144           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146           ;;
16147       esac
16148       ;;
16149
16150       sysv5* | sco3.2v5* | sco5v6*)
16151         # Note: We CANNOT use -z defs as we might desire, because we do not
16152         # link with -lc, and that would cause any symbols used from libc to
16153         # always be unresolved, which means just about no library would
16154         # ever link correctly.  If we're not using GNU ld we use -z text
16155         # though, which does catch some bad symbols but isn't as heavy-handed
16156         # as -z defs.
16157         no_undefined_flag_CXX='$wl-z,text'
16158         allow_undefined_flag_CXX='$wl-z,nodefs'
16159         archive_cmds_need_lc_CXX=no
16160         hardcode_shlibpath_var_CXX=no
16161         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16162         hardcode_libdir_separator_CXX=':'
16163         link_all_deplibs_CXX=yes
16164         export_dynamic_flag_spec_CXX='$wl-Bexport'
16165         runpath_var='LD_RUN_PATH'
16166
16167         case $cc_basename in
16168           CC*)
16169             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16171             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16172               '"$old_archive_cmds_CXX"
16173             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16174               '"$reload_cmds_CXX"
16175             ;;
16176           *)
16177             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16178             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16179             ;;
16180         esac
16181       ;;
16182
16183       tandem*)
16184         case $cc_basename in
16185           NCC*)
16186             # NonStop-UX NCC 3.20
16187             # FIXME: insert proper C++ library support
16188             ld_shlibs_CXX=no
16189             ;;
16190           *)
16191             # FIXME: insert proper C++ library support
16192             ld_shlibs_CXX=no
16193             ;;
16194         esac
16195         ;;
16196
16197       vxworks*)
16198         # FIXME: insert proper C++ library support
16199         ld_shlibs_CXX=no
16200         ;;
16201
16202       *)
16203         # FIXME: insert proper C++ library support
16204         ld_shlibs_CXX=no
16205         ;;
16206     esac
16207
16208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16209 $as_echo "$ld_shlibs_CXX" >&6; }
16210     test no = "$ld_shlibs_CXX" && can_build_shared=no
16211
16212     GCC_CXX=$GXX
16213     LD_CXX=$LD
16214
16215     ## CAVEAT EMPTOR:
16216     ## There is no encapsulation within the following macros, do not change
16217     ## the running order or otherwise move them around unless you know exactly
16218     ## what you are doing...
16219     # Dependencies to place before and after the object being linked:
16220 predep_objects_CXX=
16221 postdep_objects_CXX=
16222 predeps_CXX=
16223 postdeps_CXX=
16224 compiler_lib_search_path_CXX=
16225
16226 cat > conftest.$ac_ext <<_LT_EOF
16227 class Foo
16228 {
16229 public:
16230   Foo (void) { a = 0; }
16231 private:
16232   int a;
16233 };
16234 _LT_EOF
16235
16236
16237 _lt_libdeps_save_CFLAGS=$CFLAGS
16238 case "$CC $CFLAGS " in #(
16239 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16240 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16241 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16242 esac
16243
16244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16245   (eval $ac_compile) 2>&5
16246   ac_status=$?
16247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16248   test $ac_status = 0; }; then
16249   # Parse the compiler output and extract the necessary
16250   # objects, libraries and library flags.
16251
16252   # Sentinel used to keep track of whether or not we are before
16253   # the conftest object file.
16254   pre_test_object_deps_done=no
16255
16256   for p in `eval "$output_verbose_link_cmd"`; do
16257     case $prev$p in
16258
16259     -L* | -R* | -l*)
16260        # Some compilers place space between "-{L,R}" and the path.
16261        # Remove the space.
16262        if test x-L = "$p" ||
16263           test x-R = "$p"; then
16264          prev=$p
16265          continue
16266        fi
16267
16268        # Expand the sysroot to ease extracting the directories later.
16269        if test -z "$prev"; then
16270          case $p in
16271          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16272          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16273          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16274          esac
16275        fi
16276        case $p in
16277        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16278        esac
16279        if test no = "$pre_test_object_deps_done"; then
16280          case $prev in
16281          -L | -R)
16282            # Internal compiler library paths should come after those
16283            # provided the user.  The postdeps already come after the
16284            # user supplied libs so there is no need to process them.
16285            if test -z "$compiler_lib_search_path_CXX"; then
16286              compiler_lib_search_path_CXX=$prev$p
16287            else
16288              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16289            fi
16290            ;;
16291          # The "-l" case would never come before the object being
16292          # linked, so don't bother handling this case.
16293          esac
16294        else
16295          if test -z "$postdeps_CXX"; then
16296            postdeps_CXX=$prev$p
16297          else
16298            postdeps_CXX="${postdeps_CXX} $prev$p"
16299          fi
16300        fi
16301        prev=
16302        ;;
16303
16304     *.lto.$objext) ;; # Ignore GCC LTO objects
16305     *.$objext)
16306        # This assumes that the test object file only shows up
16307        # once in the compiler output.
16308        if test "$p" = "conftest.$objext"; then
16309          pre_test_object_deps_done=yes
16310          continue
16311        fi
16312
16313        if test no = "$pre_test_object_deps_done"; then
16314          if test -z "$predep_objects_CXX"; then
16315            predep_objects_CXX=$p
16316          else
16317            predep_objects_CXX="$predep_objects_CXX $p"
16318          fi
16319        else
16320          if test -z "$postdep_objects_CXX"; then
16321            postdep_objects_CXX=$p
16322          else
16323            postdep_objects_CXX="$postdep_objects_CXX $p"
16324          fi
16325        fi
16326        ;;
16327
16328     *) ;; # Ignore the rest.
16329
16330     esac
16331   done
16332
16333   # Clean up.
16334   rm -f a.out a.exe
16335 else
16336   echo "libtool.m4: error: problem compiling CXX test program"
16337 fi
16338
16339 $RM -f confest.$objext
16340 CFLAGS=$_lt_libdeps_save_CFLAGS
16341
16342 # PORTME: override above test on systems where it is broken
16343 case $host_os in
16344 interix[3-9]*)
16345   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16346   # hack all around it, let's just trust "g++" to DTRT.
16347   predep_objects_CXX=
16348   postdep_objects_CXX=
16349   postdeps_CXX=
16350   ;;
16351 esac
16352
16353
16354 case " $postdeps_CXX " in
16355 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16356 esac
16357  compiler_lib_search_dirs_CXX=
16358 if test -n "${compiler_lib_search_path_CXX}"; then
16359  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16360 fi
16361
16362
16363
16364
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     lt_prog_compiler_wl_CXX=
16393 lt_prog_compiler_pic_CXX=
16394 lt_prog_compiler_static_CXX=
16395
16396
16397   # C++ specific cases for pic, static, wl, etc.
16398   if test yes = "$GXX"; then
16399     lt_prog_compiler_wl_CXX='-Wl,'
16400     lt_prog_compiler_static_CXX='-static'
16401
16402     case $host_os in
16403     aix*)
16404       # All AIX code is PIC.
16405       if test ia64 = "$host_cpu"; then
16406         # AIX 5 now supports IA64 processor
16407         lt_prog_compiler_static_CXX='-Bstatic'
16408       fi
16409       lt_prog_compiler_pic_CXX='-fPIC'
16410       ;;
16411
16412     amigaos*)
16413       case $host_cpu in
16414       powerpc)
16415             # see comment about AmigaOS4 .so support
16416             lt_prog_compiler_pic_CXX='-fPIC'
16417         ;;
16418       m68k)
16419             # FIXME: we need at least 68020 code to build shared libraries, but
16420             # adding the '-m68020' flag to GCC prevents building anything better,
16421             # like '-m68040'.
16422             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16423         ;;
16424       esac
16425       ;;
16426
16427     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16428       # PIC is the default for these OSes.
16429       ;;
16430     mingw* | cygwin* | os2* | pw32* | cegcc*)
16431       # This hack is so that the source file can tell whether it is being
16432       # built for inclusion in a dll (and should export symbols for example).
16433       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16434       # (--disable-auto-import) libraries
16435       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16436       case $host_os in
16437       os2*)
16438         lt_prog_compiler_static_CXX='$wl-static'
16439         ;;
16440       esac
16441       ;;
16442     darwin* | rhapsody*)
16443       # PIC is the default on this platform
16444       # Common symbols not allowed in MH_DYLIB files
16445       lt_prog_compiler_pic_CXX='-fno-common'
16446       ;;
16447     *djgpp*)
16448       # DJGPP does not support shared libraries at all
16449       lt_prog_compiler_pic_CXX=
16450       ;;
16451     haiku*)
16452       # PIC is the default for Haiku.
16453       # The "-static" flag exists, but is broken.
16454       lt_prog_compiler_static_CXX=
16455       ;;
16456     interix[3-9]*)
16457       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16458       # Instead, we relocate shared libraries at runtime.
16459       ;;
16460     sysv4*MP*)
16461       if test -d /usr/nec; then
16462         lt_prog_compiler_pic_CXX=-Kconform_pic
16463       fi
16464       ;;
16465     hpux*)
16466       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16467       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16468       # sets the default TLS model and affects inlining.
16469       case $host_cpu in
16470       hppa*64*)
16471         ;;
16472       *)
16473         lt_prog_compiler_pic_CXX='-fPIC'
16474         ;;
16475       esac
16476       ;;
16477     *qnx* | *nto*)
16478       # QNX uses GNU C++, but need to define -shared option too, otherwise
16479       # it will coredump.
16480       lt_prog_compiler_pic_CXX='-fPIC -shared'
16481       ;;
16482     *)
16483       lt_prog_compiler_pic_CXX='-fPIC'
16484       ;;
16485     esac
16486   else
16487     case $host_os in
16488       aix[4-9]*)
16489         # All AIX code is PIC.
16490         if test ia64 = "$host_cpu"; then
16491           # AIX 5 now supports IA64 processor
16492           lt_prog_compiler_static_CXX='-Bstatic'
16493         else
16494           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16495         fi
16496         ;;
16497       chorus*)
16498         case $cc_basename in
16499         cxch68*)
16500           # Green Hills C++ Compiler
16501           # _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"
16502           ;;
16503         esac
16504         ;;
16505       mingw* | cygwin* | os2* | pw32* | cegcc*)
16506         # This hack is so that the source file can tell whether it is being
16507         # built for inclusion in a dll (and should export symbols for example).
16508         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16509         ;;
16510       dgux*)
16511         case $cc_basename in
16512           ec++*)
16513             lt_prog_compiler_pic_CXX='-KPIC'
16514             ;;
16515           ghcx*)
16516             # Green Hills C++ Compiler
16517             lt_prog_compiler_pic_CXX='-pic'
16518             ;;
16519           *)
16520             ;;
16521         esac
16522         ;;
16523       freebsd* | dragonfly*)
16524         # FreeBSD uses GNU C++
16525         ;;
16526       hpux9* | hpux10* | hpux11*)
16527         case $cc_basename in
16528           CC*)
16529             lt_prog_compiler_wl_CXX='-Wl,'
16530             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16531             if test ia64 != "$host_cpu"; then
16532               lt_prog_compiler_pic_CXX='+Z'
16533             fi
16534             ;;
16535           aCC*)
16536             lt_prog_compiler_wl_CXX='-Wl,'
16537             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16538             case $host_cpu in
16539             hppa*64*|ia64*)
16540               # +Z the default
16541               ;;
16542             *)
16543               lt_prog_compiler_pic_CXX='+Z'
16544               ;;
16545             esac
16546             ;;
16547           *)
16548             ;;
16549         esac
16550         ;;
16551       interix*)
16552         # This is c89, which is MS Visual C++ (no shared libs)
16553         # Anyone wants to do a port?
16554         ;;
16555       irix5* | irix6* | nonstopux*)
16556         case $cc_basename in
16557           CC*)
16558             lt_prog_compiler_wl_CXX='-Wl,'
16559             lt_prog_compiler_static_CXX='-non_shared'
16560             # CC pic flag -KPIC is the default.
16561             ;;
16562           *)
16563             ;;
16564         esac
16565         ;;
16566       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16567         case $cc_basename in
16568           KCC*)
16569             # KAI C++ Compiler
16570             lt_prog_compiler_wl_CXX='--backend -Wl,'
16571             lt_prog_compiler_pic_CXX='-fPIC'
16572             ;;
16573           ecpc* )
16574             # old Intel C++ for x86_64, which still supported -KPIC.
16575             lt_prog_compiler_wl_CXX='-Wl,'
16576             lt_prog_compiler_pic_CXX='-KPIC'
16577             lt_prog_compiler_static_CXX='-static'
16578             ;;
16579           icpc* )
16580             # Intel C++, used to be incompatible with GCC.
16581             # ICC 10 doesn't accept -KPIC any more.
16582             lt_prog_compiler_wl_CXX='-Wl,'
16583             lt_prog_compiler_pic_CXX='-fPIC'
16584             lt_prog_compiler_static_CXX='-static'
16585             ;;
16586           pgCC* | pgcpp*)
16587             # Portland Group C++ compiler
16588             lt_prog_compiler_wl_CXX='-Wl,'
16589             lt_prog_compiler_pic_CXX='-fpic'
16590             lt_prog_compiler_static_CXX='-Bstatic'
16591             ;;
16592           cxx*)
16593             # Compaq C++
16594             # Make sure the PIC flag is empty.  It appears that all Alpha
16595             # Linux and Compaq Tru64 Unix objects are PIC.
16596             lt_prog_compiler_pic_CXX=
16597             lt_prog_compiler_static_CXX='-non_shared'
16598             ;;
16599           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16600             # IBM XL 8.0, 9.0 on PPC and BlueGene
16601             lt_prog_compiler_wl_CXX='-Wl,'
16602             lt_prog_compiler_pic_CXX='-qpic'
16603             lt_prog_compiler_static_CXX='-qstaticlink'
16604             ;;
16605           *)
16606             case `$CC -V 2>&1 | sed 5q` in
16607             *Sun\ C*)
16608               # Sun C++ 5.9
16609               lt_prog_compiler_pic_CXX='-KPIC'
16610               lt_prog_compiler_static_CXX='-Bstatic'
16611               lt_prog_compiler_wl_CXX='-Qoption ld '
16612               ;;
16613             esac
16614             ;;
16615         esac
16616         ;;
16617       lynxos*)
16618         ;;
16619       m88k*)
16620         ;;
16621       mvs*)
16622         case $cc_basename in
16623           cxx*)
16624             lt_prog_compiler_pic_CXX='-W c,exportall'
16625             ;;
16626           *)
16627             ;;
16628         esac
16629         ;;
16630       netbsd*)
16631         ;;
16632       *qnx* | *nto*)
16633         # QNX uses GNU C++, but need to define -shared option too, otherwise
16634         # it will coredump.
16635         lt_prog_compiler_pic_CXX='-fPIC -shared'
16636         ;;
16637       osf3* | osf4* | osf5*)
16638         case $cc_basename in
16639           KCC*)
16640             lt_prog_compiler_wl_CXX='--backend -Wl,'
16641             ;;
16642           RCC*)
16643             # Rational C++ 2.4.1
16644             lt_prog_compiler_pic_CXX='-pic'
16645             ;;
16646           cxx*)
16647             # Digital/Compaq C++
16648             lt_prog_compiler_wl_CXX='-Wl,'
16649             # Make sure the PIC flag is empty.  It appears that all Alpha
16650             # Linux and Compaq Tru64 Unix objects are PIC.
16651             lt_prog_compiler_pic_CXX=
16652             lt_prog_compiler_static_CXX='-non_shared'
16653             ;;
16654           *)
16655             ;;
16656         esac
16657         ;;
16658       psos*)
16659         ;;
16660       solaris*)
16661         case $cc_basename in
16662           CC* | sunCC*)
16663             # Sun C++ 4.2, 5.x and Centerline C++
16664             lt_prog_compiler_pic_CXX='-KPIC'
16665             lt_prog_compiler_static_CXX='-Bstatic'
16666             lt_prog_compiler_wl_CXX='-Qoption ld '
16667             ;;
16668           gcx*)
16669             # Green Hills C++ Compiler
16670             lt_prog_compiler_pic_CXX='-PIC'
16671             ;;
16672           *)
16673             ;;
16674         esac
16675         ;;
16676       sunos4*)
16677         case $cc_basename in
16678           CC*)
16679             # Sun C++ 4.x
16680             lt_prog_compiler_pic_CXX='-pic'
16681             lt_prog_compiler_static_CXX='-Bstatic'
16682             ;;
16683           lcc*)
16684             # Lucid
16685             lt_prog_compiler_pic_CXX='-pic'
16686             ;;
16687           *)
16688             ;;
16689         esac
16690         ;;
16691       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16692         case $cc_basename in
16693           CC*)
16694             lt_prog_compiler_wl_CXX='-Wl,'
16695             lt_prog_compiler_pic_CXX='-KPIC'
16696             lt_prog_compiler_static_CXX='-Bstatic'
16697             ;;
16698         esac
16699         ;;
16700       tandem*)
16701         case $cc_basename in
16702           NCC*)
16703             # NonStop-UX NCC 3.20
16704             lt_prog_compiler_pic_CXX='-KPIC'
16705             ;;
16706           *)
16707             ;;
16708         esac
16709         ;;
16710       vxworks*)
16711         ;;
16712       *)
16713         lt_prog_compiler_can_build_shared_CXX=no
16714         ;;
16715     esac
16716   fi
16717
16718 case $host_os in
16719   # For platforms that do not support PIC, -DPIC is meaningless:
16720   *djgpp*)
16721     lt_prog_compiler_pic_CXX=
16722     ;;
16723   *)
16724     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16725     ;;
16726 esac
16727
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16729 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16730 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16731   $as_echo_n "(cached) " >&6
16732 else
16733   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16734 fi
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16736 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16737 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16738
16739 #
16740 # Check to make sure the PIC flag actually works.
16741 #
16742 if test -n "$lt_prog_compiler_pic_CXX"; then
16743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16745 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16746   $as_echo_n "(cached) " >&6
16747 else
16748   lt_cv_prog_compiler_pic_works_CXX=no
16749    ac_outfile=conftest.$ac_objext
16750    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16751    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16752    # Insert the option either (1) after the last *FLAGS variable, or
16753    # (2) before a word containing "conftest.", or (3) at the end.
16754    # Note that $ac_compile itself does not contain backslashes and begins
16755    # with a dollar sign (not a hyphen), so the echo should work correctly.
16756    # The option is referenced via a variable to avoid confusing sed.
16757    lt_compile=`echo "$ac_compile" | $SED \
16758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16760    -e 's:$: $lt_compiler_flag:'`
16761    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16762    (eval "$lt_compile" 2>conftest.err)
16763    ac_status=$?
16764    cat conftest.err >&5
16765    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766    if (exit $ac_status) && test -s "$ac_outfile"; then
16767      # The compiler can only warn and ignore the option if not recognized
16768      # So say no if there are warnings other than the usual output.
16769      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16770      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16771      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16772        lt_cv_prog_compiler_pic_works_CXX=yes
16773      fi
16774    fi
16775    $RM conftest*
16776
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16779 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16780
16781 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16782     case $lt_prog_compiler_pic_CXX in
16783      "" | " "*) ;;
16784      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16785      esac
16786 else
16787     lt_prog_compiler_pic_CXX=
16788      lt_prog_compiler_can_build_shared_CXX=no
16789 fi
16790
16791 fi
16792
16793
16794
16795
16796
16797 #
16798 # Check to make sure the static flag actually works.
16799 #
16800 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16802 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16803 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16804   $as_echo_n "(cached) " >&6
16805 else
16806   lt_cv_prog_compiler_static_works_CXX=no
16807    save_LDFLAGS=$LDFLAGS
16808    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16809    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16810    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16811      # The linker can only warn and ignore the option if not recognized
16812      # So say no if there are warnings
16813      if test -s conftest.err; then
16814        # Append any errors to the config.log.
16815        cat conftest.err 1>&5
16816        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16817        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16818        if diff conftest.exp conftest.er2 >/dev/null; then
16819          lt_cv_prog_compiler_static_works_CXX=yes
16820        fi
16821      else
16822        lt_cv_prog_compiler_static_works_CXX=yes
16823      fi
16824    fi
16825    $RM -r conftest*
16826    LDFLAGS=$save_LDFLAGS
16827
16828 fi
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16830 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16831
16832 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16833     :
16834 else
16835     lt_prog_compiler_static_CXX=
16836 fi
16837
16838
16839
16840
16841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16843 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16844   $as_echo_n "(cached) " >&6
16845 else
16846   lt_cv_prog_compiler_c_o_CXX=no
16847    $RM -r conftest 2>/dev/null
16848    mkdir conftest
16849    cd conftest
16850    mkdir out
16851    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16852
16853    lt_compiler_flag="-o out/conftest2.$ac_objext"
16854    # Insert the option either (1) after the last *FLAGS variable, or
16855    # (2) before a word containing "conftest.", or (3) at the end.
16856    # Note that $ac_compile itself does not contain backslashes and begins
16857    # with a dollar sign (not a hyphen), so the echo should work correctly.
16858    lt_compile=`echo "$ac_compile" | $SED \
16859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16861    -e 's:$: $lt_compiler_flag:'`
16862    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16863    (eval "$lt_compile" 2>out/conftest.err)
16864    ac_status=$?
16865    cat out/conftest.err >&5
16866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16868    then
16869      # The compiler can only warn and ignore the option if not recognized
16870      # So say no if there are warnings
16871      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16872      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16873      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16874        lt_cv_prog_compiler_c_o_CXX=yes
16875      fi
16876    fi
16877    chmod u+w . 2>&5
16878    $RM conftest*
16879    # SGI C++ compiler will create directory out/ii_files/ for
16880    # template instantiation
16881    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16882    $RM out/* && rmdir out
16883    cd ..
16884    $RM -r conftest
16885    $RM conftest*
16886
16887 fi
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16889 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16890
16891
16892
16893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16895 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16896   $as_echo_n "(cached) " >&6
16897 else
16898   lt_cv_prog_compiler_c_o_CXX=no
16899    $RM -r conftest 2>/dev/null
16900    mkdir conftest
16901    cd conftest
16902    mkdir out
16903    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16904
16905    lt_compiler_flag="-o out/conftest2.$ac_objext"
16906    # Insert the option either (1) after the last *FLAGS variable, or
16907    # (2) before a word containing "conftest.", or (3) at the end.
16908    # Note that $ac_compile itself does not contain backslashes and begins
16909    # with a dollar sign (not a hyphen), so the echo should work correctly.
16910    lt_compile=`echo "$ac_compile" | $SED \
16911    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16912    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16913    -e 's:$: $lt_compiler_flag:'`
16914    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16915    (eval "$lt_compile" 2>out/conftest.err)
16916    ac_status=$?
16917    cat out/conftest.err >&5
16918    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16920    then
16921      # The compiler can only warn and ignore the option if not recognized
16922      # So say no if there are warnings
16923      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16924      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16925      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16926        lt_cv_prog_compiler_c_o_CXX=yes
16927      fi
16928    fi
16929    chmod u+w . 2>&5
16930    $RM conftest*
16931    # SGI C++ compiler will create directory out/ii_files/ for
16932    # template instantiation
16933    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16934    $RM out/* && rmdir out
16935    cd ..
16936    $RM -r conftest
16937    $RM conftest*
16938
16939 fi
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16941 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16942
16943
16944
16945
16946 hard_links=nottested
16947 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16948   # do not overwrite the value of need_locks provided by the user
16949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16950 $as_echo_n "checking if we can lock with hard links... " >&6; }
16951   hard_links=yes
16952   $RM conftest*
16953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16954   touch conftest.a
16955   ln conftest.a conftest.b 2>&5 || hard_links=no
16956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16958 $as_echo "$hard_links" >&6; }
16959   if test no = "$hard_links"; then
16960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16961 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16962     need_locks=warn
16963   fi
16964 else
16965   need_locks=no
16966 fi
16967
16968
16969
16970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16972
16973   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16974   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16975   case $host_os in
16976   aix[4-9]*)
16977     # If we're using GNU nm, then we don't want the "-C" option.
16978     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16979     # Without the "-l" option, or with the "-B" option, AIX nm treats
16980     # weak defined symbols like other global defined symbols, whereas
16981     # GNU nm marks them as "W".
16982     # While the 'weak' keyword is ignored in the Export File, we need
16983     # it in the Import File for the 'aix-soname' feature, so we have
16984     # to replace the "-B" option with "-P" for AIX nm.
16985     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16986       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'
16987     else
16988       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 == "L") || (\$ 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'
16989     fi
16990     ;;
16991   pw32*)
16992     export_symbols_cmds_CXX=$ltdll_cmds
16993     ;;
16994   cygwin* | mingw* | cegcc*)
16995     case $cc_basename in
16996     cl* | icl*)
16997       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16998       ;;
16999     *)
17000       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'
17001       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17002       ;;
17003     esac
17004     ;;
17005   *)
17006     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17007     ;;
17008   esac
17009
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17011 $as_echo "$ld_shlibs_CXX" >&6; }
17012 test no = "$ld_shlibs_CXX" && can_build_shared=no
17013
17014 with_gnu_ld_CXX=$with_gnu_ld
17015
17016
17017
17018
17019
17020
17021 #
17022 # Do we need to explicitly link libc?
17023 #
17024 case "x$archive_cmds_need_lc_CXX" in
17025 x|xyes)
17026   # Assume -lc should be added
17027   archive_cmds_need_lc_CXX=yes
17028
17029   if test yes,yes = "$GCC,$enable_shared"; then
17030     case $archive_cmds_CXX in
17031     *'~'*)
17032       # FIXME: we may have to deal with multi-command sequences.
17033       ;;
17034     '$CC '*)
17035       # Test whether the compiler implicitly links with -lc since on some
17036       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17037       # to ld, don't add -lc before -lgcc.
17038       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17039 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17040 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17041   $as_echo_n "(cached) " >&6
17042 else
17043   $RM conftest*
17044         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17045
17046         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17047   (eval $ac_compile) 2>&5
17048   ac_status=$?
17049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17050   test $ac_status = 0; } 2>conftest.err; then
17051           soname=conftest
17052           lib=conftest
17053           libobjs=conftest.$ac_objext
17054           deplibs=
17055           wl=$lt_prog_compiler_wl_CXX
17056           pic_flag=$lt_prog_compiler_pic_CXX
17057           compiler_flags=-v
17058           linker_flags=-v
17059           verstring=
17060           output_objdir=.
17061           libname=conftest
17062           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17063           allow_undefined_flag_CXX=
17064           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17065   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17066   ac_status=$?
17067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068   test $ac_status = 0; }
17069           then
17070             lt_cv_archive_cmds_need_lc_CXX=no
17071           else
17072             lt_cv_archive_cmds_need_lc_CXX=yes
17073           fi
17074           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17075         else
17076           cat conftest.err 1>&5
17077         fi
17078         $RM conftest*
17079
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17082 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17083       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17084       ;;
17085     esac
17086   fi
17087   ;;
17088 esac
17089
17090
17091
17092
17093
17094
17095
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17152 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17153
17154 library_names_spec=
17155 libname_spec='lib$name'
17156 soname_spec=
17157 shrext_cmds=.so
17158 postinstall_cmds=
17159 postuninstall_cmds=
17160 finish_cmds=
17161 finish_eval=
17162 shlibpath_var=
17163 shlibpath_overrides_runpath=unknown
17164 version_type=none
17165 dynamic_linker="$host_os ld.so"
17166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17167 need_lib_prefix=unknown
17168 hardcode_into_libs=no
17169
17170 # when you set need_version to no, make sure it does not cause -set_version
17171 # flags to be left without arguments
17172 need_version=unknown
17173
17174
17175
17176 case $host_os in
17177 aix3*)
17178   version_type=linux # correct to gnu/linux during the next big refactor
17179   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17180   shlibpath_var=LIBPATH
17181
17182   # AIX 3 has no versioning support, so we append a major version to the name.
17183   soname_spec='$libname$release$shared_ext$major'
17184   ;;
17185
17186 aix[4-9]*)
17187   version_type=linux # correct to gnu/linux during the next big refactor
17188   need_lib_prefix=no
17189   need_version=no
17190   hardcode_into_libs=yes
17191   if test ia64 = "$host_cpu"; then
17192     # AIX 5 supports IA64
17193     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17194     shlibpath_var=LD_LIBRARY_PATH
17195   else
17196     # With GCC up to 2.95.x, collect2 would create an import file
17197     # for dependence libraries.  The import file would start with
17198     # the line '#! .'.  This would cause the generated library to
17199     # depend on '.', always an invalid library.  This was fixed in
17200     # development snapshots of GCC prior to 3.0.
17201     case $host_os in
17202       aix4 | aix4.[01] | aix4.[01].*)
17203       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17204            echo ' yes '
17205            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17206         :
17207       else
17208         can_build_shared=no
17209       fi
17210       ;;
17211     esac
17212     # Using Import Files as archive members, it is possible to support
17213     # filename-based versioning of shared library archives on AIX. While
17214     # this would work for both with and without runtime linking, it will
17215     # prevent static linking of such archives. So we do filename-based
17216     # shared library versioning with .so extension only, which is used
17217     # when both runtime linking and shared linking is enabled.
17218     # Unfortunately, runtime linking may impact performance, so we do
17219     # not want this to be the default eventually. Also, we use the
17220     # versioned .so libs for executables only if there is the -brtl
17221     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17222     # To allow for filename-based versioning support, we need to create
17223     # libNAME.so.V as an archive file, containing:
17224     # *) an Import File, referring to the versioned filename of the
17225     #    archive as well as the shared archive member, telling the
17226     #    bitwidth (32 or 64) of that shared object, and providing the
17227     #    list of exported symbols of that shared object, eventually
17228     #    decorated with the 'weak' keyword
17229     # *) the shared object with the F_LOADONLY flag set, to really avoid
17230     #    it being seen by the linker.
17231     # At run time we better use the real file rather than another symlink,
17232     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17233
17234     case $with_aix_soname,$aix_use_runtimelinking in
17235     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17236     # soname into executable. Probably we can add versioning support to
17237     # collect2, so additional links can be useful in future.
17238     aix,yes) # traditional libtool
17239       dynamic_linker='AIX unversionable lib.so'
17240       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17241       # instead of lib<name>.a to let people know that these are not
17242       # typical AIX shared libraries.
17243       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17244       ;;
17245     aix,no) # traditional AIX only
17246       dynamic_linker='AIX lib.a(lib.so.V)'
17247       # We preserve .a as extension for shared libraries through AIX4.2
17248       # and later when we are not doing run time linking.
17249       library_names_spec='$libname$release.a $libname.a'
17250       soname_spec='$libname$release$shared_ext$major'
17251       ;;
17252     svr4,*) # full svr4 only
17253       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17254       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17255       # We do not specify a path in Import Files, so LIBPATH fires.
17256       shlibpath_overrides_runpath=yes
17257       ;;
17258     *,yes) # both, prefer svr4
17259       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17260       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17261       # unpreferred sharedlib libNAME.a needs extra handling
17262       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"'
17263       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"'
17264       # We do not specify a path in Import Files, so LIBPATH fires.
17265       shlibpath_overrides_runpath=yes
17266       ;;
17267     *,no) # both, prefer aix
17268       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17269       library_names_spec='$libname$release.a $libname.a'
17270       soname_spec='$libname$release$shared_ext$major'
17271       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17272       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)'
17273       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"'
17274       ;;
17275     esac
17276     shlibpath_var=LIBPATH
17277   fi
17278   ;;
17279
17280 amigaos*)
17281   case $host_cpu in
17282   powerpc)
17283     # Since July 2007 AmigaOS4 officially supports .so libraries.
17284     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17285     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17286     ;;
17287   m68k)
17288     library_names_spec='$libname.ixlibrary $libname.a'
17289     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17290     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'
17291     ;;
17292   esac
17293   ;;
17294
17295 beos*)
17296   library_names_spec='$libname$shared_ext'
17297   dynamic_linker="$host_os ld.so"
17298   shlibpath_var=LIBRARY_PATH
17299   ;;
17300
17301 bsdi[45]*)
17302   version_type=linux # correct to gnu/linux during the next big refactor
17303   need_version=no
17304   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17305   soname_spec='$libname$release$shared_ext$major'
17306   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17307   shlibpath_var=LD_LIBRARY_PATH
17308   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17309   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17310   # the default ld.so.conf also contains /usr/contrib/lib and
17311   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17312   # libtool to hard-code these into programs
17313   ;;
17314
17315 cygwin* | mingw* | pw32* | cegcc*)
17316   version_type=windows
17317   shrext_cmds=.dll
17318   need_version=no
17319   need_lib_prefix=no
17320
17321   case $GCC,$cc_basename in
17322   yes,*)
17323     # gcc
17324     library_names_spec='$libname.dll.a'
17325     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17326     postinstall_cmds='base_file=`basename \$file`~
17327       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17328       dldir=$destdir/`dirname \$dlpath`~
17329       test -d \$dldir || mkdir -p \$dldir~
17330       $install_prog $dir/$dlname \$dldir/$dlname~
17331       chmod a+x \$dldir/$dlname~
17332       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17333         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17334       fi'
17335     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17336       dlpath=$dir/\$dldll~
17337        $RM \$dlpath'
17338     shlibpath_overrides_runpath=yes
17339
17340     case $host_os in
17341     cygwin*)
17342       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17343       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17344
17345       ;;
17346     mingw* | cegcc*)
17347       # MinGW DLLs use traditional 'lib' prefix
17348       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17349       ;;
17350     pw32*)
17351       # pw32 DLLs use 'pw' prefix rather than 'lib'
17352       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17353       ;;
17354     esac
17355     dynamic_linker='Win32 ld.exe'
17356     ;;
17357
17358   *,cl* | *,icl*)
17359     # Native MSVC or ICC
17360     libname_spec='$name'
17361     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17362     library_names_spec='$libname.dll.lib'
17363
17364     case $build_os in
17365     mingw*)
17366       sys_lib_search_path_spec=
17367       lt_save_ifs=$IFS
17368       IFS=';'
17369       for lt_path in $LIB
17370       do
17371         IFS=$lt_save_ifs
17372         # Let DOS variable expansion print the short 8.3 style file name.
17373         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17374         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17375       done
17376       IFS=$lt_save_ifs
17377       # Convert to MSYS style.
17378       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17379       ;;
17380     cygwin*)
17381       # Convert to unix form, then to dos form, then back to unix form
17382       # but this time dos style (no spaces!) so that the unix form looks
17383       # like /cygdrive/c/PROGRA~1:/cygdr...
17384       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17385       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17386       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17387       ;;
17388     *)
17389       sys_lib_search_path_spec=$LIB
17390       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17391         # It is most probably a Windows format PATH.
17392         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17393       else
17394         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17395       fi
17396       # FIXME: find the short name or the path components, as spaces are
17397       # common. (e.g. "Program Files" -> "PROGRA~1")
17398       ;;
17399     esac
17400
17401     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17402     postinstall_cmds='base_file=`basename \$file`~
17403       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17404       dldir=$destdir/`dirname \$dlpath`~
17405       test -d \$dldir || mkdir -p \$dldir~
17406       $install_prog $dir/$dlname \$dldir/$dlname'
17407     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17408       dlpath=$dir/\$dldll~
17409        $RM \$dlpath'
17410     shlibpath_overrides_runpath=yes
17411     dynamic_linker='Win32 link.exe'
17412     ;;
17413
17414   *)
17415     # Assume MSVC and ICC wrapper
17416     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17417     dynamic_linker='Win32 ld.exe'
17418     ;;
17419   esac
17420   # FIXME: first we should search . and the directory the executable is in
17421   shlibpath_var=PATH
17422   ;;
17423
17424 darwin* | rhapsody*)
17425   dynamic_linker="$host_os dyld"
17426   version_type=darwin
17427   need_lib_prefix=no
17428   need_version=no
17429   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17430   soname_spec='$libname$release$major$shared_ext'
17431   shlibpath_overrides_runpath=yes
17432   shlibpath_var=DYLD_LIBRARY_PATH
17433   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17434
17435   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17436   ;;
17437
17438 dgux*)
17439   version_type=linux # correct to gnu/linux during the next big refactor
17440   need_lib_prefix=no
17441   need_version=no
17442   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17443   soname_spec='$libname$release$shared_ext$major'
17444   shlibpath_var=LD_LIBRARY_PATH
17445   ;;
17446
17447 freebsd* | dragonfly*)
17448   # DragonFly does not have aout.  When/if they implement a new
17449   # versioning mechanism, adjust this.
17450   if test -x /usr/bin/objformat; then
17451     objformat=`/usr/bin/objformat`
17452   else
17453     case $host_os in
17454     freebsd[23].*) objformat=aout ;;
17455     *) objformat=elf ;;
17456     esac
17457   fi
17458   version_type=freebsd-$objformat
17459   case $version_type in
17460     freebsd-elf*)
17461       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17462       soname_spec='$libname$release$shared_ext$major'
17463       need_version=no
17464       need_lib_prefix=no
17465       ;;
17466     freebsd-*)
17467       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17468       need_version=yes
17469       ;;
17470   esac
17471   shlibpath_var=LD_LIBRARY_PATH
17472   case $host_os in
17473   freebsd2.*)
17474     shlibpath_overrides_runpath=yes
17475     ;;
17476   freebsd3.[01]* | freebsdelf3.[01]*)
17477     shlibpath_overrides_runpath=yes
17478     hardcode_into_libs=yes
17479     ;;
17480   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17481   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17482     shlibpath_overrides_runpath=no
17483     hardcode_into_libs=yes
17484     ;;
17485   *) # from 4.6 on, and DragonFly
17486     shlibpath_overrides_runpath=yes
17487     hardcode_into_libs=yes
17488     ;;
17489   esac
17490   ;;
17491
17492 haiku*)
17493   version_type=linux # correct to gnu/linux during the next big refactor
17494   need_lib_prefix=no
17495   need_version=no
17496   dynamic_linker="$host_os runtime_loader"
17497   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17498   soname_spec='$libname$release$shared_ext$major'
17499   shlibpath_var=LIBRARY_PATH
17500   shlibpath_overrides_runpath=no
17501   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17502   hardcode_into_libs=yes
17503   ;;
17504
17505 hpux9* | hpux10* | hpux11*)
17506   # Give a soname corresponding to the major version so that dld.sl refuses to
17507   # link against other versions.
17508   version_type=sunos
17509   need_lib_prefix=no
17510   need_version=no
17511   case $host_cpu in
17512   ia64*)
17513     shrext_cmds='.so'
17514     hardcode_into_libs=yes
17515     dynamic_linker="$host_os dld.so"
17516     shlibpath_var=LD_LIBRARY_PATH
17517     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17518     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17519     soname_spec='$libname$release$shared_ext$major'
17520     if test 32 = "$HPUX_IA64_MODE"; then
17521       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17522       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17523     else
17524       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17525       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17526     fi
17527     ;;
17528   hppa*64*)
17529     shrext_cmds='.sl'
17530     hardcode_into_libs=yes
17531     dynamic_linker="$host_os dld.sl"
17532     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17533     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17534     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17535     soname_spec='$libname$release$shared_ext$major'
17536     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17537     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17538     ;;
17539   *)
17540     shrext_cmds='.sl'
17541     dynamic_linker="$host_os dld.sl"
17542     shlibpath_var=SHLIB_PATH
17543     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17544     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17545     soname_spec='$libname$release$shared_ext$major'
17546     ;;
17547   esac
17548   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17549   postinstall_cmds='chmod 555 $lib'
17550   # or fails outright, so override atomically:
17551   install_override_mode=555
17552   ;;
17553
17554 interix[3-9]*)
17555   version_type=linux # correct to gnu/linux during the next big refactor
17556   need_lib_prefix=no
17557   need_version=no
17558   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17559   soname_spec='$libname$release$shared_ext$major'
17560   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17561   shlibpath_var=LD_LIBRARY_PATH
17562   shlibpath_overrides_runpath=no
17563   hardcode_into_libs=yes
17564   ;;
17565
17566 irix5* | irix6* | nonstopux*)
17567   case $host_os in
17568     nonstopux*) version_type=nonstopux ;;
17569     *)
17570         if test yes = "$lt_cv_prog_gnu_ld"; then
17571                 version_type=linux # correct to gnu/linux during the next big refactor
17572         else
17573                 version_type=irix
17574         fi ;;
17575   esac
17576   need_lib_prefix=no
17577   need_version=no
17578   soname_spec='$libname$release$shared_ext$major'
17579   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17580   case $host_os in
17581   irix5* | nonstopux*)
17582     libsuff= shlibsuff=
17583     ;;
17584   *)
17585     case $LD in # libtool.m4 will add one of these switches to LD
17586     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17587       libsuff= shlibsuff= libmagic=32-bit;;
17588     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17589       libsuff=32 shlibsuff=N32 libmagic=N32;;
17590     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17591       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17592     *) libsuff= shlibsuff= libmagic=never-match;;
17593     esac
17594     ;;
17595   esac
17596   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17597   shlibpath_overrides_runpath=no
17598   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17599   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17600   hardcode_into_libs=yes
17601   ;;
17602
17603 # No shared lib support for Linux oldld, aout, or coff.
17604 linux*oldld* | linux*aout* | linux*coff*)
17605   dynamic_linker=no
17606   ;;
17607
17608 linux*android*)
17609   version_type=none # Android doesn't support versioned libraries.
17610   need_lib_prefix=no
17611   need_version=no
17612   library_names_spec='$libname$release$shared_ext'
17613   soname_spec='$libname$release$shared_ext'
17614   finish_cmds=
17615   shlibpath_var=LD_LIBRARY_PATH
17616   shlibpath_overrides_runpath=yes
17617
17618   # This implies no fast_install, which is unacceptable.
17619   # Some rework will be needed to allow for fast_install
17620   # before this can be enabled.
17621   hardcode_into_libs=yes
17622
17623   dynamic_linker='Android linker'
17624   # Don't embed -rpath directories since the linker doesn't support them.
17625   hardcode_libdir_flag_spec_CXX='-L$libdir'
17626   ;;
17627
17628 # This must be glibc/ELF.
17629 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17630   version_type=linux # correct to gnu/linux during the next big refactor
17631   need_lib_prefix=no
17632   need_version=no
17633   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17634   soname_spec='$libname$release$shared_ext$major'
17635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17636   shlibpath_var=LD_LIBRARY_PATH
17637   shlibpath_overrides_runpath=no
17638
17639   # Some binutils ld are patched to set DT_RUNPATH
17640   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17641   $as_echo_n "(cached) " >&6
17642 else
17643   lt_cv_shlibpath_overrides_runpath=no
17644     save_LDFLAGS=$LDFLAGS
17645     save_libdir=$libdir
17646     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17647          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17648     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h.  */
17650
17651 int
17652 main ()
17653 {
17654
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 if ac_fn_cxx_try_link "$LINENO"; then :
17660   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17661   lt_cv_shlibpath_overrides_runpath=yes
17662 fi
17663 fi
17664 rm -f core conftest.err conftest.$ac_objext \
17665     conftest$ac_exeext conftest.$ac_ext
17666     LDFLAGS=$save_LDFLAGS
17667     libdir=$save_libdir
17668
17669 fi
17670
17671   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17672
17673   # This implies no fast_install, which is unacceptable.
17674   # Some rework will be needed to allow for fast_install
17675   # before this can be enabled.
17676   hardcode_into_libs=yes
17677
17678   # Ideally, we could use ldconfig to report *all* directores which are
17679   # searched for libraries, however this is still not possible.  Aside from not
17680   # being certain /sbin/ldconfig is available, command
17681   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17682   # even though it is searched at run-time.  Try to do the best guess by
17683   # appending ld.so.conf contents (and includes) to the search path.
17684   if test -f /etc/ld.so.conf; then
17685     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' ' '`
17686     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17687   fi
17688
17689   # We used to test for /lib/ld.so.1 and disable shared libraries on
17690   # powerpc, because MkLinux only supported shared libraries with the
17691   # GNU dynamic linker.  Since this was broken with cross compilers,
17692   # most powerpc-linux boxes support dynamic linking these days and
17693   # people can always --disable-shared, the test was removed, and we
17694   # assume the GNU/Linux dynamic linker is in use.
17695   dynamic_linker='GNU/Linux ld.so'
17696   ;;
17697
17698 netbsd*)
17699   version_type=sunos
17700   need_lib_prefix=no
17701   need_version=no
17702   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17703     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17704     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17705     dynamic_linker='NetBSD (a.out) ld.so'
17706   else
17707     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17708     soname_spec='$libname$release$shared_ext$major'
17709     dynamic_linker='NetBSD ld.elf_so'
17710   fi
17711   shlibpath_var=LD_LIBRARY_PATH
17712   shlibpath_overrides_runpath=yes
17713   hardcode_into_libs=yes
17714   ;;
17715
17716 newsos6)
17717   version_type=linux # correct to gnu/linux during the next big refactor
17718   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17719   shlibpath_var=LD_LIBRARY_PATH
17720   shlibpath_overrides_runpath=yes
17721   ;;
17722
17723 *nto* | *qnx*)
17724   version_type=qnx
17725   need_lib_prefix=no
17726   need_version=no
17727   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17728   soname_spec='$libname$release$shared_ext$major'
17729   shlibpath_var=LD_LIBRARY_PATH
17730   shlibpath_overrides_runpath=no
17731   hardcode_into_libs=yes
17732   dynamic_linker='ldqnx.so'
17733   ;;
17734
17735 openbsd* | bitrig*)
17736   version_type=sunos
17737   sys_lib_dlsearch_path_spec=/usr/lib
17738   need_lib_prefix=no
17739   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17740     need_version=no
17741   else
17742     need_version=yes
17743   fi
17744   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17745   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17746   shlibpath_var=LD_LIBRARY_PATH
17747   shlibpath_overrides_runpath=yes
17748   ;;
17749
17750 os2*)
17751   libname_spec='$name'
17752   version_type=windows
17753   shrext_cmds=.dll
17754   need_version=no
17755   need_lib_prefix=no
17756   # OS/2 can only load a DLL with a base name of 8 characters or less.
17757   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17758     v=$($ECHO $release$versuffix | tr -d .-);
17759     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17760     $ECHO $n$v`$shared_ext'
17761   library_names_spec='${libname}_dll.$libext'
17762   dynamic_linker='OS/2 ld.exe'
17763   shlibpath_var=BEGINLIBPATH
17764   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17765   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17766   postinstall_cmds='base_file=`basename \$file`~
17767     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17768     dldir=$destdir/`dirname \$dlpath`~
17769     test -d \$dldir || mkdir -p \$dldir~
17770     $install_prog $dir/$dlname \$dldir/$dlname~
17771     chmod a+x \$dldir/$dlname~
17772     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17773       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17774     fi'
17775   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17776     dlpath=$dir/\$dldll~
17777     $RM \$dlpath'
17778   ;;
17779
17780 osf3* | osf4* | osf5*)
17781   version_type=osf
17782   need_lib_prefix=no
17783   need_version=no
17784   soname_spec='$libname$release$shared_ext$major'
17785   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17786   shlibpath_var=LD_LIBRARY_PATH
17787   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17788   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17789   ;;
17790
17791 rdos*)
17792   dynamic_linker=no
17793   ;;
17794
17795 solaris*)
17796   version_type=linux # correct to gnu/linux during the next big refactor
17797   need_lib_prefix=no
17798   need_version=no
17799   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17800   soname_spec='$libname$release$shared_ext$major'
17801   shlibpath_var=LD_LIBRARY_PATH
17802   shlibpath_overrides_runpath=yes
17803   hardcode_into_libs=yes
17804   # ldd complains unless libraries are executable
17805   postinstall_cmds='chmod +x $lib'
17806   ;;
17807
17808 sunos4*)
17809   version_type=sunos
17810   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17811   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17812   shlibpath_var=LD_LIBRARY_PATH
17813   shlibpath_overrides_runpath=yes
17814   if test yes = "$with_gnu_ld"; then
17815     need_lib_prefix=no
17816   fi
17817   need_version=yes
17818   ;;
17819
17820 sysv4 | sysv4.3*)
17821   version_type=linux # correct to gnu/linux during the next big refactor
17822   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17823   soname_spec='$libname$release$shared_ext$major'
17824   shlibpath_var=LD_LIBRARY_PATH
17825   case $host_vendor in
17826     sni)
17827       shlibpath_overrides_runpath=no
17828       need_lib_prefix=no
17829       runpath_var=LD_RUN_PATH
17830       ;;
17831     siemens)
17832       need_lib_prefix=no
17833       ;;
17834     motorola)
17835       need_lib_prefix=no
17836       need_version=no
17837       shlibpath_overrides_runpath=no
17838       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17839       ;;
17840   esac
17841   ;;
17842
17843 sysv4*MP*)
17844   if test -d /usr/nec; then
17845     version_type=linux # correct to gnu/linux during the next big refactor
17846     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17847     soname_spec='$libname$shared_ext.$major'
17848     shlibpath_var=LD_LIBRARY_PATH
17849   fi
17850   ;;
17851
17852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17853   version_type=sco
17854   need_lib_prefix=no
17855   need_version=no
17856   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17857   soname_spec='$libname$release$shared_ext$major'
17858   shlibpath_var=LD_LIBRARY_PATH
17859   shlibpath_overrides_runpath=yes
17860   hardcode_into_libs=yes
17861   if test yes = "$with_gnu_ld"; then
17862     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17863   else
17864     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17865     case $host_os in
17866       sco3.2v5*)
17867         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17868         ;;
17869     esac
17870   fi
17871   sys_lib_dlsearch_path_spec='/usr/lib'
17872   ;;
17873
17874 tpf*)
17875   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17876   version_type=linux # correct to gnu/linux during the next big refactor
17877   need_lib_prefix=no
17878   need_version=no
17879   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17880   shlibpath_var=LD_LIBRARY_PATH
17881   shlibpath_overrides_runpath=no
17882   hardcode_into_libs=yes
17883   ;;
17884
17885 uts4*)
17886   version_type=linux # correct to gnu/linux during the next big refactor
17887   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17888   soname_spec='$libname$release$shared_ext$major'
17889   shlibpath_var=LD_LIBRARY_PATH
17890   ;;
17891
17892 *)
17893   dynamic_linker=no
17894   ;;
17895 esac
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17897 $as_echo "$dynamic_linker" >&6; }
17898 test no = "$dynamic_linker" && can_build_shared=no
17899
17900 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17901 if test yes = "$GCC"; then
17902   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17903 fi
17904
17905 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17906   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17907 fi
17908
17909 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17910   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17911 fi
17912
17913 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17914 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17915
17916 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17917 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17918
17919 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17920 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17962 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17963 hardcode_action_CXX=
17964 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17965    test -n "$runpath_var_CXX" ||
17966    test yes = "$hardcode_automatic_CXX"; then
17967
17968   # We can hardcode non-existent directories.
17969   if test no != "$hardcode_direct_CXX" &&
17970      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17971      # have to relink, otherwise we might link with an installed library
17972      # when we should be linking with a yet-to-be-installed one
17973      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17974      test no != "$hardcode_minus_L_CXX"; then
17975     # Linking always hardcodes the temporary library directory.
17976     hardcode_action_CXX=relink
17977   else
17978     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17979     hardcode_action_CXX=immediate
17980   fi
17981 else
17982   # We cannot hardcode anything, or else we can only hardcode existing
17983   # directories.
17984   hardcode_action_CXX=unsupported
17985 fi
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17987 $as_echo "$hardcode_action_CXX" >&6; }
17988
17989 if test relink = "$hardcode_action_CXX" ||
17990    test yes = "$inherit_rpath_CXX"; then
17991   # Fast installation is not supported
17992   enable_fast_install=no
17993 elif test yes = "$shlibpath_overrides_runpath" ||
17994      test no = "$enable_shared"; then
17995   # Fast installation is not necessary
17996   enable_fast_install=needless
17997 fi
17998
17999
18000
18001
18002
18003
18004
18005   fi # test -n "$compiler"
18006
18007   CC=$lt_save_CC
18008   CFLAGS=$lt_save_CFLAGS
18009   LDCXX=$LD
18010   LD=$lt_save_LD
18011   GCC=$lt_save_GCC
18012   with_gnu_ld=$lt_save_with_gnu_ld
18013   lt_cv_path_LDCXX=$lt_cv_path_LD
18014   lt_cv_path_LD=$lt_save_path_LD
18015   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18016   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18017 fi # test yes != "$_lt_caught_CXX_error"
18018
18019 ac_ext=c
18020 ac_cpp='$CPP $CPPFLAGS'
18021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18024
18025
18026   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
18027   ac_ext=cpp
18028 ac_cpp='$CXXCPP $CPPFLAGS'
18029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18032   ac_success=no
18033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18034 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18035 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18036   $as_echo_n "(cached) " >&6
18037 else
18038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h.  */
18040
18041
18042 // If the compiler admits that it is not ready for C++11, why torture it?
18043 // Hopefully, this will speed up the test.
18044
18045 #ifndef __cplusplus
18046
18047 #error "This is not a C++ compiler"
18048
18049 #elif __cplusplus < 201103L
18050
18051 #error "This is not a C++11 compiler"
18052
18053 #else
18054
18055 namespace cxx11
18056 {
18057
18058   namespace test_static_assert
18059   {
18060
18061     template <typename T>
18062     struct check
18063     {
18064       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18065     };
18066
18067   }
18068
18069   namespace test_final_override
18070   {
18071
18072     struct Base
18073     {
18074       virtual void f() {}
18075     };
18076
18077     struct Derived : public Base
18078     {
18079       virtual void f() override {}
18080     };
18081
18082   }
18083
18084   namespace test_double_right_angle_brackets
18085   {
18086
18087     template < typename T >
18088     struct check {};
18089
18090     typedef check<void> single_type;
18091     typedef check<check<void>> double_type;
18092     typedef check<check<check<void>>> triple_type;
18093     typedef check<check<check<check<void>>>> quadruple_type;
18094
18095   }
18096
18097   namespace test_decltype
18098   {
18099
18100     int
18101     f()
18102     {
18103       int a = 1;
18104       decltype(a) b = 2;
18105       return a + b;
18106     }
18107
18108   }
18109
18110   namespace test_type_deduction
18111   {
18112
18113     template < typename T1, typename T2 >
18114     struct is_same
18115     {
18116       static const bool value = false;
18117     };
18118
18119     template < typename T >
18120     struct is_same<T, T>
18121     {
18122       static const bool value = true;
18123     };
18124
18125     template < typename T1, typename T2 >
18126     auto
18127     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18128     {
18129       return a1 + a2;
18130     }
18131
18132     int
18133     test(const int c, volatile int v)
18134     {
18135       static_assert(is_same<int, decltype(0)>::value == true, "");
18136       static_assert(is_same<int, decltype(c)>::value == false, "");
18137       static_assert(is_same<int, decltype(v)>::value == false, "");
18138       auto ac = c;
18139       auto av = v;
18140       auto sumi = ac + av + 'x';
18141       auto sumf = ac + av + 1.0;
18142       static_assert(is_same<int, decltype(ac)>::value == true, "");
18143       static_assert(is_same<int, decltype(av)>::value == true, "");
18144       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18145       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18146       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18147       return (sumf > 0.0) ? sumi : add(c, v);
18148     }
18149
18150   }
18151
18152   namespace test_noexcept
18153   {
18154
18155     int f() { return 0; }
18156     int g() noexcept { return 0; }
18157
18158     static_assert(noexcept(f()) == false, "");
18159     static_assert(noexcept(g()) == true, "");
18160
18161   }
18162
18163   namespace test_constexpr
18164   {
18165
18166     template < typename CharT >
18167     unsigned long constexpr
18168     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18169     {
18170       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18171     }
18172
18173     template < typename CharT >
18174     unsigned long constexpr
18175     strlen_c(const CharT *const s) noexcept
18176     {
18177       return strlen_c_r(s, 0UL);
18178     }
18179
18180     static_assert(strlen_c("") == 0UL, "");
18181     static_assert(strlen_c("1") == 1UL, "");
18182     static_assert(strlen_c("example") == 7UL, "");
18183     static_assert(strlen_c("another\0example") == 7UL, "");
18184
18185   }
18186
18187   namespace test_rvalue_references
18188   {
18189
18190     template < int N >
18191     struct answer
18192     {
18193       static constexpr int value = N;
18194     };
18195
18196     answer<1> f(int&)       { return answer<1>(); }
18197     answer<2> f(const int&) { return answer<2>(); }
18198     answer<3> f(int&&)      { return answer<3>(); }
18199
18200     void
18201     test()
18202     {
18203       int i = 0;
18204       const int c = 0;
18205       static_assert(decltype(f(i))::value == 1, "");
18206       static_assert(decltype(f(c))::value == 2, "");
18207       static_assert(decltype(f(0))::value == 3, "");
18208     }
18209
18210   }
18211
18212   namespace test_uniform_initialization
18213   {
18214
18215     struct test
18216     {
18217       static const int zero {};
18218       static const int one {1};
18219     };
18220
18221     static_assert(test::zero == 0, "");
18222     static_assert(test::one == 1, "");
18223
18224   }
18225
18226   namespace test_lambdas
18227   {
18228
18229     void
18230     test1()
18231     {
18232       auto lambda1 = [](){};
18233       auto lambda2 = lambda1;
18234       lambda1();
18235       lambda2();
18236     }
18237
18238     int
18239     test2()
18240     {
18241       auto a = [](int i, int j){ return i + j; }(1, 2);
18242       auto b = []() -> int { return '0'; }();
18243       auto c = [=](){ return a + b; }();
18244       auto d = [&](){ return c; }();
18245       auto e = [a, &b](int x) mutable {
18246         const auto identity = [](int y){ return y; };
18247         for (auto i = 0; i < a; ++i)
18248           a += b--;
18249         return x + identity(a + b);
18250       }(0);
18251       return a + b + c + d + e;
18252     }
18253
18254     int
18255     test3()
18256     {
18257       const auto nullary = [](){ return 0; };
18258       const auto unary = [](int x){ return x; };
18259       using nullary_t = decltype(nullary);
18260       using unary_t = decltype(unary);
18261       const auto higher1st = [](nullary_t f){ return f(); };
18262       const auto higher2nd = [unary](nullary_t f1){
18263         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18264       };
18265       return higher1st(nullary) + higher2nd(nullary)(unary);
18266     }
18267
18268   }
18269
18270   namespace test_variadic_templates
18271   {
18272
18273     template <int...>
18274     struct sum;
18275
18276     template <int N0, int... N1toN>
18277     struct sum<N0, N1toN...>
18278     {
18279       static constexpr auto value = N0 + sum<N1toN...>::value;
18280     };
18281
18282     template <>
18283     struct sum<>
18284     {
18285       static constexpr auto value = 0;
18286     };
18287
18288     static_assert(sum<>::value == 0, "");
18289     static_assert(sum<1>::value == 1, "");
18290     static_assert(sum<23>::value == 23, "");
18291     static_assert(sum<1, 2>::value == 3, "");
18292     static_assert(sum<5, 5, 11>::value == 21, "");
18293     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18294
18295   }
18296
18297   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18298   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18299   // because of this.
18300   namespace test_template_alias_sfinae
18301   {
18302
18303     struct foo {};
18304
18305     template<typename T>
18306     using member = typename T::member_type;
18307
18308     template<typename T>
18309     void func(...) {}
18310
18311     template<typename T>
18312     void func(member<T>*) {}
18313
18314     void test();
18315
18316     void test() { func<foo>(0); }
18317
18318   }
18319
18320 }  // namespace cxx11
18321
18322 #endif  // __cplusplus >= 201103L
18323
18324
18325
18326 _ACEOF
18327 if ac_fn_cxx_try_compile "$LINENO"; then :
18328   ax_cv_cxx_compile_cxx11=yes
18329 else
18330   ax_cv_cxx_compile_cxx11=no
18331 fi
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333 fi
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18335 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18336   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18337     ac_success=yes
18338   fi
18339
18340     if test x$ac_success = xno; then
18341     for alternative in ${ax_cxx_compile_alternatives}; do
18342       switch="-std=gnu++${alternative}"
18343       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18345 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18346 if eval \${$cachevar+:} false; then :
18347   $as_echo_n "(cached) " >&6
18348 else
18349   ac_save_CXX="$CXX"
18350          CXX="$CXX $switch"
18351          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h.  */
18353
18354
18355 // If the compiler admits that it is not ready for C++11, why torture it?
18356 // Hopefully, this will speed up the test.
18357
18358 #ifndef __cplusplus
18359
18360 #error "This is not a C++ compiler"
18361
18362 #elif __cplusplus < 201103L
18363
18364 #error "This is not a C++11 compiler"
18365
18366 #else
18367
18368 namespace cxx11
18369 {
18370
18371   namespace test_static_assert
18372   {
18373
18374     template <typename T>
18375     struct check
18376     {
18377       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18378     };
18379
18380   }
18381
18382   namespace test_final_override
18383   {
18384
18385     struct Base
18386     {
18387       virtual void f() {}
18388     };
18389
18390     struct Derived : public Base
18391     {
18392       virtual void f() override {}
18393     };
18394
18395   }
18396
18397   namespace test_double_right_angle_brackets
18398   {
18399
18400     template < typename T >
18401     struct check {};
18402
18403     typedef check<void> single_type;
18404     typedef check<check<void>> double_type;
18405     typedef check<check<check<void>>> triple_type;
18406     typedef check<check<check<check<void>>>> quadruple_type;
18407
18408   }
18409
18410   namespace test_decltype
18411   {
18412
18413     int
18414     f()
18415     {
18416       int a = 1;
18417       decltype(a) b = 2;
18418       return a + b;
18419     }
18420
18421   }
18422
18423   namespace test_type_deduction
18424   {
18425
18426     template < typename T1, typename T2 >
18427     struct is_same
18428     {
18429       static const bool value = false;
18430     };
18431
18432     template < typename T >
18433     struct is_same<T, T>
18434     {
18435       static const bool value = true;
18436     };
18437
18438     template < typename T1, typename T2 >
18439     auto
18440     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18441     {
18442       return a1 + a2;
18443     }
18444
18445     int
18446     test(const int c, volatile int v)
18447     {
18448       static_assert(is_same<int, decltype(0)>::value == true, "");
18449       static_assert(is_same<int, decltype(c)>::value == false, "");
18450       static_assert(is_same<int, decltype(v)>::value == false, "");
18451       auto ac = c;
18452       auto av = v;
18453       auto sumi = ac + av + 'x';
18454       auto sumf = ac + av + 1.0;
18455       static_assert(is_same<int, decltype(ac)>::value == true, "");
18456       static_assert(is_same<int, decltype(av)>::value == true, "");
18457       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18458       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18459       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18460       return (sumf > 0.0) ? sumi : add(c, v);
18461     }
18462
18463   }
18464
18465   namespace test_noexcept
18466   {
18467
18468     int f() { return 0; }
18469     int g() noexcept { return 0; }
18470
18471     static_assert(noexcept(f()) == false, "");
18472     static_assert(noexcept(g()) == true, "");
18473
18474   }
18475
18476   namespace test_constexpr
18477   {
18478
18479     template < typename CharT >
18480     unsigned long constexpr
18481     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18482     {
18483       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18484     }
18485
18486     template < typename CharT >
18487     unsigned long constexpr
18488     strlen_c(const CharT *const s) noexcept
18489     {
18490       return strlen_c_r(s, 0UL);
18491     }
18492
18493     static_assert(strlen_c("") == 0UL, "");
18494     static_assert(strlen_c("1") == 1UL, "");
18495     static_assert(strlen_c("example") == 7UL, "");
18496     static_assert(strlen_c("another\0example") == 7UL, "");
18497
18498   }
18499
18500   namespace test_rvalue_references
18501   {
18502
18503     template < int N >
18504     struct answer
18505     {
18506       static constexpr int value = N;
18507     };
18508
18509     answer<1> f(int&)       { return answer<1>(); }
18510     answer<2> f(const int&) { return answer<2>(); }
18511     answer<3> f(int&&)      { return answer<3>(); }
18512
18513     void
18514     test()
18515     {
18516       int i = 0;
18517       const int c = 0;
18518       static_assert(decltype(f(i))::value == 1, "");
18519       static_assert(decltype(f(c))::value == 2, "");
18520       static_assert(decltype(f(0))::value == 3, "");
18521     }
18522
18523   }
18524
18525   namespace test_uniform_initialization
18526   {
18527
18528     struct test
18529     {
18530       static const int zero {};
18531       static const int one {1};
18532     };
18533
18534     static_assert(test::zero == 0, "");
18535     static_assert(test::one == 1, "");
18536
18537   }
18538
18539   namespace test_lambdas
18540   {
18541
18542     void
18543     test1()
18544     {
18545       auto lambda1 = [](){};
18546       auto lambda2 = lambda1;
18547       lambda1();
18548       lambda2();
18549     }
18550
18551     int
18552     test2()
18553     {
18554       auto a = [](int i, int j){ return i + j; }(1, 2);
18555       auto b = []() -> int { return '0'; }();
18556       auto c = [=](){ return a + b; }();
18557       auto d = [&](){ return c; }();
18558       auto e = [a, &b](int x) mutable {
18559         const auto identity = [](int y){ return y; };
18560         for (auto i = 0; i < a; ++i)
18561           a += b--;
18562         return x + identity(a + b);
18563       }(0);
18564       return a + b + c + d + e;
18565     }
18566
18567     int
18568     test3()
18569     {
18570       const auto nullary = [](){ return 0; };
18571       const auto unary = [](int x){ return x; };
18572       using nullary_t = decltype(nullary);
18573       using unary_t = decltype(unary);
18574       const auto higher1st = [](nullary_t f){ return f(); };
18575       const auto higher2nd = [unary](nullary_t f1){
18576         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18577       };
18578       return higher1st(nullary) + higher2nd(nullary)(unary);
18579     }
18580
18581   }
18582
18583   namespace test_variadic_templates
18584   {
18585
18586     template <int...>
18587     struct sum;
18588
18589     template <int N0, int... N1toN>
18590     struct sum<N0, N1toN...>
18591     {
18592       static constexpr auto value = N0 + sum<N1toN...>::value;
18593     };
18594
18595     template <>
18596     struct sum<>
18597     {
18598       static constexpr auto value = 0;
18599     };
18600
18601     static_assert(sum<>::value == 0, "");
18602     static_assert(sum<1>::value == 1, "");
18603     static_assert(sum<23>::value == 23, "");
18604     static_assert(sum<1, 2>::value == 3, "");
18605     static_assert(sum<5, 5, 11>::value == 21, "");
18606     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18607
18608   }
18609
18610   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18611   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18612   // because of this.
18613   namespace test_template_alias_sfinae
18614   {
18615
18616     struct foo {};
18617
18618     template<typename T>
18619     using member = typename T::member_type;
18620
18621     template<typename T>
18622     void func(...) {}
18623
18624     template<typename T>
18625     void func(member<T>*) {}
18626
18627     void test();
18628
18629     void test() { func<foo>(0); }
18630
18631   }
18632
18633 }  // namespace cxx11
18634
18635 #endif  // __cplusplus >= 201103L
18636
18637
18638
18639 _ACEOF
18640 if ac_fn_cxx_try_compile "$LINENO"; then :
18641   eval $cachevar=yes
18642 else
18643   eval $cachevar=no
18644 fi
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18646          CXX="$ac_save_CXX"
18647 fi
18648 eval ac_res=\$$cachevar
18649                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18650 $as_echo "$ac_res" >&6; }
18651       if eval test x\$$cachevar = xyes; then
18652         CXX="$CXX $switch"
18653         if test -n "$CXXCPP" ; then
18654           CXXCPP="$CXXCPP $switch"
18655         fi
18656         ac_success=yes
18657         break
18658       fi
18659     done
18660   fi
18661
18662     if test x$ac_success = xno; then
18663                 for alternative in ${ax_cxx_compile_alternatives}; do
18664       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18665         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18667 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18668 if eval \${$cachevar+:} false; then :
18669   $as_echo_n "(cached) " >&6
18670 else
18671   ac_save_CXX="$CXX"
18672            CXX="$CXX $switch"
18673            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h.  */
18675
18676
18677 // If the compiler admits that it is not ready for C++11, why torture it?
18678 // Hopefully, this will speed up the test.
18679
18680 #ifndef __cplusplus
18681
18682 #error "This is not a C++ compiler"
18683
18684 #elif __cplusplus < 201103L
18685
18686 #error "This is not a C++11 compiler"
18687
18688 #else
18689
18690 namespace cxx11
18691 {
18692
18693   namespace test_static_assert
18694   {
18695
18696     template <typename T>
18697     struct check
18698     {
18699       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18700     };
18701
18702   }
18703
18704   namespace test_final_override
18705   {
18706
18707     struct Base
18708     {
18709       virtual void f() {}
18710     };
18711
18712     struct Derived : public Base
18713     {
18714       virtual void f() override {}
18715     };
18716
18717   }
18718
18719   namespace test_double_right_angle_brackets
18720   {
18721
18722     template < typename T >
18723     struct check {};
18724
18725     typedef check<void> single_type;
18726     typedef check<check<void>> double_type;
18727     typedef check<check<check<void>>> triple_type;
18728     typedef check<check<check<check<void>>>> quadruple_type;
18729
18730   }
18731
18732   namespace test_decltype
18733   {
18734
18735     int
18736     f()
18737     {
18738       int a = 1;
18739       decltype(a) b = 2;
18740       return a + b;
18741     }
18742
18743   }
18744
18745   namespace test_type_deduction
18746   {
18747
18748     template < typename T1, typename T2 >
18749     struct is_same
18750     {
18751       static const bool value = false;
18752     };
18753
18754     template < typename T >
18755     struct is_same<T, T>
18756     {
18757       static const bool value = true;
18758     };
18759
18760     template < typename T1, typename T2 >
18761     auto
18762     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18763     {
18764       return a1 + a2;
18765     }
18766
18767     int
18768     test(const int c, volatile int v)
18769     {
18770       static_assert(is_same<int, decltype(0)>::value == true, "");
18771       static_assert(is_same<int, decltype(c)>::value == false, "");
18772       static_assert(is_same<int, decltype(v)>::value == false, "");
18773       auto ac = c;
18774       auto av = v;
18775       auto sumi = ac + av + 'x';
18776       auto sumf = ac + av + 1.0;
18777       static_assert(is_same<int, decltype(ac)>::value == true, "");
18778       static_assert(is_same<int, decltype(av)>::value == true, "");
18779       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18780       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18781       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18782       return (sumf > 0.0) ? sumi : add(c, v);
18783     }
18784
18785   }
18786
18787   namespace test_noexcept
18788   {
18789
18790     int f() { return 0; }
18791     int g() noexcept { return 0; }
18792
18793     static_assert(noexcept(f()) == false, "");
18794     static_assert(noexcept(g()) == true, "");
18795
18796   }
18797
18798   namespace test_constexpr
18799   {
18800
18801     template < typename CharT >
18802     unsigned long constexpr
18803     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18804     {
18805       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18806     }
18807
18808     template < typename CharT >
18809     unsigned long constexpr
18810     strlen_c(const CharT *const s) noexcept
18811     {
18812       return strlen_c_r(s, 0UL);
18813     }
18814
18815     static_assert(strlen_c("") == 0UL, "");
18816     static_assert(strlen_c("1") == 1UL, "");
18817     static_assert(strlen_c("example") == 7UL, "");
18818     static_assert(strlen_c("another\0example") == 7UL, "");
18819
18820   }
18821
18822   namespace test_rvalue_references
18823   {
18824
18825     template < int N >
18826     struct answer
18827     {
18828       static constexpr int value = N;
18829     };
18830
18831     answer<1> f(int&)       { return answer<1>(); }
18832     answer<2> f(const int&) { return answer<2>(); }
18833     answer<3> f(int&&)      { return answer<3>(); }
18834
18835     void
18836     test()
18837     {
18838       int i = 0;
18839       const int c = 0;
18840       static_assert(decltype(f(i))::value == 1, "");
18841       static_assert(decltype(f(c))::value == 2, "");
18842       static_assert(decltype(f(0))::value == 3, "");
18843     }
18844
18845   }
18846
18847   namespace test_uniform_initialization
18848   {
18849
18850     struct test
18851     {
18852       static const int zero {};
18853       static const int one {1};
18854     };
18855
18856     static_assert(test::zero == 0, "");
18857     static_assert(test::one == 1, "");
18858
18859   }
18860
18861   namespace test_lambdas
18862   {
18863
18864     void
18865     test1()
18866     {
18867       auto lambda1 = [](){};
18868       auto lambda2 = lambda1;
18869       lambda1();
18870       lambda2();
18871     }
18872
18873     int
18874     test2()
18875     {
18876       auto a = [](int i, int j){ return i + j; }(1, 2);
18877       auto b = []() -> int { return '0'; }();
18878       auto c = [=](){ return a + b; }();
18879       auto d = [&](){ return c; }();
18880       auto e = [a, &b](int x) mutable {
18881         const auto identity = [](int y){ return y; };
18882         for (auto i = 0; i < a; ++i)
18883           a += b--;
18884         return x + identity(a + b);
18885       }(0);
18886       return a + b + c + d + e;
18887     }
18888
18889     int
18890     test3()
18891     {
18892       const auto nullary = [](){ return 0; };
18893       const auto unary = [](int x){ return x; };
18894       using nullary_t = decltype(nullary);
18895       using unary_t = decltype(unary);
18896       const auto higher1st = [](nullary_t f){ return f(); };
18897       const auto higher2nd = [unary](nullary_t f1){
18898         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18899       };
18900       return higher1st(nullary) + higher2nd(nullary)(unary);
18901     }
18902
18903   }
18904
18905   namespace test_variadic_templates
18906   {
18907
18908     template <int...>
18909     struct sum;
18910
18911     template <int N0, int... N1toN>
18912     struct sum<N0, N1toN...>
18913     {
18914       static constexpr auto value = N0 + sum<N1toN...>::value;
18915     };
18916
18917     template <>
18918     struct sum<>
18919     {
18920       static constexpr auto value = 0;
18921     };
18922
18923     static_assert(sum<>::value == 0, "");
18924     static_assert(sum<1>::value == 1, "");
18925     static_assert(sum<23>::value == 23, "");
18926     static_assert(sum<1, 2>::value == 3, "");
18927     static_assert(sum<5, 5, 11>::value == 21, "");
18928     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18929
18930   }
18931
18932   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18933   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18934   // because of this.
18935   namespace test_template_alias_sfinae
18936   {
18937
18938     struct foo {};
18939
18940     template<typename T>
18941     using member = typename T::member_type;
18942
18943     template<typename T>
18944     void func(...) {}
18945
18946     template<typename T>
18947     void func(member<T>*) {}
18948
18949     void test();
18950
18951     void test() { func<foo>(0); }
18952
18953   }
18954
18955 }  // namespace cxx11
18956
18957 #endif  // __cplusplus >= 201103L
18958
18959
18960
18961 _ACEOF
18962 if ac_fn_cxx_try_compile "$LINENO"; then :
18963   eval $cachevar=yes
18964 else
18965   eval $cachevar=no
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18968            CXX="$ac_save_CXX"
18969 fi
18970 eval ac_res=\$$cachevar
18971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18972 $as_echo "$ac_res" >&6; }
18973         if eval test x\$$cachevar = xyes; then
18974           CXX="$CXX $switch"
18975           if test -n "$CXXCPP" ; then
18976             CXXCPP="$CXXCPP $switch"
18977           fi
18978           ac_success=yes
18979           break
18980         fi
18981       done
18982       if test x$ac_success = xyes; then
18983         break
18984       fi
18985     done
18986   fi
18987   ac_ext=c
18988 ac_cpp='$CPP $CPPFLAGS'
18989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18992
18993   if test x$ax_cxx_compile_cxx11_required = xtrue; then
18994     if test x$ac_success = xno; then
18995       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18996     fi
18997   fi
18998   if test x$ac_success = xno; then
18999     HAVE_CXX11=0
19000     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19001 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
19002   else
19003     HAVE_CXX11=1
19004
19005 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
19006
19007   fi
19008
19009
19010
19011 # Check whether --enable-largefile was given.
19012 if test "${enable_largefile+set}" = set; then :
19013   enableval=$enable_largefile;
19014 fi
19015
19016 if test "$enable_largefile" != no; then
19017
19018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19019 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19020 if ${ac_cv_sys_largefile_CC+:} false; then :
19021   $as_echo_n "(cached) " >&6
19022 else
19023   ac_cv_sys_largefile_CC=no
19024      if test "$GCC" != yes; then
19025        ac_save_CC=$CC
19026        while :; do
19027          # IRIX 6.2 and later do not support large files by default,
19028          # so use the C compiler's -n32 option if that helps.
19029          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h.  */
19031 #include <sys/types.h>
19032  /* Check that off_t can represent 2**63 - 1 correctly.
19033     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19034     since some C++ compilers masquerading as C compilers
19035     incorrectly reject 9223372036854775807.  */
19036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19037   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19038                        && LARGE_OFF_T % 2147483647 == 1)
19039                       ? 1 : -1];
19040 int
19041 main ()
19042 {
19043
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048          if ac_fn_c_try_compile "$LINENO"; then :
19049   break
19050 fi
19051 rm -f core conftest.err conftest.$ac_objext
19052          CC="$CC -n32"
19053          if ac_fn_c_try_compile "$LINENO"; then :
19054   ac_cv_sys_largefile_CC=' -n32'; break
19055 fi
19056 rm -f core conftest.err conftest.$ac_objext
19057          break
19058        done
19059        CC=$ac_save_CC
19060        rm -f conftest.$ac_ext
19061     fi
19062 fi
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19064 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19065   if test "$ac_cv_sys_largefile_CC" != no; then
19066     CC=$CC$ac_cv_sys_largefile_CC
19067   fi
19068
19069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19070 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19071 if ${ac_cv_sys_file_offset_bits+:} false; then :
19072   $as_echo_n "(cached) " >&6
19073 else
19074   while :; do
19075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h.  */
19077 #include <sys/types.h>
19078  /* Check that off_t can represent 2**63 - 1 correctly.
19079     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19080     since some C++ compilers masquerading as C compilers
19081     incorrectly reject 9223372036854775807.  */
19082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19083   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19084                        && LARGE_OFF_T % 2147483647 == 1)
19085                       ? 1 : -1];
19086 int
19087 main ()
19088 {
19089
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 if ac_fn_c_try_compile "$LINENO"; then :
19095   ac_cv_sys_file_offset_bits=no; break
19096 fi
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h.  */
19100 #define _FILE_OFFSET_BITS 64
19101 #include <sys/types.h>
19102  /* Check that off_t can represent 2**63 - 1 correctly.
19103     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19104     since some C++ compilers masquerading as C compilers
19105     incorrectly reject 9223372036854775807.  */
19106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19107   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19108                        && LARGE_OFF_T % 2147483647 == 1)
19109                       ? 1 : -1];
19110 int
19111 main ()
19112 {
19113
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 if ac_fn_c_try_compile "$LINENO"; then :
19119   ac_cv_sys_file_offset_bits=64; break
19120 fi
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122   ac_cv_sys_file_offset_bits=unknown
19123   break
19124 done
19125 fi
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19127 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19128 case $ac_cv_sys_file_offset_bits in #(
19129   no | unknown) ;;
19130   *)
19131 cat >>confdefs.h <<_ACEOF
19132 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19133 _ACEOF
19134 ;;
19135 esac
19136 rm -rf conftest*
19137   if test $ac_cv_sys_file_offset_bits = unknown; then
19138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19139 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19140 if ${ac_cv_sys_large_files+:} false; then :
19141   $as_echo_n "(cached) " >&6
19142 else
19143   while :; do
19144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145 /* end confdefs.h.  */
19146 #include <sys/types.h>
19147  /* Check that off_t can represent 2**63 - 1 correctly.
19148     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19149     since some C++ compilers masquerading as C compilers
19150     incorrectly reject 9223372036854775807.  */
19151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19152   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19153                        && LARGE_OFF_T % 2147483647 == 1)
19154                       ? 1 : -1];
19155 int
19156 main ()
19157 {
19158
19159   ;
19160   return 0;
19161 }
19162 _ACEOF
19163 if ac_fn_c_try_compile "$LINENO"; then :
19164   ac_cv_sys_large_files=no; break
19165 fi
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h.  */
19169 #define _LARGE_FILES 1
19170 #include <sys/types.h>
19171  /* Check that off_t can represent 2**63 - 1 correctly.
19172     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19173     since some C++ compilers masquerading as C compilers
19174     incorrectly reject 9223372036854775807.  */
19175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19176   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19177                        && LARGE_OFF_T % 2147483647 == 1)
19178                       ? 1 : -1];
19179 int
19180 main ()
19181 {
19182
19183   ;
19184   return 0;
19185 }
19186 _ACEOF
19187 if ac_fn_c_try_compile "$LINENO"; then :
19188   ac_cv_sys_large_files=1; break
19189 fi
19190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19191   ac_cv_sys_large_files=unknown
19192   break
19193 done
19194 fi
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19196 $as_echo "$ac_cv_sys_large_files" >&6; }
19197 case $ac_cv_sys_large_files in #(
19198   no | unknown) ;;
19199   *)
19200 cat >>confdefs.h <<_ACEOF
19201 #define _LARGE_FILES $ac_cv_sys_large_files
19202 _ACEOF
19203 ;;
19204 esac
19205 rm -rf conftest*
19206   fi
19207
19208
19209 fi
19210
19211
19212
19213
19214
19215
19216
19217
19218 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19219         if test -n "$ac_tool_prefix"; then
19220   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19221 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19223 $as_echo_n "checking for $ac_word... " >&6; }
19224 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19225   $as_echo_n "(cached) " >&6
19226 else
19227   case $PKG_CONFIG in
19228   [\\/]* | ?:[\\/]*)
19229   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19230   ;;
19231   *)
19232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19233 for as_dir in $PATH
19234 do
19235   IFS=$as_save_IFS
19236   test -z "$as_dir" && as_dir=.
19237     for ac_exec_ext in '' $ac_executable_extensions; do
19238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19239     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19241     break 2
19242   fi
19243 done
19244   done
19245 IFS=$as_save_IFS
19246
19247   ;;
19248 esac
19249 fi
19250 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19251 if test -n "$PKG_CONFIG"; then
19252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19253 $as_echo "$PKG_CONFIG" >&6; }
19254 else
19255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19256 $as_echo "no" >&6; }
19257 fi
19258
19259
19260 fi
19261 if test -z "$ac_cv_path_PKG_CONFIG"; then
19262   ac_pt_PKG_CONFIG=$PKG_CONFIG
19263   # Extract the first word of "pkg-config", so it can be a program name with args.
19264 set dummy pkg-config; ac_word=$2
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19266 $as_echo_n "checking for $ac_word... " >&6; }
19267 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19268   $as_echo_n "(cached) " >&6
19269 else
19270   case $ac_pt_PKG_CONFIG in
19271   [\\/]* | ?:[\\/]*)
19272   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19273   ;;
19274   *)
19275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276 for as_dir in $PATH
19277 do
19278   IFS=$as_save_IFS
19279   test -z "$as_dir" && as_dir=.
19280     for ac_exec_ext in '' $ac_executable_extensions; do
19281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19284     break 2
19285   fi
19286 done
19287   done
19288 IFS=$as_save_IFS
19289
19290   ;;
19291 esac
19292 fi
19293 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19294 if test -n "$ac_pt_PKG_CONFIG"; then
19295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19296 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19297 else
19298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19300 fi
19301
19302   if test "x$ac_pt_PKG_CONFIG" = x; then
19303     PKG_CONFIG=""
19304   else
19305     case $cross_compiling:$ac_tool_warned in
19306 yes:)
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19309 ac_tool_warned=yes ;;
19310 esac
19311     PKG_CONFIG=$ac_pt_PKG_CONFIG
19312   fi
19313 else
19314   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19315 fi
19316
19317 fi
19318 if test -n "$PKG_CONFIG"; then
19319         _pkg_min_version=0.20
19320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19321 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19322         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19323                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19325         else
19326                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327 $as_echo "no" >&6; }
19328                 PKG_CONFIG=""
19329         fi
19330 fi
19331
19332 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19333
19334
19335 GIT=${GIT-"${am_missing_run}git"}
19336
19337
19338 # Version
19339
19340
19341
19342
19343 HB_VERSION_MAJOR=2
19344 HB_VERSION_MINOR=6
19345 HB_VERSION_MICRO=7
19346 HB_VERSION=2.6.7
19347
19348
19349
19350
19351
19352 # Libtool version
19353
19354
19355
19356
19357 HB_LIBTOOL_VERSION_INFO=20600:7:20600
19358
19359
19360
19361 # Check whether --with-libstdc++ was given.
19362 if test "${with_libstdc__+set}" = set; then :
19363   withval=$with_libstdc__; with_libstdcxx=$withval
19364 else
19365   with_libstdcxx=no
19366 fi
19367
19368  if test "x$with_libstdcxx" = "xyes"; then
19369   WITH_LIBSTDCXX_TRUE=
19370   WITH_LIBSTDCXX_FALSE='#'
19371 else
19372   WITH_LIBSTDCXX_TRUE='#'
19373   WITH_LIBSTDCXX_FALSE=
19374 fi
19375
19376
19377 # Documentation
19378 have_gtk_doc=false
19379
19380
19381
19382
19383   gtk_doc_requires="gtk-doc >= 1.15"
19384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19385 $as_echo_n "checking for gtk-doc... " >&6; }
19386   if test -n "$PKG_CONFIG" && \
19387     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19388   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19389   ac_status=$?
19390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391   test $ac_status = 0; }; then
19392   have_gtk_doc=yes
19393 else
19394   have_gtk_doc=no
19395 fi
19396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19397 $as_echo "$have_gtk_doc" >&6; }
19398
19399   if test "$have_gtk_doc" = "no"; then
19400       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19401   You will not be able to create source packages with 'make dist'
19402   because $gtk_doc_requires is not found." >&5
19403 $as_echo "$as_me: WARNING:
19404   You will not be able to create source packages with 'make dist'
19405   because $gtk_doc_requires is not found." >&2;}
19406   fi
19407
19408             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19409 set dummy gtkdoc-check; ac_word=$2
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19411 $as_echo_n "checking for $ac_word... " >&6; }
19412 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19413   $as_echo_n "(cached) " >&6
19414 else
19415   if test -n "$GTKDOC_CHECK"; then
19416   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19417 else
19418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19419 for as_dir in $PATH
19420 do
19421   IFS=$as_save_IFS
19422   test -z "$as_dir" && as_dir=.
19423     for ac_exec_ext in '' $ac_executable_extensions; do
19424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19425     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19427     break 2
19428   fi
19429 done
19430   done
19431 IFS=$as_save_IFS
19432
19433 fi
19434 fi
19435 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19436 if test -n "$GTKDOC_CHECK"; then
19437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19438 $as_echo "$GTKDOC_CHECK" >&6; }
19439 else
19440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441 $as_echo "no" >&6; }
19442 fi
19443
19444
19445   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19446 set dummy gtkdoc-check; ac_word=$2
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19448 $as_echo_n "checking for $ac_word... " >&6; }
19449 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19450   $as_echo_n "(cached) " >&6
19451 else
19452   case $GTKDOC_CHECK_PATH in
19453   [\\/]* | ?:[\\/]*)
19454   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19455   ;;
19456   *)
19457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19458 for as_dir in $PATH
19459 do
19460   IFS=$as_save_IFS
19461   test -z "$as_dir" && as_dir=.
19462     for ac_exec_ext in '' $ac_executable_extensions; do
19463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19464     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19466     break 2
19467   fi
19468 done
19469   done
19470 IFS=$as_save_IFS
19471
19472   ;;
19473 esac
19474 fi
19475 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19476 if test -n "$GTKDOC_CHECK_PATH"; then
19477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19478 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19479 else
19480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19481 $as_echo "no" >&6; }
19482 fi
19483
19484
19485   for ac_prog in gtkdoc-rebase
19486 do
19487   # Extract the first word of "$ac_prog", so it can be a program name with args.
19488 set dummy $ac_prog; ac_word=$2
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19490 $as_echo_n "checking for $ac_word... " >&6; }
19491 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19492   $as_echo_n "(cached) " >&6
19493 else
19494   case $GTKDOC_REBASE in
19495   [\\/]* | ?:[\\/]*)
19496   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19497   ;;
19498   *)
19499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500 for as_dir in $PATH
19501 do
19502   IFS=$as_save_IFS
19503   test -z "$as_dir" && as_dir=.
19504     for ac_exec_ext in '' $ac_executable_extensions; do
19505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19506     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19508     break 2
19509   fi
19510 done
19511   done
19512 IFS=$as_save_IFS
19513
19514   ;;
19515 esac
19516 fi
19517 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19518 if test -n "$GTKDOC_REBASE"; then
19519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19520 $as_echo "$GTKDOC_REBASE" >&6; }
19521 else
19522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19523 $as_echo "no" >&6; }
19524 fi
19525
19526
19527   test -n "$GTKDOC_REBASE" && break
19528 done
19529 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19530
19531   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19532 set dummy gtkdoc-mkpdf; ac_word=$2
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19534 $as_echo_n "checking for $ac_word... " >&6; }
19535 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19536   $as_echo_n "(cached) " >&6
19537 else
19538   case $GTKDOC_MKPDF in
19539   [\\/]* | ?:[\\/]*)
19540   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19541   ;;
19542   *)
19543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19544 for as_dir in $PATH
19545 do
19546   IFS=$as_save_IFS
19547   test -z "$as_dir" && as_dir=.
19548     for ac_exec_ext in '' $ac_executable_extensions; do
19549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19550     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19552     break 2
19553   fi
19554 done
19555   done
19556 IFS=$as_save_IFS
19557
19558   ;;
19559 esac
19560 fi
19561 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19562 if test -n "$GTKDOC_MKPDF"; then
19563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19564 $as_echo "$GTKDOC_MKPDF" >&6; }
19565 else
19566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567 $as_echo "no" >&6; }
19568 fi
19569
19570
19571
19572
19573 # Check whether --with-html-dir was given.
19574 if test "${with_html_dir+set}" = set; then :
19575   withval=$with_html_dir;
19576 else
19577   with_html_dir='${datadir}/gtk-doc/html'
19578 fi
19579
19580   HTML_DIR="$with_html_dir"
19581
19582
19583     # Check whether --enable-gtk-doc was given.
19584 if test "${enable_gtk_doc+set}" = set; then :
19585   enableval=$enable_gtk_doc;
19586 else
19587   enable_gtk_doc=no
19588 fi
19589
19590
19591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19592 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19594 $as_echo "$enable_gtk_doc" >&6; }
19595
19596   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19597     as_fn_error $? "
19598   You must have $gtk_doc_requires installed to build documentation for
19599   $PACKAGE_NAME. Please install gtk-doc or disable building the
19600   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19601   fi
19602
19603     if test "x$PACKAGE_NAME" != "xglib"; then
19604
19605 pkg_failed=no
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19607 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19608
19609 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19610     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19611  elif test -n "$PKG_CONFIG"; then
19612     if test -n "$PKG_CONFIG" && \
19613     { { $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
19614   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19615   ac_status=$?
19616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19617   test $ac_status = 0; }; then
19618   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19619                       test "x$?" != "x0" && pkg_failed=yes
19620 else
19621   pkg_failed=yes
19622 fi
19623  else
19624     pkg_failed=untried
19625 fi
19626 if test -n "$GTKDOC_DEPS_LIBS"; then
19627     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19628  elif test -n "$PKG_CONFIG"; then
19629     if test -n "$PKG_CONFIG" && \
19630     { { $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
19631   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19632   ac_status=$?
19633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19634   test $ac_status = 0; }; then
19635   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19636                       test "x$?" != "x0" && pkg_failed=yes
19637 else
19638   pkg_failed=yes
19639 fi
19640  else
19641     pkg_failed=untried
19642 fi
19643
19644
19645
19646 if test $pkg_failed = yes; then
19647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19648 $as_echo "no" >&6; }
19649
19650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19651         _pkg_short_errors_supported=yes
19652 else
19653         _pkg_short_errors_supported=no
19654 fi
19655         if test $_pkg_short_errors_supported = yes; then
19656                 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`
19657         else
19658                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19659         fi
19660         # Put the nasty error message in config.log where it belongs
19661         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19662
19663         :
19664 elif test $pkg_failed = untried; then
19665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19666 $as_echo "no" >&6; }
19667         :
19668 else
19669         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19670         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672 $as_echo "yes" >&6; }
19673
19674 fi
19675   fi
19676
19677     # Check whether --enable-gtk-doc-html was given.
19678 if test "${enable_gtk_doc_html+set}" = set; then :
19679   enableval=$enable_gtk_doc_html;
19680 else
19681   enable_gtk_doc_html=yes
19682 fi
19683
19684     # Check whether --enable-gtk-doc-pdf was given.
19685 if test "${enable_gtk_doc_pdf+set}" = set; then :
19686   enableval=$enable_gtk_doc_pdf;
19687 else
19688   enable_gtk_doc_pdf=no
19689 fi
19690
19691
19692   if test -z "$GTKDOC_MKPDF"; then
19693     enable_gtk_doc_pdf=no
19694   fi
19695
19696   if test -z "$AM_DEFAULT_VERBOSITY"; then
19697     AM_DEFAULT_VERBOSITY=1
19698   fi
19699
19700
19701    if test x$have_gtk_doc = xyes; then
19702   HAVE_GTK_DOC_TRUE=
19703   HAVE_GTK_DOC_FALSE='#'
19704 else
19705   HAVE_GTK_DOC_TRUE='#'
19706   HAVE_GTK_DOC_FALSE=
19707 fi
19708
19709    if test x$enable_gtk_doc = xyes; then
19710   ENABLE_GTK_DOC_TRUE=
19711   ENABLE_GTK_DOC_FALSE='#'
19712 else
19713   ENABLE_GTK_DOC_TRUE='#'
19714   ENABLE_GTK_DOC_FALSE=
19715 fi
19716
19717    if test x$enable_gtk_doc_html = xyes; then
19718   GTK_DOC_BUILD_HTML_TRUE=
19719   GTK_DOC_BUILD_HTML_FALSE='#'
19720 else
19721   GTK_DOC_BUILD_HTML_TRUE='#'
19722   GTK_DOC_BUILD_HTML_FALSE=
19723 fi
19724
19725    if test x$enable_gtk_doc_pdf = xyes; then
19726   GTK_DOC_BUILD_PDF_TRUE=
19727   GTK_DOC_BUILD_PDF_FALSE='#'
19728 else
19729   GTK_DOC_BUILD_PDF_TRUE='#'
19730   GTK_DOC_BUILD_PDF_FALSE=
19731 fi
19732
19733    if test -n "$LIBTOOL"; then
19734   GTK_DOC_USE_LIBTOOL_TRUE=
19735   GTK_DOC_USE_LIBTOOL_FALSE='#'
19736 else
19737   GTK_DOC_USE_LIBTOOL_TRUE='#'
19738   GTK_DOC_USE_LIBTOOL_FALSE=
19739 fi
19740
19741    if test -n "$GTKDOC_REBASE"; then
19742   GTK_DOC_USE_REBASE_TRUE=
19743   GTK_DOC_USE_REBASE_FALSE='#'
19744 else
19745   GTK_DOC_USE_REBASE_TRUE='#'
19746   GTK_DOC_USE_REBASE_FALSE=
19747 fi
19748
19749
19750         if test "x$enable_gtk_doc" = xyes; then
19751                 have_gtk_doc=true
19752         fi
19753
19754
19755 # Functions and headers
19756 for ac_func in atexit mprotect sysconf getpagesize mmap isatty roundf
19757 do :
19758   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19759 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19760 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19761   cat >>confdefs.h <<_ACEOF
19762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19763 _ACEOF
19764
19765 fi
19766 done
19767
19768 for ac_header in unistd.h sys/mman.h stdbool.h
19769 do :
19770   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19773   cat >>confdefs.h <<_ACEOF
19774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19775 _ACEOF
19776
19777 fi
19778
19779 done
19780
19781
19782 # Compiler flags
19783
19784 # The cast to long int works around a bug in the HP C Compiler,
19785 # see AC_CHECK_SIZEOF for more information.
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19787 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19788 if ${ac_cv_alignof_struct_char__+:} false; then :
19789   $as_echo_n "(cached) " >&6
19790 else
19791   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
19792 #ifndef offsetof
19793 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19794 #endif
19795 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19796
19797 else
19798   if test "$ac_cv_type_struct_char__" = yes; then
19799      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19801 as_fn_error 77 "cannot compute alignment of struct{char;}
19802 See \`config.log' for more details" "$LINENO" 5; }
19803    else
19804      ac_cv_alignof_struct_char__=0
19805    fi
19806 fi
19807
19808 fi
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19810 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19811
19812
19813
19814 cat >>confdefs.h <<_ACEOF
19815 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19816 _ACEOF
19817
19818
19819 if test "x$GCC" = "xyes"; then
19820
19821         # Make symbols link locally
19822         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19823 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19824 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19825   $as_echo_n "(cached) " >&6
19826 else
19827
19828   ax_check_save_flags=$LDFLAGS
19829   LDFLAGS="$LDFLAGS  -Bsymbolic-functions"
19830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19831 /* end confdefs.h.  */
19832
19833 int
19834 main ()
19835 {
19836
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 if ac_fn_c_try_link "$LINENO"; then :
19842   ax_cv_check_ldflags___Bsymbolic_functions=yes
19843 else
19844   ax_cv_check_ldflags___Bsymbolic_functions=no
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext \
19847     conftest$ac_exeext conftest.$ac_ext
19848   LDFLAGS=$ax_check_save_flags
19849 fi
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19851 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19852 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19853   LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19854 else
19855   :
19856 fi
19857
19858
19859         # Make it possible to not link to libstdc++
19860         # No threadsafe statics in C++ as we do it ourselves.
19861         # We don't use these features, so it's safe to disable them
19862         # even in the cases where we DO link to libstdc++.
19863         # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19864         # by overriding CXXFLAGS.
19865         CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19866
19867         case "$host" in
19868                 *-*-mingw*)
19869                 ;;
19870                 *)
19871                         # Hide inline methods
19872                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19873                 ;;
19874         esac
19875
19876         case "$host" in
19877                 arm-*-*)
19878                         if test "x$ac_cv_alignof_struct_char__" != x1; then
19879                                 # Request byte alignment
19880                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19881                         fi
19882                 ;;
19883         esac
19884 fi
19885
19886  if test "x$GCC" = "xyes"; then
19887   HAVE_GCC_TRUE=
19888   HAVE_GCC_FALSE='#'
19889 else
19890   HAVE_GCC_TRUE='#'
19891   HAVE_GCC_FALSE=
19892 fi
19893
19894
19895 hb_os_win32=no
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19897 $as_echo_n "checking for native Win32... " >&6; }
19898 case "$host" in
19899   *-*-mingw*)
19900     hb_os_win32=yes
19901     ;;
19902 esac
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19904 $as_echo "$hb_os_win32" >&6; }
19905  if test "$hb_os_win32" = "yes"; then
19906   OS_WIN32_TRUE=
19907   OS_WIN32_FALSE='#'
19908 else
19909   OS_WIN32_TRUE='#'
19910   OS_WIN32_FALSE=
19911 fi
19912
19913
19914 have_pthread=false
19915
19916
19917
19918
19919 ac_ext=c
19920 ac_cpp='$CPP $CPPFLAGS'
19921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19924
19925 ax_pthread_ok=no
19926
19927 # We used to check for pthread.h first, but this fails if pthread.h
19928 # requires special compiler flags (e.g. on Tru64 or Sequent).
19929 # It gets checked for in the link test anyway.
19930
19931 # First of all, check if the user has set any of the PTHREAD_LIBS,
19932 # etcetera environment variables, and if threads linking works using
19933 # them:
19934 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19935         ax_pthread_save_CC="$CC"
19936         ax_pthread_save_CFLAGS="$CFLAGS"
19937         ax_pthread_save_LIBS="$LIBS"
19938         if test "x$PTHREAD_CC" != "x"; then :
19939   CC="$PTHREAD_CC"
19940 fi
19941         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19942         LIBS="$PTHREAD_LIBS $LIBS"
19943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19944 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19945         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h.  */
19947
19948 /* Override any GCC internal prototype to avoid an error.
19949    Use char because int might match the return type of a GCC
19950    builtin and then its argument prototype would still apply.  */
19951 #ifdef __cplusplus
19952 extern "C"
19953 #endif
19954 char pthread_join ();
19955 int
19956 main ()
19957 {
19958 return pthread_join ();
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 if ac_fn_c_try_link "$LINENO"; then :
19964   ax_pthread_ok=yes
19965 fi
19966 rm -f core conftest.err conftest.$ac_objext \
19967     conftest$ac_exeext conftest.$ac_ext
19968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19969 $as_echo "$ax_pthread_ok" >&6; }
19970         if test "x$ax_pthread_ok" = "xno"; then
19971                 PTHREAD_LIBS=""
19972                 PTHREAD_CFLAGS=""
19973         fi
19974         CC="$ax_pthread_save_CC"
19975         CFLAGS="$ax_pthread_save_CFLAGS"
19976         LIBS="$ax_pthread_save_LIBS"
19977 fi
19978
19979 # We must check for the threads library under a number of different
19980 # names; the ordering is very important because some systems
19981 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19982 # libraries is broken (non-POSIX).
19983
19984 # Create a list of thread flags to try.  Items starting with a "-" are
19985 # C compiler flags, and other items are library names, except for "none"
19986 # which indicates that we try without any flags at all, and "pthread-config"
19987 # which is a program returning the flags for the Pth emulation library.
19988
19989 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19990
19991 # The ordering *is* (sometimes) important.  Some notes on the
19992 # individual items follow:
19993
19994 # pthreads: AIX (must check this before -lpthread)
19995 # none: in case threads are in libc; should be tried before -Kthread and
19996 #       other compiler flags to prevent continual compiler warnings
19997 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19998 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19999 #           (Note: HP C rejects this with "bad form for `-t' option")
20000 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20001 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20002 #      doesn't hurt to check since this sometimes defines pthreads and
20003 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
20004 #      is present but should not be used directly; and before -mthreads,
20005 #      because the compiler interprets this as "-mt" + "-hreads")
20006 # -mthreads: Mingw32/gcc, Lynx/gcc
20007 # pthread: Linux, etcetera
20008 # --thread-safe: KAI C++
20009 # pthread-config: use pthread-config program (for GNU Pth library)
20010
20011 case $host_os in
20012
20013         freebsd*)
20014
20015         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20016         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20017
20018         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20019         ;;
20020
20021         hpux*)
20022
20023         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20024         # multi-threading and also sets -lpthread."
20025
20026         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20027         ;;
20028
20029         openedition*)
20030
20031         # IBM z/OS requires a feature-test macro to be defined in order to
20032         # enable POSIX threads at all, so give the user a hint if this is
20033         # not set. (We don't define these ourselves, as they can affect
20034         # other portions of the system API in unpredictable ways.)
20035
20036         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20037 /* end confdefs.h.  */
20038
20039 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20040              AX_PTHREAD_ZOS_MISSING
20041 #            endif
20042
20043 _ACEOF
20044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20045   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20046   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20047 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20048 fi
20049 rm -f conftest*
20050
20051         ;;
20052
20053         solaris*)
20054
20055         # On Solaris (at least, for some versions), libc contains stubbed
20056         # (non-functional) versions of the pthreads routines, so link-based
20057         # tests will erroneously succeed. (N.B.: The stubs are missing
20058         # pthread_cleanup_push, or rather a function called by this macro,
20059         # so we could check for that, but who knows whether they'll stub
20060         # that too in a future libc.)  So we'll check first for the
20061         # standard Solaris way of linking pthreads (-mt -lpthread).
20062
20063         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20064         ;;
20065 esac
20066
20067 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20068
20069 if test "x$GCC" = "xyes"; then :
20070   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20071 fi
20072
20073 # The presence of a feature test macro requesting re-entrant function
20074 # definitions is, on some systems, a strong hint that pthreads support is
20075 # correctly enabled
20076
20077 case $host_os in
20078         darwin* | hpux* | linux* | osf* | solaris*)
20079         ax_pthread_check_macro="_REENTRANT"
20080         ;;
20081
20082         aix*)
20083         ax_pthread_check_macro="_THREAD_SAFE"
20084         ;;
20085
20086         *)
20087         ax_pthread_check_macro="--"
20088         ;;
20089 esac
20090 if test "x$ax_pthread_check_macro" = "x--"; then :
20091   ax_pthread_check_cond=0
20092 else
20093   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20094 fi
20095
20096 # Are we compiling with Clang?
20097
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20099 $as_echo_n "checking whether $CC is Clang... " >&6; }
20100 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20101   $as_echo_n "(cached) " >&6
20102 else
20103   ax_cv_PTHREAD_CLANG=no
20104      # Note that Autoconf sets GCC=yes for Clang as well as GCC
20105      if test "x$GCC" = "xyes"; then
20106         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107 /* end confdefs.h.  */
20108 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20109 #            if defined(__clang__) && defined(__llvm__)
20110              AX_PTHREAD_CC_IS_CLANG
20111 #            endif
20112
20113 _ACEOF
20114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20115   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20116   ax_cv_PTHREAD_CLANG=yes
20117 fi
20118 rm -f conftest*
20119
20120      fi
20121
20122 fi
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20124 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20125 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20126
20127 ax_pthread_clang_warning=no
20128
20129 # Clang needs special handling, because older versions handle the -pthread
20130 # option in a rather... idiosyncratic way
20131
20132 if test "x$ax_pthread_clang" = "xyes"; then
20133
20134         # Clang takes -pthread; it has never supported any other flag
20135
20136         # (Note 1: This will need to be revisited if a system that Clang
20137         # supports has POSIX threads in a separate library.  This tends not
20138         # to be the way of modern systems, but it's conceivable.)
20139
20140         # (Note 2: On some systems, notably Darwin, -pthread is not needed
20141         # to get POSIX threads support; the API is always present and
20142         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
20143         # -pthread does define _REENTRANT, and while the Darwin headers
20144         # ignore this macro, third-party headers might not.)
20145
20146         PTHREAD_CFLAGS="-pthread"
20147         PTHREAD_LIBS=
20148
20149         ax_pthread_ok=yes
20150
20151         # However, older versions of Clang make a point of warning the user
20152         # that, in an invocation where only linking and no compilation is
20153         # taking place, the -pthread option has no effect ("argument unused
20154         # during compilation").  They expect -pthread to be passed in only
20155         # when source code is being compiled.
20156         #
20157         # Problem is, this is at odds with the way Automake and most other
20158         # C build frameworks function, which is that the same flags used in
20159         # compilation (CFLAGS) are also used in linking.  Many systems
20160         # supported by AX_PTHREAD require exactly this for POSIX threads
20161         # support, and in fact it is often not straightforward to specify a
20162         # flag that is used only in the compilation phase and not in
20163         # linking.  Such a scenario is extremely rare in practice.
20164         #
20165         # Even though use of the -pthread flag in linking would only print
20166         # a warning, this can be a nuisance for well-run software projects
20167         # that build with -Werror.  So if the active version of Clang has
20168         # this misfeature, we search for an option to squash it.
20169
20170         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20171 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20172 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20173   $as_echo_n "(cached) " >&6
20174 else
20175   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20176              # Create an alternate version of $ac_link that compiles and
20177              # links in two steps (.c -> .o, .o -> exe) instead of one
20178              # (.c -> exe), because the warning occurs only in the second
20179              # step
20180              ax_pthread_save_ac_link="$ac_link"
20181              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20182              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20183              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20184              ax_pthread_save_CFLAGS="$CFLAGS"
20185              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20186                 if test "x$ax_pthread_try" = "xunknown"; then :
20187   break
20188 fi
20189                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20190                 ac_link="$ax_pthread_save_ac_link"
20191                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20192 /* end confdefs.h.  */
20193 int main(void){return 0;}
20194 _ACEOF
20195 if ac_fn_c_try_link "$LINENO"; then :
20196   ac_link="$ax_pthread_2step_ac_link"
20197                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h.  */
20199 int main(void){return 0;}
20200 _ACEOF
20201 if ac_fn_c_try_link "$LINENO"; then :
20202   break
20203 fi
20204 rm -f core conftest.err conftest.$ac_objext \
20205     conftest$ac_exeext conftest.$ac_ext
20206
20207 fi
20208 rm -f core conftest.err conftest.$ac_objext \
20209     conftest$ac_exeext conftest.$ac_ext
20210              done
20211              ac_link="$ax_pthread_save_ac_link"
20212              CFLAGS="$ax_pthread_save_CFLAGS"
20213              if test "x$ax_pthread_try" = "x"; then :
20214   ax_pthread_try=no
20215 fi
20216              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20217
20218 fi
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20220 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20221
20222         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20223                 no | unknown) ;;
20224                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20225         esac
20226
20227 fi # $ax_pthread_clang = yes
20228
20229 if test "x$ax_pthread_ok" = "xno"; then
20230 for ax_pthread_try_flag in $ax_pthread_flags; do
20231
20232         case $ax_pthread_try_flag in
20233                 none)
20234                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20235 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20236                 ;;
20237
20238                 -mt,pthread)
20239                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20240 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20241                 PTHREAD_CFLAGS="-mt"
20242                 PTHREAD_LIBS="-lpthread"
20243                 ;;
20244
20245                 -*)
20246                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20247 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20248                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20249                 ;;
20250
20251                 pthread-config)
20252                 # Extract the first word of "pthread-config", so it can be a program name with args.
20253 set dummy pthread-config; ac_word=$2
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20255 $as_echo_n "checking for $ac_word... " >&6; }
20256 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20257   $as_echo_n "(cached) " >&6
20258 else
20259   if test -n "$ax_pthread_config"; then
20260   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20261 else
20262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20263 for as_dir in $PATH
20264 do
20265   IFS=$as_save_IFS
20266   test -z "$as_dir" && as_dir=.
20267     for ac_exec_ext in '' $ac_executable_extensions; do
20268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20269     ac_cv_prog_ax_pthread_config="yes"
20270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20271     break 2
20272   fi
20273 done
20274   done
20275 IFS=$as_save_IFS
20276
20277   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20278 fi
20279 fi
20280 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20281 if test -n "$ax_pthread_config"; then
20282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20283 $as_echo "$ax_pthread_config" >&6; }
20284 else
20285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20286 $as_echo "no" >&6; }
20287 fi
20288
20289
20290                 if test "x$ax_pthread_config" = "xno"; then :
20291   continue
20292 fi
20293                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20294                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20295                 ;;
20296
20297                 *)
20298                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20299 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20300                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20301                 ;;
20302         esac
20303
20304         ax_pthread_save_CFLAGS="$CFLAGS"
20305         ax_pthread_save_LIBS="$LIBS"
20306         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20307         LIBS="$PTHREAD_LIBS $LIBS"
20308
20309         # Check for various functions.  We must include pthread.h,
20310         # since some functions may be macros.  (On the Sequent, we
20311         # need a special flag -Kthread to make this header compile.)
20312         # We check for pthread_join because it is in -lpthread on IRIX
20313         # while pthread_create is in libc.  We check for pthread_attr_init
20314         # due to DEC craziness with -lpthreads.  We check for
20315         # pthread_cleanup_push because it is one of the few pthread
20316         # functions on Solaris that doesn't have a non-functional libc stub.
20317         # We try pthread_create on general principles.
20318
20319         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h.  */
20321 #include <pthread.h>
20322 #                       if $ax_pthread_check_cond
20323 #                        error "$ax_pthread_check_macro must be defined"
20324 #                       endif
20325                         static void routine(void *a) { a = 0; }
20326                         static void *start_routine(void *a) { return a; }
20327 int
20328 main ()
20329 {
20330 pthread_t th; pthread_attr_t attr;
20331                         pthread_create(&th, 0, start_routine, 0);
20332                         pthread_join(th, 0);
20333                         pthread_attr_init(&attr);
20334                         pthread_cleanup_push(routine, 0);
20335                         pthread_cleanup_pop(0) /* ; */
20336   ;
20337   return 0;
20338 }
20339 _ACEOF
20340 if ac_fn_c_try_link "$LINENO"; then :
20341   ax_pthread_ok=yes
20342 fi
20343 rm -f core conftest.err conftest.$ac_objext \
20344     conftest$ac_exeext conftest.$ac_ext
20345
20346         CFLAGS="$ax_pthread_save_CFLAGS"
20347         LIBS="$ax_pthread_save_LIBS"
20348
20349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20350 $as_echo "$ax_pthread_ok" >&6; }
20351         if test "x$ax_pthread_ok" = "xyes"; then :
20352   break
20353 fi
20354
20355         PTHREAD_LIBS=""
20356         PTHREAD_CFLAGS=""
20357 done
20358 fi
20359
20360 # Various other checks:
20361 if test "x$ax_pthread_ok" = "xyes"; then
20362         ax_pthread_save_CFLAGS="$CFLAGS"
20363         ax_pthread_save_LIBS="$LIBS"
20364         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20365         LIBS="$PTHREAD_LIBS $LIBS"
20366
20367         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20368         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20369 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20370 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20371   $as_echo_n "(cached) " >&6
20372 else
20373   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20374              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20375                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376 /* end confdefs.h.  */
20377 #include <pthread.h>
20378 int
20379 main ()
20380 {
20381 int attr = $ax_pthread_attr; return attr /* ; */
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 if ac_fn_c_try_link "$LINENO"; then :
20387   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20388 fi
20389 rm -f core conftest.err conftest.$ac_objext \
20390     conftest$ac_exeext conftest.$ac_ext
20391              done
20392
20393 fi
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20395 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20396         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20397                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20398                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20399
20400 cat >>confdefs.h <<_ACEOF
20401 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20402 _ACEOF
20403
20404                ax_pthread_joinable_attr_defined=yes
20405
20406 fi
20407
20408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20409 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20410 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20411   $as_echo_n "(cached) " >&6
20412 else
20413   ax_cv_PTHREAD_SPECIAL_FLAGS=no
20414              case $host_os in
20415              solaris*)
20416              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20417              ;;
20418              esac
20419
20420 fi
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20422 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20423         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20424                test "x$ax_pthread_special_flags_added" != "xyes"; then :
20425   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20426                ax_pthread_special_flags_added=yes
20427 fi
20428
20429         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20430 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20431 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20432   $as_echo_n "(cached) " >&6
20433 else
20434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h.  */
20436 #include <pthread.h>
20437 int
20438 main ()
20439 {
20440 int i = PTHREAD_PRIO_INHERIT;
20441   ;
20442   return 0;
20443 }
20444 _ACEOF
20445 if ac_fn_c_try_link "$LINENO"; then :
20446   ax_cv_PTHREAD_PRIO_INHERIT=yes
20447 else
20448   ax_cv_PTHREAD_PRIO_INHERIT=no
20449 fi
20450 rm -f core conftest.err conftest.$ac_objext \
20451     conftest$ac_exeext conftest.$ac_ext
20452
20453 fi
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20455 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20456         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20457                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20458
20459 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20460
20461                ax_pthread_prio_inherit_defined=yes
20462
20463 fi
20464
20465         CFLAGS="$ax_pthread_save_CFLAGS"
20466         LIBS="$ax_pthread_save_LIBS"
20467
20468         # More AIX lossage: compile with *_r variant
20469         if test "x$GCC" != "xyes"; then
20470             case $host_os in
20471                 aix*)
20472                 case "x/$CC" in #(
20473   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20474     #handle absolute path differently from PATH based program lookup
20475                      case "x$CC" in #(
20476   x/*) :
20477     if as_fn_executable_p ${CC}_r; then :
20478   PTHREAD_CC="${CC}_r"
20479 fi ;; #(
20480   *) :
20481     for ac_prog in ${CC}_r
20482 do
20483   # Extract the first word of "$ac_prog", so it can be a program name with args.
20484 set dummy $ac_prog; ac_word=$2
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20486 $as_echo_n "checking for $ac_word... " >&6; }
20487 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20488   $as_echo_n "(cached) " >&6
20489 else
20490   if test -n "$PTHREAD_CC"; then
20491   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20492 else
20493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20494 for as_dir in $PATH
20495 do
20496   IFS=$as_save_IFS
20497   test -z "$as_dir" && as_dir=.
20498     for ac_exec_ext in '' $ac_executable_extensions; do
20499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20500     ac_cv_prog_PTHREAD_CC="$ac_prog"
20501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20502     break 2
20503   fi
20504 done
20505   done
20506 IFS=$as_save_IFS
20507
20508 fi
20509 fi
20510 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20511 if test -n "$PTHREAD_CC"; then
20512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20513 $as_echo "$PTHREAD_CC" >&6; }
20514 else
20515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20516 $as_echo "no" >&6; }
20517 fi
20518
20519
20520   test -n "$PTHREAD_CC" && break
20521 done
20522 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20523  ;;
20524 esac ;; #(
20525   *) :
20526      ;;
20527 esac
20528                 ;;
20529             esac
20530         fi
20531 fi
20532
20533 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20534
20535
20536
20537
20538
20539 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20540 if test "x$ax_pthread_ok" = "xyes"; then
20541         have_pthread=true
20542         :
20543 else
20544         ax_pthread_ok=no
20545
20546 fi
20547 ac_ext=c
20548 ac_cpp='$CPP $CPPFLAGS'
20549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20552
20553
20554 if $have_pthread; then
20555
20556 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20557
20558 fi
20559  if $have_pthread; then
20560   HAVE_PTHREAD_TRUE=
20561   HAVE_PTHREAD_FALSE='#'
20562 else
20563   HAVE_PTHREAD_TRUE='#'
20564   HAVE_PTHREAD_FALSE=
20565 fi
20566
20567
20568
20569
20570 # Check whether --with-glib was given.
20571 if test "${with_glib+set}" = set; then :
20572   withval=$with_glib;
20573 else
20574   with_glib=auto
20575 fi
20576
20577 have_glib=false
20578 GLIB_DEPS="glib-2.0 >= 2.19.1"
20579
20580 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20581
20582 pkg_failed=no
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20584 $as_echo_n "checking for GLIB... " >&6; }
20585
20586 if test -n "$GLIB_CFLAGS"; then
20587     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20588  elif test -n "$PKG_CONFIG"; then
20589     if test -n "$PKG_CONFIG" && \
20590     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20591   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20592   ac_status=$?
20593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20594   test $ac_status = 0; }; then
20595   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20596                       test "x$?" != "x0" && pkg_failed=yes
20597 else
20598   pkg_failed=yes
20599 fi
20600  else
20601     pkg_failed=untried
20602 fi
20603 if test -n "$GLIB_LIBS"; then
20604     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20605  elif test -n "$PKG_CONFIG"; then
20606     if test -n "$PKG_CONFIG" && \
20607     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20608   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20609   ac_status=$?
20610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20611   test $ac_status = 0; }; then
20612   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20613                       test "x$?" != "x0" && pkg_failed=yes
20614 else
20615   pkg_failed=yes
20616 fi
20617  else
20618     pkg_failed=untried
20619 fi
20620
20621
20622
20623 if test $pkg_failed = yes; then
20624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20625 $as_echo "no" >&6; }
20626
20627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20628         _pkg_short_errors_supported=yes
20629 else
20630         _pkg_short_errors_supported=no
20631 fi
20632         if test $_pkg_short_errors_supported = yes; then
20633                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20634         else
20635                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20636         fi
20637         # Put the nasty error message in config.log where it belongs
20638         echo "$GLIB_PKG_ERRORS" >&5
20639
20640         :
20641 elif test $pkg_failed = untried; then
20642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20643 $as_echo "no" >&6; }
20644         :
20645 else
20646         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20647         GLIB_LIBS=$pkg_cv_GLIB_LIBS
20648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20649 $as_echo "yes" >&6; }
20650         have_glib=true
20651 fi
20652 fi
20653 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20654         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20655 fi
20656 if $have_glib; then
20657
20658 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20659
20660 fi
20661  if $have_glib; then
20662   HAVE_GLIB_TRUE=
20663   HAVE_GLIB_FALSE='#'
20664 else
20665   HAVE_GLIB_TRUE='#'
20666   HAVE_GLIB_FALSE=
20667 fi
20668
20669
20670
20671
20672 # Check whether --with-gobject was given.
20673 if test "${with_gobject+set}" = set; then :
20674   withval=$with_gobject;
20675 else
20676   with_gobject=no
20677 fi
20678
20679 have_gobject=false
20680 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20681
20682 pkg_failed=no
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20684 $as_echo_n "checking for GOBJECT... " >&6; }
20685
20686 if test -n "$GOBJECT_CFLAGS"; then
20687     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20688  elif test -n "$PKG_CONFIG"; then
20689     if test -n "$PKG_CONFIG" && \
20690     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20691   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20692   ac_status=$?
20693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20694   test $ac_status = 0; }; then
20695   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20696                       test "x$?" != "x0" && pkg_failed=yes
20697 else
20698   pkg_failed=yes
20699 fi
20700  else
20701     pkg_failed=untried
20702 fi
20703 if test -n "$GOBJECT_LIBS"; then
20704     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20705  elif test -n "$PKG_CONFIG"; then
20706     if test -n "$PKG_CONFIG" && \
20707     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20708   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20709   ac_status=$?
20710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20711   test $ac_status = 0; }; then
20712   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20713                       test "x$?" != "x0" && pkg_failed=yes
20714 else
20715   pkg_failed=yes
20716 fi
20717  else
20718     pkg_failed=untried
20719 fi
20720
20721
20722
20723 if test $pkg_failed = yes; then
20724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20726
20727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20728         _pkg_short_errors_supported=yes
20729 else
20730         _pkg_short_errors_supported=no
20731 fi
20732         if test $_pkg_short_errors_supported = yes; then
20733                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20734         else
20735                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20736         fi
20737         # Put the nasty error message in config.log where it belongs
20738         echo "$GOBJECT_PKG_ERRORS" >&5
20739
20740         :
20741 elif test $pkg_failed = untried; then
20742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 $as_echo "no" >&6; }
20744         :
20745 else
20746         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20747         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20749 $as_echo "yes" >&6; }
20750         have_gobject=true
20751 fi
20752 fi
20753 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20754         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20755 fi
20756 if $have_gobject; then
20757
20758 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20759
20760         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20761
20762 fi
20763  if $have_gobject; then
20764   HAVE_GOBJECT_TRUE=
20765   HAVE_GOBJECT_FALSE='#'
20766 else
20767   HAVE_GOBJECT_TRUE='#'
20768   HAVE_GOBJECT_FALSE=
20769 fi
20770
20771
20772
20773
20774
20775 # Gobject-Introspection
20776 have_introspection=false
20777
20778         if $have_gobject; then
20779
20780
20781
20782                 # Check whether --enable-introspection was given.
20783 if test "${enable_introspection+set}" = set; then :
20784   enableval=$enable_introspection;
20785 else
20786   enable_introspection=auto
20787 fi
20788
20789
20790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20791 $as_echo_n "checking for gobject-introspection... " >&6; }
20792
20793         case $enable_introspection in #(
20794   no) :
20795             found_introspection="no (disabled, use --enable-introspection to enable)"
20796      ;; #(
20797       yes) :
20798             if test -n "$PKG_CONFIG" && \
20799     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20800   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20801   ac_status=$?
20802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20803   test $ac_status = 0; }; then
20804   :
20805 else
20806   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20807 fi
20808         if test -n "$PKG_CONFIG" && \
20809     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20810   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20811   ac_status=$?
20812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20813   test $ac_status = 0; }; then
20814   found_introspection=yes
20815 else
20816   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20817 fi
20818      ;; #(
20819       auto) :
20820             if test -n "$PKG_CONFIG" && \
20821     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20822   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20823   ac_status=$?
20824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20825   test $ac_status = 0; }; then
20826   found_introspection=yes
20827 else
20828   found_introspection=no
20829 fi
20830                 enable_introspection=$found_introspection
20831      ;; #(
20832   *) :
20833                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20834      ;;
20835 esac
20836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20837 $as_echo "$found_introspection" >&6; }
20838
20839
20840   EXP_VAR=_GI_EXP_DATADIR
20841   FROM_VAR="$datadir"
20842
20843     prefix_save=$prefix
20844   exec_prefix_save=$exec_prefix
20845
20846     if test "x$prefix" = "xNONE"; then
20847     prefix="$ac_default_prefix"
20848   fi
20849     if test "x$exec_prefix" = "xNONE"; then
20850     exec_prefix=$prefix
20851   fi
20852
20853   full_var="$FROM_VAR"
20854     while true; do
20855     new_full_var="`eval echo $full_var`"
20856     if test "x$new_full_var" = "x$full_var"; then break; fi
20857     full_var=$new_full_var
20858   done
20859
20860     full_var=$new_full_var
20861   _GI_EXP_DATADIR="$full_var"
20862
20863
20864     prefix=$prefix_save
20865   exec_prefix=$exec_prefix_save
20866
20867
20868   EXP_VAR=_GI_EXP_LIBDIR
20869   FROM_VAR="$libdir"
20870
20871     prefix_save=$prefix
20872   exec_prefix_save=$exec_prefix
20873
20874     if test "x$prefix" = "xNONE"; then
20875     prefix="$ac_default_prefix"
20876   fi
20877     if test "x$exec_prefix" = "xNONE"; then
20878     exec_prefix=$prefix
20879   fi
20880
20881   full_var="$FROM_VAR"
20882     while true; do
20883     new_full_var="`eval echo $full_var`"
20884     if test "x$new_full_var" = "x$full_var"; then break; fi
20885     full_var=$new_full_var
20886   done
20887
20888     full_var=$new_full_var
20889   _GI_EXP_LIBDIR="$full_var"
20890
20891
20892     prefix=$prefix_save
20893   exec_prefix=$exec_prefix_save
20894
20895
20896     INTROSPECTION_SCANNER=
20897     INTROSPECTION_COMPILER=
20898     INTROSPECTION_GENERATE=
20899     INTROSPECTION_GIRDIR=
20900     INTROSPECTION_TYPELIBDIR=
20901     if test "x$found_introspection" = "xyes"; then
20902        INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20903        INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20904        INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20905        INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
20906        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
20907        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20908        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20909        INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20910     fi
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920      if test "x$found_introspection" = "xyes"; then
20921   HAVE_INTROSPECTION_TRUE=
20922   HAVE_INTROSPECTION_FALSE='#'
20923 else
20924   HAVE_INTROSPECTION_TRUE='#'
20925   HAVE_INTROSPECTION_FALSE=
20926 fi
20927
20928
20929
20930                 if test "x$found_introspection" = xyes; then
20931                         have_introspection=true
20932                 fi
20933         else
20934                  if false; then
20935   HAVE_INTROSPECTION_TRUE=
20936   HAVE_INTROSPECTION_FALSE='#'
20937 else
20938   HAVE_INTROSPECTION_TRUE='#'
20939   HAVE_INTROSPECTION_FALSE=
20940 fi
20941
20942         fi
20943
20944
20945
20946
20947 # Check whether --with-cairo was given.
20948 if test "${with_cairo+set}" = set; then :
20949   withval=$with_cairo;
20950 else
20951   with_cairo=auto
20952 fi
20953
20954 have_cairo=false
20955 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20956
20957 pkg_failed=no
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20959 $as_echo_n "checking for CAIRO... " >&6; }
20960
20961 if test -n "$CAIRO_CFLAGS"; then
20962     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20963  elif test -n "$PKG_CONFIG"; then
20964     if test -n "$PKG_CONFIG" && \
20965     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20966   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20967   ac_status=$?
20968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20969   test $ac_status = 0; }; then
20970   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20971                       test "x$?" != "x0" && pkg_failed=yes
20972 else
20973   pkg_failed=yes
20974 fi
20975  else
20976     pkg_failed=untried
20977 fi
20978 if test -n "$CAIRO_LIBS"; then
20979     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20980  elif test -n "$PKG_CONFIG"; then
20981     if test -n "$PKG_CONFIG" && \
20982     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20983   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20984   ac_status=$?
20985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20986   test $ac_status = 0; }; then
20987   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20988                       test "x$?" != "x0" && pkg_failed=yes
20989 else
20990   pkg_failed=yes
20991 fi
20992  else
20993     pkg_failed=untried
20994 fi
20995
20996
20997
20998 if test $pkg_failed = yes; then
20999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21000 $as_echo "no" >&6; }
21001
21002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21003         _pkg_short_errors_supported=yes
21004 else
21005         _pkg_short_errors_supported=no
21006 fi
21007         if test $_pkg_short_errors_supported = yes; then
21008                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21009         else
21010                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21011         fi
21012         # Put the nasty error message in config.log where it belongs
21013         echo "$CAIRO_PKG_ERRORS" >&5
21014
21015         :
21016 elif test $pkg_failed = untried; then
21017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21018 $as_echo "no" >&6; }
21019         :
21020 else
21021         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
21022         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
21023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21024 $as_echo "yes" >&6; }
21025         have_cairo=true
21026 fi
21027 fi
21028 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
21029         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
21030 fi
21031 if $have_cairo; then
21032
21033 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
21034
21035 fi
21036  if $have_cairo; then
21037   HAVE_CAIRO_TRUE=
21038   HAVE_CAIRO_FALSE='#'
21039 else
21040   HAVE_CAIRO_TRUE='#'
21041   HAVE_CAIRO_FALSE=
21042 fi
21043
21044
21045 have_cairo_ft=false
21046 if $have_cairo; then
21047
21048 pkg_failed=no
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
21050 $as_echo_n "checking for CAIRO_FT... " >&6; }
21051
21052 if test -n "$CAIRO_FT_CFLAGS"; then
21053     pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
21054  elif test -n "$PKG_CONFIG"; then
21055     if test -n "$PKG_CONFIG" && \
21056     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21057   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21058   ac_status=$?
21059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060   test $ac_status = 0; }; then
21061   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
21062                       test "x$?" != "x0" && pkg_failed=yes
21063 else
21064   pkg_failed=yes
21065 fi
21066  else
21067     pkg_failed=untried
21068 fi
21069 if test -n "$CAIRO_FT_LIBS"; then
21070     pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
21071  elif test -n "$PKG_CONFIG"; then
21072     if test -n "$PKG_CONFIG" && \
21073     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21074   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21075   ac_status=$?
21076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077   test $ac_status = 0; }; then
21078   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
21079                       test "x$?" != "x0" && pkg_failed=yes
21080 else
21081   pkg_failed=yes
21082 fi
21083  else
21084     pkg_failed=untried
21085 fi
21086
21087
21088
21089 if test $pkg_failed = yes; then
21090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 $as_echo "no" >&6; }
21092
21093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21094         _pkg_short_errors_supported=yes
21095 else
21096         _pkg_short_errors_supported=no
21097 fi
21098         if test $_pkg_short_errors_supported = yes; then
21099                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21100         else
21101                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21102         fi
21103         # Put the nasty error message in config.log where it belongs
21104         echo "$CAIRO_FT_PKG_ERRORS" >&5
21105
21106         :
21107 elif test $pkg_failed = untried; then
21108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21109 $as_echo "no" >&6; }
21110         :
21111 else
21112         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21113         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21115 $as_echo "yes" >&6; }
21116         have_cairo_ft=true
21117 fi
21118 fi
21119 if $have_cairo_ft; then
21120
21121 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21122
21123 fi
21124  if $have_cairo_ft; then
21125   HAVE_CAIRO_FT_TRUE=
21126   HAVE_CAIRO_FT_FALSE='#'
21127 else
21128   HAVE_CAIRO_FT_TRUE='#'
21129   HAVE_CAIRO_FT_FALSE=
21130 fi
21131
21132
21133
21134
21135 # Check whether --with-fontconfig was given.
21136 if test "${with_fontconfig+set}" = set; then :
21137   withval=$with_fontconfig;
21138 else
21139   with_fontconfig=auto
21140 fi
21141
21142 have_fontconfig=false
21143 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
21144
21145 pkg_failed=no
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
21147 $as_echo_n "checking for FONTCONFIG... " >&6; }
21148
21149 if test -n "$FONTCONFIG_CFLAGS"; then
21150     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
21151  elif test -n "$PKG_CONFIG"; then
21152     if test -n "$PKG_CONFIG" && \
21153     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21154   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21155   ac_status=$?
21156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21157   test $ac_status = 0; }; then
21158   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
21159                       test "x$?" != "x0" && pkg_failed=yes
21160 else
21161   pkg_failed=yes
21162 fi
21163  else
21164     pkg_failed=untried
21165 fi
21166 if test -n "$FONTCONFIG_LIBS"; then
21167     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
21168  elif test -n "$PKG_CONFIG"; then
21169     if test -n "$PKG_CONFIG" && \
21170     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21171   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21172   ac_status=$?
21173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21174   test $ac_status = 0; }; then
21175   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
21176                       test "x$?" != "x0" && pkg_failed=yes
21177 else
21178   pkg_failed=yes
21179 fi
21180  else
21181     pkg_failed=untried
21182 fi
21183
21184
21185
21186 if test $pkg_failed = yes; then
21187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21188 $as_echo "no" >&6; }
21189
21190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21191         _pkg_short_errors_supported=yes
21192 else
21193         _pkg_short_errors_supported=no
21194 fi
21195         if test $_pkg_short_errors_supported = yes; then
21196                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
21197         else
21198                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
21199         fi
21200         # Put the nasty error message in config.log where it belongs
21201         echo "$FONTCONFIG_PKG_ERRORS" >&5
21202
21203         :
21204 elif test $pkg_failed = untried; then
21205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21206 $as_echo "no" >&6; }
21207         :
21208 else
21209         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
21210         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
21211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21212 $as_echo "yes" >&6; }
21213         have_fontconfig=true
21214 fi
21215 fi
21216 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
21217         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
21218 fi
21219 if $have_fontconfig; then
21220
21221 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
21222
21223 fi
21224  if $have_fontconfig; then
21225   HAVE_FONTCONFIG_TRUE=
21226   HAVE_FONTCONFIG_FALSE='#'
21227 else
21228   HAVE_FONTCONFIG_TRUE='#'
21229   HAVE_FONTCONFIG_FALSE=
21230 fi
21231
21232
21233
21234
21235 # Check whether --with-icu was given.
21236 if test "${with_icu+set}" = set; then :
21237   withval=$with_icu;
21238 else
21239   with_icu=auto
21240 fi
21241
21242 have_icu=false
21243 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21244
21245 pkg_failed=no
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21247 $as_echo_n "checking for ICU... " >&6; }
21248
21249 if test -n "$ICU_CFLAGS"; then
21250     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21251  elif test -n "$PKG_CONFIG"; then
21252     if test -n "$PKG_CONFIG" && \
21253     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21254   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21255   ac_status=$?
21256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21257   test $ac_status = 0; }; then
21258   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21259                       test "x$?" != "x0" && pkg_failed=yes
21260 else
21261   pkg_failed=yes
21262 fi
21263  else
21264     pkg_failed=untried
21265 fi
21266 if test -n "$ICU_LIBS"; then
21267     pkg_cv_ICU_LIBS="$ICU_LIBS"
21268  elif test -n "$PKG_CONFIG"; then
21269     if test -n "$PKG_CONFIG" && \
21270     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21271   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21272   ac_status=$?
21273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21274   test $ac_status = 0; }; then
21275   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21276                       test "x$?" != "x0" && pkg_failed=yes
21277 else
21278   pkg_failed=yes
21279 fi
21280  else
21281     pkg_failed=untried
21282 fi
21283
21284
21285
21286 if test $pkg_failed = yes; then
21287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21288 $as_echo "no" >&6; }
21289
21290 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21291         _pkg_short_errors_supported=yes
21292 else
21293         _pkg_short_errors_supported=no
21294 fi
21295         if test $_pkg_short_errors_supported = yes; then
21296                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21297         else
21298                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21299         fi
21300         # Put the nasty error message in config.log where it belongs
21301         echo "$ICU_PKG_ERRORS" >&5
21302
21303         :
21304 elif test $pkg_failed = untried; then
21305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21306 $as_echo "no" >&6; }
21307         :
21308 else
21309         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21310         ICU_LIBS=$pkg_cv_ICU_LIBS
21311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21312 $as_echo "yes" >&6; }
21313         have_icu=true
21314 fi
21315
21316                 if test "$have_icu" != "true"; then
21317                 if test -n "$ac_tool_prefix"; then
21318   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
21319 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21321 $as_echo_n "checking for $ac_word... " >&6; }
21322 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
21323   $as_echo_n "(cached) " >&6
21324 else
21325   if test -n "$ICU_CONFIG"; then
21326   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
21327 else
21328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329 for as_dir in $PATH
21330 do
21331   IFS=$as_save_IFS
21332   test -z "$as_dir" && as_dir=.
21333     for ac_exec_ext in '' $ac_executable_extensions; do
21334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21335     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
21336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21337     break 2
21338   fi
21339 done
21340   done
21341 IFS=$as_save_IFS
21342
21343 fi
21344 fi
21345 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
21346 if test -n "$ICU_CONFIG"; then
21347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
21348 $as_echo "$ICU_CONFIG" >&6; }
21349 else
21350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21351 $as_echo "no" >&6; }
21352 fi
21353
21354
21355 fi
21356 if test -z "$ac_cv_prog_ICU_CONFIG"; then
21357   ac_ct_ICU_CONFIG=$ICU_CONFIG
21358   # Extract the first word of "icu-config", so it can be a program name with args.
21359 set dummy icu-config; ac_word=$2
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21361 $as_echo_n "checking for $ac_word... " >&6; }
21362 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
21363   $as_echo_n "(cached) " >&6
21364 else
21365   if test -n "$ac_ct_ICU_CONFIG"; then
21366   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
21367 else
21368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21369 for as_dir in $PATH
21370 do
21371   IFS=$as_save_IFS
21372   test -z "$as_dir" && as_dir=.
21373     for ac_exec_ext in '' $ac_executable_extensions; do
21374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21375     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
21376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21377     break 2
21378   fi
21379 done
21380   done
21381 IFS=$as_save_IFS
21382
21383 fi
21384 fi
21385 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
21386 if test -n "$ac_ct_ICU_CONFIG"; then
21387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
21388 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
21389 else
21390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21391 $as_echo "no" >&6; }
21392 fi
21393
21394   if test "x$ac_ct_ICU_CONFIG" = x; then
21395     ICU_CONFIG="no"
21396   else
21397     case $cross_compiling:$ac_tool_warned in
21398 yes:)
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21401 ac_tool_warned=yes ;;
21402 esac
21403     ICU_CONFIG=$ac_ct_ICU_CONFIG
21404   fi
21405 else
21406   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
21407 fi
21408
21409                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
21410 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
21411                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
21412                         have_icu=true
21413                         # We don't use --cflags as this gives us a lot of things that we don't
21414                         # necessarily want, like debugging and optimization flags
21415                         # See man (1) icu-config for more info.
21416                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
21417                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
21418
21419
21420                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21421 $as_echo "yes" >&6; }
21422                 else
21423                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424 $as_echo "no" >&6; }
21425                 fi
21426         fi
21427 fi
21428 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21429         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21430 fi
21431
21432 if $have_icu; then
21433         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21434
21435 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21436
21437         if test "x$with_icu" = "xbuiltin"; then
21438
21439 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21440
21441         fi
21442 fi
21443  if $have_icu; then
21444   HAVE_ICU_TRUE=
21445   HAVE_ICU_FALSE='#'
21446 else
21447   HAVE_ICU_TRUE='#'
21448   HAVE_ICU_FALSE=
21449 fi
21450
21451  if $have_icu && test "x$with_icu" = "xbuiltin"; then
21452   HAVE_ICU_BUILTIN_TRUE=
21453   HAVE_ICU_BUILTIN_FALSE='#'
21454 else
21455   HAVE_ICU_BUILTIN_TRUE='#'
21456   HAVE_ICU_BUILTIN_FALSE=
21457 fi
21458
21459
21460
21461
21462 # Check whether --with-graphite2 was given.
21463 if test "${with_graphite2+set}" = set; then :
21464   withval=$with_graphite2;
21465 else
21466   with_graphite2=no
21467 fi
21468
21469 have_graphite2=false
21470 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21471
21472 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21473
21474 pkg_failed=no
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21476 $as_echo_n "checking for GRAPHITE2... " >&6; }
21477
21478 if test -n "$GRAPHITE2_CFLAGS"; then
21479     pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21480  elif test -n "$PKG_CONFIG"; then
21481     if test -n "$PKG_CONFIG" && \
21482     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21483   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21484   ac_status=$?
21485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21486   test $ac_status = 0; }; then
21487   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21488                       test "x$?" != "x0" && pkg_failed=yes
21489 else
21490   pkg_failed=yes
21491 fi
21492  else
21493     pkg_failed=untried
21494 fi
21495 if test -n "$GRAPHITE2_LIBS"; then
21496     pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21497  elif test -n "$PKG_CONFIG"; then
21498     if test -n "$PKG_CONFIG" && \
21499     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21500   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21501   ac_status=$?
21502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21503   test $ac_status = 0; }; then
21504   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21505                       test "x$?" != "x0" && pkg_failed=yes
21506 else
21507   pkg_failed=yes
21508 fi
21509  else
21510     pkg_failed=untried
21511 fi
21512
21513
21514
21515 if test $pkg_failed = yes; then
21516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21517 $as_echo "no" >&6; }
21518
21519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21520         _pkg_short_errors_supported=yes
21521 else
21522         _pkg_short_errors_supported=no
21523 fi
21524         if test $_pkg_short_errors_supported = yes; then
21525                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21526         else
21527                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21528         fi
21529         # Put the nasty error message in config.log where it belongs
21530         echo "$GRAPHITE2_PKG_ERRORS" >&5
21531
21532         :
21533 elif test $pkg_failed = untried; then
21534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21535 $as_echo "no" >&6; }
21536         :
21537 else
21538         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21539         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21541 $as_echo "yes" >&6; }
21542         have_graphite2=true
21543 fi
21544         if test "x$have_graphite2" != "xtrue"; then
21545                 # If pkg-config is not available, graphite2 can still be there
21546                 ac_save_CFLAGS="$CFLAGS"
21547                 ac_save_CPPFLAGS="$CPPFLAGS"
21548                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21549                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21550                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21551 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21552   have_graphite2=true
21553 else
21554   :
21555 fi
21556
21557
21558                 CPPFLAGS="$ac_save_CPPFLAGS"
21559                 CFLAGS="$ac_save_CFLAGS"
21560         fi
21561 fi
21562 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21563         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21564 fi
21565 if $have_graphite2; then
21566
21567 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21568
21569 fi
21570  if $have_graphite2; then
21571   HAVE_GRAPHITE2_TRUE=
21572   HAVE_GRAPHITE2_FALSE='#'
21573 else
21574   HAVE_GRAPHITE2_TRUE='#'
21575   HAVE_GRAPHITE2_FALSE=
21576 fi
21577
21578
21579
21580
21581 # Check whether --with-freetype was given.
21582 if test "${with_freetype+set}" = set; then :
21583   withval=$with_freetype;
21584 else
21585   with_freetype=auto
21586 fi
21587
21588 have_freetype=false
21589 FREETYPE_DEPS="freetype2 >= 12.0.6"
21590
21591 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21592         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21593
21594 pkg_failed=no
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21596 $as_echo_n "checking for FREETYPE... " >&6; }
21597
21598 if test -n "$FREETYPE_CFLAGS"; then
21599     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21600  elif test -n "$PKG_CONFIG"; then
21601     if test -n "$PKG_CONFIG" && \
21602     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21603   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21604   ac_status=$?
21605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21606   test $ac_status = 0; }; then
21607   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21608                       test "x$?" != "x0" && pkg_failed=yes
21609 else
21610   pkg_failed=yes
21611 fi
21612  else
21613     pkg_failed=untried
21614 fi
21615 if test -n "$FREETYPE_LIBS"; then
21616     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21617  elif test -n "$PKG_CONFIG"; then
21618     if test -n "$PKG_CONFIG" && \
21619     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21620   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21621   ac_status=$?
21622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623   test $ac_status = 0; }; then
21624   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21625                       test "x$?" != "x0" && pkg_failed=yes
21626 else
21627   pkg_failed=yes
21628 fi
21629  else
21630     pkg_failed=untried
21631 fi
21632
21633
21634
21635 if test $pkg_failed = yes; then
21636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21637 $as_echo "no" >&6; }
21638
21639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21640         _pkg_short_errors_supported=yes
21641 else
21642         _pkg_short_errors_supported=no
21643 fi
21644         if test $_pkg_short_errors_supported = yes; then
21645                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21646         else
21647                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21648         fi
21649         # Put the nasty error message in config.log where it belongs
21650         echo "$FREETYPE_PKG_ERRORS" >&5
21651
21652         :
21653 elif test $pkg_failed = untried; then
21654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21656         :
21657 else
21658         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21659         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661 $as_echo "yes" >&6; }
21662         have_freetype=true
21663 fi
21664 fi
21665 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21666         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21667 fi
21668 if $have_freetype; then
21669
21670 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21671
21672         save_libs=$LIBS
21673         LIBS="$LIBS $FREETYPE_LIBS"
21674         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
21675 do :
21676   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21679   cat >>confdefs.h <<_ACEOF
21680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21681 _ACEOF
21682
21683 fi
21684 done
21685
21686         LIBS=$save_libs
21687 fi
21688  if $have_freetype; then
21689   HAVE_FREETYPE_TRUE=
21690   HAVE_FREETYPE_FALSE='#'
21691 else
21692   HAVE_FREETYPE_TRUE='#'
21693   HAVE_FREETYPE_FALSE=
21694 fi
21695
21696
21697
21698
21699 # Check whether --with-uniscribe was given.
21700 if test "${with_uniscribe+set}" = set; then :
21701   withval=$with_uniscribe;
21702 else
21703   with_uniscribe=no
21704 fi
21705
21706 have_uniscribe=false
21707 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21708         for ac_header in usp10.h windows.h
21709 do :
21710   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21713   cat >>confdefs.h <<_ACEOF
21714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21715 _ACEOF
21716  have_uniscribe=true
21717 fi
21718
21719 done
21720
21721 fi
21722 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21723         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21724 fi
21725 if $have_uniscribe; then
21726         UNISCRIBE_CFLAGS=
21727         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21728
21729
21730
21731 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21732
21733 fi
21734  if $have_uniscribe; then
21735   HAVE_UNISCRIBE_TRUE=
21736   HAVE_UNISCRIBE_FALSE='#'
21737 else
21738   HAVE_UNISCRIBE_TRUE='#'
21739   HAVE_UNISCRIBE_FALSE=
21740 fi
21741
21742
21743
21744
21745 # Check whether --with-gdi was given.
21746 if test "${with_gdi+set}" = set; then :
21747   withval=$with_gdi;
21748 else
21749   with_gdi=no
21750 fi
21751
21752 have_gdi=false
21753 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21754         for ac_header in windows.h
21755 do :
21756   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21757 if test "x$ac_cv_header_windows_h" = xyes; then :
21758   cat >>confdefs.h <<_ACEOF
21759 #define HAVE_WINDOWS_H 1
21760 _ACEOF
21761  have_gdi=true
21762 fi
21763
21764 done
21765
21766 fi
21767 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21768         as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21769 fi
21770 if $have_gdi; then
21771         GDI_CFLAGS=
21772         GDI_LIBS="-lgdi32"
21773
21774
21775
21776 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21777
21778 fi
21779  if $have_gdi; then
21780   HAVE_GDI_TRUE=
21781   HAVE_GDI_FALSE='#'
21782 else
21783   HAVE_GDI_TRUE='#'
21784   HAVE_GDI_FALSE=
21785 fi
21786
21787
21788
21789
21790 # Check whether --with-directwrite was given.
21791 if test "${with_directwrite+set}" = set; then :
21792   withval=$with_directwrite;
21793 else
21794   with_directwrite=no
21795 fi
21796
21797 have_directwrite=false
21798 ac_ext=cpp
21799 ac_cpp='$CXXCPP $CPPFLAGS'
21800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21803
21804 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21805
21806 for ac_header in dwrite.h
21807 do :
21808   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
21809 if test "x$ac_cv_header_dwrite_h" = xyes; then :
21810   cat >>confdefs.h <<_ACEOF
21811 #define HAVE_DWRITE_H 1
21812 _ACEOF
21813  have_directwrite=true
21814 fi
21815
21816 done
21817
21818 fi
21819 ac_ext=c
21820 ac_cpp='$CPP $CPPFLAGS'
21821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21824
21825 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21826         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21827 fi
21828 if $have_directwrite; then
21829         DIRECTWRITE_CXXFLAGS=
21830         DIRECTWRITE_LIBS=
21831
21832
21833
21834 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21835
21836 fi
21837  if $have_directwrite; then
21838   HAVE_DIRECTWRITE_TRUE=
21839   HAVE_DIRECTWRITE_FALSE='#'
21840 else
21841   HAVE_DIRECTWRITE_TRUE='#'
21842   HAVE_DIRECTWRITE_FALSE=
21843 fi
21844
21845
21846
21847
21848 # Check whether --with-coretext was given.
21849 if test "${with_coretext+set}" = set; then :
21850   withval=$with_coretext;
21851 else
21852   with_coretext=no
21853 fi
21854
21855 have_coretext=false
21856 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21857         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21858 "
21859 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21860   have_coretext=true
21861 fi
21862
21863
21864         if $have_coretext; then
21865                 CORETEXT_CFLAGS=
21866                 CORETEXT_LIBS="-framework ApplicationServices"
21867
21868
21869         else
21870                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21871                 if test "x$have_coretext" != "xtrue"; then
21872                         # Check for a different symbol to avoid getting cached result.
21873                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21874 "
21875 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21876   have_coretext=true
21877 fi
21878
21879                 fi
21880
21881                 if $have_coretext; then
21882                         CORETEXT_CFLAGS=
21883                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21884
21885
21886                 fi
21887         fi
21888 fi
21889 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21890         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21891 fi
21892 if $have_coretext; then
21893
21894 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21895
21896 fi
21897  if $have_coretext; then
21898   HAVE_CORETEXT_TRUE=
21899   HAVE_CORETEXT_FALSE='#'
21900 else
21901   HAVE_CORETEXT_TRUE='#'
21902   HAVE_CORETEXT_FALSE=
21903 fi
21904
21905
21906
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
21908 $as_echo_n "checking for Intel atomic primitives... " >&6; }
21909 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
21910   $as_echo_n "(cached) " >&6
21911 else
21912
21913         hb_cv_have_intel_atomic_primitives=false
21914         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h.  */
21916
21917                 void memory_barrier (void) { __sync_synchronize (); }
21918                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
21919                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
21920                 void mutex_unlock (int *m) { __sync_lock_release (m); }
21921
21922 int
21923 main ()
21924 {
21925
21926   ;
21927   return 0;
21928 }
21929 _ACEOF
21930 if ac_fn_c_try_link "$LINENO"; then :
21931   hb_cv_have_intel_atomic_primitives=true
21932
21933 fi
21934 rm -f core conftest.err conftest.$ac_objext \
21935     conftest$ac_exeext conftest.$ac_ext
21936
21937 fi
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
21939 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
21940 if $hb_cv_have_intel_atomic_primitives; then
21941
21942 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
21943
21944 fi
21945
21946
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
21948 $as_echo_n "checking for Solaris atomic operations... " >&6; }
21949 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
21950   $as_echo_n "(cached) " >&6
21951 else
21952
21953         hb_cv_have_solaris_atomic_ops=false
21954         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h.  */
21956
21957                 #include <atomic.h>
21958                 /* This requires Solaris Studio 12.2 or newer: */
21959                 #include <mbarrier.h>
21960                 void memory_barrier (void) { __machine_rw_barrier (); }
21961                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21962                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21963
21964 int
21965 main ()
21966 {
21967
21968   ;
21969   return 0;
21970 }
21971 _ACEOF
21972 if ac_fn_c_try_link "$LINENO"; then :
21973   hb_cv_have_solaris_atomic_ops=true
21974
21975 fi
21976 rm -f core conftest.err conftest.$ac_objext \
21977     conftest$ac_exeext conftest.$ac_ext
21978
21979 fi
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21981 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21982 if $hb_cv_have_solaris_atomic_ops; then
21983
21984 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21985
21986 fi
21987
21988 if test "$os_win32" = no && ! $have_pthread; then
21989         for ac_header in sched.h
21990 do :
21991   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21992 if test "x$ac_cv_header_sched_h" = xyes; then :
21993   cat >>confdefs.h <<_ACEOF
21994 #define HAVE_SCHED_H 1
21995 _ACEOF
21996
21997 fi
21998
21999 done
22000
22001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
22002 $as_echo_n "checking for library containing sched_yield... " >&6; }
22003 if ${ac_cv_search_sched_yield+:} false; then :
22004   $as_echo_n "(cached) " >&6
22005 else
22006   ac_func_search_save_LIBS=$LIBS
22007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22008 /* end confdefs.h.  */
22009
22010 /* Override any GCC internal prototype to avoid an error.
22011    Use char because int might match the return type of a GCC
22012    builtin and then its argument prototype would still apply.  */
22013 #ifdef __cplusplus
22014 extern "C"
22015 #endif
22016 char sched_yield ();
22017 int
22018 main ()
22019 {
22020 return sched_yield ();
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 for ac_lib in '' rt; do
22026   if test -z "$ac_lib"; then
22027     ac_res="none required"
22028   else
22029     ac_res=-l$ac_lib
22030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22031   fi
22032   if ac_fn_c_try_link "$LINENO"; then :
22033   ac_cv_search_sched_yield=$ac_res
22034 fi
22035 rm -f core conftest.err conftest.$ac_objext \
22036     conftest$ac_exeext
22037   if ${ac_cv_search_sched_yield+:} false; then :
22038   break
22039 fi
22040 done
22041 if ${ac_cv_search_sched_yield+:} false; then :
22042
22043 else
22044   ac_cv_search_sched_yield=no
22045 fi
22046 rm conftest.$ac_ext
22047 LIBS=$ac_func_search_save_LIBS
22048 fi
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
22050 $as_echo "$ac_cv_search_sched_yield" >&6; }
22051 ac_res=$ac_cv_search_sched_yield
22052 if test "$ac_res" != no; then :
22053   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22054
22055 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22056
22057 fi
22058
22059 fi
22060
22061
22062 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
22063
22064
22065 cat >confcache <<\_ACEOF
22066 # This file is a shell script that caches the results of configure
22067 # tests run on this system so they can be shared between configure
22068 # scripts and configure runs, see configure's option --config-cache.
22069 # It is not useful on other systems.  If it contains results you don't
22070 # want to keep, you may remove or edit it.
22071 #
22072 # config.status only pays attention to the cache file if you give it
22073 # the --recheck option to rerun configure.
22074 #
22075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22077 # following values.
22078
22079 _ACEOF
22080
22081 # The following way of writing the cache mishandles newlines in values,
22082 # but we know of no workaround that is simple, portable, and efficient.
22083 # So, we kill variables containing newlines.
22084 # Ultrix sh set writes to stderr and can't be redirected directly,
22085 # and sets the high bit in the cache file unless we assign to the vars.
22086 (
22087   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22088     eval ac_val=\$$ac_var
22089     case $ac_val in #(
22090     *${as_nl}*)
22091       case $ac_var in #(
22092       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22094       esac
22095       case $ac_var in #(
22096       _ | IFS | as_nl) ;; #(
22097       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22098       *) { eval $ac_var=; unset $ac_var;} ;;
22099       esac ;;
22100     esac
22101   done
22102
22103   (set) 2>&1 |
22104     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22105     *${as_nl}ac_space=\ *)
22106       # `set' does not quote correctly, so add quotes: double-quote
22107       # substitution turns \\\\ into \\, and sed turns \\ into \.
22108       sed -n \
22109         "s/'/'\\\\''/g;
22110           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22111       ;; #(
22112     *)
22113       # `set' quotes correctly as required by POSIX, so do not add quotes.
22114       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22115       ;;
22116     esac |
22117     sort
22118 ) |
22119   sed '
22120      /^ac_cv_env_/b end
22121      t clear
22122      :clear
22123      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22124      t end
22125      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22126      :end' >>confcache
22127 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22128   if test -w "$cache_file"; then
22129     if test "x$cache_file" != "x/dev/null"; then
22130       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22131 $as_echo "$as_me: updating cache $cache_file" >&6;}
22132       if test ! -f "$cache_file" || test -h "$cache_file"; then
22133         cat confcache >"$cache_file"
22134       else
22135         case $cache_file in #(
22136         */* | ?:*)
22137           mv -f confcache "$cache_file"$$ &&
22138           mv -f "$cache_file"$$ "$cache_file" ;; #(
22139         *)
22140           mv -f confcache "$cache_file" ;;
22141         esac
22142       fi
22143     fi
22144   else
22145     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22147   fi
22148 fi
22149 rm -f confcache
22150
22151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22152 # Let make expand exec_prefix.
22153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22154
22155 DEFS=-DHAVE_CONFIG_H
22156
22157 ac_libobjs=
22158 ac_ltlibobjs=
22159 U=
22160 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22161   # 1. Remove the extension, and $U if already installed.
22162   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22163   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22164   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22165   #    will be set to the directory where LIBOBJS objects are built.
22166   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22167   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22168 done
22169 LIBOBJS=$ac_libobjs
22170
22171 LTLIBOBJS=$ac_ltlibobjs
22172
22173
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22175 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22176    if test -n "$am_sleep_pid"; then
22177      # Hide warnings about reused PIDs.
22178      wait $am_sleep_pid 2>/dev/null
22179    fi
22180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22181 $as_echo "done" >&6; }
22182  if test -n "$EXEEXT"; then
22183   am__EXEEXT_TRUE=
22184   am__EXEEXT_FALSE='#'
22185 else
22186   am__EXEEXT_TRUE='#'
22187   am__EXEEXT_FALSE=
22188 fi
22189
22190 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
22191   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
22192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22193 fi
22194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22195   as_fn_error $? "conditional \"AMDEP\" was never defined.
22196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22197 fi
22198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22199   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22201 fi
22202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22203   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22205 fi
22206 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22207   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22209 fi
22210 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
22211   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
22212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22213 fi
22214 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22215   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
22216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22217 fi
22218 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22219   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
22220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22221 fi
22222 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
22223   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
22224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22225 fi
22226 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
22227   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
22228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22229 fi
22230 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22231   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22233 fi
22234 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
22235   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
22236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22237 fi
22238 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
22239   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
22240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22241 fi
22242 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22243   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22245 fi
22246 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22247   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
22248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22249 fi
22250 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
22251   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
22252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22253 fi
22254 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
22255   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22257 fi
22258 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22259   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22261 fi
22262 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22263   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22265 fi
22266 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22267   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22269 fi
22270 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22271   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22273 fi
22274 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
22275   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
22276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22277 fi
22278 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22279   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22281 fi
22282 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22283   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22285 fi
22286 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22287   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22289 fi
22290 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22291   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22293 fi
22294 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22295   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22297 fi
22298 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22299   as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22301 fi
22302 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22303   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22305 fi
22306 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22307   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22309 fi
22310
22311 : "${CONFIG_STATUS=./config.status}"
22312 ac_write_fail=0
22313 ac_clean_files_save=$ac_clean_files
22314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22317 as_write_fail=0
22318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22319 #! $SHELL
22320 # Generated by $as_me.
22321 # Run this file to recreate the current configuration.
22322 # Compiler output produced by configure, useful for debugging
22323 # configure, is in config.log if it exists.
22324
22325 debug=false
22326 ac_cs_recheck=false
22327 ac_cs_silent=false
22328
22329 SHELL=\${CONFIG_SHELL-$SHELL}
22330 export SHELL
22331 _ASEOF
22332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22333 ## -------------------- ##
22334 ## M4sh Initialization. ##
22335 ## -------------------- ##
22336
22337 # Be more Bourne compatible
22338 DUALCASE=1; export DUALCASE # for MKS sh
22339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22340   emulate sh
22341   NULLCMD=:
22342   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22343   # is contrary to our usage.  Disable this feature.
22344   alias -g '${1+"$@"}'='"$@"'
22345   setopt NO_GLOB_SUBST
22346 else
22347   case `(set -o) 2>/dev/null` in #(
22348   *posix*) :
22349     set -o posix ;; #(
22350   *) :
22351      ;;
22352 esac
22353 fi
22354
22355
22356 as_nl='
22357 '
22358 export as_nl
22359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22360 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22363 # Prefer a ksh shell builtin over an external printf program on Solaris,
22364 # but without wasting forks for bash or zsh.
22365 if test -z "$BASH_VERSION$ZSH_VERSION" \
22366     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22367   as_echo='print -r --'
22368   as_echo_n='print -rn --'
22369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22370   as_echo='printf %s\n'
22371   as_echo_n='printf %s'
22372 else
22373   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22374     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22375     as_echo_n='/usr/ucb/echo -n'
22376   else
22377     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22378     as_echo_n_body='eval
22379       arg=$1;
22380       case $arg in #(
22381       *"$as_nl"*)
22382         expr "X$arg" : "X\\(.*\\)$as_nl";
22383         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22384       esac;
22385       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22386     '
22387     export as_echo_n_body
22388     as_echo_n='sh -c $as_echo_n_body as_echo'
22389   fi
22390   export as_echo_body
22391   as_echo='sh -c $as_echo_body as_echo'
22392 fi
22393
22394 # The user is always right.
22395 if test "${PATH_SEPARATOR+set}" != set; then
22396   PATH_SEPARATOR=:
22397   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22398     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22399       PATH_SEPARATOR=';'
22400   }
22401 fi
22402
22403
22404 # IFS
22405 # We need space, tab and new line, in precisely that order.  Quoting is
22406 # there to prevent editors from complaining about space-tab.
22407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22408 # splitting by setting IFS to empty value.)
22409 IFS=" ""        $as_nl"
22410
22411 # Find who we are.  Look in the path if we contain no directory separator.
22412 as_myself=
22413 case $0 in #((
22414   *[\\/]* ) as_myself=$0 ;;
22415   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416 for as_dir in $PATH
22417 do
22418   IFS=$as_save_IFS
22419   test -z "$as_dir" && as_dir=.
22420     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22421   done
22422 IFS=$as_save_IFS
22423
22424      ;;
22425 esac
22426 # We did not find ourselves, most probably we were run as `sh COMMAND'
22427 # in which case we are not to be found in the path.
22428 if test "x$as_myself" = x; then
22429   as_myself=$0
22430 fi
22431 if test ! -f "$as_myself"; then
22432   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22433   exit 1
22434 fi
22435
22436 # Unset variables that we do not need and which cause bugs (e.g. in
22437 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22438 # suppresses any "Segmentation fault" message there.  '((' could
22439 # trigger a bug in pdksh 5.2.14.
22440 for as_var in BASH_ENV ENV MAIL MAILPATH
22441 do eval test x\${$as_var+set} = xset \
22442   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22443 done
22444 PS1='$ '
22445 PS2='> '
22446 PS4='+ '
22447
22448 # NLS nuisances.
22449 LC_ALL=C
22450 export LC_ALL
22451 LANGUAGE=C
22452 export LANGUAGE
22453
22454 # CDPATH.
22455 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22456
22457
22458 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22459 # ----------------------------------------
22460 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22461 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22462 # script with STATUS, using 1 if that was 0.
22463 as_fn_error ()
22464 {
22465   as_status=$1; test $as_status -eq 0 && as_status=1
22466   if test "$4"; then
22467     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22468     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22469   fi
22470   $as_echo "$as_me: error: $2" >&2
22471   as_fn_exit $as_status
22472 } # as_fn_error
22473
22474
22475 # as_fn_set_status STATUS
22476 # -----------------------
22477 # Set $? to STATUS, without forking.
22478 as_fn_set_status ()
22479 {
22480   return $1
22481 } # as_fn_set_status
22482
22483 # as_fn_exit STATUS
22484 # -----------------
22485 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22486 as_fn_exit ()
22487 {
22488   set +e
22489   as_fn_set_status $1
22490   exit $1
22491 } # as_fn_exit
22492
22493 # as_fn_unset VAR
22494 # ---------------
22495 # Portably unset VAR.
22496 as_fn_unset ()
22497 {
22498   { eval $1=; unset $1;}
22499 }
22500 as_unset=as_fn_unset
22501 # as_fn_append VAR VALUE
22502 # ----------------------
22503 # Append the text in VALUE to the end of the definition contained in VAR. Take
22504 # advantage of any shell optimizations that allow amortized linear growth over
22505 # repeated appends, instead of the typical quadratic growth present in naive
22506 # implementations.
22507 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22508   eval 'as_fn_append ()
22509   {
22510     eval $1+=\$2
22511   }'
22512 else
22513   as_fn_append ()
22514   {
22515     eval $1=\$$1\$2
22516   }
22517 fi # as_fn_append
22518
22519 # as_fn_arith ARG...
22520 # ------------------
22521 # Perform arithmetic evaluation on the ARGs, and store the result in the
22522 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22523 # must be portable across $(()) and expr.
22524 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22525   eval 'as_fn_arith ()
22526   {
22527     as_val=$(( $* ))
22528   }'
22529 else
22530   as_fn_arith ()
22531   {
22532     as_val=`expr "$@" || test $? -eq 1`
22533   }
22534 fi # as_fn_arith
22535
22536
22537 if expr a : '\(a\)' >/dev/null 2>&1 &&
22538    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22539   as_expr=expr
22540 else
22541   as_expr=false
22542 fi
22543
22544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22545   as_basename=basename
22546 else
22547   as_basename=false
22548 fi
22549
22550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22551   as_dirname=dirname
22552 else
22553   as_dirname=false
22554 fi
22555
22556 as_me=`$as_basename -- "$0" ||
22557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22558          X"$0" : 'X\(//\)$' \| \
22559          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22560 $as_echo X/"$0" |
22561     sed '/^.*\/\([^/][^/]*\)\/*$/{
22562             s//\1/
22563             q
22564           }
22565           /^X\/\(\/\/\)$/{
22566             s//\1/
22567             q
22568           }
22569           /^X\/\(\/\).*/{
22570             s//\1/
22571             q
22572           }
22573           s/.*/./; q'`
22574
22575 # Avoid depending upon Character Ranges.
22576 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22577 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22578 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22579 as_cr_digits='0123456789'
22580 as_cr_alnum=$as_cr_Letters$as_cr_digits
22581
22582 ECHO_C= ECHO_N= ECHO_T=
22583 case `echo -n x` in #(((((
22584 -n*)
22585   case `echo 'xy\c'` in
22586   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22587   xy)  ECHO_C='\c';;
22588   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22589        ECHO_T=' ';;
22590   esac;;
22591 *)
22592   ECHO_N='-n';;
22593 esac
22594
22595 rm -f conf$$ conf$$.exe conf$$.file
22596 if test -d conf$$.dir; then
22597   rm -f conf$$.dir/conf$$.file
22598 else
22599   rm -f conf$$.dir
22600   mkdir conf$$.dir 2>/dev/null
22601 fi
22602 if (echo >conf$$.file) 2>/dev/null; then
22603   if ln -s conf$$.file conf$$ 2>/dev/null; then
22604     as_ln_s='ln -s'
22605     # ... but there are two gotchas:
22606     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22607     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22608     # In both cases, we have to default to `cp -pR'.
22609     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22610       as_ln_s='cp -pR'
22611   elif ln conf$$.file conf$$ 2>/dev/null; then
22612     as_ln_s=ln
22613   else
22614     as_ln_s='cp -pR'
22615   fi
22616 else
22617   as_ln_s='cp -pR'
22618 fi
22619 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22620 rmdir conf$$.dir 2>/dev/null
22621
22622
22623 # as_fn_mkdir_p
22624 # -------------
22625 # Create "$as_dir" as a directory, including parents if necessary.
22626 as_fn_mkdir_p ()
22627 {
22628
22629   case $as_dir in #(
22630   -*) as_dir=./$as_dir;;
22631   esac
22632   test -d "$as_dir" || eval $as_mkdir_p || {
22633     as_dirs=
22634     while :; do
22635       case $as_dir in #(
22636       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22637       *) as_qdir=$as_dir;;
22638       esac
22639       as_dirs="'$as_qdir' $as_dirs"
22640       as_dir=`$as_dirname -- "$as_dir" ||
22641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22642          X"$as_dir" : 'X\(//\)[^/]' \| \
22643          X"$as_dir" : 'X\(//\)$' \| \
22644          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22645 $as_echo X"$as_dir" |
22646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22647             s//\1/
22648             q
22649           }
22650           /^X\(\/\/\)[^/].*/{
22651             s//\1/
22652             q
22653           }
22654           /^X\(\/\/\)$/{
22655             s//\1/
22656             q
22657           }
22658           /^X\(\/\).*/{
22659             s//\1/
22660             q
22661           }
22662           s/.*/./; q'`
22663       test -d "$as_dir" && break
22664     done
22665     test -z "$as_dirs" || eval "mkdir $as_dirs"
22666   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22667
22668
22669 } # as_fn_mkdir_p
22670 if mkdir -p . 2>/dev/null; then
22671   as_mkdir_p='mkdir -p "$as_dir"'
22672 else
22673   test -d ./-p && rmdir ./-p
22674   as_mkdir_p=false
22675 fi
22676
22677
22678 # as_fn_executable_p FILE
22679 # -----------------------
22680 # Test if FILE is an executable regular file.
22681 as_fn_executable_p ()
22682 {
22683   test -f "$1" && test -x "$1"
22684 } # as_fn_executable_p
22685 as_test_x='test -x'
22686 as_executable_p=as_fn_executable_p
22687
22688 # Sed expression to map a string onto a valid CPP name.
22689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22690
22691 # Sed expression to map a string onto a valid variable name.
22692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22693
22694
22695 exec 6>&1
22696 ## ----------------------------------- ##
22697 ## Main body of $CONFIG_STATUS script. ##
22698 ## ----------------------------------- ##
22699 _ASEOF
22700 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22701
22702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22703 # Save the log message, to keep $0 and so on meaningful, and to
22704 # report actual input values of CONFIG_FILES etc. instead of their
22705 # values after options handling.
22706 ac_log="
22707 This file was extended by HarfBuzz $as_me 2.6.7, which was
22708 generated by GNU Autoconf 2.69.  Invocation command line was
22709
22710   CONFIG_FILES    = $CONFIG_FILES
22711   CONFIG_HEADERS  = $CONFIG_HEADERS
22712   CONFIG_LINKS    = $CONFIG_LINKS
22713   CONFIG_COMMANDS = $CONFIG_COMMANDS
22714   $ $0 $@
22715
22716 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22717 "
22718
22719 _ACEOF
22720
22721 case $ac_config_files in *"
22722 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22723 esac
22724
22725 case $ac_config_headers in *"
22726 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22727 esac
22728
22729
22730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22731 # Files that config.status was made for.
22732 config_files="$ac_config_files"
22733 config_headers="$ac_config_headers"
22734 config_commands="$ac_config_commands"
22735
22736 _ACEOF
22737
22738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22739 ac_cs_usage="\
22740 \`$as_me' instantiates files and other configuration actions
22741 from templates according to the current configuration.  Unless the files
22742 and actions are specified as TAGs, all are instantiated by default.
22743
22744 Usage: $0 [OPTION]... [TAG]...
22745
22746   -h, --help       print this help, then exit
22747   -V, --version    print version number and configuration settings, then exit
22748       --config     print configuration, then exit
22749   -q, --quiet, --silent
22750                    do not print progress messages
22751   -d, --debug      don't remove temporary files
22752       --recheck    update $as_me by reconfiguring in the same conditions
22753       --file=FILE[:TEMPLATE]
22754                    instantiate the configuration file FILE
22755       --header=FILE[:TEMPLATE]
22756                    instantiate the configuration header FILE
22757
22758 Configuration files:
22759 $config_files
22760
22761 Configuration headers:
22762 $config_headers
22763
22764 Configuration commands:
22765 $config_commands
22766
22767 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22768 HarfBuzz home page: <http://harfbuzz.org/>."
22769
22770 _ACEOF
22771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22772 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22773 ac_cs_version="\\
22774 HarfBuzz config.status 2.6.7
22775 configured by $0, generated by GNU Autoconf 2.69,
22776   with options \\"\$ac_cs_config\\"
22777
22778 Copyright (C) 2012 Free Software Foundation, Inc.
22779 This config.status script is free software; the Free Software Foundation
22780 gives unlimited permission to copy, distribute and modify it."
22781
22782 ac_pwd='$ac_pwd'
22783 srcdir='$srcdir'
22784 INSTALL='$INSTALL'
22785 MKDIR_P='$MKDIR_P'
22786 AWK='$AWK'
22787 test -n "\$AWK" || AWK=awk
22788 _ACEOF
22789
22790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22791 # The default lists apply if the user does not specify any file.
22792 ac_need_defaults=:
22793 while test $# != 0
22794 do
22795   case $1 in
22796   --*=?*)
22797     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22798     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22799     ac_shift=:
22800     ;;
22801   --*=)
22802     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22803     ac_optarg=
22804     ac_shift=:
22805     ;;
22806   *)
22807     ac_option=$1
22808     ac_optarg=$2
22809     ac_shift=shift
22810     ;;
22811   esac
22812
22813   case $ac_option in
22814   # Handling of the options.
22815   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22816     ac_cs_recheck=: ;;
22817   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22818     $as_echo "$ac_cs_version"; exit ;;
22819   --config | --confi | --conf | --con | --co | --c )
22820     $as_echo "$ac_cs_config"; exit ;;
22821   --debug | --debu | --deb | --de | --d | -d )
22822     debug=: ;;
22823   --file | --fil | --fi | --f )
22824     $ac_shift
22825     case $ac_optarg in
22826     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22827     '') as_fn_error $? "missing file argument" ;;
22828     esac
22829     as_fn_append CONFIG_FILES " '$ac_optarg'"
22830     ac_need_defaults=false;;
22831   --header | --heade | --head | --hea )
22832     $ac_shift
22833     case $ac_optarg in
22834     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22835     esac
22836     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22837     ac_need_defaults=false;;
22838   --he | --h)
22839     # Conflict between --help and --header
22840     as_fn_error $? "ambiguous option: \`$1'
22841 Try \`$0 --help' for more information.";;
22842   --help | --hel | -h )
22843     $as_echo "$ac_cs_usage"; exit ;;
22844   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22845   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22846     ac_cs_silent=: ;;
22847
22848   # This is an error.
22849   -*) as_fn_error $? "unrecognized option: \`$1'
22850 Try \`$0 --help' for more information." ;;
22851
22852   *) as_fn_append ac_config_targets " $1"
22853      ac_need_defaults=false ;;
22854
22855   esac
22856   shift
22857 done
22858
22859 ac_configure_extra_args=
22860
22861 if $ac_cs_silent; then
22862   exec 6>/dev/null
22863   ac_configure_extra_args="$ac_configure_extra_args --silent"
22864 fi
22865
22866 _ACEOF
22867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22868 if \$ac_cs_recheck; then
22869   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22870   shift
22871   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22872   CONFIG_SHELL='$SHELL'
22873   export CONFIG_SHELL
22874   exec "\$@"
22875 fi
22876
22877 _ACEOF
22878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22879 exec 5>>config.log
22880 {
22881   echo
22882   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22883 ## Running $as_me. ##
22884 _ASBOX
22885   $as_echo "$ac_log"
22886 } >&5
22887
22888 _ACEOF
22889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22890 #
22891 # INIT-COMMANDS
22892 #
22893 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22894
22895
22896 # The HP-UX ksh and POSIX shell print the target directory to stdout
22897 # if CDPATH is set.
22898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22899
22900 sed_quote_subst='$sed_quote_subst'
22901 double_quote_subst='$double_quote_subst'
22902 delay_variable_subst='$delay_variable_subst'
22903 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22904 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22905 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22906 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22907 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22908 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22909 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22910 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22911 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22912 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22913 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22914 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22915 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22916 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22917 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22918 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22919 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22920 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22921 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22922 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22923 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22924 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22925 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22926 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22927 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22928 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22929 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22930 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22931 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22932 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22933 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22934 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22935 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22936 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22937 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22938 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22939 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22940 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22941 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22942 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22943 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22944 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22945 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22946 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22947 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22948 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22949 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22950 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22951 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22952 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22953 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22954 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22955 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22956 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22957 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22958 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22959 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22960 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22961 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22962 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"`'
22963 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22964 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22965 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22966 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22967 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22968 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22969 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22970 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22971 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22972 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22973 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22974 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22975 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22976 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22977 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22978 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22979 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22980 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22981 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22982 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22983 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22984 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22985 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22986 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22987 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22988 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22989 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22990 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22991 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22992 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22993 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22994 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22995 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22996 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22997 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22998 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22999 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23000 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23001 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23002 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23003 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23004 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23005 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23006 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23007 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23008 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23009 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23010 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23011 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23012 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23013 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23014 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23015 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23016 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23017 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23018 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23019 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23020 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23021 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23022 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23023 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23024 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23025 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23026 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23027 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23028 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23029 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23030 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23031 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23032 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23033 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23034 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23035 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23036 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23037 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23038 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23039 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23040 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23041 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23042 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23043 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23044 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23045 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23046 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23047 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23048 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23049 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23050 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23051 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23052 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23053 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23054 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23055 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23056 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23057 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23058 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23059 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23060 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23061 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23062 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23063 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23064 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23065 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23066 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23067 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23068 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23069 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23070 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23071 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23072 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23073 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23074 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23075 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23076 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23077 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23078 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23079 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23080 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23081 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23082 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23083 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23084 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23085 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23086 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23087 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23088 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23089 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23090 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23091 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23092 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23093
23094 LTCC='$LTCC'
23095 LTCFLAGS='$LTCFLAGS'
23096 compiler='$compiler_DEFAULT'
23097
23098 # A function that is used when there is no print builtin or printf.
23099 func_fallback_echo ()
23100 {
23101   eval 'cat <<_LTECHO_EOF
23102 \$1
23103 _LTECHO_EOF'
23104 }
23105
23106 # Quote evaled strings.
23107 for var in SHELL \
23108 ECHO \
23109 PATH_SEPARATOR \
23110 SED \
23111 GREP \
23112 EGREP \
23113 FGREP \
23114 LD \
23115 NM \
23116 LN_S \
23117 lt_SP2NL \
23118 lt_NL2SP \
23119 reload_flag \
23120 OBJDUMP \
23121 deplibs_check_method \
23122 file_magic_cmd \
23123 file_magic_glob \
23124 want_nocaseglob \
23125 DLLTOOL \
23126 sharedlib_from_linklib_cmd \
23127 AR \
23128 archiver_list_spec \
23129 STRIP \
23130 RANLIB \
23131 CC \
23132 CFLAGS \
23133 compiler \
23134 lt_cv_sys_global_symbol_pipe \
23135 lt_cv_sys_global_symbol_to_cdecl \
23136 lt_cv_sys_global_symbol_to_import \
23137 lt_cv_sys_global_symbol_to_c_name_address \
23138 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23139 lt_cv_nm_interface \
23140 nm_file_list_spec \
23141 lt_cv_truncate_bin \
23142 lt_prog_compiler_no_builtin_flag \
23143 lt_prog_compiler_pic \
23144 lt_prog_compiler_wl \
23145 lt_prog_compiler_static \
23146 lt_cv_prog_compiler_c_o \
23147 need_locks \
23148 MANIFEST_TOOL \
23149 DSYMUTIL \
23150 NMEDIT \
23151 LIPO \
23152 OTOOL \
23153 OTOOL64 \
23154 shrext_cmds \
23155 export_dynamic_flag_spec \
23156 whole_archive_flag_spec \
23157 compiler_needs_object \
23158 with_gnu_ld \
23159 allow_undefined_flag \
23160 no_undefined_flag \
23161 hardcode_libdir_flag_spec \
23162 hardcode_libdir_separator \
23163 exclude_expsyms \
23164 include_expsyms \
23165 file_list_spec \
23166 variables_saved_for_relink \
23167 libname_spec \
23168 library_names_spec \
23169 soname_spec \
23170 install_override_mode \
23171 finish_eval \
23172 old_striplib \
23173 striplib \
23174 compiler_lib_search_dirs \
23175 predep_objects \
23176 postdep_objects \
23177 predeps \
23178 postdeps \
23179 compiler_lib_search_path \
23180 LD_CXX \
23181 reload_flag_CXX \
23182 compiler_CXX \
23183 lt_prog_compiler_no_builtin_flag_CXX \
23184 lt_prog_compiler_pic_CXX \
23185 lt_prog_compiler_wl_CXX \
23186 lt_prog_compiler_static_CXX \
23187 lt_cv_prog_compiler_c_o_CXX \
23188 export_dynamic_flag_spec_CXX \
23189 whole_archive_flag_spec_CXX \
23190 compiler_needs_object_CXX \
23191 with_gnu_ld_CXX \
23192 allow_undefined_flag_CXX \
23193 no_undefined_flag_CXX \
23194 hardcode_libdir_flag_spec_CXX \
23195 hardcode_libdir_separator_CXX \
23196 exclude_expsyms_CXX \
23197 include_expsyms_CXX \
23198 file_list_spec_CXX \
23199 compiler_lib_search_dirs_CXX \
23200 predep_objects_CXX \
23201 postdep_objects_CXX \
23202 predeps_CXX \
23203 postdeps_CXX \
23204 compiler_lib_search_path_CXX; do
23205     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23206     *[\\\\\\\`\\"\\\$]*)
23207       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23208       ;;
23209     *)
23210       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23211       ;;
23212     esac
23213 done
23214
23215 # Double-quote double-evaled strings.
23216 for var in reload_cmds \
23217 old_postinstall_cmds \
23218 old_postuninstall_cmds \
23219 old_archive_cmds \
23220 extract_expsyms_cmds \
23221 old_archive_from_new_cmds \
23222 old_archive_from_expsyms_cmds \
23223 archive_cmds \
23224 archive_expsym_cmds \
23225 module_cmds \
23226 module_expsym_cmds \
23227 export_symbols_cmds \
23228 prelink_cmds \
23229 postlink_cmds \
23230 postinstall_cmds \
23231 postuninstall_cmds \
23232 finish_cmds \
23233 sys_lib_search_path_spec \
23234 configure_time_dlsearch_path \
23235 configure_time_lt_sys_library_path \
23236 reload_cmds_CXX \
23237 old_archive_cmds_CXX \
23238 old_archive_from_new_cmds_CXX \
23239 old_archive_from_expsyms_cmds_CXX \
23240 archive_cmds_CXX \
23241 archive_expsym_cmds_CXX \
23242 module_cmds_CXX \
23243 module_expsym_cmds_CXX \
23244 export_symbols_cmds_CXX \
23245 prelink_cmds_CXX \
23246 postlink_cmds_CXX; do
23247     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23248     *[\\\\\\\`\\"\\\$]*)
23249       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23250       ;;
23251     *)
23252       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23253       ;;
23254     esac
23255 done
23256
23257 ac_aux_dir='$ac_aux_dir'
23258
23259 # See if we are running on zsh, and set the options that allow our
23260 # commands through without removal of \ escapes INIT.
23261 if test -n "\${ZSH_VERSION+set}"; then
23262    setopt NO_GLOB_SUBST
23263 fi
23264
23265
23266     PACKAGE='$PACKAGE'
23267     VERSION='$VERSION'
23268     RM='$RM'
23269     ofile='$ofile'
23270
23271
23272
23273
23274
23275
23276 _ACEOF
23277
23278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23279
23280 # Handling of arguments.
23281 for ac_config_target in $ac_config_targets
23282 do
23283   case $ac_config_target in
23284     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23285     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23286     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23287     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23288     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23289     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23290     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23291     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23292     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23293     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23294     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
23295     "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
23296     "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
23297     "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
23298     "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
23299     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23300     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23301     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23302     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23303
23304   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23305   esac
23306 done
23307
23308
23309 # If the user did not use the arguments to specify the items to instantiate,
23310 # then the envvar interface is used.  Set only those that are not.
23311 # We use the long form for the default assignment because of an extremely
23312 # bizarre bug on SunOS 4.1.3.
23313 if $ac_need_defaults; then
23314   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23315   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23316   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23317 fi
23318
23319 # Have a temporary directory for convenience.  Make it in the build tree
23320 # simply because there is no reason against having it here, and in addition,
23321 # creating and moving files from /tmp can sometimes cause problems.
23322 # Hook for its removal unless debugging.
23323 # Note that there is a small window in which the directory will not be cleaned:
23324 # after its creation but before its name has been assigned to `$tmp'.
23325 $debug ||
23326 {
23327   tmp= ac_tmp=
23328   trap 'exit_status=$?
23329   : "${ac_tmp:=$tmp}"
23330   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23331 ' 0
23332   trap 'as_fn_exit 1' 1 2 13 15
23333 }
23334 # Create a (secure) tmp directory for tmp files.
23335
23336 {
23337   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23338   test -d "$tmp"
23339 }  ||
23340 {
23341   tmp=./conf$$-$RANDOM
23342   (umask 077 && mkdir "$tmp")
23343 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23344 ac_tmp=$tmp
23345
23346 # Set up the scripts for CONFIG_FILES section.
23347 # No need to generate them if there are no CONFIG_FILES.
23348 # This happens for instance with `./config.status config.h'.
23349 if test -n "$CONFIG_FILES"; then
23350
23351
23352 ac_cr=`echo X | tr X '\015'`
23353 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23354 # But we know of no other shell where ac_cr would be empty at this
23355 # point, so we can use a bashism as a fallback.
23356 if test "x$ac_cr" = x; then
23357   eval ac_cr=\$\'\\r\'
23358 fi
23359 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23360 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23361   ac_cs_awk_cr='\\r'
23362 else
23363   ac_cs_awk_cr=$ac_cr
23364 fi
23365
23366 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23367 _ACEOF
23368
23369
23370 {
23371   echo "cat >conf$$subs.awk <<_ACEOF" &&
23372   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23373   echo "_ACEOF"
23374 } >conf$$subs.sh ||
23375   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23376 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23377 ac_delim='%!_!# '
23378 for ac_last_try in false false false false false :; do
23379   . ./conf$$subs.sh ||
23380     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23381
23382   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23383   if test $ac_delim_n = $ac_delim_num; then
23384     break
23385   elif $ac_last_try; then
23386     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23387   else
23388     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23389   fi
23390 done
23391 rm -f conf$$subs.sh
23392
23393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23394 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23395 _ACEOF
23396 sed -n '
23397 h
23398 s/^/S["/; s/!.*/"]=/
23399 p
23400 g
23401 s/^[^!]*!//
23402 :repl
23403 t repl
23404 s/'"$ac_delim"'$//
23405 t delim
23406 :nl
23407 h
23408 s/\(.\{148\}\)..*/\1/
23409 t more1
23410 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23411 p
23412 n
23413 b repl
23414 :more1
23415 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23416 p
23417 g
23418 s/.\{148\}//
23419 t nl
23420 :delim
23421 h
23422 s/\(.\{148\}\)..*/\1/
23423 t more2
23424 s/["\\]/\\&/g; s/^/"/; s/$/"/
23425 p
23426 b
23427 :more2
23428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23429 p
23430 g
23431 s/.\{148\}//
23432 t delim
23433 ' <conf$$subs.awk | sed '
23434 /^[^""]/{
23435   N
23436   s/\n//
23437 }
23438 ' >>$CONFIG_STATUS || ac_write_fail=1
23439 rm -f conf$$subs.awk
23440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23441 _ACAWK
23442 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23443   for (key in S) S_is_set[key] = 1
23444   FS = "\a"
23445
23446 }
23447 {
23448   line = $ 0
23449   nfields = split(line, field, "@")
23450   substed = 0
23451   len = length(field[1])
23452   for (i = 2; i < nfields; i++) {
23453     key = field[i]
23454     keylen = length(key)
23455     if (S_is_set[key]) {
23456       value = S[key]
23457       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23458       len += length(value) + length(field[++i])
23459       substed = 1
23460     } else
23461       len += 1 + keylen
23462   }
23463
23464   print line
23465 }
23466
23467 _ACAWK
23468 _ACEOF
23469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23470 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23471   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23472 else
23473   cat
23474 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23475   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23476 _ACEOF
23477
23478 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23479 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23480 # trailing colons and then remove the whole line if VPATH becomes empty
23481 # (actually we leave an empty line to preserve line numbers).
23482 if test "x$srcdir" = x.; then
23483   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23484 h
23485 s///
23486 s/^/:/
23487 s/[      ]*$/:/
23488 s/:\$(srcdir):/:/g
23489 s/:\${srcdir}:/:/g
23490 s/:@srcdir@:/:/g
23491 s/^:*//
23492 s/:*$//
23493 x
23494 s/\(=[   ]*\).*/\1/
23495 G
23496 s/\n//
23497 s/^[^=]*=[       ]*$//
23498 }'
23499 fi
23500
23501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23502 fi # test -n "$CONFIG_FILES"
23503
23504 # Set up the scripts for CONFIG_HEADERS section.
23505 # No need to generate them if there are no CONFIG_HEADERS.
23506 # This happens for instance with `./config.status Makefile'.
23507 if test -n "$CONFIG_HEADERS"; then
23508 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23509 BEGIN {
23510 _ACEOF
23511
23512 # Transform confdefs.h into an awk script `defines.awk', embedded as
23513 # here-document in config.status, that substitutes the proper values into
23514 # config.h.in to produce config.h.
23515
23516 # Create a delimiter string that does not exist in confdefs.h, to ease
23517 # handling of long lines.
23518 ac_delim='%!_!# '
23519 for ac_last_try in false false :; do
23520   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23521   if test -z "$ac_tt"; then
23522     break
23523   elif $ac_last_try; then
23524     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23525   else
23526     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23527   fi
23528 done
23529
23530 # For the awk script, D is an array of macro values keyed by name,
23531 # likewise P contains macro parameters if any.  Preserve backslash
23532 # newline sequences.
23533
23534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23535 sed -n '
23536 s/.\{148\}/&'"$ac_delim"'/g
23537 t rset
23538 :rset
23539 s/^[     ]*#[    ]*define[       ][      ]*/ /
23540 t def
23541 d
23542 :def
23543 s/\\$//
23544 t bsnl
23545 s/["\\]/\\&/g
23546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23547 D["\1"]=" \3"/p
23548 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23549 d
23550 :bsnl
23551 s/["\\]/\\&/g
23552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23553 D["\1"]=" \3\\\\\\n"\\/p
23554 t cont
23555 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23556 t cont
23557 d
23558 :cont
23559 n
23560 s/.\{148\}/&'"$ac_delim"'/g
23561 t clear
23562 :clear
23563 s/\\$//
23564 t bsnlc
23565 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23566 d
23567 :bsnlc
23568 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23569 b cont
23570 ' <confdefs.h | sed '
23571 s/'"$ac_delim"'/"\\\
23572 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23573
23574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23575   for (key in D) D_is_set[key] = 1
23576   FS = "\a"
23577 }
23578 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23579   line = \$ 0
23580   split(line, arg, " ")
23581   if (arg[1] == "#") {
23582     defundef = arg[2]
23583     mac1 = arg[3]
23584   } else {
23585     defundef = substr(arg[1], 2)
23586     mac1 = arg[2]
23587   }
23588   split(mac1, mac2, "(") #)
23589   macro = mac2[1]
23590   prefix = substr(line, 1, index(line, defundef) - 1)
23591   if (D_is_set[macro]) {
23592     # Preserve the white space surrounding the "#".
23593     print prefix "define", macro P[macro] D[macro]
23594     next
23595   } else {
23596     # Replace #undef with comments.  This is necessary, for example,
23597     # in the case of _POSIX_SOURCE, which is predefined and required
23598     # on some systems where configure will not decide to define it.
23599     if (defundef == "undef") {
23600       print "/*", prefix defundef, macro, "*/"
23601       next
23602     }
23603   }
23604 }
23605 { print }
23606 _ACAWK
23607 _ACEOF
23608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23609   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23610 fi # test -n "$CONFIG_HEADERS"
23611
23612
23613 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23614 shift
23615 for ac_tag
23616 do
23617   case $ac_tag in
23618   :[FHLC]) ac_mode=$ac_tag; continue;;
23619   esac
23620   case $ac_mode$ac_tag in
23621   :[FHL]*:*);;
23622   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23623   :[FH]-) ac_tag=-:-;;
23624   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23625   esac
23626   ac_save_IFS=$IFS
23627   IFS=:
23628   set x $ac_tag
23629   IFS=$ac_save_IFS
23630   shift
23631   ac_file=$1
23632   shift
23633
23634   case $ac_mode in
23635   :L) ac_source=$1;;
23636   :[FH])
23637     ac_file_inputs=
23638     for ac_f
23639     do
23640       case $ac_f in
23641       -) ac_f="$ac_tmp/stdin";;
23642       *) # Look for the file first in the build tree, then in the source tree
23643          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23644          # because $ac_f cannot contain `:'.
23645          test -f "$ac_f" ||
23646            case $ac_f in
23647            [\\/$]*) false;;
23648            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23649            esac ||
23650            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23651       esac
23652       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23653       as_fn_append ac_file_inputs " '$ac_f'"
23654     done
23655
23656     # Let's still pretend it is `configure' which instantiates (i.e., don't
23657     # use $as_me), people would be surprised to read:
23658     #    /* config.h.  Generated by config.status.  */
23659     configure_input='Generated from '`
23660           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23661         `' by configure.'
23662     if test x"$ac_file" != x-; then
23663       configure_input="$ac_file.  $configure_input"
23664       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23665 $as_echo "$as_me: creating $ac_file" >&6;}
23666     fi
23667     # Neutralize special characters interpreted by sed in replacement strings.
23668     case $configure_input in #(
23669     *\&* | *\|* | *\\* )
23670        ac_sed_conf_input=`$as_echo "$configure_input" |
23671        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23672     *) ac_sed_conf_input=$configure_input;;
23673     esac
23674
23675     case $ac_tag in
23676     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23677       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23678     esac
23679     ;;
23680   esac
23681
23682   ac_dir=`$as_dirname -- "$ac_file" ||
23683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23684          X"$ac_file" : 'X\(//\)[^/]' \| \
23685          X"$ac_file" : 'X\(//\)$' \| \
23686          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23687 $as_echo X"$ac_file" |
23688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23689             s//\1/
23690             q
23691           }
23692           /^X\(\/\/\)[^/].*/{
23693             s//\1/
23694             q
23695           }
23696           /^X\(\/\/\)$/{
23697             s//\1/
23698             q
23699           }
23700           /^X\(\/\).*/{
23701             s//\1/
23702             q
23703           }
23704           s/.*/./; q'`
23705   as_dir="$ac_dir"; as_fn_mkdir_p
23706   ac_builddir=.
23707
23708 case "$ac_dir" in
23709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23710 *)
23711   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23712   # A ".." for each directory in $ac_dir_suffix.
23713   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23714   case $ac_top_builddir_sub in
23715   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23716   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23717   esac ;;
23718 esac
23719 ac_abs_top_builddir=$ac_pwd
23720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23721 # for backward compatibility:
23722 ac_top_builddir=$ac_top_build_prefix
23723
23724 case $srcdir in
23725   .)  # We are building in place.
23726     ac_srcdir=.
23727     ac_top_srcdir=$ac_top_builddir_sub
23728     ac_abs_top_srcdir=$ac_pwd ;;
23729   [\\/]* | ?:[\\/]* )  # Absolute name.
23730     ac_srcdir=$srcdir$ac_dir_suffix;
23731     ac_top_srcdir=$srcdir
23732     ac_abs_top_srcdir=$srcdir ;;
23733   *) # Relative name.
23734     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23735     ac_top_srcdir=$ac_top_build_prefix$srcdir
23736     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23737 esac
23738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23739
23740
23741   case $ac_mode in
23742   :F)
23743   #
23744   # CONFIG_FILE
23745   #
23746
23747   case $INSTALL in
23748   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23749   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23750   esac
23751   ac_MKDIR_P=$MKDIR_P
23752   case $MKDIR_P in
23753   [\\/$]* | ?:[\\/]* ) ;;
23754   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23755   esac
23756 _ACEOF
23757
23758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23759 # If the template does not know about datarootdir, expand it.
23760 # FIXME: This hack should be removed a few years after 2.60.
23761 ac_datarootdir_hack=; ac_datarootdir_seen=
23762 ac_sed_dataroot='
23763 /datarootdir/ {
23764   p
23765   q
23766 }
23767 /@datadir@/p
23768 /@docdir@/p
23769 /@infodir@/p
23770 /@localedir@/p
23771 /@mandir@/p'
23772 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23773 *datarootdir*) ac_datarootdir_seen=yes;;
23774 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23775   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23776 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23777 _ACEOF
23778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23779   ac_datarootdir_hack='
23780   s&@datadir@&$datadir&g
23781   s&@docdir@&$docdir&g
23782   s&@infodir@&$infodir&g
23783   s&@localedir@&$localedir&g
23784   s&@mandir@&$mandir&g
23785   s&\\\${datarootdir}&$datarootdir&g' ;;
23786 esac
23787 _ACEOF
23788
23789 # Neutralize VPATH when `$srcdir' = `.'.
23790 # Shell code in configure.ac might set extrasub.
23791 # FIXME: do we really want to maintain this feature?
23792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23793 ac_sed_extra="$ac_vpsub
23794 $extrasub
23795 _ACEOF
23796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23797 :t
23798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23799 s|@configure_input@|$ac_sed_conf_input|;t t
23800 s&@top_builddir@&$ac_top_builddir_sub&;t t
23801 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23802 s&@srcdir@&$ac_srcdir&;t t
23803 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23804 s&@top_srcdir@&$ac_top_srcdir&;t t
23805 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23806 s&@builddir@&$ac_builddir&;t t
23807 s&@abs_builddir@&$ac_abs_builddir&;t t
23808 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23809 s&@INSTALL@&$ac_INSTALL&;t t
23810 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23811 $ac_datarootdir_hack
23812 "
23813 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23814   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23815
23816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23817   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23818   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23819       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23820   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23821 which seems to be undefined.  Please make sure it is defined" >&5
23822 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23823 which seems to be undefined.  Please make sure it is defined" >&2;}
23824
23825   rm -f "$ac_tmp/stdin"
23826   case $ac_file in
23827   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23828   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23829   esac \
23830   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23831  ;;
23832   :H)
23833   #
23834   # CONFIG_HEADER
23835   #
23836   if test x"$ac_file" != x-; then
23837     {
23838       $as_echo "/* $configure_input  */" \
23839       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23840     } >"$ac_tmp/config.h" \
23841       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23842     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23843       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23844 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23845     else
23846       rm -f "$ac_file"
23847       mv "$ac_tmp/config.h" "$ac_file" \
23848         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23849     fi
23850   else
23851     $as_echo "/* $configure_input  */" \
23852       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23853       || as_fn_error $? "could not create -" "$LINENO" 5
23854   fi
23855 # Compute "$ac_file"'s index in $config_headers.
23856 _am_arg="$ac_file"
23857 _am_stamp_count=1
23858 for _am_header in $config_headers :; do
23859   case $_am_header in
23860     $_am_arg | $_am_arg:* )
23861       break ;;
23862     * )
23863       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23864   esac
23865 done
23866 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23867 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23868          X"$_am_arg" : 'X\(//\)[^/]' \| \
23869          X"$_am_arg" : 'X\(//\)$' \| \
23870          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23871 $as_echo X"$_am_arg" |
23872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23873             s//\1/
23874             q
23875           }
23876           /^X\(\/\/\)[^/].*/{
23877             s//\1/
23878             q
23879           }
23880           /^X\(\/\/\)$/{
23881             s//\1/
23882             q
23883           }
23884           /^X\(\/\).*/{
23885             s//\1/
23886             q
23887           }
23888           s/.*/./; q'`/stamp-h$_am_stamp_count
23889  ;;
23890
23891   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23892 $as_echo "$as_me: executing $ac_file commands" >&6;}
23893  ;;
23894   esac
23895
23896
23897   case $ac_file$ac_mode in
23898     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23899   # Older Autoconf quotes --file arguments for eval, but not when files
23900   # are listed without --file.  Let's play safe and only enable the eval
23901   # if we detect the quoting.
23902   # TODO: see whether this extra hack can be removed once we start
23903   # requiring Autoconf 2.70 or later.
23904   case $CONFIG_FILES in #(
23905   *\'*) :
23906     eval set x "$CONFIG_FILES" ;; #(
23907   *) :
23908     set x $CONFIG_FILES ;; #(
23909   *) :
23910      ;;
23911 esac
23912   shift
23913   # Used to flag and report bootstrapping failures.
23914   am_rc=0
23915   for am_mf
23916   do
23917     # Strip MF so we end up with the name of the file.
23918     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23919     # Check whether this is an Automake generated Makefile which includes
23920     # dependency-tracking related rules and includes.
23921     # Grep'ing the whole file directly is not great: AIX grep has a line
23922     # limit of 2048, but all sed's we know have understand at least 4000.
23923     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23924       || continue
23925     am_dirpart=`$as_dirname -- "$am_mf" ||
23926 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23927          X"$am_mf" : 'X\(//\)[^/]' \| \
23928          X"$am_mf" : 'X\(//\)$' \| \
23929          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23930 $as_echo X"$am_mf" |
23931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23932             s//\1/
23933             q
23934           }
23935           /^X\(\/\/\)[^/].*/{
23936             s//\1/
23937             q
23938           }
23939           /^X\(\/\/\)$/{
23940             s//\1/
23941             q
23942           }
23943           /^X\(\/\).*/{
23944             s//\1/
23945             q
23946           }
23947           s/.*/./; q'`
23948     am_filepart=`$as_basename -- "$am_mf" ||
23949 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23950          X"$am_mf" : 'X\(//\)$' \| \
23951          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23952 $as_echo X/"$am_mf" |
23953     sed '/^.*\/\([^/][^/]*\)\/*$/{
23954             s//\1/
23955             q
23956           }
23957           /^X\/\(\/\/\)$/{
23958             s//\1/
23959             q
23960           }
23961           /^X\/\(\/\).*/{
23962             s//\1/
23963             q
23964           }
23965           s/.*/./; q'`
23966     { echo "$as_me:$LINENO: cd "$am_dirpart" \
23967       && sed -e '/# am--include-marker/d' "$am_filepart" \
23968         | $MAKE -f - am--depfiles" >&5
23969    (cd "$am_dirpart" \
23970       && sed -e '/# am--include-marker/d' "$am_filepart" \
23971         | $MAKE -f - am--depfiles) >&5 2>&5
23972    ac_status=$?
23973    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974    (exit $ac_status); } || am_rc=$?
23975   done
23976   if test $am_rc -ne 0; then
23977     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23979 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23980     for automatic dependency tracking.  If GNU make was not used, consider
23981     re-running the configure script with MAKE=\"gmake\" (or whatever is
23982     necessary).  You can also try re-running configure with the
23983     '--disable-dependency-tracking' option to at least be able to build
23984     the package (albeit without support for automatic dependency tracking).
23985 See \`config.log' for more details" "$LINENO" 5; }
23986   fi
23987   { am_dirpart=; unset am_dirpart;}
23988   { am_filepart=; unset am_filepart;}
23989   { am_mf=; unset am_mf;}
23990   { am_rc=; unset am_rc;}
23991   rm -f conftest-deps.mk
23992 }
23993  ;;
23994     "libtool":C)
23995
23996     # See if we are running on zsh, and set the options that allow our
23997     # commands through without removal of \ escapes.
23998     if test -n "${ZSH_VERSION+set}"; then
23999       setopt NO_GLOB_SUBST
24000     fi
24001
24002     cfgfile=${ofile}T
24003     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24004     $RM "$cfgfile"
24005
24006     cat <<_LT_EOF >> "$cfgfile"
24007 #! $SHELL
24008 # Generated automatically by $as_me ($PACKAGE) $VERSION
24009 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24010
24011 # Provide generalized library-building support services.
24012 # Written by Gordon Matzigkeit, 1996
24013
24014 # Copyright (C) 2014 Free Software Foundation, Inc.
24015 # This is free software; see the source for copying conditions.  There is NO
24016 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24017
24018 # GNU Libtool is free software; you can redistribute it and/or modify
24019 # it under the terms of the GNU General Public License as published by
24020 # the Free Software Foundation; either version 2 of of the License, or
24021 # (at your option) any later version.
24022 #
24023 # As a special exception to the GNU General Public License, if you
24024 # distribute this file as part of a program or library that is built
24025 # using GNU Libtool, you may include this file under the  same
24026 # distribution terms that you use for the rest of that program.
24027 #
24028 # GNU Libtool is distributed in the hope that it will be useful, but
24029 # WITHOUT ANY WARRANTY; without even the implied warranty of
24030 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24031 # GNU General Public License for more details.
24032 #
24033 # You should have received a copy of the GNU General Public License
24034 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
24035
24036
24037 # The names of the tagged configurations supported by this script.
24038 available_tags='CXX '
24039
24040 # Configured defaults for sys_lib_dlsearch_path munging.
24041 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24042
24043 # ### BEGIN LIBTOOL CONFIG
24044
24045 # Which release of libtool.m4 was used?
24046 macro_version=$macro_version
24047 macro_revision=$macro_revision
24048
24049 # Whether or not to build static libraries.
24050 build_old_libs=$enable_static
24051
24052 # Whether or not to build shared libraries.
24053 build_libtool_libs=$enable_shared
24054
24055 # What type of objects to build.
24056 pic_mode=$pic_mode
24057
24058 # Whether or not to optimize for fast installation.
24059 fast_install=$enable_fast_install
24060
24061 # Shared archive member basename,for filename based shared library versioning on AIX.
24062 shared_archive_member_spec=$shared_archive_member_spec
24063
24064 # Shell to use when invoking shell scripts.
24065 SHELL=$lt_SHELL
24066
24067 # An echo program that protects backslashes.
24068 ECHO=$lt_ECHO
24069
24070 # The PATH separator for the build system.
24071 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24072
24073 # The host system.
24074 host_alias=$host_alias
24075 host=$host
24076 host_os=$host_os
24077
24078 # The build system.
24079 build_alias=$build_alias
24080 build=$build
24081 build_os=$build_os
24082
24083 # A sed program that does not truncate output.
24084 SED=$lt_SED
24085
24086 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24087 Xsed="\$SED -e 1s/^X//"
24088
24089 # A grep program that handles long lines.
24090 GREP=$lt_GREP
24091
24092 # An ERE matcher.
24093 EGREP=$lt_EGREP
24094
24095 # A literal string matcher.
24096 FGREP=$lt_FGREP
24097
24098 # A BSD- or MS-compatible name lister.
24099 NM=$lt_NM
24100
24101 # Whether we need soft or hard links.
24102 LN_S=$lt_LN_S
24103
24104 # What is the maximum length of a command?
24105 max_cmd_len=$max_cmd_len
24106
24107 # Object file suffix (normally "o").
24108 objext=$ac_objext
24109
24110 # Executable file suffix (normally "").
24111 exeext=$exeext
24112
24113 # whether the shell understands "unset".
24114 lt_unset=$lt_unset
24115
24116 # turn spaces into newlines.
24117 SP2NL=$lt_lt_SP2NL
24118
24119 # turn newlines into spaces.
24120 NL2SP=$lt_lt_NL2SP
24121
24122 # convert \$build file names to \$host format.
24123 to_host_file_cmd=$lt_cv_to_host_file_cmd
24124
24125 # convert \$build files to toolchain format.
24126 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24127
24128 # An object symbol dumper.
24129 OBJDUMP=$lt_OBJDUMP
24130
24131 # Method to check whether dependent libraries are shared objects.
24132 deplibs_check_method=$lt_deplibs_check_method
24133
24134 # Command to use when deplibs_check_method = "file_magic".
24135 file_magic_cmd=$lt_file_magic_cmd
24136
24137 # How to find potential files when deplibs_check_method = "file_magic".
24138 file_magic_glob=$lt_file_magic_glob
24139
24140 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24141 want_nocaseglob=$lt_want_nocaseglob
24142
24143 # DLL creation program.
24144 DLLTOOL=$lt_DLLTOOL
24145
24146 # Command to associate shared and link libraries.
24147 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24148
24149 # The archiver.
24150 AR=$lt_AR
24151
24152 # Flags to create an archive (by configure).
24153 lt_ar_flags=$lt_ar_flags
24154
24155 # Flags to create an archive.
24156 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24157
24158 # How to feed a file listing to the archiver.
24159 archiver_list_spec=$lt_archiver_list_spec
24160
24161 # A symbol stripping program.
24162 STRIP=$lt_STRIP
24163
24164 # Commands used to install an old-style archive.
24165 RANLIB=$lt_RANLIB
24166 old_postinstall_cmds=$lt_old_postinstall_cmds
24167 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24168
24169 # Whether to use a lock for old archive extraction.
24170 lock_old_archive_extraction=$lock_old_archive_extraction
24171
24172 # A C compiler.
24173 LTCC=$lt_CC
24174
24175 # LTCC compiler flags.
24176 LTCFLAGS=$lt_CFLAGS
24177
24178 # Take the output of nm and produce a listing of raw symbols and C names.
24179 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24180
24181 # Transform the output of nm in a proper C declaration.
24182 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24183
24184 # Transform the output of nm into a list of symbols to manually relocate.
24185 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24186
24187 # Transform the output of nm in a C name address pair.
24188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24189
24190 # Transform the output of nm in a C name address pair when lib prefix is needed.
24191 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24192
24193 # The name lister interface.
24194 nm_interface=$lt_lt_cv_nm_interface
24195
24196 # Specify filename containing input files for \$NM.
24197 nm_file_list_spec=$lt_nm_file_list_spec
24198
24199 # The root where to search for dependent libraries,and where our libraries should be installed.
24200 lt_sysroot=$lt_sysroot
24201
24202 # Command to truncate a binary pipe.
24203 lt_truncate_bin=$lt_lt_cv_truncate_bin
24204
24205 # The name of the directory that contains temporary libtool files.
24206 objdir=$objdir
24207
24208 # Used to examine libraries when file_magic_cmd begins with "file".
24209 MAGIC_CMD=$MAGIC_CMD
24210
24211 # Must we lock files when doing compilation?
24212 need_locks=$lt_need_locks
24213
24214 # Manifest tool.
24215 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24216
24217 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24218 DSYMUTIL=$lt_DSYMUTIL
24219
24220 # Tool to change global to local symbols on Mac OS X.
24221 NMEDIT=$lt_NMEDIT
24222
24223 # Tool to manipulate fat objects and archives on Mac OS X.
24224 LIPO=$lt_LIPO
24225
24226 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24227 OTOOL=$lt_OTOOL
24228
24229 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24230 OTOOL64=$lt_OTOOL64
24231
24232 # Old archive suffix (normally "a").
24233 libext=$libext
24234
24235 # Shared library suffix (normally ".so").
24236 shrext_cmds=$lt_shrext_cmds
24237
24238 # The commands to extract the exported symbol list from a shared archive.
24239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24240
24241 # Variables whose values should be saved in libtool wrapper scripts and
24242 # restored at link time.
24243 variables_saved_for_relink=$lt_variables_saved_for_relink
24244
24245 # Do we need the "lib" prefix for modules?
24246 need_lib_prefix=$need_lib_prefix
24247
24248 # Do we need a version for libraries?
24249 need_version=$need_version
24250
24251 # Library versioning type.
24252 version_type=$version_type
24253
24254 # Shared library runtime path variable.
24255 runpath_var=$runpath_var
24256
24257 # Shared library path variable.
24258 shlibpath_var=$shlibpath_var
24259
24260 # Is shlibpath searched before the hard-coded library search path?
24261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24262
24263 # Format of library name prefix.
24264 libname_spec=$lt_libname_spec
24265
24266 # List of archive names.  First name is the real one, the rest are links.
24267 # The last name is the one that the linker finds with -lNAME
24268 library_names_spec=$lt_library_names_spec
24269
24270 # The coded name of the library, if different from the real name.
24271 soname_spec=$lt_soname_spec
24272
24273 # Permission mode override for installation of shared libraries.
24274 install_override_mode=$lt_install_override_mode
24275
24276 # Command to use after installation of a shared archive.
24277 postinstall_cmds=$lt_postinstall_cmds
24278
24279 # Command to use after uninstallation of a shared archive.
24280 postuninstall_cmds=$lt_postuninstall_cmds
24281
24282 # Commands used to finish a libtool library installation in a directory.
24283 finish_cmds=$lt_finish_cmds
24284
24285 # As "finish_cmds", except a single script fragment to be evaled but
24286 # not shown.
24287 finish_eval=$lt_finish_eval
24288
24289 # Whether we should hardcode library paths into libraries.
24290 hardcode_into_libs=$hardcode_into_libs
24291
24292 # Compile-time system search path for libraries.
24293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24294
24295 # Detected run-time system search path for libraries.
24296 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24297
24298 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24299 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24300
24301 # Whether dlopen is supported.
24302 dlopen_support=$enable_dlopen
24303
24304 # Whether dlopen of programs is supported.
24305 dlopen_self=$enable_dlopen_self
24306
24307 # Whether dlopen of statically linked programs is supported.
24308 dlopen_self_static=$enable_dlopen_self_static
24309
24310 # Commands to strip libraries.
24311 old_striplib=$lt_old_striplib
24312 striplib=$lt_striplib
24313
24314
24315 # The linker used to build libraries.
24316 LD=$lt_LD
24317
24318 # How to create reloadable object files.
24319 reload_flag=$lt_reload_flag
24320 reload_cmds=$lt_reload_cmds
24321
24322 # Commands used to build an old-style archive.
24323 old_archive_cmds=$lt_old_archive_cmds
24324
24325 # A language specific compiler.
24326 CC=$lt_compiler
24327
24328 # Is the compiler the GNU compiler?
24329 with_gcc=$GCC
24330
24331 # Compiler flag to turn off builtin functions.
24332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24333
24334 # Additional compiler flags for building library objects.
24335 pic_flag=$lt_lt_prog_compiler_pic
24336
24337 # How to pass a linker flag through the compiler.
24338 wl=$lt_lt_prog_compiler_wl
24339
24340 # Compiler flag to prevent dynamic linking.
24341 link_static_flag=$lt_lt_prog_compiler_static
24342
24343 # Does compiler simultaneously support -c and -o options?
24344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24345
24346 # Whether or not to add -lc for building shared libraries.
24347 build_libtool_need_lc=$archive_cmds_need_lc
24348
24349 # Whether or not to disallow shared libs when runtime libs are static.
24350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24351
24352 # Compiler flag to allow reflexive dlopens.
24353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24354
24355 # Compiler flag to generate shared objects directly from archives.
24356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24357
24358 # Whether the compiler copes with passing no objects directly.
24359 compiler_needs_object=$lt_compiler_needs_object
24360
24361 # Create an old-style archive from a shared archive.
24362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24363
24364 # Create a temporary old-style archive to link instead of a shared archive.
24365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24366
24367 # Commands used to build a shared archive.
24368 archive_cmds=$lt_archive_cmds
24369 archive_expsym_cmds=$lt_archive_expsym_cmds
24370
24371 # Commands used to build a loadable module if different from building
24372 # a shared archive.
24373 module_cmds=$lt_module_cmds
24374 module_expsym_cmds=$lt_module_expsym_cmds
24375
24376 # Whether we are building with GNU ld or not.
24377 with_gnu_ld=$lt_with_gnu_ld
24378
24379 # Flag that allows shared libraries with undefined symbols to be built.
24380 allow_undefined_flag=$lt_allow_undefined_flag
24381
24382 # Flag that enforces no undefined symbols.
24383 no_undefined_flag=$lt_no_undefined_flag
24384
24385 # Flag to hardcode \$libdir into a binary during linking.
24386 # This must work even if \$libdir does not exist
24387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24388
24389 # Whether we need a single "-rpath" flag with a separated argument.
24390 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24391
24392 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24393 # DIR into the resulting binary.
24394 hardcode_direct=$hardcode_direct
24395
24396 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24397 # DIR into the resulting binary and the resulting library dependency is
24398 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24399 # library is relocated.
24400 hardcode_direct_absolute=$hardcode_direct_absolute
24401
24402 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24403 # into the resulting binary.
24404 hardcode_minus_L=$hardcode_minus_L
24405
24406 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24407 # into the resulting binary.
24408 hardcode_shlibpath_var=$hardcode_shlibpath_var
24409
24410 # Set to "yes" if building a shared library automatically hardcodes DIR
24411 # into the library and all subsequent libraries and executables linked
24412 # against it.
24413 hardcode_automatic=$hardcode_automatic
24414
24415 # Set to yes if linker adds runtime paths of dependent libraries
24416 # to runtime path list.
24417 inherit_rpath=$inherit_rpath
24418
24419 # Whether libtool must link a program against all its dependency libraries.
24420 link_all_deplibs=$link_all_deplibs
24421
24422 # Set to "yes" if exported symbols are required.
24423 always_export_symbols=$always_export_symbols
24424
24425 # The commands to list exported symbols.
24426 export_symbols_cmds=$lt_export_symbols_cmds
24427
24428 # Symbols that should not be listed in the preloaded symbols.
24429 exclude_expsyms=$lt_exclude_expsyms
24430
24431 # Symbols that must always be exported.
24432 include_expsyms=$lt_include_expsyms
24433
24434 # Commands necessary for linking programs (against libraries) with templates.
24435 prelink_cmds=$lt_prelink_cmds
24436
24437 # Commands necessary for finishing linking programs.
24438 postlink_cmds=$lt_postlink_cmds
24439
24440 # Specify filename containing input files.
24441 file_list_spec=$lt_file_list_spec
24442
24443 # How to hardcode a shared library path into an executable.
24444 hardcode_action=$hardcode_action
24445
24446 # The directories searched by this compiler when creating a shared library.
24447 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24448
24449 # Dependencies to place before and after the objects being linked to
24450 # create a shared library.
24451 predep_objects=$lt_predep_objects
24452 postdep_objects=$lt_postdep_objects
24453 predeps=$lt_predeps
24454 postdeps=$lt_postdeps
24455
24456 # The library search path used internally by the compiler when linking
24457 # a shared library.
24458 compiler_lib_search_path=$lt_compiler_lib_search_path
24459
24460 # ### END LIBTOOL CONFIG
24461
24462 _LT_EOF
24463
24464     cat <<'_LT_EOF' >> "$cfgfile"
24465
24466 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24467
24468 # func_munge_path_list VARIABLE PATH
24469 # -----------------------------------
24470 # VARIABLE is name of variable containing _space_ separated list of
24471 # directories to be munged by the contents of PATH, which is string
24472 # having a format:
24473 # "DIR[:DIR]:"
24474 #       string "DIR[ DIR]" will be prepended to VARIABLE
24475 # ":DIR[:DIR]"
24476 #       string "DIR[ DIR]" will be appended to VARIABLE
24477 # "DIRP[:DIRP]::[DIRA:]DIRA"
24478 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24479 #       "DIRA[ DIRA]" will be appended to VARIABLE
24480 # "DIR[:DIR]"
24481 #       VARIABLE will be replaced by "DIR[ DIR]"
24482 func_munge_path_list ()
24483 {
24484     case x$2 in
24485     x)
24486         ;;
24487     *:)
24488         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24489         ;;
24490     x:*)
24491         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24492         ;;
24493     *::*)
24494         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24495         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24496         ;;
24497     *)
24498         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24499         ;;
24500     esac
24501 }
24502
24503
24504 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24505 func_cc_basename ()
24506 {
24507     for cc_temp in $*""; do
24508       case $cc_temp in
24509         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24510         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24511         \-*) ;;
24512         *) break;;
24513       esac
24514     done
24515     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24516 }
24517
24518
24519 # ### END FUNCTIONS SHARED WITH CONFIGURE
24520
24521 _LT_EOF
24522
24523   case $host_os in
24524   aix3*)
24525     cat <<\_LT_EOF >> "$cfgfile"
24526 # AIX sometimes has problems with the GCC collect2 program.  For some
24527 # reason, if we set the COLLECT_NAMES environment variable, the problems
24528 # vanish in a puff of smoke.
24529 if test set != "${COLLECT_NAMES+set}"; then
24530   COLLECT_NAMES=
24531   export COLLECT_NAMES
24532 fi
24533 _LT_EOF
24534     ;;
24535   esac
24536
24537
24538 ltmain=$ac_aux_dir/ltmain.sh
24539
24540
24541   # We use sed instead of cat because bash on DJGPP gets confused if
24542   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24543   # text mode, it properly converts lines to CR/LF.  This bash problem
24544   # is reportedly fixed, but why not run on old versions too?
24545   sed '$q' "$ltmain" >> "$cfgfile" \
24546      || (rm -f "$cfgfile"; exit 1)
24547
24548    mv -f "$cfgfile" "$ofile" ||
24549     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24550   chmod +x "$ofile"
24551
24552
24553     cat <<_LT_EOF >> "$ofile"
24554
24555 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24556
24557 # The linker used to build libraries.
24558 LD=$lt_LD_CXX
24559
24560 # How to create reloadable object files.
24561 reload_flag=$lt_reload_flag_CXX
24562 reload_cmds=$lt_reload_cmds_CXX
24563
24564 # Commands used to build an old-style archive.
24565 old_archive_cmds=$lt_old_archive_cmds_CXX
24566
24567 # A language specific compiler.
24568 CC=$lt_compiler_CXX
24569
24570 # Is the compiler the GNU compiler?
24571 with_gcc=$GCC_CXX
24572
24573 # Compiler flag to turn off builtin functions.
24574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24575
24576 # Additional compiler flags for building library objects.
24577 pic_flag=$lt_lt_prog_compiler_pic_CXX
24578
24579 # How to pass a linker flag through the compiler.
24580 wl=$lt_lt_prog_compiler_wl_CXX
24581
24582 # Compiler flag to prevent dynamic linking.
24583 link_static_flag=$lt_lt_prog_compiler_static_CXX
24584
24585 # Does compiler simultaneously support -c and -o options?
24586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24587
24588 # Whether or not to add -lc for building shared libraries.
24589 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24590
24591 # Whether or not to disallow shared libs when runtime libs are static.
24592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24593
24594 # Compiler flag to allow reflexive dlopens.
24595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24596
24597 # Compiler flag to generate shared objects directly from archives.
24598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24599
24600 # Whether the compiler copes with passing no objects directly.
24601 compiler_needs_object=$lt_compiler_needs_object_CXX
24602
24603 # Create an old-style archive from a shared archive.
24604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24605
24606 # Create a temporary old-style archive to link instead of a shared archive.
24607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24608
24609 # Commands used to build a shared archive.
24610 archive_cmds=$lt_archive_cmds_CXX
24611 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24612
24613 # Commands used to build a loadable module if different from building
24614 # a shared archive.
24615 module_cmds=$lt_module_cmds_CXX
24616 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24617
24618 # Whether we are building with GNU ld or not.
24619 with_gnu_ld=$lt_with_gnu_ld_CXX
24620
24621 # Flag that allows shared libraries with undefined symbols to be built.
24622 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24623
24624 # Flag that enforces no undefined symbols.
24625 no_undefined_flag=$lt_no_undefined_flag_CXX
24626
24627 # Flag to hardcode \$libdir into a binary during linking.
24628 # This must work even if \$libdir does not exist
24629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24630
24631 # Whether we need a single "-rpath" flag with a separated argument.
24632 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24633
24634 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24635 # DIR into the resulting binary.
24636 hardcode_direct=$hardcode_direct_CXX
24637
24638 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24639 # DIR into the resulting binary and the resulting library dependency is
24640 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24641 # library is relocated.
24642 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24643
24644 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24645 # into the resulting binary.
24646 hardcode_minus_L=$hardcode_minus_L_CXX
24647
24648 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24649 # into the resulting binary.
24650 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24651
24652 # Set to "yes" if building a shared library automatically hardcodes DIR
24653 # into the library and all subsequent libraries and executables linked
24654 # against it.
24655 hardcode_automatic=$hardcode_automatic_CXX
24656
24657 # Set to yes if linker adds runtime paths of dependent libraries
24658 # to runtime path list.
24659 inherit_rpath=$inherit_rpath_CXX
24660
24661 # Whether libtool must link a program against all its dependency libraries.
24662 link_all_deplibs=$link_all_deplibs_CXX
24663
24664 # Set to "yes" if exported symbols are required.
24665 always_export_symbols=$always_export_symbols_CXX
24666
24667 # The commands to list exported symbols.
24668 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24669
24670 # Symbols that should not be listed in the preloaded symbols.
24671 exclude_expsyms=$lt_exclude_expsyms_CXX
24672
24673 # Symbols that must always be exported.
24674 include_expsyms=$lt_include_expsyms_CXX
24675
24676 # Commands necessary for linking programs (against libraries) with templates.
24677 prelink_cmds=$lt_prelink_cmds_CXX
24678
24679 # Commands necessary for finishing linking programs.
24680 postlink_cmds=$lt_postlink_cmds_CXX
24681
24682 # Specify filename containing input files.
24683 file_list_spec=$lt_file_list_spec_CXX
24684
24685 # How to hardcode a shared library path into an executable.
24686 hardcode_action=$hardcode_action_CXX
24687
24688 # The directories searched by this compiler when creating a shared library.
24689 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24690
24691 # Dependencies to place before and after the objects being linked to
24692 # create a shared library.
24693 predep_objects=$lt_predep_objects_CXX
24694 postdep_objects=$lt_postdep_objects_CXX
24695 predeps=$lt_predeps_CXX
24696 postdeps=$lt_postdeps_CXX
24697
24698 # The library search path used internally by the compiler when linking
24699 # a shared library.
24700 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24701
24702 # ### END LIBTOOL TAG CONFIG: CXX
24703 _LT_EOF
24704
24705  ;;
24706
24707   esac
24708 done # for ac_tag
24709
24710
24711 as_fn_exit 0
24712 _ACEOF
24713 ac_clean_files=$ac_clean_files_save
24714
24715 test $ac_write_fail = 0 ||
24716   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24717
24718
24719 # configure is writing to config.log, and then calls config.status.
24720 # config.status does its own redirection, appending to config.log.
24721 # Unfortunately, on DOS this fails, as config.log is still kept open
24722 # by configure, so config.status won't be able to write to it; its
24723 # output is simply discarded.  So we exec the FD to /dev/null,
24724 # effectively closing config.log, so it can be properly (re)opened and
24725 # appended to by config.status.  When coming back to configure, we
24726 # need to make the FD available again.
24727 if test "$no_create" != yes; then
24728   ac_cs_success=:
24729   ac_config_status_args=
24730   test "$silent" = yes &&
24731     ac_config_status_args="$ac_config_status_args --quiet"
24732   exec 5>/dev/null
24733   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24734   exec 5>>config.log
24735   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24736   # would make configure fail if this is the last instruction.
24737   $ac_cs_success || as_fn_exit 1
24738 fi
24739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24740   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24742 fi
24743
24744
24745 echo
24746 echo "C++ compiler version:"
24747 $CXX --version
24748 echo
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}:
24751
24752 Build configuration:
24753
24754 Unicode callbacks (you want at least one):
24755         Builtin                 true
24756         Glib:                   ${have_glib}
24757         ICU:                    ${have_icu}
24758
24759 Font callbacks (the more the merrier):
24760         FreeType:               ${have_freetype}
24761
24762 Tools used for command-line utilities:
24763         Cairo:                  ${have_cairo}
24764         Fontconfig:             ${have_fontconfig}
24765
24766 Additional shapers (the more the merrier):
24767         Graphite2:              ${have_graphite2}
24768
24769 Platform shapers (not normally needed):
24770         CoreText:               ${have_coretext}
24771         DirectWrite:            ${have_directwrite}
24772         GDI:                    ${have_gdi}
24773         Uniscribe:              ${have_uniscribe}
24774
24775 Other features:
24776         Documentation:          ${enable_gtk_doc}
24777         GObject bindings:       ${have_gobject}
24778         Introspection:          ${have_introspection}
24779 " >&5
24780 $as_echo "$as_me:
24781
24782 Build configuration:
24783
24784 Unicode callbacks (you want at least one):
24785         Builtin                 true
24786         Glib:                   ${have_glib}
24787         ICU:                    ${have_icu}
24788
24789 Font callbacks (the more the merrier):
24790         FreeType:               ${have_freetype}
24791
24792 Tools used for command-line utilities:
24793         Cairo:                  ${have_cairo}
24794         Fontconfig:             ${have_fontconfig}
24795
24796 Additional shapers (the more the merrier):
24797         Graphite2:              ${have_graphite2}
24798
24799 Platform shapers (not normally needed):
24800         CoreText:               ${have_coretext}
24801         DirectWrite:            ${have_directwrite}
24802         GDI:                    ${have_gdi}
24803         Uniscribe:              ${have_uniscribe}
24804
24805 Other features:
24806         Documentation:          ${enable_gtk_doc}
24807         GObject bindings:       ${have_gobject}
24808         Introspection:          ${have_introspection}
24809 " >&6;}