ab93f6cf05a418f326e6be212469beacef5af912
[platform/upstream/harfbuzz.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 1.4.6.
4 #
5 # Report bugs to <https://github.com/behdad/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
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/behdad/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='1.4.6'
594 PACKAGE_STRING='HarfBuzz 1.4.6'
595 PACKAGE_BUGREPORT='https://github.com/behdad/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_UNISCRIBE_FALSE
648 HAVE_UNISCRIBE_TRUE
649 UNISCRIBE_LIBS
650 UNISCRIBE_CFLAGS
651 HAVE_FREETYPE_FALSE
652 HAVE_FREETYPE_TRUE
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 FREETYPE_DEPS
656 HAVE_GRAPHITE2_FALSE
657 HAVE_GRAPHITE2_TRUE
658 GRAPHITE2_LIBS
659 GRAPHITE2_CFLAGS
660 GRAPHITE2_DEPS
661 HAVE_UCDN_FALSE
662 HAVE_UCDN_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
665 HAVE_ICU_FALSE
666 HAVE_ICU_TRUE
667 ICU_CONFIG
668 ICU_LIBS
669 ICU_CFLAGS
670 HAVE_FONTCONFIG_FALSE
671 HAVE_FONTCONFIG_TRUE
672 FONTCONFIG_LIBS
673 FONTCONFIG_CFLAGS
674 HAVE_CAIRO_FT_FALSE
675 HAVE_CAIRO_FT_TRUE
676 CAIRO_FT_LIBS
677 CAIRO_FT_CFLAGS
678 HAVE_CAIRO_FALSE
679 HAVE_CAIRO_TRUE
680 CAIRO_LIBS
681 CAIRO_CFLAGS
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
685 INTROSPECTION_LIBS
686 INTROSPECTION_CFLAGS
687 INTROSPECTION_TYPELIBDIR
688 INTROSPECTION_GIRDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
692 HAVE_GOBJECT_FALSE
693 HAVE_GOBJECT_TRUE
694 GLIB_MKENUMS
695 GOBJECT_LIBS
696 GOBJECT_CFLAGS
697 HAVE_GLIB_FALSE
698 HAVE_GLIB_TRUE
699 GLIB_LIBS
700 GLIB_CFLAGS
701 GLIB_DEPS
702 HAVE_FALLBACK_FALSE
703 HAVE_FALLBACK_TRUE
704 HAVE_OT_FALSE
705 HAVE_OT_TRUE
706 HAVE_PTHREAD_FALSE
707 HAVE_PTHREAD_TRUE
708 PTHREAD_CFLAGS
709 PTHREAD_LIBS
710 PTHREAD_CC
711 ax_pthread_config
712 OS_WIN32_FALSE
713 OS_WIN32_TRUE
714 HAVE_GCC_FALSE
715 HAVE_GCC_TRUE
716 GTK_DOC_USE_REBASE_FALSE
717 GTK_DOC_USE_REBASE_TRUE
718 GTK_DOC_USE_LIBTOOL_FALSE
719 GTK_DOC_USE_LIBTOOL_TRUE
720 GTK_DOC_BUILD_PDF_FALSE
721 GTK_DOC_BUILD_PDF_TRUE
722 GTK_DOC_BUILD_HTML_FALSE
723 GTK_DOC_BUILD_HTML_TRUE
724 ENABLE_GTK_DOC_FALSE
725 ENABLE_GTK_DOC_TRUE
726 HAVE_GTK_DOC_FALSE
727 HAVE_GTK_DOC_TRUE
728 GTKDOC_DEPS_LIBS
729 GTKDOC_DEPS_CFLAGS
730 HTML_DIR
731 GTKDOC_MKPDF
732 GTKDOC_REBASE
733 GTKDOC_CHECK_PATH
734 GTKDOC_CHECK
735 HB_LIBTOOL_VERSION_INFO
736 HB_VERSION
737 HB_VERSION_MICRO
738 HB_VERSION_MINOR
739 HB_VERSION_MAJOR
740 GIT
741 RAGEL
742 PKG_CONFIG
743 CXXCPP
744 am__fastdepCXX_FALSE
745 am__fastdepCXX_TRUE
746 CXXDEPMODE
747 ac_ct_CXX
748 CXXFLAGS
749 CXX
750 CPP
751 OTOOL64
752 OTOOL
753 LIPO
754 NMEDIT
755 DSYMUTIL
756 MANIFEST_TOOL
757 RANLIB
758 DLLTOOL
759 OBJDUMP
760 LN_S
761 NM
762 ac_ct_DUMPBIN
763 DUMPBIN
764 LD
765 FGREP
766 EGREP
767 GREP
768 SED
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 LIBTOOL
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__quote
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 ac_ct_AR
796 AR
797 AUTOMAKE_OLDER_THAN_1_13_FALSE
798 AUTOMAKE_OLDER_THAN_1_13_TRUE
799 AM_BACKSLASH
800 AM_DEFAULT_VERBOSITY
801 AM_DEFAULT_V
802 AM_V
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
808 AWK
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_silent_rules
868 enable_dependency_tracking
869 enable_static
870 enable_shared
871 with_pic
872 enable_fast_install
873 with_gnu_ld
874 with_sysroot
875 enable_libtool_lock
876 enable_largefile
877 with_html_dir
878 enable_gtk_doc
879 enable_gtk_doc_html
880 enable_gtk_doc_pdf
881 with_glib
882 with_gobject
883 enable_introspection
884 with_cairo
885 with_fontconfig
886 with_icu
887 with_ucdn
888 with_graphite2
889 with_freetype
890 with_uniscribe
891 with_directwrite
892 with_coretext
893 '
894       ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CPP
903 CXX
904 CXXFLAGS
905 CCC
906 CXXCPP
907 PKG_CONFIG
908 GTKDOC_DEPS_CFLAGS
909 GTKDOC_DEPS_LIBS
910 GLIB_CFLAGS
911 GLIB_LIBS
912 GOBJECT_CFLAGS
913 GOBJECT_LIBS
914 CAIRO_CFLAGS
915 CAIRO_LIBS
916 CAIRO_FT_CFLAGS
917 CAIRO_FT_LIBS
918 FONTCONFIG_CFLAGS
919 FONTCONFIG_LIBS
920 ICU_CFLAGS
921 ICU_LIBS
922 GRAPHITE2_CFLAGS
923 GRAPHITE2_LIBS
924 FREETYPE_CFLAGS
925 FREETYPE_LIBS'
926
927
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 ac_unrecognized_opts=
932 ac_unrecognized_sep=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
949
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
975
976 ac_prev=
977 ac_dashdash=
978 for ac_option
979 do
980   # If the previous option needs an argument, assign it.
981   if test -n "$ac_prev"; then
982     eval $ac_prev=\$ac_option
983     ac_prev=
984     continue
985   fi
986
987   case $ac_option in
988   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989   *=)   ac_optarg= ;;
990   *)    ac_optarg=yes ;;
991   esac
992
993   # Accept the important Cygnus configure options, so we can diagnose typos.
994
995   case $ac_dashdash$ac_option in
996   --)
997     ac_dashdash=yes ;;
998
999   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000     ac_prev=bindir ;;
1001   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002     bindir=$ac_optarg ;;
1003
1004   -build | --build | --buil | --bui | --bu)
1005     ac_prev=build_alias ;;
1006   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007     build_alias=$ac_optarg ;;
1008
1009   -cache-file | --cache-file | --cache-fil | --cache-fi \
1010   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011     ac_prev=cache_file ;;
1012   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014     cache_file=$ac_optarg ;;
1015
1016   --config-cache | -C)
1017     cache_file=config.cache ;;
1018
1019   -datadir | --datadir | --datadi | --datad)
1020     ac_prev=datadir ;;
1021   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022     datadir=$ac_optarg ;;
1023
1024   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025   | --dataroo | --dataro | --datar)
1026     ac_prev=datarootdir ;;
1027   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029     datarootdir=$ac_optarg ;;
1030
1031   -disable-* | --disable-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       as_fn_error $? "invalid feature name: $ac_useropt"
1036     ac_useropt_orig=$ac_useropt
1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038     case $ac_user_opts in
1039       *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043          ac_unrecognized_sep=', ';;
1044     esac
1045     eval enable_$ac_useropt=no ;;
1046
1047   -docdir | --docdir | --docdi | --doc | --do)
1048     ac_prev=docdir ;;
1049   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050     docdir=$ac_optarg ;;
1051
1052   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053     ac_prev=dvidir ;;
1054   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055     dvidir=$ac_optarg ;;
1056
1057   -enable-* | --enable-*)
1058     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061       as_fn_error $? "invalid feature name: $ac_useropt"
1062     ac_useropt_orig=$ac_useropt
1063     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064     case $ac_user_opts in
1065       *"
1066 "enable_$ac_useropt"
1067 "*) ;;
1068       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069          ac_unrecognized_sep=', ';;
1070     esac
1071     eval enable_$ac_useropt=\$ac_optarg ;;
1072
1073   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075   | --exec | --exe | --ex)
1076     ac_prev=exec_prefix ;;
1077   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079   | --exec=* | --exe=* | --ex=*)
1080     exec_prefix=$ac_optarg ;;
1081
1082   -gas | --gas | --ga | --g)
1083     # Obsolete; use --with-gas.
1084     with_gas=yes ;;
1085
1086   -help | --help | --hel | --he | -h)
1087     ac_init_help=long ;;
1088   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089     ac_init_help=recursive ;;
1090   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091     ac_init_help=short ;;
1092
1093   -host | --host | --hos | --ho)
1094     ac_prev=host_alias ;;
1095   -host=* | --host=* | --hos=* | --ho=*)
1096     host_alias=$ac_optarg ;;
1097
1098   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099     ac_prev=htmldir ;;
1100   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101   | --ht=*)
1102     htmldir=$ac_optarg ;;
1103
1104   -includedir | --includedir | --includedi | --included | --include \
1105   | --includ | --inclu | --incl | --inc)
1106     ac_prev=includedir ;;
1107   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108   | --includ=* | --inclu=* | --incl=* | --inc=*)
1109     includedir=$ac_optarg ;;
1110
1111   -infodir | --infodir | --infodi | --infod | --info | --inf)
1112     ac_prev=infodir ;;
1113   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114     infodir=$ac_optarg ;;
1115
1116   -libdir | --libdir | --libdi | --libd)
1117     ac_prev=libdir ;;
1118   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119     libdir=$ac_optarg ;;
1120
1121   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122   | --libexe | --libex | --libe)
1123     ac_prev=libexecdir ;;
1124   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125   | --libexe=* | --libex=* | --libe=*)
1126     libexecdir=$ac_optarg ;;
1127
1128   -localedir | --localedir | --localedi | --localed | --locale)
1129     ac_prev=localedir ;;
1130   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131     localedir=$ac_optarg ;;
1132
1133   -localstatedir | --localstatedir | --localstatedi | --localstated \
1134   | --localstate | --localstat | --localsta | --localst | --locals)
1135     ac_prev=localstatedir ;;
1136   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138     localstatedir=$ac_optarg ;;
1139
1140   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141     ac_prev=mandir ;;
1142   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143     mandir=$ac_optarg ;;
1144
1145   -nfp | --nfp | --nf)
1146     # Obsolete; use --without-fp.
1147     with_fp=no ;;
1148
1149   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150   | --no-cr | --no-c | -n)
1151     no_create=yes ;;
1152
1153   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155     no_recursion=yes ;;
1156
1157   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159   | --oldin | --oldi | --old | --ol | --o)
1160     ac_prev=oldincludedir ;;
1161   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164     oldincludedir=$ac_optarg ;;
1165
1166   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167     ac_prev=prefix ;;
1168   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169     prefix=$ac_optarg ;;
1170
1171   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172   | --program-pre | --program-pr | --program-p)
1173     ac_prev=program_prefix ;;
1174   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176     program_prefix=$ac_optarg ;;
1177
1178   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179   | --program-suf | --program-su | --program-s)
1180     ac_prev=program_suffix ;;
1181   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183     program_suffix=$ac_optarg ;;
1184
1185   -program-transform-name | --program-transform-name \
1186   | --program-transform-nam | --program-transform-na \
1187   | --program-transform-n | --program-transform- \
1188   | --program-transform | --program-transfor \
1189   | --program-transfo | --program-transf \
1190   | --program-trans | --program-tran \
1191   | --progr-tra | --program-tr | --program-t)
1192     ac_prev=program_transform_name ;;
1193   -program-transform-name=* | --program-transform-name=* \
1194   | --program-transform-nam=* | --program-transform-na=* \
1195   | --program-transform-n=* | --program-transform-=* \
1196   | --program-transform=* | --program-transfor=* \
1197   | --program-transfo=* | --program-transf=* \
1198   | --program-trans=* | --program-tran=* \
1199   | --progr-tra=* | --program-tr=* | --program-t=*)
1200     program_transform_name=$ac_optarg ;;
1201
1202   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203     ac_prev=pdfdir ;;
1204   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205     pdfdir=$ac_optarg ;;
1206
1207   -psdir | --psdir | --psdi | --psd | --ps)
1208     ac_prev=psdir ;;
1209   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210     psdir=$ac_optarg ;;
1211
1212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213   | -silent | --silent | --silen | --sile | --sil)
1214     silent=yes ;;
1215
1216   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217     ac_prev=sbindir ;;
1218   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219   | --sbi=* | --sb=*)
1220     sbindir=$ac_optarg ;;
1221
1222   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224   | --sharedst | --shareds | --shared | --share | --shar \
1225   | --sha | --sh)
1226     ac_prev=sharedstatedir ;;
1227   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230   | --sha=* | --sh=*)
1231     sharedstatedir=$ac_optarg ;;
1232
1233   -site | --site | --sit)
1234     ac_prev=site ;;
1235   -site=* | --site=* | --sit=*)
1236     site=$ac_optarg ;;
1237
1238   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239     ac_prev=srcdir ;;
1240   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241     srcdir=$ac_optarg ;;
1242
1243   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244   | --syscon | --sysco | --sysc | --sys | --sy)
1245     ac_prev=sysconfdir ;;
1246   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248     sysconfdir=$ac_optarg ;;
1249
1250   -target | --target | --targe | --targ | --tar | --ta | --t)
1251     ac_prev=target_alias ;;
1252   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253     target_alias=$ac_optarg ;;
1254
1255   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256     verbose=yes ;;
1257
1258   -version | --version | --versio | --versi | --vers | -V)
1259     ac_init_version=: ;;
1260
1261   -with-* | --with-*)
1262     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265       as_fn_error $? "invalid package name: $ac_useropt"
1266     ac_useropt_orig=$ac_useropt
1267     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268     case $ac_user_opts in
1269       *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273          ac_unrecognized_sep=', ';;
1274     esac
1275     eval with_$ac_useropt=\$ac_optarg ;;
1276
1277   -without-* | --without-*)
1278     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281       as_fn_error $? "invalid package name: $ac_useropt"
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=no ;;
1292
1293   --x)
1294     # Obsolete; use --with-x.
1295     with_x=yes ;;
1296
1297   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298   | --x-incl | --x-inc | --x-in | --x-i)
1299     ac_prev=x_includes ;;
1300   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302     x_includes=$ac_optarg ;;
1303
1304   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306     ac_prev=x_libraries ;;
1307   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309     x_libraries=$ac_optarg ;;
1310
1311   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information"
1313     ;;
1314
1315   *=*)
1316     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317     # Reject names that are not valid shell variable names.
1318     case $ac_envvar in #(
1319       '' | [0-9]* | *[!_$as_cr_alnum]* )
1320       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1321     esac
1322     eval $ac_envvar=\$ac_optarg
1323     export $ac_envvar ;;
1324
1325   *)
1326     # FIXME: should be removed in autoconf 3.0.
1327     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1331     ;;
1332
1333   esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338   as_fn_error $? "missing argument to $ac_option"
1339 fi
1340
1341 if test -n "$ac_unrecognized_opts"; then
1342   case $enable_option_checking in
1343     no) ;;
1344     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346   esac
1347 fi
1348
1349 # Check all directory arguments for consistency.
1350 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351                 datadir sysconfdir sharedstatedir localstatedir includedir \
1352                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353                 libdir localedir mandir
1354 do
1355   eval ac_val=\$$ac_var
1356   # Remove trailing slashes.
1357   case $ac_val in
1358     */ )
1359       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360       eval $ac_var=\$ac_val;;
1361   esac
1362   # Be sure to have absolute directory names.
1363   case $ac_val in
1364     [\\/$]* | ?:[\\/]* )  continue;;
1365     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366   esac
1367   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381   elif test "x$build_alias" != "x$host_alias"; then
1382     cross_compiling=yes
1383   fi
1384 fi
1385
1386 ac_tool_prefix=
1387 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389 test "$silent" = yes && exec 6>/dev/null
1390
1391
1392 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393 ac_ls_di=`ls -di .` &&
1394 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395   as_fn_error $? "working directory cannot be determined"
1396 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397   as_fn_error $? "pwd does not report name of working directory"
1398
1399
1400 # Find the source files, if location was not specified.
1401 if test -z "$srcdir"; then
1402   ac_srcdir_defaulted=yes
1403   # Try the directory containing this script, then the parent directory.
1404   ac_confdir=`$as_dirname -- "$as_myself" ||
1405 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406          X"$as_myself" : 'X\(//\)[^/]' \| \
1407          X"$as_myself" : 'X\(//\)$' \| \
1408          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409 $as_echo X"$as_myself" |
1410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\/\)[^/].*/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)$/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\).*/{
1423             s//\1/
1424             q
1425           }
1426           s/.*/./; q'`
1427   srcdir=$ac_confdir
1428   if test ! -r "$srcdir/$ac_unique_file"; then
1429     srcdir=..
1430   fi
1431 else
1432   ac_srcdir_defaulted=no
1433 fi
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437 fi
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 ac_abs_confdir=`(
1440         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441         pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444   srcdir=.
1445 fi
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454   eval ac_env_${ac_var}_value=\$${ac_var}
1455   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1458
1459 #
1460 # Report the --help message.
1461 #
1462 if test "$ac_init_help" = "long"; then
1463   # Omit some internal or obsolete options to make the list less imposing.
1464   # This message is too long to be a string in the A/UX 3.1 sh.
1465   cat <<_ACEOF
1466 \`configure' configures HarfBuzz 1.4.6 to adapt to many kinds of systems.
1467
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473 Defaults for the options are specified in brackets.
1474
1475 Configuration:
1476   -h, --help              display this help and exit
1477       --help=short        display options specific to this package
1478       --help=recursive    display the short help of all the included packages
1479   -V, --version           display version information and exit
1480   -q, --quiet, --silent   do not print \`checking ...' messages
1481       --cache-file=FILE   cache test results in FILE [disabled]
1482   -C, --config-cache      alias for \`--cache-file=config.cache'
1483   -n, --no-create         do not create output files
1484       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486 Installation directories:
1487   --prefix=PREFIX         install architecture-independent files in PREFIX
1488                           [$ac_default_prefix]
1489   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490                           [PREFIX]
1491
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1496
1497 For better control, use the options below.
1498
1499 Fine tuning of the installation directories:
1500   --bindir=DIR            user executables [EPREFIX/bin]
1501   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1502   --libexecdir=DIR        program executables [EPREFIX/libexec]
1503   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1504   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1505   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1506   --libdir=DIR            object code libraries [EPREFIX/lib]
1507   --includedir=DIR        C header files [PREFIX/include]
1508   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1509   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1510   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1511   --infodir=DIR           info documentation [DATAROOTDIR/info]
1512   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1513   --mandir=DIR            man documentation [DATAROOTDIR/man]
1514   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1515   --htmldir=DIR           html documentation [DOCDIR]
1516   --dvidir=DIR            dvi documentation [DOCDIR]
1517   --pdfdir=DIR            pdf documentation [DOCDIR]
1518   --psdir=DIR             ps documentation [DOCDIR]
1519 _ACEOF
1520
1521   cat <<\_ACEOF
1522
1523 Program names:
1524   --program-prefix=PREFIX            prepend PREFIX to installed program names
1525   --program-suffix=SUFFIX            append SUFFIX to installed program names
1526   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1527
1528 System types:
1529   --build=BUILD     configure for building on BUILD [guessed]
1530   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531 _ACEOF
1532 fi
1533
1534 if test -n "$ac_init_help"; then
1535   case $ac_init_help in
1536      short | recursive ) echo "Configuration of HarfBuzz 1.4.6:";;
1537    esac
1538   cat <<\_ACEOF
1539
1540 Optional Features:
1541   --disable-option-checking  ignore unrecognized --enable/--with options
1542   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1543   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1544   --enable-silent-rules   less verbose build output (undo: "make V=1")
1545   --disable-silent-rules  verbose build output (undo: "make V=0")
1546   --enable-dependency-tracking
1547                           do not reject slow dependency extractors
1548   --disable-dependency-tracking
1549                           speeds up one-time build
1550   --enable-static[=PKGS]  build static libraries [default=no]
1551   --enable-shared[=PKGS]  build shared libraries [default=yes]
1552   --enable-fast-install[=PKGS]
1553                           optimize for fast installation [default=yes]
1554   --disable-libtool-lock  avoid locking (might break parallel builds)
1555   --disable-largefile     omit support for large files
1556   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1557   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1558   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1559   --enable-introspection=[no/auto/yes]
1560                           Enable introspection for this build
1561
1562 Optional Packages:
1563   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1566                           both]
1567   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1568   --with-sysroot=DIR Search for dependent libraries within DIR
1569                         (or the compiler's sysroot if not specified).
1570   --with-html-dir=PATH    path to installed docs
1571   --with-glib=[yes/no/auto]
1572                           Use glib [default=auto]
1573   --with-gobject=[yes/no/auto]
1574                           Use gobject [default=auto]
1575   --with-cairo=[yes/no/auto]
1576                           Use cairo [default=auto]
1577   --with-fontconfig=[yes/no/auto]
1578                           Use fontconfig [default=auto]
1579   --with-icu=[yes/no/builtin/auto]
1580                           Use ICU [default=auto]
1581   --with-ucdn=[yes/no]    Use builtin UCDN library [default=yes]
1582   --with-graphite2=[yes/no/auto]
1583                           Use the graphite2 library [default=no]
1584   --with-freetype=[yes/no/auto]
1585                           Use the FreeType library [default=auto]
1586   --with-uniscribe=[yes/no/auto]
1587                           Use the Uniscribe library [default=no]
1588   --with-directwrite=[yes/no/auto]
1589                           Use the DirectWrite library (experimental)
1590                           [default=no]
1591   --with-coretext=[yes/no/auto]
1592                           Use CoreText [default=no]
1593
1594 Some influential environment variables:
1595   CC          C compiler command
1596   CFLAGS      C compiler flags
1597   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1598               nonstandard directory <lib dir>
1599   LIBS        libraries to pass to the linker, e.g. -l<library>
1600   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601               you have headers in a nonstandard directory <include dir>
1602   CPP         C preprocessor
1603   CXX         C++ compiler command
1604   CXXFLAGS    C++ compiler flags
1605   CXXCPP      C++ preprocessor
1606   PKG_CONFIG  path to pkg-config utility
1607   GTKDOC_DEPS_CFLAGS
1608               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1609   GTKDOC_DEPS_LIBS
1610               linker flags for GTKDOC_DEPS, overriding pkg-config
1611   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1612   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1613   GOBJECT_CFLAGS
1614               C compiler flags for GOBJECT, overriding pkg-config
1615   GOBJECT_LIBS
1616               linker flags for GOBJECT, overriding pkg-config
1617   CAIRO_CFLAGS
1618               C compiler flags for CAIRO, overriding pkg-config
1619   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1620   CAIRO_FT_CFLAGS
1621               C compiler flags for CAIRO_FT, overriding pkg-config
1622   CAIRO_FT_LIBS
1623               linker flags for CAIRO_FT, overriding pkg-config
1624   FONTCONFIG_CFLAGS
1625               C compiler flags for FONTCONFIG, overriding pkg-config
1626   FONTCONFIG_LIBS
1627               linker flags for FONTCONFIG, overriding pkg-config
1628   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1629   ICU_LIBS    linker flags for ICU, overriding pkg-config
1630   GRAPHITE2_CFLAGS
1631               C compiler flags for GRAPHITE2, overriding pkg-config
1632   GRAPHITE2_LIBS
1633               linker flags for GRAPHITE2, overriding pkg-config
1634   FREETYPE_CFLAGS
1635               C compiler flags for FREETYPE, overriding pkg-config
1636   FREETYPE_LIBS
1637               linker flags for FREETYPE, overriding pkg-config
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 Report bugs to <https://github.com/behdad/harfbuzz/issues/new>.
1643 HarfBuzz home page: <http://harfbuzz.org/>.
1644 _ACEOF
1645 ac_status=$?
1646 fi
1647
1648 if test "$ac_init_help" = "recursive"; then
1649   # If there are subdirs, report their specific --help.
1650   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651     test -d "$ac_dir" ||
1652       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653       continue
1654     ac_builddir=.
1655
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *)
1659   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660   # A ".." for each directory in $ac_dir_suffix.
1661   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662   case $ac_top_builddir_sub in
1663   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665   esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1671
1672 case $srcdir in
1673   .)  # We are building in place.
1674     ac_srcdir=.
1675     ac_top_srcdir=$ac_top_builddir_sub
1676     ac_abs_top_srcdir=$ac_pwd ;;
1677   [\\/]* | ?:[\\/]* )  # Absolute name.
1678     ac_srcdir=$srcdir$ac_dir_suffix;
1679     ac_top_srcdir=$srcdir
1680     ac_abs_top_srcdir=$srcdir ;;
1681   *) # Relative name.
1682     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683     ac_top_srcdir=$ac_top_build_prefix$srcdir
1684     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688     cd "$ac_dir" || { ac_status=$?; continue; }
1689     # Check for guested configure.
1690     if test -f "$ac_srcdir/configure.gnu"; then
1691       echo &&
1692       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693     elif test -f "$ac_srcdir/configure"; then
1694       echo &&
1695       $SHELL "$ac_srcdir/configure" --help=recursive
1696     else
1697       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698     fi || ac_status=$?
1699     cd "$ac_pwd" || { ac_status=$?; break; }
1700   done
1701 fi
1702
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705   cat <<\_ACEOF
1706 HarfBuzz configure 1.4.6
1707 generated by GNU Autoconf 2.69
1708
1709 Copyright (C) 2012 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713   exit
1714 fi
1715
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1719
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   rm -f conftest.$ac_objext
1727   if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_compile") 2>conftest.err
1735   ac_status=$?
1736   if test -s conftest.err; then
1737     grep -v '^ *+' conftest.err >conftest.er1
1738     cat conftest.er1 >&5
1739     mv -f conftest.er1 conftest.err
1740   fi
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } && {
1743          test -z "$ac_c_werror_flag" ||
1744          test ! -s conftest.err
1745        } && test -s conftest.$ac_objext; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751         ac_retval=1
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_compile
1757
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_link ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   rm -f conftest.$ac_objext conftest$ac_exeext
1765   if { { ac_try="$ac_link"
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_link") 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_exeext && {
1784          test "$cross_compiling" = yes ||
1785          test -x conftest$ac_exeext
1786        }; then :
1787   ac_retval=0
1788 else
1789   $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792         ac_retval=1
1793 fi
1794   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796   # interfere with the next link command; also delete a directory that is
1797   # left behind by Apple's compiler.  We do this before executing the actions.
1798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_link
1803
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814   $as_echo_n "(cached) " >&6
1815 else
1816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   eval "$3=yes"
1823 else
1824   eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_header_compile
1834
1835 # ac_fn_c_try_cpp LINENO
1836 # ----------------------
1837 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_cpp ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   if { { ac_try="$ac_cpp conftest.$ac_ext"
1842 case "(($ac_try" in
1843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844   *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849   ac_status=$?
1850   if test -s conftest.err; then
1851     grep -v '^ *+' conftest.err >conftest.er1
1852     cat conftest.er1 >&5
1853     mv -f conftest.er1 conftest.err
1854   fi
1855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; } > conftest.i && {
1857          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1858          test ! -s conftest.err
1859        }; then :
1860   ac_retval=0
1861 else
1862   $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865     ac_retval=1
1866 fi
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868   as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_cpp
1871
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1876 ac_fn_c_try_run ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   if { { ac_try="$ac_link"
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_link") 2>&5
1887   ac_status=$?
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890   { { case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_try") 2>&5
1897   ac_status=$?
1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; }; }; then :
1900   ac_retval=0
1901 else
1902   $as_echo "$as_me: program exited with status $ac_status" >&5
1903        $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906        ac_retval=$ac_status
1907 fi
1908   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910   as_fn_set_status $ac_retval
1911
1912 } # ac_fn_c_try_run
1913
1914 # ac_fn_c_check_func LINENO FUNC VAR
1915 # ----------------------------------
1916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1917 ac_fn_c_check_func ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923   $as_echo_n "(cached) " >&6
1924 else
1925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1929 #define $2 innocuous_$2
1930
1931 /* System header to define __stub macros and hopefully few prototypes,
1932     which can conflict with char $2 (); below.
1933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1934     <limits.h> exists even on freestanding compilers.  */
1935
1936 #ifdef __STDC__
1937 # include <limits.h>
1938 #else
1939 # include <assert.h>
1940 #endif
1941
1942 #undef $2
1943
1944 /* Override any GCC internal prototype to avoid an error.
1945    Use char because int might match the return type of a GCC
1946    builtin and then its argument prototype would still apply.  */
1947 #ifdef __cplusplus
1948 extern "C"
1949 #endif
1950 char $2 ();
1951 /* The GNU C library defines this for functions which it implements
1952     to always fail with ENOSYS.  Some functions are actually named
1953     something starting with __ and the normal name is an alias.  */
1954 #if defined __stub_$2 || defined __stub___$2
1955 choke me
1956 #endif
1957
1958 int
1959 main ()
1960 {
1961 return $2 ();
1962   ;
1963   return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_link "$LINENO"; then :
1967   eval "$3=yes"
1968 else
1969   eval "$3=no"
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext \
1972     conftest$ac_exeext conftest.$ac_ext
1973 fi
1974 eval ac_res=\$$3
1975                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_c_check_func
1980
1981 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1984 # the include files in INCLUDES and setting the cache variable VAR
1985 # accordingly.
1986 ac_fn_c_check_header_mongrel ()
1987 {
1988   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989   if eval \${$3+:} false; then :
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993   $as_echo_n "(cached) " >&6
1994 fi
1995 eval ac_res=\$$3
1996                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 else
1999   # Is the header compilable?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2001 $as_echo_n "checking $2 usability... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $4
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008   ac_header_compiler=yes
2009 else
2010   ac_header_compiler=no
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2014 $as_echo "$ac_header_compiler" >&6; }
2015
2016 # Is the header present?
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2018 $as_echo_n "checking $2 presence... " >&6; }
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_cpp "$LINENO"; then :
2024   ac_header_preproc=yes
2025 else
2026   ac_header_preproc=no
2027 fi
2028 rm -f conftest.err conftest.i conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2030 $as_echo "$ac_header_preproc" >&6; }
2031
2032 # So?  What about this header?
2033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2034   yes:no: )
2035     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2036 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2037     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039     ;;
2040   no:yes:* )
2041     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2042 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2043     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2044 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2046 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2048 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2049     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 ( $as_echo "## ------------------------------------------------------------ ##
2052 ## Report this to https://github.com/behdad/harfbuzz/issues/new ##
2053 ## ------------------------------------------------------------ ##"
2054      ) | sed "s/^/$as_me: WARNING:     /" >&2
2055     ;;
2056 esac
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060   $as_echo_n "(cached) " >&6
2061 else
2062   eval "$3=\$ac_header_compiler"
2063 fi
2064 eval ac_res=\$$3
2065                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 fi
2068   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070 } # ac_fn_c_check_header_mongrel
2071
2072 # ac_fn_cxx_try_compile LINENO
2073 # ----------------------------
2074 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2075 ac_fn_cxx_try_compile ()
2076 {
2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078   rm -f conftest.$ac_objext
2079   if { { ac_try="$ac_compile"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086   (eval "$ac_compile") 2>conftest.err
2087   ac_status=$?
2088   if test -s conftest.err; then
2089     grep -v '^ *+' conftest.err >conftest.er1
2090     cat conftest.er1 >&5
2091     mv -f conftest.er1 conftest.err
2092   fi
2093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094   test $ac_status = 0; } && {
2095          test -z "$ac_cxx_werror_flag" ||
2096          test ! -s conftest.err
2097        } && test -s conftest.$ac_objext; then :
2098   ac_retval=0
2099 else
2100   $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103         ac_retval=1
2104 fi
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106   as_fn_set_status $ac_retval
2107
2108 } # ac_fn_cxx_try_compile
2109
2110 # ac_fn_cxx_try_cpp LINENO
2111 # ------------------------
2112 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_cxx_try_cpp ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   if { { ac_try="$ac_cpp conftest.$ac_ext"
2117 case "(($ac_try" in
2118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119   *) ac_try_echo=$ac_try;;
2120 esac
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2124   ac_status=$?
2125   if test -s conftest.err; then
2126     grep -v '^ *+' conftest.err >conftest.er1
2127     cat conftest.er1 >&5
2128     mv -f conftest.er1 conftest.err
2129   fi
2130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131   test $ac_status = 0; } > conftest.i && {
2132          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2133          test ! -s conftest.err
2134        }; then :
2135   ac_retval=0
2136 else
2137   $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140     ac_retval=1
2141 fi
2142   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143   as_fn_set_status $ac_retval
2144
2145 } # ac_fn_cxx_try_cpp
2146
2147 # ac_fn_cxx_try_link LINENO
2148 # -------------------------
2149 # Try to link conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_cxx_try_link ()
2151 {
2152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153   rm -f conftest.$ac_objext conftest$ac_exeext
2154   if { { ac_try="$ac_link"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161   (eval "$ac_link") 2>conftest.err
2162   ac_status=$?
2163   if test -s conftest.err; then
2164     grep -v '^ *+' conftest.err >conftest.er1
2165     cat conftest.er1 >&5
2166     mv -f conftest.er1 conftest.err
2167   fi
2168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169   test $ac_status = 0; } && {
2170          test -z "$ac_cxx_werror_flag" ||
2171          test ! -s conftest.err
2172        } && test -s conftest$ac_exeext && {
2173          test "$cross_compiling" = yes ||
2174          test -x conftest$ac_exeext
2175        }; then :
2176   ac_retval=0
2177 else
2178   $as_echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2180
2181         ac_retval=1
2182 fi
2183   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2184   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2185   # interfere with the next link command; also delete a directory that is
2186   # left behind by Apple's compiler.  We do this before executing the actions.
2187   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2188   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189   as_fn_set_status $ac_retval
2190
2191 } # ac_fn_cxx_try_link
2192
2193 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2194 # --------------------------------------------
2195 # Tries to find the compile-time value of EXPR in a program that includes
2196 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2197 # computed
2198 ac_fn_c_compute_int ()
2199 {
2200   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201   if test "$cross_compiling" = yes; then
2202     # Depending upon the size, compute the lo and hi bounds.
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h.  */
2205 $4
2206 int
2207 main ()
2208 {
2209 static int test_array [1 - 2 * !(($2) >= 0)];
2210 test_array [0] = 0;
2211 return test_array [0];
2212
2213   ;
2214   return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218   ac_lo=0 ac_mid=0
2219   while :; do
2220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 int
2224 main ()
2225 {
2226 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2227 test_array [0] = 0;
2228 return test_array [0];
2229
2230   ;
2231   return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235   ac_hi=$ac_mid; break
2236 else
2237   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2238                         if test $ac_lo -le $ac_mid; then
2239                           ac_lo= ac_hi=
2240                           break
2241                         fi
2242                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245   done
2246 else
2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 int
2251 main ()
2252 {
2253 static int test_array [1 - 2 * !(($2) < 0)];
2254 test_array [0] = 0;
2255 return test_array [0];
2256
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262   ac_hi=-1 ac_mid=-1
2263   while :; do
2264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 int
2268 main ()
2269 {
2270 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2271 test_array [0] = 0;
2272 return test_array [0];
2273
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   ac_lo=$ac_mid; break
2280 else
2281   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2282                         if test $ac_mid -le $ac_hi; then
2283                           ac_lo= ac_hi=
2284                           break
2285                         fi
2286                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289   done
2290 else
2291   ac_lo= ac_hi=
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 # Binary search between lo and hi bounds.
2297 while test "x$ac_lo" != "x$ac_hi"; do
2298   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 $4
2302 int
2303 main ()
2304 {
2305 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2306 test_array [0] = 0;
2307 return test_array [0];
2308
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314   ac_hi=$ac_mid
2315 else
2316   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2317 fi
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 done
2320 case $ac_lo in #((
2321 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2322 '') ac_retval=1 ;;
2323 esac
2324   else
2325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h.  */
2327 $4
2328 static long int longval () { return $2; }
2329 static unsigned long int ulongval () { return $2; }
2330 #include <stdio.h>
2331 #include <stdlib.h>
2332 int
2333 main ()
2334 {
2335
2336   FILE *f = fopen ("conftest.val", "w");
2337   if (! f)
2338     return 1;
2339   if (($2) < 0)
2340     {
2341       long int i = longval ();
2342       if (i != ($2))
2343         return 1;
2344       fprintf (f, "%ld", i);
2345     }
2346   else
2347     {
2348       unsigned long int i = ulongval ();
2349       if (i != ($2))
2350         return 1;
2351       fprintf (f, "%lu", i);
2352     }
2353   /* Do not output a trailing newline, as this causes \r\n confusion
2354      on some platforms.  */
2355   return ferror (f) || fclose (f) != 0;
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_c_try_run "$LINENO"; then :
2362   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2363 else
2364   ac_retval=1
2365 fi
2366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2367   conftest.$ac_objext conftest.beam conftest.$ac_ext
2368 rm -f conftest.val
2369
2370   fi
2371   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372   as_fn_set_status $ac_retval
2373
2374 } # ac_fn_c_compute_int
2375
2376 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2377 # ---------------------------------------------------------
2378 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2379 # the include files in INCLUDES and setting the cache variable VAR
2380 # accordingly.
2381 ac_fn_cxx_check_header_mongrel ()
2382 {
2383   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384   if eval \${$3+:} false; then :
2385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386 $as_echo_n "checking for $2... " >&6; }
2387 if eval \${$3+:} false; then :
2388   $as_echo_n "(cached) " >&6
2389 fi
2390 eval ac_res=\$$3
2391                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392 $as_echo "$ac_res" >&6; }
2393 else
2394   # Is the header compilable?
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2396 $as_echo_n "checking $2 usability... " >&6; }
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h.  */
2399 $4
2400 #include <$2>
2401 _ACEOF
2402 if ac_fn_cxx_try_compile "$LINENO"; then :
2403   ac_header_compiler=yes
2404 else
2405   ac_header_compiler=no
2406 fi
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2409 $as_echo "$ac_header_compiler" >&6; }
2410
2411 # Is the header present?
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2413 $as_echo_n "checking $2 presence... " >&6; }
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h.  */
2416 #include <$2>
2417 _ACEOF
2418 if ac_fn_cxx_try_cpp "$LINENO"; then :
2419   ac_header_preproc=yes
2420 else
2421   ac_header_preproc=no
2422 fi
2423 rm -f conftest.err conftest.i conftest.$ac_ext
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2425 $as_echo "$ac_header_preproc" >&6; }
2426
2427 # So?  What about this header?
2428 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2429   yes:no: )
2430     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2431 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2432     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2433 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2434     ;;
2435   no:yes:* )
2436     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2437 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2438     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2439 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2441 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2443 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2444     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2445 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2446 ( $as_echo "## ------------------------------------------------------------ ##
2447 ## Report this to https://github.com/behdad/harfbuzz/issues/new ##
2448 ## ------------------------------------------------------------ ##"
2449      ) | sed "s/^/$as_me: WARNING:     /" >&2
2450     ;;
2451 esac
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if eval \${$3+:} false; then :
2455   $as_echo_n "(cached) " >&6
2456 else
2457   eval "$3=\$ac_header_compiler"
2458 fi
2459 eval ac_res=\$$3
2460                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461 $as_echo "$ac_res" >&6; }
2462 fi
2463   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2464
2465 } # ac_fn_cxx_check_header_mongrel
2466
2467 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2468 # -------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_c_check_type ()
2472 {
2473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   eval "$3=no"
2480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h.  */
2482 $4
2483 int
2484 main ()
2485 {
2486 if (sizeof ($2))
2487          return 0;
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 if ac_fn_c_try_compile "$LINENO"; then :
2493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h.  */
2495 $4
2496 int
2497 main ()
2498 {
2499 if (sizeof (($2)))
2500             return 0;
2501   ;
2502   return 0;
2503 }
2504 _ACEOF
2505 if ac_fn_c_try_compile "$LINENO"; then :
2506
2507 else
2508   eval "$3=yes"
2509 fi
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 fi
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 fi
2514 eval ac_res=\$$3
2515                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518
2519 } # ac_fn_c_check_type
2520 cat >config.log <<_ACEOF
2521 This file contains any messages produced by compilers while
2522 running configure, to aid debugging if configure makes a mistake.
2523
2524 It was created by HarfBuzz $as_me 1.4.6, which was
2525 generated by GNU Autoconf 2.69.  Invocation command line was
2526
2527   $ $0 $@
2528
2529 _ACEOF
2530 exec 5>>config.log
2531 {
2532 cat <<_ASUNAME
2533 ## --------- ##
2534 ## Platform. ##
2535 ## --------- ##
2536
2537 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2538 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2539 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2540 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2541 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2542
2543 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2544 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2545
2546 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2547 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2548 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2549 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2550 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2551 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2552 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2553
2554 _ASUNAME
2555
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559   IFS=$as_save_IFS
2560   test -z "$as_dir" && as_dir=.
2561     $as_echo "PATH: $as_dir"
2562   done
2563 IFS=$as_save_IFS
2564
2565 } >&5
2566
2567 cat >&5 <<_ACEOF
2568
2569
2570 ## ----------- ##
2571 ## Core tests. ##
2572 ## ----------- ##
2573
2574 _ACEOF
2575
2576
2577 # Keep a trace of the command line.
2578 # Strip out --no-create and --no-recursion so they do not pile up.
2579 # Strip out --silent because we don't want to record it for future runs.
2580 # Also quote any args containing shell meta-characters.
2581 # Make two passes to allow for proper duplicate-argument suppression.
2582 ac_configure_args=
2583 ac_configure_args0=
2584 ac_configure_args1=
2585 ac_must_keep_next=false
2586 for ac_pass in 1 2
2587 do
2588   for ac_arg
2589   do
2590     case $ac_arg in
2591     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2592     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2593     | -silent | --silent | --silen | --sile | --sil)
2594       continue ;;
2595     *\'*)
2596       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2597     esac
2598     case $ac_pass in
2599     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2600     2)
2601       as_fn_append ac_configure_args1 " '$ac_arg'"
2602       if test $ac_must_keep_next = true; then
2603         ac_must_keep_next=false # Got value, back to normal.
2604       else
2605         case $ac_arg in
2606           *=* | --config-cache | -C | -disable-* | --disable-* \
2607           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2608           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2609           | -with-* | --with-* | -without-* | --without-* | --x)
2610             case "$ac_configure_args0 " in
2611               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2612             esac
2613             ;;
2614           -* ) ac_must_keep_next=true ;;
2615         esac
2616       fi
2617       as_fn_append ac_configure_args " '$ac_arg'"
2618       ;;
2619     esac
2620   done
2621 done
2622 { ac_configure_args0=; unset ac_configure_args0;}
2623 { ac_configure_args1=; unset ac_configure_args1;}
2624
2625 # When interrupted or exit'd, cleanup temporary files, and complete
2626 # config.log.  We remove comments because anyway the quotes in there
2627 # would cause problems or look ugly.
2628 # WARNING: Use '\'' to represent an apostrophe within the trap.
2629 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2630 trap 'exit_status=$?
2631   # Save into config.log some information that might help in debugging.
2632   {
2633     echo
2634
2635     $as_echo "## ---------------- ##
2636 ## Cache variables. ##
2637 ## ---------------- ##"
2638     echo
2639     # The following way of writing the cache mishandles newlines in values,
2640 (
2641   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2642     eval ac_val=\$$ac_var
2643     case $ac_val in #(
2644     *${as_nl}*)
2645       case $ac_var in #(
2646       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2648       esac
2649       case $ac_var in #(
2650       _ | IFS | as_nl) ;; #(
2651       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2652       *) { eval $ac_var=; unset $ac_var;} ;;
2653       esac ;;
2654     esac
2655   done
2656   (set) 2>&1 |
2657     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2658     *${as_nl}ac_space=\ *)
2659       sed -n \
2660         "s/'\''/'\''\\\\'\'''\''/g;
2661           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2662       ;; #(
2663     *)
2664       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2665       ;;
2666     esac |
2667     sort
2668 )
2669     echo
2670
2671     $as_echo "## ----------------- ##
2672 ## Output variables. ##
2673 ## ----------------- ##"
2674     echo
2675     for ac_var in $ac_subst_vars
2676     do
2677       eval ac_val=\$$ac_var
2678       case $ac_val in
2679       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2680       esac
2681       $as_echo "$ac_var='\''$ac_val'\''"
2682     done | sort
2683     echo
2684
2685     if test -n "$ac_subst_files"; then
2686       $as_echo "## ------------------- ##
2687 ## File substitutions. ##
2688 ## ------------------- ##"
2689       echo
2690       for ac_var in $ac_subst_files
2691       do
2692         eval ac_val=\$$ac_var
2693         case $ac_val in
2694         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2695         esac
2696         $as_echo "$ac_var='\''$ac_val'\''"
2697       done | sort
2698       echo
2699     fi
2700
2701     if test -s confdefs.h; then
2702       $as_echo "## ----------- ##
2703 ## confdefs.h. ##
2704 ## ----------- ##"
2705       echo
2706       cat confdefs.h
2707       echo
2708     fi
2709     test "$ac_signal" != 0 &&
2710       $as_echo "$as_me: caught signal $ac_signal"
2711     $as_echo "$as_me: exit $exit_status"
2712   } >&5
2713   rm -f core *.core core.conftest.* &&
2714     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2715     exit $exit_status
2716 ' 0
2717 for ac_signal in 1 2 13 15; do
2718   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2719 done
2720 ac_signal=0
2721
2722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2723 rm -f -r conftest* confdefs.h
2724
2725 $as_echo "/* confdefs.h */" > confdefs.h
2726
2727 # Predefined preprocessor variables.
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_NAME "$PACKAGE_NAME"
2731 _ACEOF
2732
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2735 _ACEOF
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2739 _ACEOF
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_STRING "$PACKAGE_STRING"
2743 _ACEOF
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2747 _ACEOF
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define PACKAGE_URL "$PACKAGE_URL"
2751 _ACEOF
2752
2753
2754 # Let the site file select an alternate cache file if it wants to.
2755 # Prefer an explicitly selected file to automatically selected ones.
2756 ac_site_file1=NONE
2757 ac_site_file2=NONE
2758 if test -n "$CONFIG_SITE"; then
2759   # We do not want a PATH search for config.site.
2760   case $CONFIG_SITE in #((
2761     -*)  ac_site_file1=./$CONFIG_SITE;;
2762     */*) ac_site_file1=$CONFIG_SITE;;
2763     *)   ac_site_file1=./$CONFIG_SITE;;
2764   esac
2765 elif test "x$prefix" != xNONE; then
2766   ac_site_file1=$prefix/share/config.site
2767   ac_site_file2=$prefix/etc/config.site
2768 else
2769   ac_site_file1=$ac_default_prefix/share/config.site
2770   ac_site_file2=$ac_default_prefix/etc/config.site
2771 fi
2772 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2773 do
2774   test "x$ac_site_file" = xNONE && continue
2775   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2776     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2777 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2778     sed 's/^/| /' "$ac_site_file" >&5
2779     . "$ac_site_file" \
2780       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2782 as_fn_error $? "failed to load site script $ac_site_file
2783 See \`config.log' for more details" "$LINENO" 5; }
2784   fi
2785 done
2786
2787 if test -r "$cache_file"; then
2788   # Some versions of bash will fail to source /dev/null (special files
2789   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2790   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2791     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2792 $as_echo "$as_me: loading cache $cache_file" >&6;}
2793     case $cache_file in
2794       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2795       *)                      . "./$cache_file";;
2796     esac
2797   fi
2798 else
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2800 $as_echo "$as_me: creating cache $cache_file" >&6;}
2801   >$cache_file
2802 fi
2803
2804 # Check that the precious variables saved in the cache have kept the same
2805 # value.
2806 ac_cache_corrupted=false
2807 for ac_var in $ac_precious_vars; do
2808   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2809   eval ac_new_set=\$ac_env_${ac_var}_set
2810   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2811   eval ac_new_val=\$ac_env_${ac_var}_value
2812   case $ac_old_set,$ac_new_set in
2813     set,)
2814       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2815 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2816       ac_cache_corrupted=: ;;
2817     ,set)
2818       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2819 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2820       ac_cache_corrupted=: ;;
2821     ,);;
2822     *)
2823       if test "x$ac_old_val" != "x$ac_new_val"; then
2824         # differences in whitespace do not lead to failure.
2825         ac_old_val_w=`echo x $ac_old_val`
2826         ac_new_val_w=`echo x $ac_new_val`
2827         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2828           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2829 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2830           ac_cache_corrupted=:
2831         else
2832           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2833 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2834           eval $ac_var=\$ac_old_val
2835         fi
2836         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2837 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2838         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2839 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2840       fi;;
2841   esac
2842   # Pass precious variables to config.status.
2843   if test "$ac_new_set" = set; then
2844     case $ac_new_val in
2845     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2846     *) ac_arg=$ac_var=$ac_new_val ;;
2847     esac
2848     case " $ac_configure_args " in
2849       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2850       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2851     esac
2852   fi
2853 done
2854 if $ac_cache_corrupted; then
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2858 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2859   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2860 fi
2861 ## -------------------- ##
2862 ## Main body of script. ##
2863 ## -------------------- ##
2864
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870
2871
2872
2873
2874
2875 ac_config_headers="$ac_config_headers config.h"
2876
2877
2878 am__api_version='1.14'
2879
2880 ac_aux_dir=
2881 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2882   if test -f "$ac_dir/install-sh"; then
2883     ac_aux_dir=$ac_dir
2884     ac_install_sh="$ac_aux_dir/install-sh -c"
2885     break
2886   elif test -f "$ac_dir/install.sh"; then
2887     ac_aux_dir=$ac_dir
2888     ac_install_sh="$ac_aux_dir/install.sh -c"
2889     break
2890   elif test -f "$ac_dir/shtool"; then
2891     ac_aux_dir=$ac_dir
2892     ac_install_sh="$ac_aux_dir/shtool install -c"
2893     break
2894   fi
2895 done
2896 if test -z "$ac_aux_dir"; then
2897   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2898 fi
2899
2900 # These three variables are undocumented and unsupported,
2901 # and are intended to be withdrawn in a future Autoconf release.
2902 # They can cause serious problems if a builder's source tree is in a directory
2903 # whose full name contains unusual characters.
2904 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2905 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2906 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2907
2908
2909 # Find a good install program.  We prefer a C program (faster),
2910 # so one script is as good as another.  But avoid the broken or
2911 # incompatible versions:
2912 # SysV /etc/install, /usr/sbin/install
2913 # SunOS /usr/etc/install
2914 # IRIX /sbin/install
2915 # AIX /bin/install
2916 # AmigaOS /C/install, which installs bootblocks on floppy discs
2917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2920 # OS/2's system install, which has a completely different semantic
2921 # ./install, which can be erroneously created by make from ./install.sh.
2922 # Reject install programs that cannot install multiple files.
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2924 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2925 if test -z "$INSTALL"; then
2926 if ${ac_cv_path_install+:} false; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934     # Account for people who put trailing slashes in PATH elements.
2935 case $as_dir/ in #((
2936   ./ | .// | /[cC]/* | \
2937   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2938   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2939   /usr/ucb/* ) ;;
2940   *)
2941     # OSF1 and SCO ODT 3.0 have their own names for install.
2942     # Don't use installbsd from OSF since it installs stuff as root
2943     # by default.
2944     for ac_prog in ginstall scoinst install; do
2945       for ac_exec_ext in '' $ac_executable_extensions; do
2946         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2947           if test $ac_prog = install &&
2948             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2949             # AIX install.  It has an incompatible calling convention.
2950             :
2951           elif test $ac_prog = install &&
2952             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2953             # program-specific install script used by HP pwplus--don't use.
2954             :
2955           else
2956             rm -rf conftest.one conftest.two conftest.dir
2957             echo one > conftest.one
2958             echo two > conftest.two
2959             mkdir conftest.dir
2960             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2961               test -s conftest.one && test -s conftest.two &&
2962               test -s conftest.dir/conftest.one &&
2963               test -s conftest.dir/conftest.two
2964             then
2965               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2966               break 3
2967             fi
2968           fi
2969         fi
2970       done
2971     done
2972     ;;
2973 esac
2974
2975   done
2976 IFS=$as_save_IFS
2977
2978 rm -rf conftest.one conftest.two conftest.dir
2979
2980 fi
2981   if test "${ac_cv_path_install+set}" = set; then
2982     INSTALL=$ac_cv_path_install
2983   else
2984     # As a last resort, use the slow shell script.  Don't cache a
2985     # value for INSTALL within a source directory, because that will
2986     # break other packages using the cache if that directory is
2987     # removed, or if the value is a relative name.
2988     INSTALL=$ac_install_sh
2989   fi
2990 fi
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2992 $as_echo "$INSTALL" >&6; }
2993
2994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2995 # It thinks the first close brace ends the variable substitution.
2996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2997
2998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2999
3000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3001
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3003 $as_echo_n "checking whether build environment is sane... " >&6; }
3004 # Reject unsafe characters in $srcdir or the absolute working directory
3005 # name.  Accept space and tab only in the latter.
3006 am_lf='
3007 '
3008 case `pwd` in
3009   *[\\\"\#\$\&\'\`$am_lf]*)
3010     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3011 esac
3012 case $srcdir in
3013   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3014     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3015 esac
3016
3017 # Do 'set' in a subshell so we don't clobber the current shell's
3018 # arguments.  Must try -L first in case configure is actually a
3019 # symlink; some systems play weird games with the mod time of symlinks
3020 # (eg FreeBSD returns the mod time of the symlink's containing
3021 # directory).
3022 if (
3023    am_has_slept=no
3024    for am_try in 1 2; do
3025      echo "timestamp, slept: $am_has_slept" > conftest.file
3026      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3027      if test "$*" = "X"; then
3028         # -L didn't work.
3029         set X `ls -t "$srcdir/configure" conftest.file`
3030      fi
3031      if test "$*" != "X $srcdir/configure conftest.file" \
3032         && test "$*" != "X conftest.file $srcdir/configure"; then
3033
3034         # If neither matched, then we have a broken ls.  This can happen
3035         # if, for instance, CONFIG_SHELL is bash and it inherits a
3036         # broken ls alias from the environment.  This has actually
3037         # happened.  Such a system could not be considered "sane".
3038         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3039   alias in your environment" "$LINENO" 5
3040      fi
3041      if test "$2" = conftest.file || test $am_try -eq 2; then
3042        break
3043      fi
3044      # Just in case.
3045      sleep 1
3046      am_has_slept=yes
3047    done
3048    test "$2" = conftest.file
3049    )
3050 then
3051    # Ok.
3052    :
3053 else
3054    as_fn_error $? "newly created file is older than distributed files!
3055 Check your system clock" "$LINENO" 5
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3059 # If we didn't sleep, we still need to ensure time stamps of config.status and
3060 # generated files are strictly newer.
3061 am_sleep_pid=
3062 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3063   ( sleep 1 ) &
3064   am_sleep_pid=$!
3065 fi
3066
3067 rm -f conftest.file
3068
3069 test "$program_prefix" != NONE &&
3070   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3071 # Use a double $ so make ignores it.
3072 test "$program_suffix" != NONE &&
3073   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3074 # Double any \ or $.
3075 # By default was `s,x,x', remove it if useless.
3076 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3077 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3078
3079 # expand $ac_aux_dir to an absolute path
3080 am_aux_dir=`cd $ac_aux_dir && pwd`
3081
3082 if test x"${MISSING+set}" != xset; then
3083   case $am_aux_dir in
3084   *\ * | *\     *)
3085     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3086   *)
3087     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3088   esac
3089 fi
3090 # Use eval to expand $SHELL
3091 if eval "$MISSING --is-lightweight"; then
3092   am_missing_run="$MISSING "
3093 else
3094   am_missing_run=
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3096 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3097 fi
3098
3099 if test x"${install_sh}" != xset; then
3100   case $am_aux_dir in
3101   *\ * | *\     *)
3102     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3103   *)
3104     install_sh="\${SHELL} $am_aux_dir/install-sh"
3105   esac
3106 fi
3107
3108 # Installed binaries are usually stripped using 'strip' when the user
3109 # run "make install-strip".  However 'strip' might not be the right
3110 # tool to use in cross-compilation environments, therefore Automake
3111 # will honor the 'STRIP' environment variable to overrule this program.
3112 if test "$cross_compiling" != no; then
3113   if test -n "$ac_tool_prefix"; then
3114   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}strip; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_STRIP+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$STRIP"; then
3122   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 STRIP=$ac_cv_prog_STRIP
3142 if test -n "$STRIP"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3144 $as_echo "$STRIP" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 if test -z "$ac_cv_prog_STRIP"; then
3153   ac_ct_STRIP=$STRIP
3154   # Extract the first word of "strip", so it can be a program name with args.
3155 set dummy strip; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$ac_ct_STRIP"; then
3162   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171     ac_cv_prog_ac_ct_STRIP="strip"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3182 if test -n "$ac_ct_STRIP"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3184 $as_echo "$ac_ct_STRIP" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190   if test "x$ac_ct_STRIP" = x; then
3191     STRIP=":"
3192   else
3193     case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199     STRIP=$ac_ct_STRIP
3200   fi
3201 else
3202   STRIP="$ac_cv_prog_STRIP"
3203 fi
3204
3205 fi
3206 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3207
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3209 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3210 if test -z "$MKDIR_P"; then
3211   if ${ac_cv_path_mkdir+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3216 do
3217   IFS=$as_save_IFS
3218   test -z "$as_dir" && as_dir=.
3219     for ac_prog in mkdir gmkdir; do
3220          for ac_exec_ext in '' $ac_executable_extensions; do
3221            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3222            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3223              'mkdir (GNU coreutils) '* | \
3224              'mkdir (coreutils) '* | \
3225              'mkdir (fileutils) '4.1*)
3226                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3227                break 3;;
3228            esac
3229          done
3230        done
3231   done
3232 IFS=$as_save_IFS
3233
3234 fi
3235
3236   test -d ./--version && rmdir ./--version
3237   if test "${ac_cv_path_mkdir+set}" = set; then
3238     MKDIR_P="$ac_cv_path_mkdir -p"
3239   else
3240     # As a last resort, use the slow shell script.  Don't cache a
3241     # value for MKDIR_P within a source directory, because that will
3242     # break other packages using the cache if that directory is
3243     # removed, or if the value is a relative name.
3244     MKDIR_P="$ac_install_sh -d"
3245   fi
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3248 $as_echo "$MKDIR_P" >&6; }
3249
3250 for ac_prog in gawk mawk nawk awk
3251 do
3252   # Extract the first word of "$ac_prog", so it can be a program name with args.
3253 set dummy $ac_prog; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_AWK+:} false; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   if test -n "$AWK"; then
3260   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_exec_ext in '' $ac_executable_extensions; do
3268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269     ac_cv_prog_AWK="$ac_prog"
3270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274   done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 AWK=$ac_cv_prog_AWK
3280 if test -n "$AWK"; then
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3282 $as_echo "$AWK" >&6; }
3283 else
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 fi
3287
3288
3289   test -n "$AWK" && break
3290 done
3291
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3293 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3294 set x ${MAKE-make}
3295 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3296 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   cat >conftest.make <<\_ACEOF
3300 SHELL = /bin/sh
3301 all:
3302         @echo '@@@%%%=$(MAKE)=@@@%%%'
3303 _ACEOF
3304 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3305 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3306   *@@@%%%=?*=@@@%%%*)
3307     eval ac_cv_prog_make_${ac_make}_set=yes;;
3308   *)
3309     eval ac_cv_prog_make_${ac_make}_set=no;;
3310 esac
3311 rm -f conftest.make
3312 fi
3313 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3316   SET_MAKE=
3317 else
3318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320   SET_MAKE="MAKE=${MAKE-make}"
3321 fi
3322
3323 rm -rf .tst 2>/dev/null
3324 mkdir .tst 2>/dev/null
3325 if test -d .tst; then
3326   am__leading_dot=.
3327 else
3328   am__leading_dot=_
3329 fi
3330 rmdir .tst 2>/dev/null
3331
3332 # Check whether --enable-silent-rules was given.
3333 if test "${enable_silent_rules+set}" = set; then :
3334   enableval=$enable_silent_rules;
3335 fi
3336
3337 case $enable_silent_rules in # (((
3338   yes) AM_DEFAULT_VERBOSITY=0;;
3339    no) AM_DEFAULT_VERBOSITY=1;;
3340     *) AM_DEFAULT_VERBOSITY=1;;
3341 esac
3342 am_make=${MAKE-make}
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3344 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3345 if ${am_cv_make_support_nested_variables+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if $as_echo 'TRUE=$(BAR$(V))
3349 BAR0=false
3350 BAR1=true
3351 V=1
3352 am__doit:
3353         @$(TRUE)
3354 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3355   am_cv_make_support_nested_variables=yes
3356 else
3357   am_cv_make_support_nested_variables=no
3358 fi
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3361 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3362 if test $am_cv_make_support_nested_variables = yes; then
3363     AM_V='$(V)'
3364   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3365 else
3366   AM_V=$AM_DEFAULT_VERBOSITY
3367   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3368 fi
3369 AM_BACKSLASH='\'
3370
3371 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3372   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3373   # is not polluted with repeated "-I."
3374   am__isrc=' -I$(srcdir)'
3375   # test to see if srcdir already configured
3376   if test -f $srcdir/config.status; then
3377     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3378   fi
3379 fi
3380
3381 # test whether we have cygpath
3382 if test -z "$CYGPATH_W"; then
3383   if (cygpath --version) >/dev/null 2>/dev/null; then
3384     CYGPATH_W='cygpath -w'
3385   else
3386     CYGPATH_W=echo
3387   fi
3388 fi
3389
3390
3391 # Define the identity of the package.
3392  PACKAGE='harfbuzz'
3393  VERSION='1.4.6'
3394
3395
3396 # Some tools Automake needs.
3397
3398 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3399
3400
3401 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3402
3403
3404 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3405
3406
3407 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3408
3409
3410 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3411
3412 # For better backward compatibility.  To be removed once Automake 1.9.x
3413 # dies out for good.  For more background, see:
3414 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3415 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3416 mkdir_p='$(MKDIR_P)'
3417
3418 # We need awk for the "check" target.  The system "awk" is bad on
3419 # some platforms.
3420 # Always define AMTAR for backward compatibility.  Yes, it's still used
3421 # in the wild :-(  We should find a proper way to deprecate it ...
3422 AMTAR='$${TAR-tar}'
3423
3424
3425 # We'll loop over all known methods to create a tar archive until one works.
3426 _am_tools='gnutar plaintar pax cpio none'
3427
3428 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3429       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3430       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3431       # and bug#13588).
3432       am_max_uid=2097151 # 2^21 - 1
3433       am_max_gid=$am_max_uid
3434       # The $UID and $GID variables are not portable, so we need to resort
3435       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3436       # below are definitely unexpected, so allow the users to see them
3437       # (that is, avoid stderr redirection).
3438       am_uid=`id -u || echo unknown`
3439       am_gid=`id -g || echo unknown`
3440       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3441 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3442       if test $am_uid -le $am_max_uid; then
3443          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3444 $as_echo "yes" >&6; }
3445       else
3446          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448          _am_tools=none
3449       fi
3450       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3451 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3452       if test $am_gid -le $am_max_gid; then
3453          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454 $as_echo "yes" >&6; }
3455       else
3456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458         _am_tools=none
3459       fi
3460
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3462 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3463
3464   # Go ahead even if we have the value already cached.  We do so because we
3465   # need to set the values for the 'am__tar' and 'am__untar' variables.
3466   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3467
3468   for _am_tool in $_am_tools; do
3469     case $_am_tool in
3470     gnutar)
3471       for _am_tar in tar gnutar gtar; do
3472         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3473    ($_am_tar --version) >&5 2>&5
3474    ac_status=$?
3475    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476    (exit $ac_status); } && break
3477       done
3478       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3479       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3480       am__untar="$_am_tar -xf -"
3481       ;;
3482     plaintar)
3483       # Must skip GNU tar: if it does not support --format= it doesn't create
3484       # ustar tarball either.
3485       (tar --version) >/dev/null 2>&1 && continue
3486       am__tar='tar chf - "$$tardir"'
3487       am__tar_='tar chf - "$tardir"'
3488       am__untar='tar xf -'
3489       ;;
3490     pax)
3491       am__tar='pax -L -x ustar -w "$$tardir"'
3492       am__tar_='pax -L -x ustar -w "$tardir"'
3493       am__untar='pax -r'
3494       ;;
3495     cpio)
3496       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3497       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3498       am__untar='cpio -i -H ustar -d'
3499       ;;
3500     none)
3501       am__tar=false
3502       am__tar_=false
3503       am__untar=false
3504       ;;
3505     esac
3506
3507     # If the value was cached, stop now.  We just wanted to have am__tar
3508     # and am__untar set.
3509     test -n "${am_cv_prog_tar_ustar}" && break
3510
3511     # tar/untar a dummy directory, and stop if the command works.
3512     rm -rf conftest.dir
3513     mkdir conftest.dir
3514     echo GrepMe > conftest.dir/file
3515     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3516    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3517    ac_status=$?
3518    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519    (exit $ac_status); }
3520     rm -rf conftest.dir
3521     if test -s conftest.tar; then
3522       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3523    ($am__untar <conftest.tar) >&5 2>&5
3524    ac_status=$?
3525    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526    (exit $ac_status); }
3527       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3528    (cat conftest.dir/file) >&5 2>&5
3529    ac_status=$?
3530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531    (exit $ac_status); }
3532       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3533     fi
3534   done
3535   rm -rf conftest.dir
3536
3537   if ${am_cv_prog_tar_ustar+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   am_cv_prog_tar_ustar=$_am_tool
3541 fi
3542
3543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3544 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3545
3546
3547
3548
3549
3550
3551 # POSIX will say in a future version that running "rm -f" with no argument
3552 # is OK; and we want to be able to make that assumption in our Makefile
3553 # recipes.  So use an aggressive probe to check that the usage we want is
3554 # actually supported "in the wild" to an acceptable degree.
3555 # See automake bug#10828.
3556 # To make any issue more visible, cause the running configure to be aborted
3557 # by default if the 'rm' program in use doesn't match our expectations; the
3558 # user can still override this though.
3559 if rm -f && rm -fr && rm -rf; then : OK; else
3560   cat >&2 <<'END'
3561 Oops!
3562
3563 Your 'rm' program seems unable to run without file operands specified
3564 on the command line, even when the '-f' option is present.  This is contrary
3565 to the behaviour of most rm programs out there, and not conforming with
3566 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3567
3568 Please tell bug-automake@gnu.org about your system, including the value
3569 of your $PATH and any error possibly output before this message.  This
3570 can help us improve future automake versions.
3571
3572 END
3573   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3574     echo 'Configuration will proceed anyway, since you have set the' >&2
3575     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3576     echo >&2
3577   else
3578     cat >&2 <<'END'
3579 Aborting the configuration process, to ensure you take notice of the issue.
3580
3581 You can download and install GNU coreutils to get an 'rm' implementation
3582 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3583
3584 If you want to complete the configuration process using your problematic
3585 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3586 to "yes", and re-run configure.
3587
3588 END
3589     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3590   fi
3591 fi
3592  if test $am__api_version = 1.11 -o $am__api_version = 1.12; then
3593   AUTOMAKE_OLDER_THAN_1_13_TRUE=
3594   AUTOMAKE_OLDER_THAN_1_13_FALSE='#'
3595 else
3596   AUTOMAKE_OLDER_THAN_1_13_TRUE='#'
3597   AUTOMAKE_OLDER_THAN_1_13_FALSE=
3598 fi
3599
3600 # Check whether --enable-silent-rules was given.
3601 if test "${enable_silent_rules+set}" = set; then :
3602   enableval=$enable_silent_rules;
3603 fi
3604
3605 case $enable_silent_rules in # (((
3606   yes) AM_DEFAULT_VERBOSITY=0;;
3607    no) AM_DEFAULT_VERBOSITY=1;;
3608     *) AM_DEFAULT_VERBOSITY=0;;
3609 esac
3610 am_make=${MAKE-make}
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3612 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3613 if ${am_cv_make_support_nested_variables+:} false; then :
3614   $as_echo_n "(cached) " >&6
3615 else
3616   if $as_echo 'TRUE=$(BAR$(V))
3617 BAR0=false
3618 BAR1=true
3619 V=1
3620 am__doit:
3621         @$(TRUE)
3622 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3623   am_cv_make_support_nested_variables=yes
3624 else
3625   am_cv_make_support_nested_variables=no
3626 fi
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3629 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3630 if test $am_cv_make_support_nested_variables = yes; then
3631     AM_V='$(V)'
3632   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3633 else
3634   AM_V=$AM_DEFAULT_VERBOSITY
3635   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3636 fi
3637 AM_BACKSLASH='\'
3638
3639
3640 # Initialize libtool
3641 DEPDIR="${am__leading_dot}deps"
3642
3643 ac_config_commands="$ac_config_commands depfiles"
3644
3645
3646 am_make=${MAKE-make}
3647 cat > confinc << 'END'
3648 am__doit:
3649         @echo this is the am__doit target
3650 .PHONY: am__doit
3651 END
3652 # If we don't find an include directive, just comment out the code.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3654 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3655 am__include="#"
3656 am__quote=
3657 _am_result=none
3658 # First try GNU make style include.
3659 echo "include confinc" > confmf
3660 # Ignore all kinds of additional output from 'make'.
3661 case `$am_make -s -f confmf 2> /dev/null` in #(
3662 *the\ am__doit\ target*)
3663   am__include=include
3664   am__quote=
3665   _am_result=GNU
3666   ;;
3667 esac
3668 # Now try BSD make style include.
3669 if test "$am__include" = "#"; then
3670    echo '.include "confinc"' > confmf
3671    case `$am_make -s -f confmf 2> /dev/null` in #(
3672    *the\ am__doit\ target*)
3673      am__include=.include
3674      am__quote="\""
3675      _am_result=BSD
3676      ;;
3677    esac
3678 fi
3679
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3682 $as_echo "$_am_result" >&6; }
3683 rm -f confinc confmf
3684
3685 # Check whether --enable-dependency-tracking was given.
3686 if test "${enable_dependency_tracking+set}" = set; then :
3687   enableval=$enable_dependency_tracking;
3688 fi
3689
3690 if test "x$enable_dependency_tracking" != xno; then
3691   am_depcomp="$ac_aux_dir/depcomp"
3692   AMDEPBACKSLASH='\'
3693   am__nodep='_no'
3694 fi
3695  if test "x$enable_dependency_tracking" != xno; then
3696   AMDEP_TRUE=
3697   AMDEP_FALSE='#'
3698 else
3699   AMDEP_TRUE='#'
3700   AMDEP_FALSE=
3701 fi
3702
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 if test -n "$ac_tool_prefix"; then
3710   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if ${ac_cv_prog_CC+:} false; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   if test -n "$CC"; then
3718   ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725     for ac_exec_ext in '' $ac_executable_extensions; do
3726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732   done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3744 fi
3745
3746
3747 fi
3748 if test -z "$ac_cv_prog_CC"; then
3749   ac_ct_CC=$CC
3750   # Extract the first word of "gcc", so it can be a program name with args.
3751 set dummy gcc; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3755   $as_echo_n "(cached) " >&6
3756 else
3757   if test -n "$ac_ct_CC"; then
3758   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765     for ac_exec_ext in '' $ac_executable_extensions; do
3766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767     ac_cv_prog_ac_ct_CC="gcc"
3768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769     break 2
3770   fi
3771 done
3772   done
3773 IFS=$as_save_IFS
3774
3775 fi
3776 fi
3777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780 $as_echo "$ac_ct_CC" >&6; }
3781 else
3782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3784 fi
3785
3786   if test "x$ac_ct_CC" = x; then
3787     CC=""
3788   else
3789     case $cross_compiling:$ac_tool_warned in
3790 yes:)
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned=yes ;;
3794 esac
3795     CC=$ac_ct_CC
3796   fi
3797 else
3798   CC="$ac_cv_prog_CC"
3799 fi
3800
3801 if test -z "$CC"; then
3802           if test -n "$ac_tool_prefix"; then
3803     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}cc; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_CC+:} false; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   if test -n "$CC"; then
3811   ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     for ac_exec_ext in '' $ac_executable_extensions; do
3819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_prog_CC="${ac_tool_prefix}cc"
3821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825   done
3826 IFS=$as_save_IFS
3827
3828 fi
3829 fi
3830 CC=$ac_cv_prog_CC
3831 if test -n "$CC"; then
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3834 else
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 fi
3838
3839
3840   fi
3841 fi
3842 if test -z "$CC"; then
3843   # Extract the first word of "cc", so it can be a program name with args.
3844 set dummy cc; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_CC+:} false; then :
3848   $as_echo_n "(cached) " >&6
3849 else
3850   if test -n "$CC"; then
3851   ac_cv_prog_CC="$CC" # Let the user override the test.
3852 else
3853   ac_prog_rejected=no
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857   IFS=$as_save_IFS
3858   test -z "$as_dir" && as_dir=.
3859     for ac_exec_ext in '' $ac_executable_extensions; do
3860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3862        ac_prog_rejected=yes
3863        continue
3864      fi
3865     ac_cv_prog_CC="cc"
3866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870   done
3871 IFS=$as_save_IFS
3872
3873 if test $ac_prog_rejected = yes; then
3874   # We found a bogon in the path, so make sure we never use it.
3875   set dummy $ac_cv_prog_CC
3876   shift
3877   if test $# != 0; then
3878     # We chose a different compiler from the bogus one.
3879     # However, it has the same basename, so the bogon will be chosen
3880     # first if we set CC to just the basename; use the full file name.
3881     shift
3882     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3883   fi
3884 fi
3885 fi
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3891 else
3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3896
3897 fi
3898 if test -z "$CC"; then
3899   if test -n "$ac_tool_prefix"; then
3900   for ac_prog in cl.exe
3901   do
3902     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if ${ac_cv_prog_CC+:} false; then :
3907   $as_echo_n "(cached) " >&6
3908 else
3909   if test -n "$CC"; then
3910   ac_cv_prog_CC="$CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917     for ac_exec_ext in '' $ac_executable_extensions; do
3918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924   done
3925 IFS=$as_save_IFS
3926
3927 fi
3928 fi
3929 CC=$ac_cv_prog_CC
3930 if test -n "$CC"; then
3931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932 $as_echo "$CC" >&6; }
3933 else
3934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3936 fi
3937
3938
3939     test -n "$CC" && break
3940   done
3941 fi
3942 if test -z "$CC"; then
3943   ac_ct_CC=$CC
3944   for ac_prog in cl.exe
3945 do
3946   # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   if test -n "$ac_ct_CC"; then
3954   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959   IFS=$as_save_IFS
3960   test -z "$as_dir" && as_dir=.
3961     for ac_exec_ext in '' $ac_executable_extensions; do
3962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963     ac_cv_prog_ac_ct_CC="$ac_prog"
3964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965     break 2
3966   fi
3967 done
3968   done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974 if test -n "$ac_ct_CC"; then
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976 $as_echo "$ac_ct_CC" >&6; }
3977 else
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983   test -n "$ac_ct_CC" && break
3984 done
3985
3986   if test "x$ac_ct_CC" = x; then
3987     CC=""
3988   else
3989     case $cross_compiling:$ac_tool_warned in
3990 yes:)
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993 ac_tool_warned=yes ;;
3994 esac
3995     CC=$ac_ct_CC
3996   fi
3997 fi
3998
3999 fi
4000
4001
4002 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error $? "no acceptable C compiler found in \$PATH
4005 See \`config.log' for more details" "$LINENO" 5; }
4006
4007 # Provide some information about the compiler.
4008 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4009 set X $ac_compile
4010 ac_compiler=$2
4011 for ac_option in --version -v -V -qversion; do
4012   { { ac_try="$ac_compiler $ac_option >&5"
4013 case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4020   ac_status=$?
4021   if test -s conftest.err; then
4022     sed '10a\
4023 ... rest of stderr output deleted ...
4024          10q' conftest.err >conftest.er1
4025     cat conftest.er1 >&5
4026   fi
4027   rm -f conftest.er1 conftest.err
4028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029   test $ac_status = 0; }
4030 done
4031
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h.  */
4034
4035 int
4036 main ()
4037 {
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 ac_clean_files_save=$ac_clean_files
4044 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4045 # Try to create an executable without -o first, disregard a.out.
4046 # It will help us diagnose broken compilers, and finding out an intuition
4047 # of exeext.
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4049 $as_echo_n "checking whether the C compiler works... " >&6; }
4050 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4051
4052 # The possible output files:
4053 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4054
4055 ac_rmfiles=
4056 for ac_file in $ac_files
4057 do
4058   case $ac_file in
4059     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4060     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4061   esac
4062 done
4063 rm -f $ac_rmfiles
4064
4065 if { { ac_try="$ac_link_default"
4066 case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 $as_echo "$ac_try_echo"; } >&5
4072   (eval "$ac_link_default") 2>&5
4073   ac_status=$?
4074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075   test $ac_status = 0; }; then :
4076   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4077 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4078 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4079 # so that the user can short-circuit this test for compilers unknown to
4080 # Autoconf.
4081 for ac_file in $ac_files ''
4082 do
4083   test -f "$ac_file" || continue
4084   case $ac_file in
4085     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4086         ;;
4087     [ab].out )
4088         # We found the default executable, but exeext='' is most
4089         # certainly right.
4090         break;;
4091     *.* )
4092         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4093         then :; else
4094            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4095         fi
4096         # We set ac_cv_exeext here because the later test for it is not
4097         # safe: cross compilers may not add the suffix if given an `-o'
4098         # argument, so we may need to know it at that point already.
4099         # Even if this section looks crufty: it has the advantage of
4100         # actually working.
4101         break;;
4102     * )
4103         break;;
4104   esac
4105 done
4106 test "$ac_cv_exeext" = no && ac_cv_exeext=
4107
4108 else
4109   ac_file=''
4110 fi
4111 if test -z "$ac_file"; then :
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error 77 "C compiler cannot create executables
4120 See \`config.log' for more details" "$LINENO" 5; }
4121 else
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4123 $as_echo "yes" >&6; }
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4126 $as_echo_n "checking for C compiler default output file name... " >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4128 $as_echo "$ac_file" >&6; }
4129 ac_exeext=$ac_cv_exeext
4130
4131 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4132 ac_clean_files=$ac_clean_files_save
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4134 $as_echo_n "checking for suffix of executables... " >&6; }
4135 if { { ac_try="$ac_link"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141 $as_echo "$ac_try_echo"; } >&5
4142   (eval "$ac_link") 2>&5
4143   ac_status=$?
4144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4145   test $ac_status = 0; }; then :
4146   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4147 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4148 # work properly (i.e., refer to `conftest.exe'), while it won't with
4149 # `rm'.
4150 for ac_file in conftest.exe conftest conftest.*; do
4151   test -f "$ac_file" || continue
4152   case $ac_file in
4153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4154     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4155           break;;
4156     * ) break;;
4157   esac
4158 done
4159 else
4160   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4163 See \`config.log' for more details" "$LINENO" 5; }
4164 fi
4165 rm -f conftest conftest$ac_cv_exeext
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4167 $as_echo "$ac_cv_exeext" >&6; }
4168
4169 rm -f conftest.$ac_ext
4170 EXEEXT=$ac_cv_exeext
4171 ac_exeext=$EXEEXT
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h.  */
4174 #include <stdio.h>
4175 int
4176 main ()
4177 {
4178 FILE *f = fopen ("conftest.out", "w");
4179  return ferror (f) || fclose (f) != 0;
4180
4181   ;
4182   return 0;
4183 }
4184 _ACEOF
4185 ac_clean_files="$ac_clean_files conftest.out"
4186 # Check that the compiler produces executables we can run.  If not, either
4187 # the compiler is broken, or we cross compile.
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4189 $as_echo_n "checking whether we are cross compiling... " >&6; }
4190 if test "$cross_compiling" != yes; then
4191   { { ac_try="$ac_link"
4192 case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198   (eval "$ac_link") 2>&5
4199   ac_status=$?
4200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201   test $ac_status = 0; }
4202   if { ac_try='./conftest$ac_cv_exeext'
4203   { { case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209   (eval "$ac_try") 2>&5
4210   ac_status=$?
4211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212   test $ac_status = 0; }; }; then
4213     cross_compiling=no
4214   else
4215     if test "$cross_compiling" = maybe; then
4216         cross_compiling=yes
4217     else
4218         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error $? "cannot run C compiled programs.
4221 If you meant to cross compile, use \`--host'.
4222 See \`config.log' for more details" "$LINENO" 5; }
4223     fi
4224   fi
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4227 $as_echo "$cross_compiling" >&6; }
4228
4229 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4230 ac_clean_files=$ac_clean_files_save
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4232 $as_echo_n "checking for suffix of object files... " >&6; }
4233 if ${ac_cv_objext+:} false; then :
4234   $as_echo_n "(cached) " >&6
4235 else
4236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238
4239 int
4240 main ()
4241 {
4242
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.o conftest.obj
4248 if { { ac_try="$ac_compile"
4249 case "(($ac_try" in
4250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251   *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255   (eval "$ac_compile") 2>&5
4256   ac_status=$?
4257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258   test $ac_status = 0; }; then :
4259   for ac_file in conftest.o conftest.obj conftest.*; do
4260   test -f "$ac_file" || continue;
4261   case $ac_file in
4262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4263     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4264        break;;
4265   esac
4266 done
4267 else
4268   $as_echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4270
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 as_fn_error $? "cannot compute suffix of object files: cannot compile
4274 See \`config.log' for more details" "$LINENO" 5; }
4275 fi
4276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4279 $as_echo "$ac_cv_objext" >&6; }
4280 OBJEXT=$ac_cv_objext
4281 ac_objext=$OBJEXT
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4283 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4284 if ${ac_cv_c_compiler_gnu+:} false; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289
4290 int
4291 main ()
4292 {
4293 #ifndef __GNUC__
4294        choke me
4295 #endif
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302   ac_compiler_gnu=yes
4303 else
4304   ac_compiler_gnu=no
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4308
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4311 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4312 if test $ac_compiler_gnu = yes; then
4313   GCC=yes
4314 else
4315   GCC=
4316 fi
4317 ac_test_CFLAGS=${CFLAGS+set}
4318 ac_save_CFLAGS=$CFLAGS
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4320 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4321 if ${ac_cv_prog_cc_g+:} false; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   ac_save_c_werror_flag=$ac_c_werror_flag
4325    ac_c_werror_flag=yes
4326    ac_cv_prog_cc_g=no
4327    CFLAGS="-g"
4328    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h.  */
4330
4331 int
4332 main ()
4333 {
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_c_try_compile "$LINENO"; then :
4340   ac_cv_prog_cc_g=yes
4341 else
4342   CFLAGS=""
4343       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355
4356 else
4357   ac_c_werror_flag=$ac_save_c_werror_flag
4358          CFLAGS="-g"
4359          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4361
4362 int
4363 main ()
4364 {
4365
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371   ac_cv_prog_cc_g=yes
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 fi
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378    ac_c_werror_flag=$ac_save_c_werror_flag
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4381 $as_echo "$ac_cv_prog_cc_g" >&6; }
4382 if test "$ac_test_CFLAGS" = set; then
4383   CFLAGS=$ac_save_CFLAGS
4384 elif test $ac_cv_prog_cc_g = yes; then
4385   if test "$GCC" = yes; then
4386     CFLAGS="-g -O2"
4387   else
4388     CFLAGS="-g"
4389   fi
4390 else
4391   if test "$GCC" = yes; then
4392     CFLAGS="-O2"
4393   else
4394     CFLAGS=
4395   fi
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4398 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4399 if ${ac_cv_prog_cc_c89+:} false; then :
4400   $as_echo_n "(cached) " >&6
4401 else
4402   ac_cv_prog_cc_c89=no
4403 ac_save_CC=$CC
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h.  */
4406 #include <stdarg.h>
4407 #include <stdio.h>
4408 struct stat;
4409 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4410 struct buf { int x; };
4411 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4412 static char *e (p, i)
4413      char **p;
4414      int i;
4415 {
4416   return p[i];
4417 }
4418 static char *f (char * (*g) (char **, int), char **p, ...)
4419 {
4420   char *s;
4421   va_list v;
4422   va_start (v,p);
4423   s = g (p, va_arg (v,int));
4424   va_end (v);
4425   return s;
4426 }
4427
4428 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4429    function prototypes and stuff, but not '\xHH' hex character constants.
4430    These don't provoke an error unfortunately, instead are silently treated
4431    as 'x'.  The following induces an error, until -std is added to get
4432    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4433    array size at least.  It's necessary to write '\x00'==0 to get something
4434    that's true only with -std.  */
4435 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4436
4437 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4438    inside strings and character constants.  */
4439 #define FOO(x) 'x'
4440 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4441
4442 int test (int i, double x);
4443 struct s1 {int (*f) (int a);};
4444 struct s2 {int (*f) (double a);};
4445 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4446 int argc;
4447 char **argv;
4448 int
4449 main ()
4450 {
4451 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4457         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4458 do
4459   CC="$ac_save_CC $ac_arg"
4460   if ac_fn_c_try_compile "$LINENO"; then :
4461   ac_cv_prog_cc_c89=$ac_arg
4462 fi
4463 rm -f core conftest.err conftest.$ac_objext
4464   test "x$ac_cv_prog_cc_c89" != "xno" && break
4465 done
4466 rm -f conftest.$ac_ext
4467 CC=$ac_save_CC
4468
4469 fi
4470 # AC_CACHE_VAL
4471 case "x$ac_cv_prog_cc_c89" in
4472   x)
4473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4474 $as_echo "none needed" >&6; } ;;
4475   xno)
4476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4477 $as_echo "unsupported" >&6; } ;;
4478   *)
4479     CC="$CC $ac_cv_prog_cc_c89"
4480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4481 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4482 esac
4483 if test "x$ac_cv_prog_cc_c89" != xno; then :
4484
4485 fi
4486
4487 ac_ext=c
4488 ac_cpp='$CPP $CPPFLAGS'
4489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4499 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4500 if ${am_cv_prog_cc_c_o+:} false; then :
4501   $as_echo_n "(cached) " >&6
4502 else
4503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h.  */
4505
4506 int
4507 main ()
4508 {
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514   # Make sure it works both with $CC and with simple cc.
4515   # Following AC_PROG_CC_C_O, we do the test twice because some
4516   # compilers refuse to overwrite an existing .o file with -o,
4517   # though they will create one.
4518   am_cv_prog_cc_c_o=yes
4519   for am_i in 1 2; do
4520     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4521    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4522    ac_status=$?
4523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524    (exit $ac_status); } \
4525          && test -f conftest2.$ac_objext; then
4526       : OK
4527     else
4528       am_cv_prog_cc_c_o=no
4529       break
4530     fi
4531   done
4532   rm -f core conftest*
4533   unset am_i
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4536 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4537 if test "$am_cv_prog_cc_c_o" != yes; then
4538    # Losing compiler, so override with the script.
4539    # FIXME: It is wrong to rewrite CC.
4540    # But if we don't then we get into trouble of one sort or another.
4541    # A longer-term fix would be to have automake use am__CC in this case,
4542    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4543    CC="$am_aux_dir/compile $CC"
4544 fi
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551
4552 depcc="$CC"   am_compiler_list=
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4555 $as_echo_n "checking dependency style of $depcc... " >&6; }
4556 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4560   # We make a subdir and do the tests there.  Otherwise we can end up
4561   # making bogus files that we don't know about and never remove.  For
4562   # instance it was reported that on HP-UX the gcc test will end up
4563   # making a dummy file named 'D' -- because '-MD' means "put the output
4564   # in D".
4565   rm -rf conftest.dir
4566   mkdir conftest.dir
4567   # Copy depcomp to subdir because otherwise we won't find it if we're
4568   # using a relative directory.
4569   cp "$am_depcomp" conftest.dir
4570   cd conftest.dir
4571   # We will build objects and dependencies in a subdirectory because
4572   # it helps to detect inapplicable dependency modes.  For instance
4573   # both Tru64's cc and ICC support -MD to output dependencies as a
4574   # side effect of compilation, but ICC will put the dependencies in
4575   # the current directory while Tru64 will put them in the object
4576   # directory.
4577   mkdir sub
4578
4579   am_cv_CC_dependencies_compiler_type=none
4580   if test "$am_compiler_list" = ""; then
4581      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4582   fi
4583   am__universal=false
4584   case " $depcc " in #(
4585      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4586      esac
4587
4588   for depmode in $am_compiler_list; do
4589     # Setup a source with many dependencies, because some compilers
4590     # like to wrap large dependency lists on column 80 (with \), and
4591     # we should not choose a depcomp mode which is confused by this.
4592     #
4593     # We need to recreate these files for each test, as the compiler may
4594     # overwrite some of them when testing with obscure command lines.
4595     # This happens at least with the AIX C compiler.
4596     : > sub/conftest.c
4597     for i in 1 2 3 4 5 6; do
4598       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4599       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4600       # Solaris 10 /bin/sh.
4601       echo '/* dummy */' > sub/conftst$i.h
4602     done
4603     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4604
4605     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4606     # mode.  It turns out that the SunPro C++ compiler does not properly
4607     # handle '-M -o', and we need to detect this.  Also, some Intel
4608     # versions had trouble with output in subdirs.
4609     am__obj=sub/conftest.${OBJEXT-o}
4610     am__minus_obj="-o $am__obj"
4611     case $depmode in
4612     gcc)
4613       # This depmode causes a compiler race in universal mode.
4614       test "$am__universal" = false || continue
4615       ;;
4616     nosideeffect)
4617       # After this tag, mechanisms are not by side-effect, so they'll
4618       # only be used when explicitly requested.
4619       if test "x$enable_dependency_tracking" = xyes; then
4620         continue
4621       else
4622         break
4623       fi
4624       ;;
4625     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4626       # This compiler won't grok '-c -o', but also, the minuso test has
4627       # not run yet.  These depmodes are late enough in the game, and
4628       # so weak that their functioning should not be impacted.
4629       am__obj=conftest.${OBJEXT-o}
4630       am__minus_obj=
4631       ;;
4632     none) break ;;
4633     esac
4634     if depmode=$depmode \
4635        source=sub/conftest.c object=$am__obj \
4636        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4637        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4638          >/dev/null 2>conftest.err &&
4639        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4640        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4641        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4642        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4643       # icc doesn't choke on unknown options, it will just issue warnings
4644       # or remarks (even with -Werror).  So we grep stderr for any message
4645       # that says an option was ignored or not supported.
4646       # When given -MP, icc 7.0 and 7.1 complain thusly:
4647       #   icc: Command line warning: ignoring option '-M'; no argument required
4648       # The diagnosis changed in icc 8.0:
4649       #   icc: Command line remark: option '-MP' not supported
4650       if (grep 'ignoring option' conftest.err ||
4651           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4652         am_cv_CC_dependencies_compiler_type=$depmode
4653         break
4654       fi
4655     fi
4656   done
4657
4658   cd ..
4659   rm -rf conftest.dir
4660 else
4661   am_cv_CC_dependencies_compiler_type=none
4662 fi
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4666 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4668
4669  if
4670   test "x$enable_dependency_tracking" != xno \
4671   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4672   am__fastdepCC_TRUE=
4673   am__fastdepCC_FALSE='#'
4674 else
4675   am__fastdepCC_TRUE='#'
4676   am__fastdepCC_FALSE=
4677 fi
4678
4679
4680
4681 if test -n "$ac_tool_prefix"; then
4682   for ac_prog in ar lib "link -lib"
4683   do
4684     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_AR+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$AR"; then
4692   ac_cv_prog_AR="$AR" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 AR=$ac_cv_prog_AR
4712 if test -n "$AR"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4714 $as_echo "$AR" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721     test -n "$AR" && break
4722   done
4723 fi
4724 if test -z "$AR"; then
4725   ac_ct_AR=$AR
4726   for ac_prog in ar lib "link -lib"
4727 do
4728   # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   if test -n "$ac_ct_AR"; then
4736   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745     ac_cv_prog_ac_ct_AR="$ac_prog"
4746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750   done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4756 if test -n "$ac_ct_AR"; then
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4758 $as_echo "$ac_ct_AR" >&6; }
4759 else
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763
4764
4765   test -n "$ac_ct_AR" && break
4766 done
4767
4768   if test "x$ac_ct_AR" = x; then
4769     AR="false"
4770   else
4771     case $cross_compiling:$ac_tool_warned in
4772 yes:)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4776 esac
4777     AR=$ac_ct_AR
4778   fi
4779 fi
4780
4781 : ${AR=ar}
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4784 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4785 if ${am_cv_ar_interface+:} false; then :
4786   $as_echo_n "(cached) " >&6
4787 else
4788   ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794    am_cv_ar_interface=ar
4795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h.  */
4797 int some_variable = 0;
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4801       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4802   (eval $am_ar_try) 2>&5
4803   ac_status=$?
4804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805   test $ac_status = 0; }
4806       if test "$ac_status" -eq 0; then
4807         am_cv_ar_interface=ar
4808       else
4809         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4810         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4811   (eval $am_ar_try) 2>&5
4812   ac_status=$?
4813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814   test $ac_status = 0; }
4815         if test "$ac_status" -eq 0; then
4816           am_cv_ar_interface=lib
4817         else
4818           am_cv_ar_interface=unknown
4819         fi
4820       fi
4821       rm -f conftest.lib libconftest.a
4822
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825    ac_ext=c
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4833 $as_echo "$am_cv_ar_interface" >&6; }
4834
4835 case $am_cv_ar_interface in
4836 ar)
4837   ;;
4838 lib)
4839   # Microsoft lib, so override with the ar-lib wrapper script.
4840   # FIXME: It is wrong to rewrite AR.
4841   # But if we don't then we get into trouble of one sort or another.
4842   # A longer-term fix would be to have automake use am__AR in this case,
4843   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4844   # similar.
4845   AR="$am_aux_dir/ar-lib $AR"
4846   ;;
4847 unknown)
4848   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4849   ;;
4850 esac
4851
4852
4853 case `pwd` in
4854   *\ * | *\     *)
4855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4857 esac
4858
4859
4860
4861 macro_version='2.4.2'
4862 macro_revision='1.3337'
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 ltmain="$ac_aux_dir/ltmain.sh"
4877
4878 # Make sure we can run config.sub.
4879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4880   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4883 $as_echo_n "checking build system type... " >&6; }
4884 if ${ac_cv_build+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   ac_build_alias=$build_alias
4888 test "x$ac_build_alias" = x &&
4889   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4890 test "x$ac_build_alias" = x &&
4891   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4893   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4894
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4897 $as_echo "$ac_cv_build" >&6; }
4898 case $ac_cv_build in
4899 *-*-*) ;;
4900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4901 esac
4902 build=$ac_cv_build
4903 ac_save_IFS=$IFS; IFS='-'
4904 set x $ac_cv_build
4905 shift
4906 build_cpu=$1
4907 build_vendor=$2
4908 shift; shift
4909 # Remember, the first character of IFS is used to create $*,
4910 # except with old shells:
4911 build_os=$*
4912 IFS=$ac_save_IFS
4913 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4914
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4917 $as_echo_n "checking host system type... " >&6; }
4918 if ${ac_cv_host+:} false; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921   if test "x$host_alias" = x; then
4922   ac_cv_host=$ac_cv_build
4923 else
4924   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4925     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4926 fi
4927
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4930 $as_echo "$ac_cv_host" >&6; }
4931 case $ac_cv_host in
4932 *-*-*) ;;
4933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4934 esac
4935 host=$ac_cv_host
4936 ac_save_IFS=$IFS; IFS='-'
4937 set x $ac_cv_host
4938 shift
4939 host_cpu=$1
4940 host_vendor=$2
4941 shift; shift
4942 # Remember, the first character of IFS is used to create $*,
4943 # except with old shells:
4944 host_os=$*
4945 IFS=$ac_save_IFS
4946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4947
4948
4949 # Backslashify metacharacters that are still active within
4950 # double-quoted strings.
4951 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4952
4953 # Same as above, but do not quote variable references.
4954 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4955
4956 # Sed substitution to delay expansion of an escaped shell variable in a
4957 # double_quote_subst'ed string.
4958 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4959
4960 # Sed substitution to delay expansion of an escaped single quote.
4961 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4962
4963 # Sed substitution to avoid accidental globbing in evaled expressions
4964 no_glob_subst='s/\*/\\\*/g'
4965
4966 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4967 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4971 $as_echo_n "checking how to print strings... " >&6; }
4972 # Test print first, because it will be a builtin if present.
4973 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4974    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4975   ECHO='print -r --'
4976 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4977   ECHO='printf %s\n'
4978 else
4979   # Use this function as a fallback that always works.
4980   func_fallback_echo ()
4981   {
4982     eval 'cat <<_LTECHO_EOF
4983 $1
4984 _LTECHO_EOF'
4985   }
4986   ECHO='func_fallback_echo'
4987 fi
4988
4989 # func_echo_all arg...
4990 # Invoke $ECHO with all args, space-separated.
4991 func_echo_all ()
4992 {
4993     $ECHO ""
4994 }
4995
4996 case "$ECHO" in
4997   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4998 $as_echo "printf" >&6; } ;;
4999   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5000 $as_echo "print -r" >&6; } ;;
5001   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5002 $as_echo "cat" >&6; } ;;
5003 esac
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5019 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5020 if ${ac_cv_path_SED+:} false; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5024      for ac_i in 1 2 3 4 5 6 7; do
5025        ac_script="$ac_script$as_nl$ac_script"
5026      done
5027      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5028      { ac_script=; unset ac_script;}
5029      if test -z "$SED"; then
5030   ac_path_SED_found=false
5031   # Loop through the user's path and test for each of PROGNAME-LIST
5032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_prog in sed gsed; do
5038     for ac_exec_ext in '' $ac_executable_extensions; do
5039       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5040       as_fn_executable_p "$ac_path_SED" || continue
5041 # Check for GNU ac_path_SED and select it if it is found.
5042   # Check for GNU $ac_path_SED
5043 case `"$ac_path_SED" --version 2>&1` in
5044 *GNU*)
5045   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5046 *)
5047   ac_count=0
5048   $as_echo_n 0123456789 >"conftest.in"
5049   while :
5050   do
5051     cat "conftest.in" "conftest.in" >"conftest.tmp"
5052     mv "conftest.tmp" "conftest.in"
5053     cp "conftest.in" "conftest.nl"
5054     $as_echo '' >> "conftest.nl"
5055     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5056     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5057     as_fn_arith $ac_count + 1 && ac_count=$as_val
5058     if test $ac_count -gt ${ac_path_SED_max-0}; then
5059       # Best one so far, save it but keep looking for a better one
5060       ac_cv_path_SED="$ac_path_SED"
5061       ac_path_SED_max=$ac_count
5062     fi
5063     # 10*(2^10) chars as input seems more than enough
5064     test $ac_count -gt 10 && break
5065   done
5066   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5067 esac
5068
5069       $ac_path_SED_found && break 3
5070     done
5071   done
5072   done
5073 IFS=$as_save_IFS
5074   if test -z "$ac_cv_path_SED"; then
5075     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5076   fi
5077 else
5078   ac_cv_path_SED=$SED
5079 fi
5080
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5083 $as_echo "$ac_cv_path_SED" >&6; }
5084  SED="$ac_cv_path_SED"
5085   rm -f conftest.sed
5086
5087 test -z "$SED" && SED=sed
5088 Xsed="$SED -e 1s/^X//"
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if ${ac_cv_path_GREP+:} false; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -z "$GREP"; then
5106   ac_path_GREP_found=false
5107   # Loop through the user's path and test for each of PROGNAME-LIST
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_prog in grep ggrep; do
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116       as_fn_executable_p "$ac_path_GREP" || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118   # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5120 *GNU*)
5121   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5122 *)
5123   ac_count=0
5124   $as_echo_n 0123456789 >"conftest.in"
5125   while :
5126   do
5127     cat "conftest.in" "conftest.in" >"conftest.tmp"
5128     mv "conftest.tmp" "conftest.in"
5129     cp "conftest.in" "conftest.nl"
5130     $as_echo 'GREP' >> "conftest.nl"
5131     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133     as_fn_arith $ac_count + 1 && ac_count=$as_val
5134     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135       # Best one so far, save it but keep looking for a better one
5136       ac_cv_path_GREP="$ac_path_GREP"
5137       ac_path_GREP_max=$ac_count
5138     fi
5139     # 10*(2^10) chars as input seems more than enough
5140     test $ac_count -gt 10 && break
5141   done
5142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145       $ac_path_GREP_found && break 3
5146     done
5147   done
5148   done
5149 IFS=$as_save_IFS
5150   if test -z "$ac_cv_path_GREP"; then
5151     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152   fi
5153 else
5154   ac_cv_path_GREP=$GREP
5155 fi
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160  GREP="$ac_cv_path_GREP"
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if ${ac_cv_path_EGREP+:} false; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169    then ac_cv_path_EGREP="$GREP -E"
5170    else
5171      if test -z "$EGREP"; then
5172   ac_path_EGREP_found=false
5173   # Loop through the user's path and test for each of PROGNAME-LIST
5174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_prog in egrep; do
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182       as_fn_executable_p "$ac_path_EGREP" || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184   # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5186 *GNU*)
5187   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5188 *)
5189   ac_count=0
5190   $as_echo_n 0123456789 >"conftest.in"
5191   while :
5192   do
5193     cat "conftest.in" "conftest.in" >"conftest.tmp"
5194     mv "conftest.tmp" "conftest.in"
5195     cp "conftest.in" "conftest.nl"
5196     $as_echo 'EGREP' >> "conftest.nl"
5197     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199     as_fn_arith $ac_count + 1 && ac_count=$as_val
5200     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201       # Best one so far, save it but keep looking for a better one
5202       ac_cv_path_EGREP="$ac_path_EGREP"
5203       ac_path_EGREP_max=$ac_count
5204     fi
5205     # 10*(2^10) chars as input seems more than enough
5206     test $ac_count -gt 10 && break
5207   done
5208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211       $ac_path_EGREP_found && break 3
5212     done
5213   done
5214   done
5215 IFS=$as_save_IFS
5216   if test -z "$ac_cv_path_EGREP"; then
5217     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218   fi
5219 else
5220   ac_cv_path_EGREP=$EGREP
5221 fi
5222
5223    fi
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227  EGREP="$ac_cv_path_EGREP"
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5231 $as_echo_n "checking for fgrep... " >&6; }
5232 if ${ac_cv_path_FGREP+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5236    then ac_cv_path_FGREP="$GREP -F"
5237    else
5238      if test -z "$FGREP"; then
5239   ac_path_FGREP_found=false
5240   # Loop through the user's path and test for each of PROGNAME-LIST
5241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243 do
5244   IFS=$as_save_IFS
5245   test -z "$as_dir" && as_dir=.
5246     for ac_prog in fgrep; do
5247     for ac_exec_ext in '' $ac_executable_extensions; do
5248       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5249       as_fn_executable_p "$ac_path_FGREP" || continue
5250 # Check for GNU ac_path_FGREP and select it if it is found.
5251   # Check for GNU $ac_path_FGREP
5252 case `"$ac_path_FGREP" --version 2>&1` in
5253 *GNU*)
5254   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5255 *)
5256   ac_count=0
5257   $as_echo_n 0123456789 >"conftest.in"
5258   while :
5259   do
5260     cat "conftest.in" "conftest.in" >"conftest.tmp"
5261     mv "conftest.tmp" "conftest.in"
5262     cp "conftest.in" "conftest.nl"
5263     $as_echo 'FGREP' >> "conftest.nl"
5264     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266     as_fn_arith $ac_count + 1 && ac_count=$as_val
5267     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5268       # Best one so far, save it but keep looking for a better one
5269       ac_cv_path_FGREP="$ac_path_FGREP"
5270       ac_path_FGREP_max=$ac_count
5271     fi
5272     # 10*(2^10) chars as input seems more than enough
5273     test $ac_count -gt 10 && break
5274   done
5275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276 esac
5277
5278       $ac_path_FGREP_found && break 3
5279     done
5280   done
5281   done
5282 IFS=$as_save_IFS
5283   if test -z "$ac_cv_path_FGREP"; then
5284     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5285   fi
5286 else
5287   ac_cv_path_FGREP=$FGREP
5288 fi
5289
5290    fi
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5293 $as_echo "$ac_cv_path_FGREP" >&6; }
5294  FGREP="$ac_cv_path_FGREP"
5295
5296
5297 test -z "$GREP" && GREP=grep
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 # Check whether --with-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then :
5319   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5320 else
5321   with_gnu_ld=no
5322 fi
5323
5324 ac_prog=ld
5325 if test "$GCC" = yes; then
5326   # Check if gcc -print-prog-name=ld gives a path.
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5328 $as_echo_n "checking for ld used by $CC... " >&6; }
5329   case $host in
5330   *-*-mingw*)
5331     # gcc leaves a trailing carriage return which upsets mingw
5332     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5333   *)
5334     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335   esac
5336   case $ac_prog in
5337     # Accept absolute paths.
5338     [\\/]* | ?:[\\/]*)
5339       re_direlt='/[^/][^/]*/\.\./'
5340       # Canonicalize the pathname of ld
5341       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5342       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5343         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5344       done
5345       test -z "$LD" && LD="$ac_prog"
5346       ;;
5347   "")
5348     # If it fails, then pretend we aren't using GCC.
5349     ac_prog=ld
5350     ;;
5351   *)
5352     # If it is relative, then search for the first ld in PATH.
5353     with_gnu_ld=unknown
5354     ;;
5355   esac
5356 elif test "$with_gnu_ld" = yes; then
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5358 $as_echo_n "checking for GNU ld... " >&6; }
5359 else
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5361 $as_echo_n "checking for non-GNU ld... " >&6; }
5362 fi
5363 if ${lt_cv_path_LD+:} false; then :
5364   $as_echo_n "(cached) " >&6
5365 else
5366   if test -z "$LD"; then
5367   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5368   for ac_dir in $PATH; do
5369     IFS="$lt_save_ifs"
5370     test -z "$ac_dir" && ac_dir=.
5371     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5372       lt_cv_path_LD="$ac_dir/$ac_prog"
5373       # Check to see if the program is GNU ld.  I'd rather use --version,
5374       # but apparently some variants of GNU ld only accept -v.
5375       # Break only if it was the GNU/non-GNU ld that we prefer.
5376       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5377       *GNU* | *'with BFD'*)
5378         test "$with_gnu_ld" != no && break
5379         ;;
5380       *)
5381         test "$with_gnu_ld" != yes && break
5382         ;;
5383       esac
5384     fi
5385   done
5386   IFS="$lt_save_ifs"
5387 else
5388   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5389 fi
5390 fi
5391
5392 LD="$lt_cv_path_LD"
5393 if test -n "$LD"; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5395 $as_echo "$LD" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5403 if ${lt_cv_prog_gnu_ld+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5407 case `$LD -v 2>&1 </dev/null` in
5408 *GNU* | *'with BFD'*)
5409   lt_cv_prog_gnu_ld=yes
5410   ;;
5411 *)
5412   lt_cv_prog_gnu_ld=no
5413   ;;
5414 esac
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5418 with_gnu_ld=$lt_cv_prog_gnu_ld
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5430 if ${lt_cv_path_NM+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   if test -n "$NM"; then
5434   # Let the user override the test.
5435   lt_cv_path_NM="$NM"
5436 else
5437   lt_nm_to_check="${ac_tool_prefix}nm"
5438   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5439     lt_nm_to_check="$lt_nm_to_check nm"
5440   fi
5441   for lt_tmp_nm in $lt_nm_to_check; do
5442     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5443     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5444       IFS="$lt_save_ifs"
5445       test -z "$ac_dir" && ac_dir=.
5446       tmp_nm="$ac_dir/$lt_tmp_nm"
5447       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5448         # Check to see if the nm accepts a BSD-compat flag.
5449         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5450         #   nm: unknown option "B" ignored
5451         # Tru64's nm complains that /dev/null is an invalid object file
5452         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5453         */dev/null* | *'Invalid file or object type'*)
5454           lt_cv_path_NM="$tmp_nm -B"
5455           break
5456           ;;
5457         *)
5458           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5459           */dev/null*)
5460             lt_cv_path_NM="$tmp_nm -p"
5461             break
5462             ;;
5463           *)
5464             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5465             continue # so that we can try to find one that supports BSD flags
5466             ;;
5467           esac
5468           ;;
5469         esac
5470       fi
5471     done
5472     IFS="$lt_save_ifs"
5473   done
5474   : ${lt_cv_path_NM=no}
5475 fi
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5478 $as_echo "$lt_cv_path_NM" >&6; }
5479 if test "$lt_cv_path_NM" != "no"; then
5480   NM="$lt_cv_path_NM"
5481 else
5482   # Didn't find any BSD compatible name lister, look for dumpbin.
5483   if test -n "$DUMPBIN"; then :
5484     # Let the user override the test.
5485   else
5486     if test -n "$ac_tool_prefix"; then
5487   for ac_prog in dumpbin "link -dump"
5488   do
5489     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_prog_DUMPBIN+:} false; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496   if test -n "$DUMPBIN"; then
5497   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502   IFS=$as_save_IFS
5503   test -z "$as_dir" && as_dir=.
5504     for ac_exec_ext in '' $ac_executable_extensions; do
5505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508     break 2
5509   fi
5510 done
5511   done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 DUMPBIN=$ac_cv_prog_DUMPBIN
5517 if test -n "$DUMPBIN"; then
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5519 $as_echo "$DUMPBIN" >&6; }
5520 else
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525
5526     test -n "$DUMPBIN" && break
5527   done
5528 fi
5529 if test -z "$DUMPBIN"; then
5530   ac_ct_DUMPBIN=$DUMPBIN
5531   for ac_prog in dumpbin "link -dump"
5532 do
5533   # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   if test -n "$ac_ct_DUMPBIN"; then
5541   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5561 if test -n "$ac_ct_DUMPBIN"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5563 $as_echo "$ac_ct_DUMPBIN" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570   test -n "$ac_ct_DUMPBIN" && break
5571 done
5572
5573   if test "x$ac_ct_DUMPBIN" = x; then
5574     DUMPBIN=":"
5575   else
5576     case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582     DUMPBIN=$ac_ct_DUMPBIN
5583   fi
5584 fi
5585
5586     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5587     *COFF*)
5588       DUMPBIN="$DUMPBIN -symbols"
5589       ;;
5590     *)
5591       DUMPBIN=:
5592       ;;
5593     esac
5594   fi
5595
5596   if test "$DUMPBIN" != ":"; then
5597     NM="$DUMPBIN"
5598   fi
5599 fi
5600 test -z "$NM" && NM=nm
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5609 if ${lt_cv_nm_interface+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   lt_cv_nm_interface="BSD nm"
5613   echo "int some_variable = 0;" > conftest.$ac_ext
5614   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5615   (eval "$ac_compile" 2>conftest.err)
5616   cat conftest.err >&5
5617   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5618   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5619   cat conftest.err >&5
5620   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5621   cat conftest.out >&5
5622   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5623     lt_cv_nm_interface="MS dumpbin"
5624   fi
5625   rm -f conftest*
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5628 $as_echo "$lt_cv_nm_interface" >&6; }
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5631 $as_echo_n "checking whether ln -s works... " >&6; }
5632 LN_S=$as_ln_s
5633 if test "$LN_S" = "ln -s"; then
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5636 else
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5638 $as_echo "no, using $LN_S" >&6; }
5639 fi
5640
5641 # find the maximum length of command line arguments
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5644 if ${lt_cv_sys_max_cmd_len+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647     i=0
5648   teststring="ABCD"
5649
5650   case $build_os in
5651   msdosdjgpp*)
5652     # On DJGPP, this test can blow up pretty badly due to problems in libc
5653     # (any single argument exceeding 2000 bytes causes a buffer overrun
5654     # during glob expansion).  Even if it were fixed, the result of this
5655     # check would be larger than it should be.
5656     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5657     ;;
5658
5659   gnu*)
5660     # Under GNU Hurd, this test is not required because there is
5661     # no limit to the length of command line arguments.
5662     # Libtool will interpret -1 as no limit whatsoever
5663     lt_cv_sys_max_cmd_len=-1;
5664     ;;
5665
5666   cygwin* | mingw* | cegcc*)
5667     # On Win9x/ME, this test blows up -- it succeeds, but takes
5668     # about 5 minutes as the teststring grows exponentially.
5669     # Worse, since 9x/ME are not pre-emptively multitasking,
5670     # you end up with a "frozen" computer, even though with patience
5671     # the test eventually succeeds (with a max line length of 256k).
5672     # Instead, let's just punt: use the minimum linelength reported by
5673     # all of the supported platforms: 8192 (on NT/2K/XP).
5674     lt_cv_sys_max_cmd_len=8192;
5675     ;;
5676
5677   mint*)
5678     # On MiNT this can take a long time and run out of memory.
5679     lt_cv_sys_max_cmd_len=8192;
5680     ;;
5681
5682   amigaos*)
5683     # On AmigaOS with pdksh, this test takes hours, literally.
5684     # So we just punt and use a minimum line length of 8192.
5685     lt_cv_sys_max_cmd_len=8192;
5686     ;;
5687
5688   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5689     # This has been around since 386BSD, at least.  Likely further.
5690     if test -x /sbin/sysctl; then
5691       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5692     elif test -x /usr/sbin/sysctl; then
5693       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5694     else
5695       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5696     fi
5697     # And add a safety zone
5698     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5700     ;;
5701
5702   interix*)
5703     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5704     lt_cv_sys_max_cmd_len=196608
5705     ;;
5706
5707   os2*)
5708     # The test takes a long time on OS/2.
5709     lt_cv_sys_max_cmd_len=8192
5710     ;;
5711
5712   osf*)
5713     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5714     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5715     # nice to cause kernel panics so lets avoid the loop below.
5716     # First set a reasonable default.
5717     lt_cv_sys_max_cmd_len=16384
5718     #
5719     if test -x /sbin/sysconfig; then
5720       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5721         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5722       esac
5723     fi
5724     ;;
5725   sco3.2v5*)
5726     lt_cv_sys_max_cmd_len=102400
5727     ;;
5728   sysv5* | sco5v6* | sysv4.2uw2*)
5729     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5730     if test -n "$kargmax"; then
5731       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5732     else
5733       lt_cv_sys_max_cmd_len=32768
5734     fi
5735     ;;
5736   *)
5737     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5738     if test -n "$lt_cv_sys_max_cmd_len" && \
5739         test undefined != "$lt_cv_sys_max_cmd_len"; then
5740       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5741       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5742     else
5743       # Make teststring a little bigger before we do anything with it.
5744       # a 1K string should be a reasonable start.
5745       for i in 1 2 3 4 5 6 7 8 ; do
5746         teststring=$teststring$teststring
5747       done
5748       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5749       # If test is not a shell built-in, we'll probably end up computing a
5750       # maximum length that is only half of the actual maximum length, but
5751       # we can't tell.
5752       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5753                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5754               test $i != 17 # 1/2 MB should be enough
5755       do
5756         i=`expr $i + 1`
5757         teststring=$teststring$teststring
5758       done
5759       # Only check the string length outside the loop.
5760       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5761       teststring=
5762       # Add a significant safety factor because C++ compilers can tack on
5763       # massive amounts of additional arguments before passing them to the
5764       # linker.  It appears as though 1/2 is a usable value.
5765       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5766     fi
5767     ;;
5768   esac
5769
5770 fi
5771
5772 if test -n $lt_cv_sys_max_cmd_len ; then
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5774 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5775 else
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5777 $as_echo "none" >&6; }
5778 fi
5779 max_cmd_len=$lt_cv_sys_max_cmd_len
5780
5781
5782
5783
5784
5785
5786 : ${CP="cp -f"}
5787 : ${MV="mv -f"}
5788 : ${RM="rm -f"}
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5791 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5792 # Try some XSI features
5793 xsi_shell=no
5794 ( _lt_dummy="a/b/c"
5795   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5796       = c,a/b,b/c, \
5797     && eval 'test $(( 1 + 1 )) -eq 2 \
5798     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5799   && xsi_shell=yes
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5801 $as_echo "$xsi_shell" >&6; }
5802
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5805 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5806 lt_shell_append=no
5807 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5808     >/dev/null 2>&1 \
5809   && lt_shell_append=yes
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5811 $as_echo "$lt_shell_append" >&6; }
5812
5813
5814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5815   lt_unset=unset
5816 else
5817   lt_unset=false
5818 fi
5819
5820
5821
5822
5823
5824 # test EBCDIC or ASCII
5825 case `echo X|tr X '\101'` in
5826  A) # ASCII based system
5827     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5828   lt_SP2NL='tr \040 \012'
5829   lt_NL2SP='tr \015\012 \040\040'
5830   ;;
5831  *) # EBCDIC based system
5832   lt_SP2NL='tr \100 \n'
5833   lt_NL2SP='tr \r\n \100\100'
5834   ;;
5835 esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5846 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5847 if ${lt_cv_to_host_file_cmd+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   case $host in
5851   *-*-mingw* )
5852     case $build in
5853       *-*-mingw* ) # actually msys
5854         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5855         ;;
5856       *-*-cygwin* )
5857         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5858         ;;
5859       * ) # otherwise, assume *nix
5860         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5861         ;;
5862     esac
5863     ;;
5864   *-*-cygwin* )
5865     case $build in
5866       *-*-mingw* ) # actually msys
5867         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5868         ;;
5869       *-*-cygwin* )
5870         lt_cv_to_host_file_cmd=func_convert_file_noop
5871         ;;
5872       * ) # otherwise, assume *nix
5873         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5874         ;;
5875     esac
5876     ;;
5877   * ) # unhandled hosts (and "normal" native builds)
5878     lt_cv_to_host_file_cmd=func_convert_file_noop
5879     ;;
5880 esac
5881
5882 fi
5883
5884 to_host_file_cmd=$lt_cv_to_host_file_cmd
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5886 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5887
5888
5889
5890
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5893 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5894 if ${lt_cv_to_tool_file_cmd+:} false; then :
5895   $as_echo_n "(cached) " >&6
5896 else
5897   #assume ordinary cross tools, or native build.
5898 lt_cv_to_tool_file_cmd=func_convert_file_noop
5899 case $host in
5900   *-*-mingw* )
5901     case $build in
5902       *-*-mingw* ) # actually msys
5903         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5904         ;;
5905     esac
5906     ;;
5907 esac
5908
5909 fi
5910
5911 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5913 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5914
5915
5916
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5920 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5921 if ${lt_cv_ld_reload_flag+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   lt_cv_ld_reload_flag='-r'
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5927 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5928 reload_flag=$lt_cv_ld_reload_flag
5929 case $reload_flag in
5930 "" | " "*) ;;
5931 *) reload_flag=" $reload_flag" ;;
5932 esac
5933 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5934 case $host_os in
5935   cygwin* | mingw* | pw32* | cegcc*)
5936     if test "$GCC" != yes; then
5937       reload_cmds=false
5938     fi
5939     ;;
5940   darwin*)
5941     if test "$GCC" = yes; then
5942       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5943     else
5944       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5945     fi
5946     ;;
5947 esac
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 if test -n "$ac_tool_prefix"; then
5958   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5959 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_OBJDUMP+:} false; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965   if test -n "$OBJDUMP"; then
5966   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973     for ac_exec_ext in '' $ac_executable_extensions; do
5974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980   done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 OBJDUMP=$ac_cv_prog_OBJDUMP
5986 if test -n "$OBJDUMP"; then
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5988 $as_echo "$OBJDUMP" >&6; }
5989 else
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994
5995 fi
5996 if test -z "$ac_cv_prog_OBJDUMP"; then
5997   ac_ct_OBJDUMP=$OBJDUMP
5998   # Extract the first word of "objdump", so it can be a program name with args.
5999 set dummy objdump; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   if test -n "$ac_ct_OBJDUMP"; then
6006   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013     for ac_exec_ext in '' $ac_executable_extensions; do
6014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020   done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6026 if test -n "$ac_ct_OBJDUMP"; then
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6028 $as_echo "$ac_ct_OBJDUMP" >&6; }
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034   if test "x$ac_ct_OBJDUMP" = x; then
6035     OBJDUMP="false"
6036   else
6037     case $cross_compiling:$ac_tool_warned in
6038 yes:)
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6041 ac_tool_warned=yes ;;
6042 esac
6043     OBJDUMP=$ac_ct_OBJDUMP
6044   fi
6045 else
6046   OBJDUMP="$ac_cv_prog_OBJDUMP"
6047 fi
6048
6049 test -z "$OBJDUMP" && OBJDUMP=objdump
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6060 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6061 if ${lt_cv_deplibs_check_method+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   lt_cv_file_magic_cmd='$MAGIC_CMD'
6065 lt_cv_file_magic_test_file=
6066 lt_cv_deplibs_check_method='unknown'
6067 # Need to set the preceding variable on all platforms that support
6068 # interlibrary dependencies.
6069 # 'none' -- dependencies not supported.
6070 # `unknown' -- same as none, but documents that we really don't know.
6071 # 'pass_all' -- all dependencies passed with no checks.
6072 # 'test_compile' -- check by making test program.
6073 # 'file_magic [[regex]]' -- check by looking for files in library path
6074 # which responds to the $file_magic_cmd with a given extended regex.
6075 # If you have `file' or equivalent on your system and you're not sure
6076 # whether `pass_all' will *always* work, you probably want this one.
6077
6078 case $host_os in
6079 aix[4-9]*)
6080   lt_cv_deplibs_check_method=pass_all
6081   ;;
6082
6083 beos*)
6084   lt_cv_deplibs_check_method=pass_all
6085   ;;
6086
6087 bsdi[45]*)
6088   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6089   lt_cv_file_magic_cmd='/usr/bin/file -L'
6090   lt_cv_file_magic_test_file=/shlib/libc.so
6091   ;;
6092
6093 cygwin*)
6094   # func_win32_libid is a shell function defined in ltmain.sh
6095   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6096   lt_cv_file_magic_cmd='func_win32_libid'
6097   ;;
6098
6099 mingw* | pw32*)
6100   # Base MSYS/MinGW do not provide the 'file' command needed by
6101   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6102   # unless we find 'file', for example because we are cross-compiling.
6103   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6104   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6105     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6106     lt_cv_file_magic_cmd='func_win32_libid'
6107   else
6108     # Keep this pattern in sync with the one in func_win32_libid.
6109     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6110     lt_cv_file_magic_cmd='$OBJDUMP -f'
6111   fi
6112   ;;
6113
6114 cegcc*)
6115   # use the weaker test based on 'objdump'. See mingw*.
6116   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6117   lt_cv_file_magic_cmd='$OBJDUMP -f'
6118   ;;
6119
6120 darwin* | rhapsody*)
6121   lt_cv_deplibs_check_method=pass_all
6122   ;;
6123
6124 freebsd* | dragonfly*)
6125   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6126     case $host_cpu in
6127     i*86 )
6128       # Not sure whether the presence of OpenBSD here was a mistake.
6129       # Let's accept both of them until this is cleared up.
6130       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6131       lt_cv_file_magic_cmd=/usr/bin/file
6132       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6133       ;;
6134     esac
6135   else
6136     lt_cv_deplibs_check_method=pass_all
6137   fi
6138   ;;
6139
6140 haiku*)
6141   lt_cv_deplibs_check_method=pass_all
6142   ;;
6143
6144 hpux10.20* | hpux11*)
6145   lt_cv_file_magic_cmd=/usr/bin/file
6146   case $host_cpu in
6147   ia64*)
6148     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6149     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6150     ;;
6151   hppa*64*)
6152     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]'
6153     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6154     ;;
6155   *)
6156     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6157     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6158     ;;
6159   esac
6160   ;;
6161
6162 interix[3-9]*)
6163   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6164   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6165   ;;
6166
6167 irix5* | irix6* | nonstopux*)
6168   case $LD in
6169   *-32|*"-32 ") libmagic=32-bit;;
6170   *-n32|*"-n32 ") libmagic=N32;;
6171   *-64|*"-64 ") libmagic=64-bit;;
6172   *) libmagic=never-match;;
6173   esac
6174   lt_cv_deplibs_check_method=pass_all
6175   ;;
6176
6177 # This must be glibc/ELF.
6178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6179   lt_cv_deplibs_check_method=pass_all
6180   ;;
6181
6182 netbsd* | netbsdelf*-gnu)
6183   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6184     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6185   else
6186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6187   fi
6188   ;;
6189
6190 newos6*)
6191   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6192   lt_cv_file_magic_cmd=/usr/bin/file
6193   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6194   ;;
6195
6196 *nto* | *qnx*)
6197   lt_cv_deplibs_check_method=pass_all
6198   ;;
6199
6200 openbsd*)
6201   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6202     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6203   else
6204     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205   fi
6206   ;;
6207
6208 osf3* | osf4* | osf5*)
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211
6212 rdos*)
6213   lt_cv_deplibs_check_method=pass_all
6214   ;;
6215
6216 solaris*)
6217   lt_cv_deplibs_check_method=pass_all
6218   ;;
6219
6220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6221   lt_cv_deplibs_check_method=pass_all
6222   ;;
6223
6224 sysv4 | sysv4.3*)
6225   case $host_vendor in
6226   motorola)
6227     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]'
6228     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6229     ;;
6230   ncr)
6231     lt_cv_deplibs_check_method=pass_all
6232     ;;
6233   sequent)
6234     lt_cv_file_magic_cmd='/bin/file'
6235     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6236     ;;
6237   sni)
6238     lt_cv_file_magic_cmd='/bin/file'
6239     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6240     lt_cv_file_magic_test_file=/lib/libc.so
6241     ;;
6242   siemens)
6243     lt_cv_deplibs_check_method=pass_all
6244     ;;
6245   pc)
6246     lt_cv_deplibs_check_method=pass_all
6247     ;;
6248   esac
6249   ;;
6250
6251 tpf*)
6252   lt_cv_deplibs_check_method=pass_all
6253   ;;
6254 esac
6255
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6258 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6259
6260 file_magic_glob=
6261 want_nocaseglob=no
6262 if test "$build" = "$host"; then
6263   case $host_os in
6264   mingw* | pw32*)
6265     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6266       want_nocaseglob=yes
6267     else
6268       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6269     fi
6270     ;;
6271   esac
6272 fi
6273
6274 file_magic_cmd=$lt_cv_file_magic_cmd
6275 deplibs_check_method=$lt_cv_deplibs_check_method
6276 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 if test -n "$ac_tool_prefix"; then
6300   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_DLLTOOL+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   if test -n "$DLLTOOL"; then
6308   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315     for ac_exec_ext in '' $ac_executable_extensions; do
6316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322   done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 DLLTOOL=$ac_cv_prog_DLLTOOL
6328 if test -n "$DLLTOOL"; then
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6330 $as_echo "$DLLTOOL" >&6; }
6331 else
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336
6337 fi
6338 if test -z "$ac_cv_prog_DLLTOOL"; then
6339   ac_ct_DLLTOOL=$DLLTOOL
6340   # Extract the first word of "dlltool", so it can be a program name with args.
6341 set dummy dlltool; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   if test -n "$ac_ct_DLLTOOL"; then
6348   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6368 if test -n "$ac_ct_DLLTOOL"; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6370 $as_echo "$ac_ct_DLLTOOL" >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376   if test "x$ac_ct_DLLTOOL" = x; then
6377     DLLTOOL="false"
6378   else
6379     case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385     DLLTOOL=$ac_ct_DLLTOOL
6386   fi
6387 else
6388   DLLTOOL="$ac_cv_prog_DLLTOOL"
6389 fi
6390
6391 test -z "$DLLTOOL" && DLLTOOL=dlltool
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6403 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6404 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   lt_cv_sharedlib_from_linklib_cmd='unknown'
6408
6409 case $host_os in
6410 cygwin* | mingw* | pw32* | cegcc*)
6411   # two different shell functions defined in ltmain.sh
6412   # decide which to use based on capabilities of $DLLTOOL
6413   case `$DLLTOOL --help 2>&1` in
6414   *--identify-strict*)
6415     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6416     ;;
6417   *)
6418     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6419     ;;
6420   esac
6421   ;;
6422 *)
6423   # fallback: assume linklib IS sharedlib
6424   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6425   ;;
6426 esac
6427
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6430 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6431 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6432 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6433
6434
6435
6436
6437
6438
6439
6440 if test -n "$ac_tool_prefix"; then
6441   for ac_prog in ar
6442   do
6443     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_AR+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$AR"; then
6451   ac_cv_prog_AR="$AR" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 AR=$ac_cv_prog_AR
6471 if test -n "$AR"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6473 $as_echo "$AR" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480     test -n "$AR" && break
6481   done
6482 fi
6483 if test -z "$AR"; then
6484   ac_ct_AR=$AR
6485   for ac_prog in ar
6486 do
6487   # Extract the first word of "$ac_prog", so it can be a program name with args.
6488 set dummy $ac_prog; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   if test -n "$ac_ct_AR"; then
6495   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502     for ac_exec_ext in '' $ac_executable_extensions; do
6503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504     ac_cv_prog_ac_ct_AR="$ac_prog"
6505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509   done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6515 if test -n "$ac_ct_AR"; then
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6517 $as_echo "$ac_ct_AR" >&6; }
6518 else
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523
6524   test -n "$ac_ct_AR" && break
6525 done
6526
6527   if test "x$ac_ct_AR" = x; then
6528     AR="false"
6529   else
6530     case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536     AR=$ac_ct_AR
6537   fi
6538 fi
6539
6540 : ${AR=ar}
6541 : ${AR_FLAGS=cru}
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6554 $as_echo_n "checking for archiver @FILE support... " >&6; }
6555 if ${lt_cv_ar_at_file+:} false; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   lt_cv_ar_at_file=no
6559    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h.  */
6561
6562 int
6563 main ()
6564 {
6565
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571   echo conftest.$ac_objext > conftest.lst
6572       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6573       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6574   (eval $lt_ar_try) 2>&5
6575   ac_status=$?
6576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6577   test $ac_status = 0; }
6578       if test "$ac_status" -eq 0; then
6579         # Ensure the archiver fails upon bogus file names.
6580         rm -f conftest.$ac_objext libconftest.a
6581         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6582   (eval $lt_ar_try) 2>&5
6583   ac_status=$?
6584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585   test $ac_status = 0; }
6586         if test "$ac_status" -ne 0; then
6587           lt_cv_ar_at_file=@
6588         fi
6589       fi
6590       rm -f conftest.* libconftest.a
6591
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6597 $as_echo "$lt_cv_ar_at_file" >&6; }
6598
6599 if test "x$lt_cv_ar_at_file" = xno; then
6600   archiver_list_spec=
6601 else
6602   archiver_list_spec=$lt_cv_ar_at_file
6603 fi
6604
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}strip; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_STRIP+:} false; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   if test -n "$STRIP"; then
6620   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627     for ac_exec_ext in '' $ac_executable_extensions; do
6628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634   done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 STRIP=$ac_cv_prog_STRIP
6640 if test -n "$STRIP"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6642 $as_echo "$STRIP" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_STRIP"; then
6651   ac_ct_STRIP=$STRIP
6652   # Extract the first word of "strip", so it can be a program name with args.
6653 set dummy strip; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   if test -n "$ac_ct_STRIP"; then
6660   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667     for ac_exec_ext in '' $ac_executable_extensions; do
6668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669     ac_cv_prog_ac_ct_STRIP="strip"
6670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674   done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6680 if test -n "$ac_ct_STRIP"; then
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6682 $as_echo "$ac_ct_STRIP" >&6; }
6683 else
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688   if test "x$ac_ct_STRIP" = x; then
6689     STRIP=":"
6690   else
6691     case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697     STRIP=$ac_ct_STRIP
6698   fi
6699 else
6700   STRIP="$ac_cv_prog_STRIP"
6701 fi
6702
6703 test -z "$STRIP" && STRIP=:
6704
6705
6706
6707
6708
6709
6710 if test -n "$ac_tool_prefix"; then
6711   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_RANLIB+:} false; then :
6716   $as_echo_n "(cached) " >&6
6717 else
6718   if test -n "$RANLIB"; then
6719   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726     for ac_exec_ext in '' $ac_executable_extensions; do
6727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733   done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 RANLIB=$ac_cv_prog_RANLIB
6739 if test -n "$RANLIB"; then
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6741 $as_echo "$RANLIB" >&6; }
6742 else
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747
6748 fi
6749 if test -z "$ac_cv_prog_RANLIB"; then
6750   ac_ct_RANLIB=$RANLIB
6751   # Extract the first word of "ranlib", so it can be a program name with args.
6752 set dummy ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   if test -n "$ac_ct_RANLIB"; then
6759   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766     for ac_exec_ext in '' $ac_executable_extensions; do
6767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768     ac_cv_prog_ac_ct_RANLIB="ranlib"
6769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773   done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779 if test -n "$ac_ct_RANLIB"; then
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781 $as_echo "$ac_ct_RANLIB" >&6; }
6782 else
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787   if test "x$ac_ct_RANLIB" = x; then
6788     RANLIB=":"
6789   else
6790     case $cross_compiling:$ac_tool_warned in
6791 yes:)
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6795 esac
6796     RANLIB=$ac_ct_RANLIB
6797   fi
6798 else
6799   RANLIB="$ac_cv_prog_RANLIB"
6800 fi
6801
6802 test -z "$RANLIB" && RANLIB=:
6803
6804
6805
6806
6807
6808
6809 # Determine commands to create old-style static archives.
6810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6811 old_postinstall_cmds='chmod 644 $oldlib'
6812 old_postuninstall_cmds=
6813
6814 if test -n "$RANLIB"; then
6815   case $host_os in
6816   openbsd*)
6817     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6818     ;;
6819   *)
6820     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6821     ;;
6822   esac
6823   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6824 fi
6825
6826 case $host_os in
6827   darwin*)
6828     lock_old_archive_extraction=yes ;;
6829   *)
6830     lock_old_archive_extraction=no ;;
6831 esac
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 # If no C compiler was specified, use CC.
6872 LTCC=${LTCC-"$CC"}
6873
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6876
6877 # Allow CC to be a program name with arguments.
6878 compiler=$CC
6879
6880
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6884 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6890
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6893
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900   symcode='[BCDT]'
6901   ;;
6902 cygwin* | mingw* | pw32* | cegcc*)
6903   symcode='[ABCDGISTW]'
6904   ;;
6905 hpux*)
6906   if test "$host_cpu" = ia64; then
6907     symcode='[ABCDEGRST]'
6908   fi
6909   ;;
6910 irix* | nonstopux*)
6911   symcode='[BCDEGRST]'
6912   ;;
6913 osf*)
6914   symcode='[BCDEGQRST]'
6915   ;;
6916 solaris*)
6917   symcode='[BDRT]'
6918   ;;
6919 sco3.2v5*)
6920   symcode='[DT]'
6921   ;;
6922 sysv4.2uw2*)
6923   symcode='[DT]'
6924   ;;
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926   symcode='[ABDT]'
6927   ;;
6928 sysv4)
6929   symcode='[DFNSTU]'
6930   ;;
6931 esac
6932
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936   symcode='[ABCDGIRSTW]' ;;
6937 esac
6938
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6943
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6947
6948 # Handle CRLF in mingw tool chain
6949 opt_cr=
6950 case $build_os in
6951 mingw*)
6952   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6953   ;;
6954 esac
6955
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6958
6959   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960   symxfrm="\\1 $ac_symprfx\\2 \\2"
6961
6962   # Write the raw and C identifiers.
6963   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964     # Fake it for dumpbin and say T for any non-static function
6965     # and D for any global variable.
6966     # Also find C++ and __fastcall symbols from MSVC++,
6967     # which start with @ or ?.
6968     lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 "     {last_section=section; section=\$ 3};"\
6970 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6971 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6972 "     \$ 0!~/External *\|/{next};"\
6973 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6974 "     {if(hide[section]) next};"\
6975 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6976 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6977 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6978 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6979 "     ' prfx=^$ac_symprfx"
6980   else
6981     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6982   fi
6983   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6984
6985   # Check to see that the pipe works correctly.
6986   pipe_works=no
6987
6988   rm -f conftest*
6989   cat > conftest.$ac_ext <<_LT_EOF
6990 #ifdef __cplusplus
6991 extern "C" {
6992 #endif
6993 char nm_test_var;
6994 void nm_test_func(void);
6995 void nm_test_func(void){}
6996 #ifdef __cplusplus
6997 }
6998 #endif
6999 int main(){nm_test_var='a';nm_test_func();return(0);}
7000 _LT_EOF
7001
7002   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7003   (eval $ac_compile) 2>&5
7004   ac_status=$?
7005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006   test $ac_status = 0; }; then
7007     # Now try to grab the symbols.
7008     nlist=conftest.nm
7009     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7010   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7011   ac_status=$?
7012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013   test $ac_status = 0; } && test -s "$nlist"; then
7014       # Try sorting and uniquifying the output.
7015       if sort "$nlist" | uniq > "$nlist"T; then
7016         mv -f "$nlist"T "$nlist"
7017       else
7018         rm -f "$nlist"T
7019       fi
7020
7021       # Make sure that we snagged all the symbols we need.
7022       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7023         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7024           cat <<_LT_EOF > conftest.$ac_ext
7025 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7026 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7027 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7028    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7029 # define LT_DLSYM_CONST
7030 #elif defined(__osf__)
7031 /* This system does not cope well with relocations in const data.  */
7032 # define LT_DLSYM_CONST
7033 #else
7034 # define LT_DLSYM_CONST const
7035 #endif
7036
7037 #ifdef __cplusplus
7038 extern "C" {
7039 #endif
7040
7041 _LT_EOF
7042           # Now generate the symbol file.
7043           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7044
7045           cat <<_LT_EOF >> conftest.$ac_ext
7046
7047 /* The mapping between symbol names and symbols.  */
7048 LT_DLSYM_CONST struct {
7049   const char *name;
7050   void       *address;
7051 }
7052 lt__PROGRAM__LTX_preloaded_symbols[] =
7053 {
7054   { "@PROGRAM@", (void *) 0 },
7055 _LT_EOF
7056           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7057           cat <<\_LT_EOF >> conftest.$ac_ext
7058   {0, (void *) 0}
7059 };
7060
7061 /* This works around a problem in FreeBSD linker */
7062 #ifdef FREEBSD_WORKAROUND
7063 static const void *lt_preloaded_setup() {
7064   return lt__PROGRAM__LTX_preloaded_symbols;
7065 }
7066 #endif
7067
7068 #ifdef __cplusplus
7069 }
7070 #endif
7071 _LT_EOF
7072           # Now try linking the two files.
7073           mv conftest.$ac_objext conftstm.$ac_objext
7074           lt_globsym_save_LIBS=$LIBS
7075           lt_globsym_save_CFLAGS=$CFLAGS
7076           LIBS="conftstm.$ac_objext"
7077           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7078           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7079   (eval $ac_link) 2>&5
7080   ac_status=$?
7081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7083             pipe_works=yes
7084           fi
7085           LIBS=$lt_globsym_save_LIBS
7086           CFLAGS=$lt_globsym_save_CFLAGS
7087         else
7088           echo "cannot find nm_test_func in $nlist" >&5
7089         fi
7090       else
7091         echo "cannot find nm_test_var in $nlist" >&5
7092       fi
7093     else
7094       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7095     fi
7096   else
7097     echo "$progname: failed program was:" >&5
7098     cat conftest.$ac_ext >&5
7099   fi
7100   rm -rf conftest* conftst*
7101
7102   # Do not use the global_symbol_pipe unless it works.
7103   if test "$pipe_works" = yes; then
7104     break
7105   else
7106     lt_cv_sys_global_symbol_pipe=
7107   fi
7108 done
7109
7110 fi
7111
7112 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7113   lt_cv_sys_global_symbol_to_cdecl=
7114 fi
7115 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7117 $as_echo "failed" >&6; }
7118 else
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7120 $as_echo "ok" >&6; }
7121 fi
7122
7123 # Response file support.
7124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7125   nm_file_list_spec='@'
7126 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7127   nm_file_list_spec='@'
7128 fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7157 $as_echo_n "checking for sysroot... " >&6; }
7158
7159 # Check whether --with-sysroot was given.
7160 if test "${with_sysroot+set}" = set; then :
7161   withval=$with_sysroot;
7162 else
7163   with_sysroot=no
7164 fi
7165
7166
7167 lt_sysroot=
7168 case ${with_sysroot} in #(
7169  yes)
7170    if test "$GCC" = yes; then
7171      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7172    fi
7173    ;; #(
7174  /*)
7175    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7176    ;; #(
7177  no|'')
7178    ;; #(
7179  *)
7180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7181 $as_echo "${with_sysroot}" >&6; }
7182    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7183    ;;
7184 esac
7185
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7187 $as_echo "${lt_sysroot:-no}" >&6; }
7188
7189
7190
7191
7192
7193 # Check whether --enable-libtool-lock was given.
7194 if test "${enable_libtool_lock+set}" = set; then :
7195   enableval=$enable_libtool_lock;
7196 fi
7197
7198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7199
7200 # Some flags need to be propagated to the compiler or linker for good
7201 # libtool support.
7202 case $host in
7203 ia64-*-hpux*)
7204   # Find out which ABI we are using.
7205   echo 'int i;' > conftest.$ac_ext
7206   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207   (eval $ac_compile) 2>&5
7208   ac_status=$?
7209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210   test $ac_status = 0; }; then
7211     case `/usr/bin/file conftest.$ac_objext` in
7212       *ELF-32*)
7213         HPUX_IA64_MODE="32"
7214         ;;
7215       *ELF-64*)
7216         HPUX_IA64_MODE="64"
7217         ;;
7218     esac
7219   fi
7220   rm -rf conftest*
7221   ;;
7222 *-*-irix6*)
7223   # Find out which ABI we are using.
7224   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7225   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7226   (eval $ac_compile) 2>&5
7227   ac_status=$?
7228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229   test $ac_status = 0; }; then
7230     if test "$lt_cv_prog_gnu_ld" = yes; then
7231       case `/usr/bin/file conftest.$ac_objext` in
7232         *32-bit*)
7233           LD="${LD-ld} -melf32bsmip"
7234           ;;
7235         *N32*)
7236           LD="${LD-ld} -melf32bmipn32"
7237           ;;
7238         *64-bit*)
7239           LD="${LD-ld} -melf64bmip"
7240         ;;
7241       esac
7242     else
7243       case `/usr/bin/file conftest.$ac_objext` in
7244         *32-bit*)
7245           LD="${LD-ld} -32"
7246           ;;
7247         *N32*)
7248           LD="${LD-ld} -n32"
7249           ;;
7250         *64-bit*)
7251           LD="${LD-ld} -64"
7252           ;;
7253       esac
7254     fi
7255   fi
7256   rm -rf conftest*
7257   ;;
7258
7259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7260 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7261   # Find out which ABI we are using.
7262   echo 'int i;' > conftest.$ac_ext
7263   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7264   (eval $ac_compile) 2>&5
7265   ac_status=$?
7266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267   test $ac_status = 0; }; then
7268     case `/usr/bin/file conftest.o` in
7269       *32-bit*)
7270         case $host in
7271           x86_64-*kfreebsd*-gnu)
7272             LD="${LD-ld} -m elf_i386_fbsd"
7273             ;;
7274           x86_64-*linux*)
7275             case `/usr/bin/file conftest.o` in
7276               *x86-64*)
7277                 LD="${LD-ld} -m elf32_x86_64"
7278                 ;;
7279               *)
7280                 LD="${LD-ld} -m elf_i386"
7281                 ;;
7282             esac
7283             ;;
7284           powerpc64le-*)
7285             LD="${LD-ld} -m elf32lppclinux"
7286             ;;
7287           powerpc64-*)
7288             LD="${LD-ld} -m elf32ppclinux"
7289             ;;
7290           s390x-*linux*)
7291             LD="${LD-ld} -m elf_s390"
7292             ;;
7293           sparc64-*linux*)
7294             LD="${LD-ld} -m elf32_sparc"
7295             ;;
7296         esac
7297         ;;
7298       *64-bit*)
7299         case $host in
7300           x86_64-*kfreebsd*-gnu)
7301             LD="${LD-ld} -m elf_x86_64_fbsd"
7302             ;;
7303           x86_64-*linux*)
7304             LD="${LD-ld} -m elf_x86_64"
7305             ;;
7306           powerpcle-*)
7307             LD="${LD-ld} -m elf64lppc"
7308             ;;
7309           powerpc-*)
7310             LD="${LD-ld} -m elf64ppc"
7311             ;;
7312           s390*-*linux*|s390*-*tpf*)
7313             LD="${LD-ld} -m elf64_s390"
7314             ;;
7315           sparc*-*linux*)
7316             LD="${LD-ld} -m elf64_sparc"
7317             ;;
7318         esac
7319         ;;
7320     esac
7321   fi
7322   rm -rf conftest*
7323   ;;
7324
7325 *-*-sco3.2v5*)
7326   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7327   SAVE_CFLAGS="$CFLAGS"
7328   CFLAGS="$CFLAGS -belf"
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7330 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7331 if ${lt_cv_cc_needs_belf+:} false; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   ac_ext=c
7335 ac_cpp='$CPP $CPPFLAGS'
7336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h.  */
7342
7343 int
7344 main ()
7345 {
7346
7347   ;
7348   return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_link "$LINENO"; then :
7352   lt_cv_cc_needs_belf=yes
7353 else
7354   lt_cv_cc_needs_belf=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext \
7357     conftest$ac_exeext conftest.$ac_ext
7358      ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7366 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7367   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7368     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7369     CFLAGS="$SAVE_CFLAGS"
7370   fi
7371   ;;
7372 *-*solaris*)
7373   # Find out which ABI we are using.
7374   echo 'int i;' > conftest.$ac_ext
7375   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376   (eval $ac_compile) 2>&5
7377   ac_status=$?
7378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379   test $ac_status = 0; }; then
7380     case `/usr/bin/file conftest.o` in
7381     *64-bit*)
7382       case $lt_cv_prog_gnu_ld in
7383       yes*)
7384         case $host in
7385         i?86-*-solaris*)
7386           LD="${LD-ld} -m elf_x86_64"
7387           ;;
7388         sparc*-*-solaris*)
7389           LD="${LD-ld} -m elf64_sparc"
7390           ;;
7391         esac
7392         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7393         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7394           LD="${LD-ld}_sol2"
7395         fi
7396         ;;
7397       *)
7398         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7399           LD="${LD-ld} -64"
7400         fi
7401         ;;
7402       esac
7403       ;;
7404     esac
7405   fi
7406   rm -rf conftest*
7407   ;;
7408 esac
7409
7410 need_locks="$enable_libtool_lock"
7411
7412 if test -n "$ac_tool_prefix"; then
7413   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}mt; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   if test -n "$MANIFEST_TOOL"; then
7421   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428     for ac_exec_ext in '' $ac_executable_extensions; do
7429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435   done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7441 if test -n "$MANIFEST_TOOL"; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7443 $as_echo "$MANIFEST_TOOL" >&6; }
7444 else
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449
7450 fi
7451 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7452   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7453   # Extract the first word of "mt", so it can be a program name with args.
7454 set dummy mt; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$ac_ct_MANIFEST_TOOL"; then
7461   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7481 if test -n "$ac_ct_MANIFEST_TOOL"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7483 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7490     MANIFEST_TOOL=":"
7491   else
7492     case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7499   fi
7500 else
7501   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7502 fi
7503
7504 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7506 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7507 if ${lt_cv_path_mainfest_tool+:} false; then :
7508   $as_echo_n "(cached) " >&6
7509 else
7510   lt_cv_path_mainfest_tool=no
7511   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7512   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7513   cat conftest.err >&5
7514   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7515     lt_cv_path_mainfest_tool=yes
7516   fi
7517   rm -f conftest*
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7520 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7521 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7522   MANIFEST_TOOL=:
7523 fi
7524
7525
7526
7527
7528
7529
7530   case $host_os in
7531     rhapsody* | darwin*)
7532     if test -n "$ac_tool_prefix"; then
7533   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$DSYMUTIL"; then
7541   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7561 if test -n "$DSYMUTIL"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7563 $as_echo "$DSYMUTIL" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569
7570 fi
7571 if test -z "$ac_cv_prog_DSYMUTIL"; then
7572   ac_ct_DSYMUTIL=$DSYMUTIL
7573   # Extract the first word of "dsymutil", so it can be a program name with args.
7574 set dummy dsymutil; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   if test -n "$ac_ct_DSYMUTIL"; then
7581   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588     for ac_exec_ext in '' $ac_executable_extensions; do
7589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595   done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7601 if test -n "$ac_ct_DSYMUTIL"; then
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7603 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7604 else
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609   if test "x$ac_ct_DSYMUTIL" = x; then
7610     DSYMUTIL=":"
7611   else
7612     case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7617 esac
7618     DSYMUTIL=$ac_ct_DSYMUTIL
7619   fi
7620 else
7621   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7622 fi
7623
7624     if test -n "$ac_tool_prefix"; then
7625   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_NMEDIT+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   if test -n "$NMEDIT"; then
7633   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_exec_ext in '' $ac_executable_extensions; do
7641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647   done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 NMEDIT=$ac_cv_prog_NMEDIT
7653 if test -n "$NMEDIT"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7655 $as_echo "$NMEDIT" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661
7662 fi
7663 if test -z "$ac_cv_prog_NMEDIT"; then
7664   ac_ct_NMEDIT=$NMEDIT
7665   # Extract the first word of "nmedit", so it can be a program name with args.
7666 set dummy nmedit; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   if test -n "$ac_ct_NMEDIT"; then
7673   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680     for ac_exec_ext in '' $ac_executable_extensions; do
7681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687   done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7693 if test -n "$ac_ct_NMEDIT"; then
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7695 $as_echo "$ac_ct_NMEDIT" >&6; }
7696 else
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701   if test "x$ac_ct_NMEDIT" = x; then
7702     NMEDIT=":"
7703   else
7704     case $cross_compiling:$ac_tool_warned in
7705 yes:)
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708 ac_tool_warned=yes ;;
7709 esac
7710     NMEDIT=$ac_ct_NMEDIT
7711   fi
7712 else
7713   NMEDIT="$ac_cv_prog_NMEDIT"
7714 fi
7715
7716     if test -n "$ac_tool_prefix"; then
7717   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_LIPO+:} false; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$LIPO"; then
7725   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 LIPO=$ac_cv_prog_LIPO
7745 if test -n "$LIPO"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7747 $as_echo "$LIPO" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754 fi
7755 if test -z "$ac_cv_prog_LIPO"; then
7756   ac_ct_LIPO=$LIPO
7757   # Extract the first word of "lipo", so it can be a program name with args.
7758 set dummy lipo; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   if test -n "$ac_ct_LIPO"; then
7765   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772     for ac_exec_ext in '' $ac_executable_extensions; do
7773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774     ac_cv_prog_ac_ct_LIPO="lipo"
7775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779   done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7785 if test -n "$ac_ct_LIPO"; then
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7787 $as_echo "$ac_ct_LIPO" >&6; }
7788 else
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793   if test "x$ac_ct_LIPO" = x; then
7794     LIPO=":"
7795   else
7796     case $cross_compiling:$ac_tool_warned in
7797 yes:)
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800 ac_tool_warned=yes ;;
7801 esac
7802     LIPO=$ac_ct_LIPO
7803   fi
7804 else
7805   LIPO="$ac_cv_prog_LIPO"
7806 fi
7807
7808     if test -n "$ac_tool_prefix"; then
7809   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}otool; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_OTOOL+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   if test -n "$OTOOL"; then
7817   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824     for ac_exec_ext in '' $ac_executable_extensions; do
7825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831   done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 OTOOL=$ac_cv_prog_OTOOL
7837 if test -n "$OTOOL"; then
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7839 $as_echo "$OTOOL" >&6; }
7840 else
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846 fi
7847 if test -z "$ac_cv_prog_OTOOL"; then
7848   ac_ct_OTOOL=$OTOOL
7849   # Extract the first word of "otool", so it can be a program name with args.
7850 set dummy otool; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   if test -n "$ac_ct_OTOOL"; then
7857   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864     for ac_exec_ext in '' $ac_executable_extensions; do
7865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866     ac_cv_prog_ac_ct_OTOOL="otool"
7867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871   done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7877 if test -n "$ac_ct_OTOOL"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7879 $as_echo "$ac_ct_OTOOL" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885   if test "x$ac_ct_OTOOL" = x; then
7886     OTOOL=":"
7887   else
7888     case $cross_compiling:$ac_tool_warned in
7889 yes:)
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7892 ac_tool_warned=yes ;;
7893 esac
7894     OTOOL=$ac_ct_OTOOL
7895   fi
7896 else
7897   OTOOL="$ac_cv_prog_OTOOL"
7898 fi
7899
7900     if test -n "$ac_tool_prefix"; then
7901   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_prog_OTOOL64+:} false; then :
7906   $as_echo_n "(cached) " >&6
7907 else
7908   if test -n "$OTOOL64"; then
7909   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916     for ac_exec_ext in '' $ac_executable_extensions; do
7917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923   done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 OTOOL64=$ac_cv_prog_OTOOL64
7929 if test -n "$OTOOL64"; then
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7931 $as_echo "$OTOOL64" >&6; }
7932 else
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937
7938 fi
7939 if test -z "$ac_cv_prog_OTOOL64"; then
7940   ac_ct_OTOOL64=$OTOOL64
7941   # Extract the first word of "otool64", so it can be a program name with args.
7942 set dummy otool64; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   if test -n "$ac_ct_OTOOL64"; then
7949   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954   IFS=$as_save_IFS
7955   test -z "$as_dir" && as_dir=.
7956     for ac_exec_ext in '' $ac_executable_extensions; do
7957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958     ac_cv_prog_ac_ct_OTOOL64="otool64"
7959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960     break 2
7961   fi
7962 done
7963   done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7969 if test -n "$ac_ct_OTOOL64"; then
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7971 $as_echo "$ac_ct_OTOOL64" >&6; }
7972 else
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977   if test "x$ac_ct_OTOOL64" = x; then
7978     OTOOL64=":"
7979   else
7980     case $cross_compiling:$ac_tool_warned in
7981 yes:)
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984 ac_tool_warned=yes ;;
7985 esac
7986     OTOOL64=$ac_ct_OTOOL64
7987   fi
7988 else
7989   OTOOL64="$ac_cv_prog_OTOOL64"
7990 fi
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8019 $as_echo_n "checking for -single_module linker flag... " >&6; }
8020 if ${lt_cv_apple_cc_single_mod+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   lt_cv_apple_cc_single_mod=no
8024       if test -z "${LT_MULTI_MODULE}"; then
8025         # By default we will add the -single_module flag. You can override
8026         # by either setting the environment variable LT_MULTI_MODULE
8027         # non-empty at configure time, or by adding -multi_module to the
8028         # link flags.
8029         rm -rf libconftest.dylib*
8030         echo "int foo(void){return 1;}" > conftest.c
8031         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8032 -dynamiclib -Wl,-single_module conftest.c" >&5
8033         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8034           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8035         _lt_result=$?
8036         # If there is a non-empty error log, and "single_module"
8037         # appears in it, assume the flag caused a linker warning
8038         if test -s conftest.err && $GREP single_module conftest.err; then
8039           cat conftest.err >&5
8040         # Otherwise, if the output was created with a 0 exit code from
8041         # the compiler, it worked.
8042         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8043           lt_cv_apple_cc_single_mod=yes
8044         else
8045           cat conftest.err >&5
8046         fi
8047         rm -rf libconftest.dylib*
8048         rm -f conftest.*
8049       fi
8050 fi
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8052 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8053
8054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8055 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8056 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8057   $as_echo_n "(cached) " >&6
8058 else
8059   lt_cv_ld_exported_symbols_list=no
8060       save_LDFLAGS=$LDFLAGS
8061       echo "_main" > conftest.sym
8062       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h.  */
8065
8066 int
8067 main ()
8068 {
8069
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075   lt_cv_ld_exported_symbols_list=yes
8076 else
8077   lt_cv_ld_exported_symbols_list=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext \
8080     conftest$ac_exeext conftest.$ac_ext
8081         LDFLAGS="$save_LDFLAGS"
8082
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8085 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8086
8087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8088 $as_echo_n "checking for -force_load linker flag... " >&6; }
8089 if ${lt_cv_ld_force_load+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   lt_cv_ld_force_load=no
8093       cat > conftest.c << _LT_EOF
8094 int forced_loaded() { return 2;}
8095 _LT_EOF
8096       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8097       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8098       echo "$AR cru libconftest.a conftest.o" >&5
8099       $AR cru libconftest.a conftest.o 2>&5
8100       echo "$RANLIB libconftest.a" >&5
8101       $RANLIB libconftest.a 2>&5
8102       cat > conftest.c << _LT_EOF
8103 int main() { return 0;}
8104 _LT_EOF
8105       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8106       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8107       _lt_result=$?
8108       if test -s conftest.err && $GREP force_load conftest.err; then
8109         cat conftest.err >&5
8110       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8111         lt_cv_ld_force_load=yes
8112       else
8113         cat conftest.err >&5
8114       fi
8115         rm -f conftest.err libconftest.a conftest conftest.c
8116         rm -rf conftest.dSYM
8117
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8120 $as_echo "$lt_cv_ld_force_load" >&6; }
8121     case $host_os in
8122     rhapsody* | darwin1.[012])
8123       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8124     darwin1.*)
8125       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8126     darwin*) # darwin 5.x on
8127       # if running on 10.5 or later, the deployment target defaults
8128       # to the OS version, if on x86, and 10.4, the deployment
8129       # target defaults to 10.4. Don't you love it?
8130       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8131         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8132           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133         10.[012]*)
8134           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8135         10.*)
8136           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8137       esac
8138     ;;
8139   esac
8140     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8141       _lt_dar_single_mod='$single_module'
8142     fi
8143     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8144       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8145     else
8146       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8147     fi
8148     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8149       _lt_dsymutil='~$DSYMUTIL $lib || :'
8150     else
8151       _lt_dsymutil=
8152     fi
8153     ;;
8154   esac
8155
8156 ac_ext=c
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8162 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8163 # On Suns, sometimes $CPP names a directory.
8164 if test -n "$CPP" && test -d "$CPP"; then
8165   CPP=
8166 fi
8167 if test -z "$CPP"; then
8168   if ${ac_cv_prog_CPP+:} false; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171       # Double quotes because CPP needs to be expanded
8172     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8173     do
8174       ac_preproc_ok=false
8175 for ac_c_preproc_warn_flag in '' yes
8176 do
8177   # Use a header file that comes with gcc, so configuring glibc
8178   # with a fresh cross-compiler works.
8179   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8180   # <limits.h> exists even on freestanding compilers.
8181   # On the NeXT, cc -E runs the code through the compiler's parser,
8182   # not just through cpp. "Syntax error" is here to catch this case.
8183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h.  */
8185 #ifdef __STDC__
8186 # include <limits.h>
8187 #else
8188 # include <assert.h>
8189 #endif
8190                      Syntax error
8191 _ACEOF
8192 if ac_fn_c_try_cpp "$LINENO"; then :
8193
8194 else
8195   # Broken: fails on valid input.
8196 continue
8197 fi
8198 rm -f conftest.err conftest.i conftest.$ac_ext
8199
8200   # OK, works on sane cases.  Now check whether nonexistent headers
8201   # can be detected and how.
8202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h.  */
8204 #include <ac_nonexistent.h>
8205 _ACEOF
8206 if ac_fn_c_try_cpp "$LINENO"; then :
8207   # Broken: success on invalid input.
8208 continue
8209 else
8210   # Passes both tests.
8211 ac_preproc_ok=:
8212 break
8213 fi
8214 rm -f conftest.err conftest.i conftest.$ac_ext
8215
8216 done
8217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8218 rm -f conftest.i conftest.err conftest.$ac_ext
8219 if $ac_preproc_ok; then :
8220   break
8221 fi
8222
8223     done
8224     ac_cv_prog_CPP=$CPP
8225
8226 fi
8227   CPP=$ac_cv_prog_CPP
8228 else
8229   ac_cv_prog_CPP=$CPP
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8232 $as_echo "$CPP" >&6; }
8233 ac_preproc_ok=false
8234 for ac_c_preproc_warn_flag in '' yes
8235 do
8236   # Use a header file that comes with gcc, so configuring glibc
8237   # with a fresh cross-compiler works.
8238   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8239   # <limits.h> exists even on freestanding compilers.
8240   # On the NeXT, cc -E runs the code through the compiler's parser,
8241   # not just through cpp. "Syntax error" is here to catch this case.
8242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h.  */
8244 #ifdef __STDC__
8245 # include <limits.h>
8246 #else
8247 # include <assert.h>
8248 #endif
8249                      Syntax error
8250 _ACEOF
8251 if ac_fn_c_try_cpp "$LINENO"; then :
8252
8253 else
8254   # Broken: fails on valid input.
8255 continue
8256 fi
8257 rm -f conftest.err conftest.i conftest.$ac_ext
8258
8259   # OK, works on sane cases.  Now check whether nonexistent headers
8260   # can be detected and how.
8261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h.  */
8263 #include <ac_nonexistent.h>
8264 _ACEOF
8265 if ac_fn_c_try_cpp "$LINENO"; then :
8266   # Broken: success on invalid input.
8267 continue
8268 else
8269   # Passes both tests.
8270 ac_preproc_ok=:
8271 break
8272 fi
8273 rm -f conftest.err conftest.i conftest.$ac_ext
8274
8275 done
8276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8277 rm -f conftest.i conftest.err conftest.$ac_ext
8278 if $ac_preproc_ok; then :
8279
8280 else
8281   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8283 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8284 See \`config.log' for more details" "$LINENO" 5; }
8285 fi
8286
8287 ac_ext=c
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8295 $as_echo_n "checking for ANSI C header files... " >&6; }
8296 if ${ac_cv_header_stdc+:} false; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301 #include <stdlib.h>
8302 #include <stdarg.h>
8303 #include <string.h>
8304 #include <float.h>
8305
8306 int
8307 main ()
8308 {
8309
8310   ;
8311   return 0;
8312 }
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315   ac_cv_header_stdc=yes
8316 else
8317   ac_cv_header_stdc=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320
8321 if test $ac_cv_header_stdc = yes; then
8322   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h.  */
8325 #include <string.h>
8326
8327 _ACEOF
8328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8329   $EGREP "memchr" >/dev/null 2>&1; then :
8330
8331 else
8332   ac_cv_header_stdc=no
8333 fi
8334 rm -f conftest*
8335
8336 fi
8337
8338 if test $ac_cv_header_stdc = yes; then
8339   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h.  */
8342 #include <stdlib.h>
8343
8344 _ACEOF
8345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8346   $EGREP "free" >/dev/null 2>&1; then :
8347
8348 else
8349   ac_cv_header_stdc=no
8350 fi
8351 rm -f conftest*
8352
8353 fi
8354
8355 if test $ac_cv_header_stdc = yes; then
8356   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8357   if test "$cross_compiling" = yes; then :
8358   :
8359 else
8360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h.  */
8362 #include <ctype.h>
8363 #include <stdlib.h>
8364 #if ((' ' & 0x0FF) == 0x020)
8365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8367 #else
8368 # define ISLOWER(c) \
8369                    (('a' <= (c) && (c) <= 'i') \
8370                      || ('j' <= (c) && (c) <= 'r') \
8371                      || ('s' <= (c) && (c) <= 'z'))
8372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8373 #endif
8374
8375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8376 int
8377 main ()
8378 {
8379   int i;
8380   for (i = 0; i < 256; i++)
8381     if (XOR (islower (i), ISLOWER (i))
8382         || toupper (i) != TOUPPER (i))
8383       return 2;
8384   return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_run "$LINENO"; then :
8388
8389 else
8390   ac_cv_header_stdc=no
8391 fi
8392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8393   conftest.$ac_objext conftest.beam conftest.$ac_ext
8394 fi
8395
8396 fi
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8399 $as_echo "$ac_cv_header_stdc" >&6; }
8400 if test $ac_cv_header_stdc = yes; then
8401
8402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8403
8404 fi
8405
8406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8408                   inttypes.h stdint.h unistd.h
8409 do :
8410   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8412 "
8413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8414   cat >>confdefs.h <<_ACEOF
8415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416 _ACEOF
8417
8418 fi
8419
8420 done
8421
8422
8423 for ac_header in dlfcn.h
8424 do :
8425   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8426 "
8427 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8428   cat >>confdefs.h <<_ACEOF
8429 #define HAVE_DLFCN_H 1
8430 _ACEOF
8431
8432 fi
8433
8434 done
8435
8436
8437
8438
8439
8440 # Set options
8441 # Check whether --enable-static was given.
8442 if test "${enable_static+set}" = set; then :
8443   enableval=$enable_static; p=${PACKAGE-default}
8444     case $enableval in
8445     yes) enable_static=yes ;;
8446     no) enable_static=no ;;
8447     *)
8448      enable_static=no
8449       # Look at the argument we got.  We use all the common list separators.
8450       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8451       for pkg in $enableval; do
8452         IFS="$lt_save_ifs"
8453         if test "X$pkg" = "X$p"; then
8454           enable_static=yes
8455         fi
8456       done
8457       IFS="$lt_save_ifs"
8458       ;;
8459     esac
8460 else
8461   enable_static=no
8462 fi
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473         enable_dlopen=no
8474
8475
8476   enable_win32_dll=no
8477
8478
8479             # Check whether --enable-shared was given.
8480 if test "${enable_shared+set}" = set; then :
8481   enableval=$enable_shared; p=${PACKAGE-default}
8482     case $enableval in
8483     yes) enable_shared=yes ;;
8484     no) enable_shared=no ;;
8485     *)
8486       enable_shared=no
8487       # Look at the argument we got.  We use all the common list separators.
8488       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8489       for pkg in $enableval; do
8490         IFS="$lt_save_ifs"
8491         if test "X$pkg" = "X$p"; then
8492           enable_shared=yes
8493         fi
8494       done
8495       IFS="$lt_save_ifs"
8496       ;;
8497     esac
8498 else
8499   enable_shared=yes
8500 fi
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512 # Check whether --with-pic was given.
8513 if test "${with_pic+set}" = set; then :
8514   withval=$with_pic; lt_p=${PACKAGE-default}
8515     case $withval in
8516     yes|no) pic_mode=$withval ;;
8517     *)
8518       pic_mode=default
8519       # Look at the argument we got.  We use all the common list separators.
8520       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8521       for lt_pkg in $withval; do
8522         IFS="$lt_save_ifs"
8523         if test "X$lt_pkg" = "X$lt_p"; then
8524           pic_mode=yes
8525         fi
8526       done
8527       IFS="$lt_save_ifs"
8528       ;;
8529     esac
8530 else
8531   pic_mode=default
8532 fi
8533
8534
8535 test -z "$pic_mode" && pic_mode=default
8536
8537
8538
8539
8540
8541
8542
8543   # Check whether --enable-fast-install was given.
8544 if test "${enable_fast_install+set}" = set; then :
8545   enableval=$enable_fast_install; p=${PACKAGE-default}
8546     case $enableval in
8547     yes) enable_fast_install=yes ;;
8548     no) enable_fast_install=no ;;
8549     *)
8550       enable_fast_install=no
8551       # Look at the argument we got.  We use all the common list separators.
8552       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8553       for pkg in $enableval; do
8554         IFS="$lt_save_ifs"
8555         if test "X$pkg" = "X$p"; then
8556           enable_fast_install=yes
8557         fi
8558       done
8559       IFS="$lt_save_ifs"
8560       ;;
8561     esac
8562 else
8563   enable_fast_install=yes
8564 fi
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576 # This can be used to rebuild libtool when needed
8577 LIBTOOL_DEPS="$ltmain"
8578
8579 # Always use our own libtool.
8580 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611 test -z "$LN_S" && LN_S="ln -s"
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626 if test -n "${ZSH_VERSION+set}" ; then
8627    setopt NO_GLOB_SUBST
8628 fi
8629
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8631 $as_echo_n "checking for objdir... " >&6; }
8632 if ${lt_cv_objdir+:} false; then :
8633   $as_echo_n "(cached) " >&6
8634 else
8635   rm -f .libs 2>/dev/null
8636 mkdir .libs 2>/dev/null
8637 if test -d .libs; then
8638   lt_cv_objdir=.libs
8639 else
8640   # MS-DOS does not allow filenames that begin with a dot.
8641   lt_cv_objdir=_libs
8642 fi
8643 rmdir .libs 2>/dev/null
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8646 $as_echo "$lt_cv_objdir" >&6; }
8647 objdir=$lt_cv_objdir
8648
8649
8650
8651
8652
8653 cat >>confdefs.h <<_ACEOF
8654 #define LT_OBJDIR "$lt_cv_objdir/"
8655 _ACEOF
8656
8657
8658
8659
8660 case $host_os in
8661 aix3*)
8662   # AIX sometimes has problems with the GCC collect2 program.  For some
8663   # reason, if we set the COLLECT_NAMES environment variable, the problems
8664   # vanish in a puff of smoke.
8665   if test "X${COLLECT_NAMES+set}" != Xset; then
8666     COLLECT_NAMES=
8667     export COLLECT_NAMES
8668   fi
8669   ;;
8670 esac
8671
8672 # Global variables:
8673 ofile=libtool
8674 can_build_shared=yes
8675
8676 # All known linkers require a `.a' archive for static linking (except MSVC,
8677 # which needs '.lib').
8678 libext=a
8679
8680 with_gnu_ld="$lt_cv_prog_gnu_ld"
8681
8682 old_CC="$CC"
8683 old_CFLAGS="$CFLAGS"
8684
8685 # Set sane defaults for various variables
8686 test -z "$CC" && CC=cc
8687 test -z "$LTCC" && LTCC=$CC
8688 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8689 test -z "$LD" && LD=ld
8690 test -z "$ac_objext" && ac_objext=o
8691
8692 for cc_temp in $compiler""; do
8693   case $cc_temp in
8694     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8695     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8696     \-*) ;;
8697     *) break;;
8698   esac
8699 done
8700 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8701
8702
8703 # Only perform the check for file, if the check method requires it
8704 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8705 case $deplibs_check_method in
8706 file_magic*)
8707   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8709 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8710 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   case $MAGIC_CMD in
8714 [\\/*] |  ?:[\\/]*)
8715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8716   ;;
8717 *)
8718   lt_save_MAGIC_CMD="$MAGIC_CMD"
8719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8720   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8721   for ac_dir in $ac_dummy; do
8722     IFS="$lt_save_ifs"
8723     test -z "$ac_dir" && ac_dir=.
8724     if test -f $ac_dir/${ac_tool_prefix}file; then
8725       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8726       if test -n "$file_magic_test_file"; then
8727         case $deplibs_check_method in
8728         "file_magic "*)
8729           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8732             $EGREP "$file_magic_regex" > /dev/null; then
8733             :
8734           else
8735             cat <<_LT_EOF 1>&2
8736
8737 *** Warning: the command libtool uses to detect shared libraries,
8738 *** $file_magic_cmd, produces output that libtool cannot recognize.
8739 *** The result is that libtool may fail to recognize shared libraries
8740 *** as such.  This will affect the creation of libtool libraries that
8741 *** depend on shared libraries, but programs linked with such libtool
8742 *** libraries will work regardless of this problem.  Nevertheless, you
8743 *** may want to report the problem to your system manager and/or to
8744 *** bug-libtool@gnu.org
8745
8746 _LT_EOF
8747           fi ;;
8748         esac
8749       fi
8750       break
8751     fi
8752   done
8753   IFS="$lt_save_ifs"
8754   MAGIC_CMD="$lt_save_MAGIC_CMD"
8755   ;;
8756 esac
8757 fi
8758
8759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8760 if test -n "$MAGIC_CMD"; then
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8762 $as_echo "$MAGIC_CMD" >&6; }
8763 else
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 fi
8767
8768
8769
8770
8771
8772 if test -z "$lt_cv_path_MAGIC_CMD"; then
8773   if test -n "$ac_tool_prefix"; then
8774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8775 $as_echo_n "checking for file... " >&6; }
8776 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   case $MAGIC_CMD in
8780 [\\/*] |  ?:[\\/]*)
8781   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8782   ;;
8783 *)
8784   lt_save_MAGIC_CMD="$MAGIC_CMD"
8785   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8786   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8787   for ac_dir in $ac_dummy; do
8788     IFS="$lt_save_ifs"
8789     test -z "$ac_dir" && ac_dir=.
8790     if test -f $ac_dir/file; then
8791       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8792       if test -n "$file_magic_test_file"; then
8793         case $deplibs_check_method in
8794         "file_magic "*)
8795           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8796           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8797           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8798             $EGREP "$file_magic_regex" > /dev/null; then
8799             :
8800           else
8801             cat <<_LT_EOF 1>&2
8802
8803 *** Warning: the command libtool uses to detect shared libraries,
8804 *** $file_magic_cmd, produces output that libtool cannot recognize.
8805 *** The result is that libtool may fail to recognize shared libraries
8806 *** as such.  This will affect the creation of libtool libraries that
8807 *** depend on shared libraries, but programs linked with such libtool
8808 *** libraries will work regardless of this problem.  Nevertheless, you
8809 *** may want to report the problem to your system manager and/or to
8810 *** bug-libtool@gnu.org
8811
8812 _LT_EOF
8813           fi ;;
8814         esac
8815       fi
8816       break
8817     fi
8818   done
8819   IFS="$lt_save_ifs"
8820   MAGIC_CMD="$lt_save_MAGIC_CMD"
8821   ;;
8822 esac
8823 fi
8824
8825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8826 if test -n "$MAGIC_CMD"; then
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8828 $as_echo "$MAGIC_CMD" >&6; }
8829 else
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8832 fi
8833
8834
8835   else
8836     MAGIC_CMD=:
8837   fi
8838 fi
8839
8840   fi
8841   ;;
8842 esac
8843
8844 # Use C for the default configuration in the libtool script
8845
8846 lt_save_CC="$CC"
8847 ac_ext=c
8848 ac_cpp='$CPP $CPPFLAGS'
8849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8852
8853
8854 # Source file extension for C test sources.
8855 ac_ext=c
8856
8857 # Object file extension for compiled C test sources.
8858 objext=o
8859 objext=$objext
8860
8861 # Code to be used in simple compile tests
8862 lt_simple_compile_test_code="int some_variable = 0;"
8863
8864 # Code to be used in simple link tests
8865 lt_simple_link_test_code='int main(){return(0);}'
8866
8867
8868
8869
8870
8871
8872
8873 # If no C compiler was specified, use CC.
8874 LTCC=${LTCC-"$CC"}
8875
8876 # If no C compiler flags were specified, use CFLAGS.
8877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8878
8879 # Allow CC to be a program name with arguments.
8880 compiler=$CC
8881
8882 # Save the default compiler, since it gets overwritten when the other
8883 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8884 compiler_DEFAULT=$CC
8885
8886 # save warnings/boilerplate of simple test code
8887 ac_outfile=conftest.$ac_objext
8888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8890 _lt_compiler_boilerplate=`cat conftest.err`
8891 $RM conftest*
8892
8893 ac_outfile=conftest.$ac_objext
8894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896 _lt_linker_boilerplate=`cat conftest.err`
8897 $RM -r conftest*
8898
8899
8900 ## CAVEAT EMPTOR:
8901 ## There is no encapsulation within the following macros, do not change
8902 ## the running order or otherwise move them around unless you know exactly
8903 ## what you are doing...
8904 if test -n "$compiler"; then
8905
8906 lt_prog_compiler_no_builtin_flag=
8907
8908 if test "$GCC" = yes; then
8909   case $cc_basename in
8910   nvcc*)
8911     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8912   *)
8913     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8914   esac
8915
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8917 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8918 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   lt_cv_prog_compiler_rtti_exceptions=no
8922    ac_outfile=conftest.$ac_objext
8923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924    lt_compiler_flag="-fno-rtti -fno-exceptions"
8925    # Insert the option either (1) after the last *FLAGS variable, or
8926    # (2) before a word containing "conftest.", or (3) at the end.
8927    # Note that $ac_compile itself does not contain backslashes and begins
8928    # with a dollar sign (not a hyphen), so the echo should work correctly.
8929    # The option is referenced via a variable to avoid confusing sed.
8930    lt_compile=`echo "$ac_compile" | $SED \
8931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8933    -e 's:$: $lt_compiler_flag:'`
8934    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8935    (eval "$lt_compile" 2>conftest.err)
8936    ac_status=$?
8937    cat conftest.err >&5
8938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939    if (exit $ac_status) && test -s "$ac_outfile"; then
8940      # The compiler can only warn and ignore the option if not recognized
8941      # So say no if there are warnings other than the usual output.
8942      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8943      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8945        lt_cv_prog_compiler_rtti_exceptions=yes
8946      fi
8947    fi
8948    $RM conftest*
8949
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8952 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8953
8954 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8955     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8956 else
8957     :
8958 fi
8959
8960 fi
8961
8962
8963
8964
8965
8966
8967   lt_prog_compiler_wl=
8968 lt_prog_compiler_pic=
8969 lt_prog_compiler_static=
8970
8971
8972   if test "$GCC" = yes; then
8973     lt_prog_compiler_wl='-Wl,'
8974     lt_prog_compiler_static='-static'
8975
8976     case $host_os in
8977       aix*)
8978       # All AIX code is PIC.
8979       if test "$host_cpu" = ia64; then
8980         # AIX 5 now supports IA64 processor
8981         lt_prog_compiler_static='-Bstatic'
8982       fi
8983       ;;
8984
8985     amigaos*)
8986       case $host_cpu in
8987       powerpc)
8988             # see comment about AmigaOS4 .so support
8989             lt_prog_compiler_pic='-fPIC'
8990         ;;
8991       m68k)
8992             # FIXME: we need at least 68020 code to build shared libraries, but
8993             # adding the `-m68020' flag to GCC prevents building anything better,
8994             # like `-m68040'.
8995             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8996         ;;
8997       esac
8998       ;;
8999
9000     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9001       # PIC is the default for these OSes.
9002       ;;
9003
9004     mingw* | cygwin* | pw32* | os2* | cegcc*)
9005       # This hack is so that the source file can tell whether it is being
9006       # built for inclusion in a dll (and should export symbols for example).
9007       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9008       # (--disable-auto-import) libraries
9009       lt_prog_compiler_pic='-DDLL_EXPORT'
9010       ;;
9011
9012     darwin* | rhapsody*)
9013       # PIC is the default on this platform
9014       # Common symbols not allowed in MH_DYLIB files
9015       lt_prog_compiler_pic='-fno-common'
9016       ;;
9017
9018     haiku*)
9019       # PIC is the default for Haiku.
9020       # The "-static" flag exists, but is broken.
9021       lt_prog_compiler_static=
9022       ;;
9023
9024     hpux*)
9025       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9026       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9027       # sets the default TLS model and affects inlining.
9028       case $host_cpu in
9029       hppa*64*)
9030         # +Z the default
9031         ;;
9032       *)
9033         lt_prog_compiler_pic='-fPIC'
9034         ;;
9035       esac
9036       ;;
9037
9038     interix[3-9]*)
9039       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9040       # Instead, we relocate shared libraries at runtime.
9041       ;;
9042
9043     msdosdjgpp*)
9044       # Just because we use GCC doesn't mean we suddenly get shared libraries
9045       # on systems that don't support them.
9046       lt_prog_compiler_can_build_shared=no
9047       enable_shared=no
9048       ;;
9049
9050     *nto* | *qnx*)
9051       # QNX uses GNU C++, but need to define -shared option too, otherwise
9052       # it will coredump.
9053       lt_prog_compiler_pic='-fPIC -shared'
9054       ;;
9055
9056     sysv4*MP*)
9057       if test -d /usr/nec; then
9058         lt_prog_compiler_pic=-Kconform_pic
9059       fi
9060       ;;
9061
9062     *)
9063       lt_prog_compiler_pic='-fPIC'
9064       ;;
9065     esac
9066
9067     case $cc_basename in
9068     nvcc*) # Cuda Compiler Driver 2.2
9069       lt_prog_compiler_wl='-Xlinker '
9070       if test -n "$lt_prog_compiler_pic"; then
9071         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9072       fi
9073       ;;
9074     esac
9075   else
9076     # PORTME Check for flag to pass linker flags through the system compiler.
9077     case $host_os in
9078     aix*)
9079       lt_prog_compiler_wl='-Wl,'
9080       if test "$host_cpu" = ia64; then
9081         # AIX 5 now supports IA64 processor
9082         lt_prog_compiler_static='-Bstatic'
9083       else
9084         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9085       fi
9086       ;;
9087
9088     mingw* | cygwin* | pw32* | os2* | cegcc*)
9089       # This hack is so that the source file can tell whether it is being
9090       # built for inclusion in a dll (and should export symbols for example).
9091       lt_prog_compiler_pic='-DDLL_EXPORT'
9092       ;;
9093
9094     hpux9* | hpux10* | hpux11*)
9095       lt_prog_compiler_wl='-Wl,'
9096       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9097       # not for PA HP-UX.
9098       case $host_cpu in
9099       hppa*64*|ia64*)
9100         # +Z the default
9101         ;;
9102       *)
9103         lt_prog_compiler_pic='+Z'
9104         ;;
9105       esac
9106       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9107       lt_prog_compiler_static='${wl}-a ${wl}archive'
9108       ;;
9109
9110     irix5* | irix6* | nonstopux*)
9111       lt_prog_compiler_wl='-Wl,'
9112       # PIC (with -KPIC) is the default.
9113       lt_prog_compiler_static='-non_shared'
9114       ;;
9115
9116     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9117       case $cc_basename in
9118       # old Intel for x86_64 which still supported -KPIC.
9119       ecc*)
9120         lt_prog_compiler_wl='-Wl,'
9121         lt_prog_compiler_pic='-KPIC'
9122         lt_prog_compiler_static='-static'
9123         ;;
9124       # icc used to be incompatible with GCC.
9125       # ICC 10 doesn't accept -KPIC any more.
9126       icc* | ifort*)
9127         lt_prog_compiler_wl='-Wl,'
9128         lt_prog_compiler_pic='-fPIC'
9129         lt_prog_compiler_static='-static'
9130         ;;
9131       # Lahey Fortran 8.1.
9132       lf95*)
9133         lt_prog_compiler_wl='-Wl,'
9134         lt_prog_compiler_pic='--shared'
9135         lt_prog_compiler_static='--static'
9136         ;;
9137       nagfor*)
9138         # NAG Fortran compiler
9139         lt_prog_compiler_wl='-Wl,-Wl,,'
9140         lt_prog_compiler_pic='-PIC'
9141         lt_prog_compiler_static='-Bstatic'
9142         ;;
9143       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9144         # Portland Group compilers (*not* the Pentium gcc compiler,
9145         # which looks to be a dead project)
9146         lt_prog_compiler_wl='-Wl,'
9147         lt_prog_compiler_pic='-fpic'
9148         lt_prog_compiler_static='-Bstatic'
9149         ;;
9150       ccc*)
9151         lt_prog_compiler_wl='-Wl,'
9152         # All Alpha code is PIC.
9153         lt_prog_compiler_static='-non_shared'
9154         ;;
9155       xl* | bgxl* | bgf* | mpixl*)
9156         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9157         lt_prog_compiler_wl='-Wl,'
9158         lt_prog_compiler_pic='-qpic'
9159         lt_prog_compiler_static='-qstaticlink'
9160         ;;
9161       *)
9162         case `$CC -V 2>&1 | sed 5q` in
9163         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9164           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9165           lt_prog_compiler_pic='-KPIC'
9166           lt_prog_compiler_static='-Bstatic'
9167           lt_prog_compiler_wl=''
9168           ;;
9169         *Sun\ F* | *Sun*Fortran*)
9170           lt_prog_compiler_pic='-KPIC'
9171           lt_prog_compiler_static='-Bstatic'
9172           lt_prog_compiler_wl='-Qoption ld '
9173           ;;
9174         *Sun\ C*)
9175           # Sun C 5.9
9176           lt_prog_compiler_pic='-KPIC'
9177           lt_prog_compiler_static='-Bstatic'
9178           lt_prog_compiler_wl='-Wl,'
9179           ;;
9180         *Intel*\ [CF]*Compiler*)
9181           lt_prog_compiler_wl='-Wl,'
9182           lt_prog_compiler_pic='-fPIC'
9183           lt_prog_compiler_static='-static'
9184           ;;
9185         *Portland\ Group*)
9186           lt_prog_compiler_wl='-Wl,'
9187           lt_prog_compiler_pic='-fpic'
9188           lt_prog_compiler_static='-Bstatic'
9189           ;;
9190         esac
9191         ;;
9192       esac
9193       ;;
9194
9195     newsos6)
9196       lt_prog_compiler_pic='-KPIC'
9197       lt_prog_compiler_static='-Bstatic'
9198       ;;
9199
9200     *nto* | *qnx*)
9201       # QNX uses GNU C++, but need to define -shared option too, otherwise
9202       # it will coredump.
9203       lt_prog_compiler_pic='-fPIC -shared'
9204       ;;
9205
9206     osf3* | osf4* | osf5*)
9207       lt_prog_compiler_wl='-Wl,'
9208       # All OSF/1 code is PIC.
9209       lt_prog_compiler_static='-non_shared'
9210       ;;
9211
9212     rdos*)
9213       lt_prog_compiler_static='-non_shared'
9214       ;;
9215
9216     solaris*)
9217       lt_prog_compiler_pic='-KPIC'
9218       lt_prog_compiler_static='-Bstatic'
9219       case $cc_basename in
9220       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9221         lt_prog_compiler_wl='-Qoption ld ';;
9222       *)
9223         lt_prog_compiler_wl='-Wl,';;
9224       esac
9225       ;;
9226
9227     sunos4*)
9228       lt_prog_compiler_wl='-Qoption ld '
9229       lt_prog_compiler_pic='-PIC'
9230       lt_prog_compiler_static='-Bstatic'
9231       ;;
9232
9233     sysv4 | sysv4.2uw2* | sysv4.3*)
9234       lt_prog_compiler_wl='-Wl,'
9235       lt_prog_compiler_pic='-KPIC'
9236       lt_prog_compiler_static='-Bstatic'
9237       ;;
9238
9239     sysv4*MP*)
9240       if test -d /usr/nec ;then
9241         lt_prog_compiler_pic='-Kconform_pic'
9242         lt_prog_compiler_static='-Bstatic'
9243       fi
9244       ;;
9245
9246     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9247       lt_prog_compiler_wl='-Wl,'
9248       lt_prog_compiler_pic='-KPIC'
9249       lt_prog_compiler_static='-Bstatic'
9250       ;;
9251
9252     unicos*)
9253       lt_prog_compiler_wl='-Wl,'
9254       lt_prog_compiler_can_build_shared=no
9255       ;;
9256
9257     uts4*)
9258       lt_prog_compiler_pic='-pic'
9259       lt_prog_compiler_static='-Bstatic'
9260       ;;
9261
9262     *)
9263       lt_prog_compiler_can_build_shared=no
9264       ;;
9265     esac
9266   fi
9267
9268 case $host_os in
9269   # For platforms which do not support PIC, -DPIC is meaningless:
9270   *djgpp*)
9271     lt_prog_compiler_pic=
9272     ;;
9273   *)
9274     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9275     ;;
9276 esac
9277
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9279 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9280 if ${lt_cv_prog_compiler_pic+:} false; then :
9281   $as_echo_n "(cached) " >&6
9282 else
9283   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9286 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9287 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9288
9289 #
9290 # Check to make sure the PIC flag actually works.
9291 #
9292 if test -n "$lt_prog_compiler_pic"; then
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9294 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9295 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9296   $as_echo_n "(cached) " >&6
9297 else
9298   lt_cv_prog_compiler_pic_works=no
9299    ac_outfile=conftest.$ac_objext
9300    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9301    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9302    # Insert the option either (1) after the last *FLAGS variable, or
9303    # (2) before a word containing "conftest.", or (3) at the end.
9304    # Note that $ac_compile itself does not contain backslashes and begins
9305    # with a dollar sign (not a hyphen), so the echo should work correctly.
9306    # The option is referenced via a variable to avoid confusing sed.
9307    lt_compile=`echo "$ac_compile" | $SED \
9308    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310    -e 's:$: $lt_compiler_flag:'`
9311    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312    (eval "$lt_compile" 2>conftest.err)
9313    ac_status=$?
9314    cat conftest.err >&5
9315    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316    if (exit $ac_status) && test -s "$ac_outfile"; then
9317      # The compiler can only warn and ignore the option if not recognized
9318      # So say no if there are warnings other than the usual output.
9319      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9320      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9321      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9322        lt_cv_prog_compiler_pic_works=yes
9323      fi
9324    fi
9325    $RM conftest*
9326
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9329 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9330
9331 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9332     case $lt_prog_compiler_pic in
9333      "" | " "*) ;;
9334      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9335      esac
9336 else
9337     lt_prog_compiler_pic=
9338      lt_prog_compiler_can_build_shared=no
9339 fi
9340
9341 fi
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353 #
9354 # Check to make sure the static flag actually works.
9355 #
9356 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9358 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9359 if ${lt_cv_prog_compiler_static_works+:} false; then :
9360   $as_echo_n "(cached) " >&6
9361 else
9362   lt_cv_prog_compiler_static_works=no
9363    save_LDFLAGS="$LDFLAGS"
9364    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9365    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9366    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9367      # The linker can only warn and ignore the option if not recognized
9368      # So say no if there are warnings
9369      if test -s conftest.err; then
9370        # Append any errors to the config.log.
9371        cat conftest.err 1>&5
9372        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9373        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374        if diff conftest.exp conftest.er2 >/dev/null; then
9375          lt_cv_prog_compiler_static_works=yes
9376        fi
9377      else
9378        lt_cv_prog_compiler_static_works=yes
9379      fi
9380    fi
9381    $RM -r conftest*
9382    LDFLAGS="$save_LDFLAGS"
9383
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9386 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9387
9388 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9389     :
9390 else
9391     lt_prog_compiler_static=
9392 fi
9393
9394
9395
9396
9397
9398
9399
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9402 if ${lt_cv_prog_compiler_c_o+:} false; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   lt_cv_prog_compiler_c_o=no
9406    $RM -r conftest 2>/dev/null
9407    mkdir conftest
9408    cd conftest
9409    mkdir out
9410    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411
9412    lt_compiler_flag="-o out/conftest2.$ac_objext"
9413    # Insert the option either (1) after the last *FLAGS variable, or
9414    # (2) before a word containing "conftest.", or (3) at the end.
9415    # Note that $ac_compile itself does not contain backslashes and begins
9416    # with a dollar sign (not a hyphen), so the echo should work correctly.
9417    lt_compile=`echo "$ac_compile" | $SED \
9418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9420    -e 's:$: $lt_compiler_flag:'`
9421    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9422    (eval "$lt_compile" 2>out/conftest.err)
9423    ac_status=$?
9424    cat out/conftest.err >&5
9425    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9427    then
9428      # The compiler can only warn and ignore the option if not recognized
9429      # So say no if there are warnings
9430      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9431      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9432      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9433        lt_cv_prog_compiler_c_o=yes
9434      fi
9435    fi
9436    chmod u+w . 2>&5
9437    $RM conftest*
9438    # SGI C++ compiler will create directory out/ii_files/ for
9439    # template instantiation
9440    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9441    $RM out/* && rmdir out
9442    cd ..
9443    $RM -r conftest
9444    $RM conftest*
9445
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9448 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9449
9450
9451
9452
9453
9454
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9457 if ${lt_cv_prog_compiler_c_o+:} false; then :
9458   $as_echo_n "(cached) " >&6
9459 else
9460   lt_cv_prog_compiler_c_o=no
9461    $RM -r conftest 2>/dev/null
9462    mkdir conftest
9463    cd conftest
9464    mkdir out
9465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9466
9467    lt_compiler_flag="-o out/conftest2.$ac_objext"
9468    # Insert the option either (1) after the last *FLAGS variable, or
9469    # (2) before a word containing "conftest.", or (3) at the end.
9470    # Note that $ac_compile itself does not contain backslashes and begins
9471    # with a dollar sign (not a hyphen), so the echo should work correctly.
9472    lt_compile=`echo "$ac_compile" | $SED \
9473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9475    -e 's:$: $lt_compiler_flag:'`
9476    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9477    (eval "$lt_compile" 2>out/conftest.err)
9478    ac_status=$?
9479    cat out/conftest.err >&5
9480    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9482    then
9483      # The compiler can only warn and ignore the option if not recognized
9484      # So say no if there are warnings
9485      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9486      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9487      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9488        lt_cv_prog_compiler_c_o=yes
9489      fi
9490    fi
9491    chmod u+w . 2>&5
9492    $RM conftest*
9493    # SGI C++ compiler will create directory out/ii_files/ for
9494    # template instantiation
9495    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9496    $RM out/* && rmdir out
9497    cd ..
9498    $RM -r conftest
9499    $RM conftest*
9500
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9503 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9504
9505
9506
9507
9508 hard_links="nottested"
9509 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9510   # do not overwrite the value of need_locks provided by the user
9511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9512 $as_echo_n "checking if we can lock with hard links... " >&6; }
9513   hard_links=yes
9514   $RM conftest*
9515   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9516   touch conftest.a
9517   ln conftest.a conftest.b 2>&5 || hard_links=no
9518   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9520 $as_echo "$hard_links" >&6; }
9521   if test "$hard_links" = no; then
9522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9523 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9524     need_locks=warn
9525   fi
9526 else
9527   need_locks=no
9528 fi
9529
9530
9531
9532
9533
9534
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9537
9538   runpath_var=
9539   allow_undefined_flag=
9540   always_export_symbols=no
9541   archive_cmds=
9542   archive_expsym_cmds=
9543   compiler_needs_object=no
9544   enable_shared_with_static_runtimes=no
9545   export_dynamic_flag_spec=
9546   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9547   hardcode_automatic=no
9548   hardcode_direct=no
9549   hardcode_direct_absolute=no
9550   hardcode_libdir_flag_spec=
9551   hardcode_libdir_separator=
9552   hardcode_minus_L=no
9553   hardcode_shlibpath_var=unsupported
9554   inherit_rpath=no
9555   link_all_deplibs=unknown
9556   module_cmds=
9557   module_expsym_cmds=
9558   old_archive_from_new_cmds=
9559   old_archive_from_expsyms_cmds=
9560   thread_safe_flag_spec=
9561   whole_archive_flag_spec=
9562   # include_expsyms should be a list of space-separated symbols to be *always*
9563   # included in the symbol list
9564   include_expsyms=
9565   # exclude_expsyms can be an extended regexp of symbols to exclude
9566   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9567   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9568   # as well as any symbol that contains `d'.
9569   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9570   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9571   # platforms (ab)use it in PIC code, but their linkers get confused if
9572   # the symbol is explicitly referenced.  Since portable code cannot
9573   # rely on this symbol name, it's probably fine to never include it in
9574   # preloaded symbol tables.
9575   # Exclude shared library initialization/finalization symbols.
9576   extract_expsyms_cmds=
9577
9578   case $host_os in
9579   cygwin* | mingw* | pw32* | cegcc*)
9580     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9581     # When not using gcc, we currently assume that we are using
9582     # Microsoft Visual C++.
9583     if test "$GCC" != yes; then
9584       with_gnu_ld=no
9585     fi
9586     ;;
9587   interix*)
9588     # we just hope/assume this is gcc and not c89 (= MSVC++)
9589     with_gnu_ld=yes
9590     ;;
9591   openbsd*)
9592     with_gnu_ld=no
9593     ;;
9594   linux* | k*bsd*-gnu | gnu*)
9595     link_all_deplibs=no
9596     ;;
9597   esac
9598
9599   ld_shlibs=yes
9600
9601   # On some targets, GNU ld is compatible enough with the native linker
9602   # that we're better off using the native interface for both.
9603   lt_use_gnu_ld_interface=no
9604   if test "$with_gnu_ld" = yes; then
9605     case $host_os in
9606       aix*)
9607         # The AIX port of GNU ld has always aspired to compatibility
9608         # with the native linker.  However, as the warning in the GNU ld
9609         # block says, versions before 2.19.5* couldn't really create working
9610         # shared libraries, regardless of the interface used.
9611         case `$LD -v 2>&1` in
9612           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9613           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9614           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9615           *)
9616             lt_use_gnu_ld_interface=yes
9617             ;;
9618         esac
9619         ;;
9620       *)
9621         lt_use_gnu_ld_interface=yes
9622         ;;
9623     esac
9624   fi
9625
9626   if test "$lt_use_gnu_ld_interface" = yes; then
9627     # If archive_cmds runs LD, not CC, wlarc should be empty
9628     wlarc='${wl}'
9629
9630     # Set some defaults for GNU ld with shared library support. These
9631     # are reset later if shared libraries are not supported. Putting them
9632     # here allows them to be overridden if necessary.
9633     runpath_var=LD_RUN_PATH
9634     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9635     export_dynamic_flag_spec='${wl}--export-dynamic'
9636     # ancient GNU ld didn't support --whole-archive et. al.
9637     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9638       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9639     else
9640       whole_archive_flag_spec=
9641     fi
9642     supports_anon_versioning=no
9643     case `$LD -v 2>&1` in
9644       *GNU\ gold*) supports_anon_versioning=yes ;;
9645       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9646       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9647       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9648       *\ 2.11.*) ;; # other 2.11 versions
9649       *) supports_anon_versioning=yes ;;
9650     esac
9651
9652     # See if GNU ld supports shared libraries.
9653     case $host_os in
9654     aix[3-9]*)
9655       # On AIX/PPC, the GNU linker is very broken
9656       if test "$host_cpu" != ia64; then
9657         ld_shlibs=no
9658         cat <<_LT_EOF 1>&2
9659
9660 *** Warning: the GNU linker, at least up to release 2.19, is reported
9661 *** to be unable to reliably create shared libraries on AIX.
9662 *** Therefore, libtool is disabling shared libraries support.  If you
9663 *** really care for shared libraries, you may want to install binutils
9664 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9665 *** You will then need to restart the configuration process.
9666
9667 _LT_EOF
9668       fi
9669       ;;
9670
9671     amigaos*)
9672       case $host_cpu in
9673       powerpc)
9674             # see comment about AmigaOS4 .so support
9675             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676             archive_expsym_cmds=''
9677         ;;
9678       m68k)
9679             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)'
9680             hardcode_libdir_flag_spec='-L$libdir'
9681             hardcode_minus_L=yes
9682         ;;
9683       esac
9684       ;;
9685
9686     beos*)
9687       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9688         allow_undefined_flag=unsupported
9689         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9690         # support --undefined.  This deserves some investigation.  FIXME
9691         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9692       else
9693         ld_shlibs=no
9694       fi
9695       ;;
9696
9697     cygwin* | mingw* | pw32* | cegcc*)
9698       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9699       # as there is no search path for DLLs.
9700       hardcode_libdir_flag_spec='-L$libdir'
9701       export_dynamic_flag_spec='${wl}--export-all-symbols'
9702       allow_undefined_flag=unsupported
9703       always_export_symbols=no
9704       enable_shared_with_static_runtimes=yes
9705       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'
9706       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9707
9708       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9709         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9710         # If the export-symbols file already is a .def file (1st line
9711         # is EXPORTS), use it as is; otherwise, prepend...
9712         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9713           cp $export_symbols $output_objdir/$soname.def;
9714         else
9715           echo EXPORTS > $output_objdir/$soname.def;
9716           cat $export_symbols >> $output_objdir/$soname.def;
9717         fi~
9718         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9719       else
9720         ld_shlibs=no
9721       fi
9722       ;;
9723
9724     haiku*)
9725       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9726       link_all_deplibs=yes
9727       ;;
9728
9729     interix[3-9]*)
9730       hardcode_direct=no
9731       hardcode_shlibpath_var=no
9732       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9733       export_dynamic_flag_spec='${wl}-E'
9734       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9735       # Instead, shared libraries are loaded at an image base (0x10000000 by
9736       # default) and relocated if they conflict, which is a slow very memory
9737       # consuming and fragmenting process.  To avoid this, we pick a random,
9738       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9739       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9740       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9741       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'
9742       ;;
9743
9744     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9745       tmp_diet=no
9746       if test "$host_os" = linux-dietlibc; then
9747         case $cc_basename in
9748           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9749         esac
9750       fi
9751       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9752          && test "$tmp_diet" = no
9753       then
9754         tmp_addflag=' $pic_flag'
9755         tmp_sharedflag='-shared'
9756         case $cc_basename,$host_cpu in
9757         pgcc*)                          # Portland Group C compiler
9758           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'
9759           tmp_addflag=' $pic_flag'
9760           ;;
9761         pgf77* | pgf90* | pgf95* | pgfortran*)
9762                                         # Portland Group f77 and f90 compilers
9763           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'
9764           tmp_addflag=' $pic_flag -Mnomain' ;;
9765         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9766           tmp_addflag=' -i_dynamic' ;;
9767         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9768           tmp_addflag=' -i_dynamic -nofor_main' ;;
9769         ifc* | ifort*)                  # Intel Fortran compiler
9770           tmp_addflag=' -nofor_main' ;;
9771         lf95*)                          # Lahey Fortran 8.1
9772           whole_archive_flag_spec=
9773           tmp_sharedflag='--shared' ;;
9774         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9775           tmp_sharedflag='-qmkshrobj'
9776           tmp_addflag= ;;
9777         nvcc*)  # Cuda Compiler Driver 2.2
9778           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'
9779           compiler_needs_object=yes
9780           ;;
9781         esac
9782         case `$CC -V 2>&1 | sed 5q` in
9783         *Sun\ C*)                       # Sun C 5.9
9784           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'
9785           compiler_needs_object=yes
9786           tmp_sharedflag='-G' ;;
9787         *Sun\ F*)                       # Sun Fortran 8.3
9788           tmp_sharedflag='-G' ;;
9789         esac
9790         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9791
9792         if test "x$supports_anon_versioning" = xyes; then
9793           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9794             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9795             echo "local: *; };" >> $output_objdir/$libname.ver~
9796             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9797         fi
9798
9799         case $cc_basename in
9800         xlf* | bgf* | bgxlf* | mpixlf*)
9801           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9802           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9803           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9805           if test "x$supports_anon_versioning" = xyes; then
9806             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9807               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9808               echo "local: *; };" >> $output_objdir/$libname.ver~
9809               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9810           fi
9811           ;;
9812         esac
9813       else
9814         ld_shlibs=no
9815       fi
9816       ;;
9817
9818     netbsd* | netbsdelf*-gnu)
9819       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9820         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9821         wlarc=
9822       else
9823         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9825       fi
9826       ;;
9827
9828     solaris*)
9829       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9830         ld_shlibs=no
9831         cat <<_LT_EOF 1>&2
9832
9833 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9834 *** create shared libraries on Solaris systems.  Therefore, libtool
9835 *** is disabling shared libraries support.  We urge you to upgrade GNU
9836 *** binutils to release 2.9.1 or newer.  Another option is to modify
9837 *** your PATH or compiler configuration so that the native linker is
9838 *** used, and then restart.
9839
9840 _LT_EOF
9841       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9842         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9844       else
9845         ld_shlibs=no
9846       fi
9847       ;;
9848
9849     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9850       case `$LD -v 2>&1` in
9851         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9852         ld_shlibs=no
9853         cat <<_LT_EOF 1>&2
9854
9855 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9856 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9857 *** is disabling shared libraries support.  We urge you to upgrade GNU
9858 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9859 *** your PATH or compiler configuration so that the native linker is
9860 *** used, and then restart.
9861
9862 _LT_EOF
9863         ;;
9864         *)
9865           # For security reasons, it is highly recommended that you always
9866           # use absolute paths for naming shared libraries, and exclude the
9867           # DT_RUNPATH tag from executables and libraries.  But doing so
9868           # requires that you compile everything twice, which is a pain.
9869           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9870             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9871             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9872             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9873           else
9874             ld_shlibs=no
9875           fi
9876         ;;
9877       esac
9878       ;;
9879
9880     sunos4*)
9881       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882       wlarc=
9883       hardcode_direct=yes
9884       hardcode_shlibpath_var=no
9885       ;;
9886
9887     *)
9888       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9889         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9891       else
9892         ld_shlibs=no
9893       fi
9894       ;;
9895     esac
9896
9897     if test "$ld_shlibs" = no; then
9898       runpath_var=
9899       hardcode_libdir_flag_spec=
9900       export_dynamic_flag_spec=
9901       whole_archive_flag_spec=
9902     fi
9903   else
9904     # PORTME fill in a description of your system's linker (not GNU ld)
9905     case $host_os in
9906     aix3*)
9907       allow_undefined_flag=unsupported
9908       always_export_symbols=yes
9909       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'
9910       # Note: this linker hardcodes the directories in LIBPATH if there
9911       # are no directories specified by -L.
9912       hardcode_minus_L=yes
9913       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9914         # Neither direct hardcoding nor static linking is supported with a
9915         # broken collect2.
9916         hardcode_direct=unsupported
9917       fi
9918       ;;
9919
9920     aix[4-9]*)
9921       if test "$host_cpu" = ia64; then
9922         # On IA64, the linker does run time linking by default, so we don't
9923         # have to do anything special.
9924         aix_use_runtimelinking=no
9925         exp_sym_flag='-Bexport'
9926         no_entry_flag=""
9927       else
9928         # If we're using GNU nm, then we don't want the "-C" option.
9929         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9930         # Also, AIX nm treats weak defined symbols like other global
9931         # defined symbols, whereas GNU nm marks them as "W".
9932         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9933           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9934         else
9935           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9936         fi
9937         aix_use_runtimelinking=no
9938
9939         # Test if we are trying to use run time linking or normal
9940         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9941         # need to do runtime linking.
9942         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9943           for ld_flag in $LDFLAGS; do
9944           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9945             aix_use_runtimelinking=yes
9946             break
9947           fi
9948           done
9949           ;;
9950         esac
9951
9952         exp_sym_flag='-bexport'
9953         no_entry_flag='-bnoentry'
9954       fi
9955
9956       # When large executables or shared objects are built, AIX ld can
9957       # have problems creating the table of contents.  If linking a library
9958       # or program results in "error TOC overflow" add -mminimal-toc to
9959       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9960       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9961
9962       archive_cmds=''
9963       hardcode_direct=yes
9964       hardcode_direct_absolute=yes
9965       hardcode_libdir_separator=':'
9966       link_all_deplibs=yes
9967       file_list_spec='${wl}-f,'
9968
9969       if test "$GCC" = yes; then
9970         case $host_os in aix4.[012]|aix4.[012].*)
9971         # We only want to do this on AIX 4.2 and lower, the check
9972         # below for broken collect2 doesn't work under 4.3+
9973           collect2name=`${CC} -print-prog-name=collect2`
9974           if test -f "$collect2name" &&
9975            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9976           then
9977           # We have reworked collect2
9978           :
9979           else
9980           # We have old collect2
9981           hardcode_direct=unsupported
9982           # It fails to find uninstalled libraries when the uninstalled
9983           # path is not listed in the libpath.  Setting hardcode_minus_L
9984           # to unsupported forces relinking
9985           hardcode_minus_L=yes
9986           hardcode_libdir_flag_spec='-L$libdir'
9987           hardcode_libdir_separator=
9988           fi
9989           ;;
9990         esac
9991         shared_flag='-shared'
9992         if test "$aix_use_runtimelinking" = yes; then
9993           shared_flag="$shared_flag "'${wl}-G'
9994         fi
9995         link_all_deplibs=no
9996       else
9997         # not using gcc
9998         if test "$host_cpu" = ia64; then
9999         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10000         # chokes on -Wl,-G. The following line is correct:
10001           shared_flag='-G'
10002         else
10003           if test "$aix_use_runtimelinking" = yes; then
10004             shared_flag='${wl}-G'
10005           else
10006             shared_flag='${wl}-bM:SRE'
10007           fi
10008         fi
10009       fi
10010
10011       export_dynamic_flag_spec='${wl}-bexpall'
10012       # It seems that -bexpall does not export symbols beginning with
10013       # underscore (_), so it is better to generate a list of symbols to export.
10014       always_export_symbols=yes
10015       if test "$aix_use_runtimelinking" = yes; then
10016         # Warning - without using the other runtime loading flags (-brtl),
10017         # -berok will link without error, but may produce a broken library.
10018         allow_undefined_flag='-berok'
10019         # Determine the default libpath from the value encoded in an
10020         # empty executable.
10021         if test "${lt_cv_aix_libpath+set}" = set; then
10022   aix_libpath=$lt_cv_aix_libpath
10023 else
10024   if ${lt_cv_aix_libpath_+:} false; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h.  */
10029
10030 int
10031 main ()
10032 {
10033
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039
10040   lt_aix_libpath_sed='
10041       /Import File Strings/,/^$/ {
10042           /^0/ {
10043               s/^0  *\([^ ]*\) *$/\1/
10044               p
10045           }
10046       }'
10047   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10048   # Check for a 64-bit object if we didn't find anything.
10049   if test -z "$lt_cv_aix_libpath_"; then
10050     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10051   fi
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext \
10054     conftest$ac_exeext conftest.$ac_ext
10055   if test -z "$lt_cv_aix_libpath_"; then
10056     lt_cv_aix_libpath_="/usr/lib:/lib"
10057   fi
10058
10059 fi
10060
10061   aix_libpath=$lt_cv_aix_libpath_
10062 fi
10063
10064         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10065         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10066       else
10067         if test "$host_cpu" = ia64; then
10068           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10069           allow_undefined_flag="-z nodefs"
10070           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"
10071         else
10072          # Determine the default libpath from the value encoded in an
10073          # empty executable.
10074          if test "${lt_cv_aix_libpath+set}" = set; then
10075   aix_libpath=$lt_cv_aix_libpath
10076 else
10077   if ${lt_cv_aix_libpath_+:} false; then :
10078   $as_echo_n "(cached) " >&6
10079 else
10080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h.  */
10082
10083 int
10084 main ()
10085 {
10086
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10092
10093   lt_aix_libpath_sed='
10094       /Import File Strings/,/^$/ {
10095           /^0/ {
10096               s/^0  *\([^ ]*\) *$/\1/
10097               p
10098           }
10099       }'
10100   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101   # Check for a 64-bit object if we didn't find anything.
10102   if test -z "$lt_cv_aix_libpath_"; then
10103     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10104   fi
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext \
10107     conftest$ac_exeext conftest.$ac_ext
10108   if test -z "$lt_cv_aix_libpath_"; then
10109     lt_cv_aix_libpath_="/usr/lib:/lib"
10110   fi
10111
10112 fi
10113
10114   aix_libpath=$lt_cv_aix_libpath_
10115 fi
10116
10117          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10118           # Warning - without using the other run time loading flags,
10119           # -berok will link without error, but may produce a broken library.
10120           no_undefined_flag=' ${wl}-bernotok'
10121           allow_undefined_flag=' ${wl}-berok'
10122           if test "$with_gnu_ld" = yes; then
10123             # We only use this code for GNU lds that support --whole-archive.
10124             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10125           else
10126             # Exported symbols can be pulled into shared objects from archives
10127             whole_archive_flag_spec='$convenience'
10128           fi
10129           archive_cmds_need_lc=yes
10130           # This is similar to how AIX traditionally builds its shared libraries.
10131           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10132         fi
10133       fi
10134       ;;
10135
10136     amigaos*)
10137       case $host_cpu in
10138       powerpc)
10139             # see comment about AmigaOS4 .so support
10140             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141             archive_expsym_cmds=''
10142         ;;
10143       m68k)
10144             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)'
10145             hardcode_libdir_flag_spec='-L$libdir'
10146             hardcode_minus_L=yes
10147         ;;
10148       esac
10149       ;;
10150
10151     bsdi[45]*)
10152       export_dynamic_flag_spec=-rdynamic
10153       ;;
10154
10155     cygwin* | mingw* | pw32* | cegcc*)
10156       # When not using gcc, we currently assume that we are using
10157       # Microsoft Visual C++.
10158       # hardcode_libdir_flag_spec is actually meaningless, as there is
10159       # no search path for DLLs.
10160       case $cc_basename in
10161       cl*)
10162         # Native MSVC
10163         hardcode_libdir_flag_spec=' '
10164         allow_undefined_flag=unsupported
10165         always_export_symbols=yes
10166         file_list_spec='@'
10167         # Tell ltmain to make .lib files, not .a files.
10168         libext=lib
10169         # Tell ltmain to make .dll files, not .so files.
10170         shrext_cmds=".dll"
10171         # FIXME: Setting linknames here is a bad hack.
10172         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10173         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10174             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10175           else
10176             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10177           fi~
10178           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10179           linknames='
10180         # The linker will not automatically build a static lib if we build a DLL.
10181         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10182         enable_shared_with_static_runtimes=yes
10183         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10184         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10185         # Don't use ranlib
10186         old_postinstall_cmds='chmod 644 $oldlib'
10187         postlink_cmds='lt_outputfile="@OUTPUT@"~
10188           lt_tool_outputfile="@TOOL_OUTPUT@"~
10189           case $lt_outputfile in
10190             *.exe|*.EXE) ;;
10191             *)
10192               lt_outputfile="$lt_outputfile.exe"
10193               lt_tool_outputfile="$lt_tool_outputfile.exe"
10194               ;;
10195           esac~
10196           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10197             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10198             $RM "$lt_outputfile.manifest";
10199           fi'
10200         ;;
10201       *)
10202         # Assume MSVC wrapper
10203         hardcode_libdir_flag_spec=' '
10204         allow_undefined_flag=unsupported
10205         # Tell ltmain to make .lib files, not .a files.
10206         libext=lib
10207         # Tell ltmain to make .dll files, not .so files.
10208         shrext_cmds=".dll"
10209         # FIXME: Setting linknames here is a bad hack.
10210         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10211         # The linker will automatically build a .lib file if we build a DLL.
10212         old_archive_from_new_cmds='true'
10213         # FIXME: Should let the user specify the lib program.
10214         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10215         enable_shared_with_static_runtimes=yes
10216         ;;
10217       esac
10218       ;;
10219
10220     darwin* | rhapsody*)
10221
10222
10223   archive_cmds_need_lc=no
10224   hardcode_direct=no
10225   hardcode_automatic=yes
10226   hardcode_shlibpath_var=unsupported
10227   if test "$lt_cv_ld_force_load" = "yes"; then
10228     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\"`'
10229
10230   else
10231     whole_archive_flag_spec=''
10232   fi
10233   link_all_deplibs=yes
10234   allow_undefined_flag="$_lt_dar_allow_undefined"
10235   case $cc_basename in
10236      ifort*) _lt_dar_can_shared=yes ;;
10237      *) _lt_dar_can_shared=$GCC ;;
10238   esac
10239   if test "$_lt_dar_can_shared" = "yes"; then
10240     output_verbose_link_cmd=func_echo_all
10241     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10242     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10243     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}"
10244     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}"
10245
10246   else
10247   ld_shlibs=no
10248   fi
10249
10250       ;;
10251
10252     dgux*)
10253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254       hardcode_libdir_flag_spec='-L$libdir'
10255       hardcode_shlibpath_var=no
10256       ;;
10257
10258     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10259     # support.  Future versions do this automatically, but an explicit c++rt0.o
10260     # does not break anything, and helps significantly (at the cost of a little
10261     # extra space).
10262     freebsd2.2*)
10263       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10264       hardcode_libdir_flag_spec='-R$libdir'
10265       hardcode_direct=yes
10266       hardcode_shlibpath_var=no
10267       ;;
10268
10269     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10270     freebsd2.*)
10271       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10272       hardcode_direct=yes
10273       hardcode_minus_L=yes
10274       hardcode_shlibpath_var=no
10275       ;;
10276
10277     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10278     freebsd* | dragonfly*)
10279       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10280       hardcode_libdir_flag_spec='-R$libdir'
10281       hardcode_direct=yes
10282       hardcode_shlibpath_var=no
10283       ;;
10284
10285     hpux9*)
10286       if test "$GCC" = yes; then
10287         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10288       else
10289         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10290       fi
10291       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10292       hardcode_libdir_separator=:
10293       hardcode_direct=yes
10294
10295       # hardcode_minus_L: Not really in the search PATH,
10296       # but as the default location of the library.
10297       hardcode_minus_L=yes
10298       export_dynamic_flag_spec='${wl}-E'
10299       ;;
10300
10301     hpux10*)
10302       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10303         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304       else
10305         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10306       fi
10307       if test "$with_gnu_ld" = no; then
10308         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309         hardcode_libdir_separator=:
10310         hardcode_direct=yes
10311         hardcode_direct_absolute=yes
10312         export_dynamic_flag_spec='${wl}-E'
10313         # hardcode_minus_L: Not really in the search PATH,
10314         # but as the default location of the library.
10315         hardcode_minus_L=yes
10316       fi
10317       ;;
10318
10319     hpux11*)
10320       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10321         case $host_cpu in
10322         hppa*64*)
10323           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10324           ;;
10325         ia64*)
10326           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10327           ;;
10328         *)
10329           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10330           ;;
10331         esac
10332       else
10333         case $host_cpu in
10334         hppa*64*)
10335           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10336           ;;
10337         ia64*)
10338           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10339           ;;
10340         *)
10341
10342           # Older versions of the 11.00 compiler do not understand -b yet
10343           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10344           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10345 $as_echo_n "checking if $CC understands -b... " >&6; }
10346 if ${lt_cv_prog_compiler__b+:} false; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349   lt_cv_prog_compiler__b=no
10350    save_LDFLAGS="$LDFLAGS"
10351    LDFLAGS="$LDFLAGS -b"
10352    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10353    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10354      # The linker can only warn and ignore the option if not recognized
10355      # So say no if there are warnings
10356      if test -s conftest.err; then
10357        # Append any errors to the config.log.
10358        cat conftest.err 1>&5
10359        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10360        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10361        if diff conftest.exp conftest.er2 >/dev/null; then
10362          lt_cv_prog_compiler__b=yes
10363        fi
10364      else
10365        lt_cv_prog_compiler__b=yes
10366      fi
10367    fi
10368    $RM -r conftest*
10369    LDFLAGS="$save_LDFLAGS"
10370
10371 fi
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10373 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10374
10375 if test x"$lt_cv_prog_compiler__b" = xyes; then
10376     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10377 else
10378     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10379 fi
10380
10381           ;;
10382         esac
10383       fi
10384       if test "$with_gnu_ld" = no; then
10385         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10386         hardcode_libdir_separator=:
10387
10388         case $host_cpu in
10389         hppa*64*|ia64*)
10390           hardcode_direct=no
10391           hardcode_shlibpath_var=no
10392           ;;
10393         *)
10394           hardcode_direct=yes
10395           hardcode_direct_absolute=yes
10396           export_dynamic_flag_spec='${wl}-E'
10397
10398           # hardcode_minus_L: Not really in the search PATH,
10399           # but as the default location of the library.
10400           hardcode_minus_L=yes
10401           ;;
10402         esac
10403       fi
10404       ;;
10405
10406     irix5* | irix6* | nonstopux*)
10407       if test "$GCC" = yes; then
10408         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'
10409         # Try to use the -exported_symbol ld option, if it does not
10410         # work, assume that -exports_file does not work either and
10411         # implicitly export all symbols.
10412         # This should be the same for all languages, so no per-tag cache variable.
10413         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10414 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10415 if ${lt_cv_irix_exported_symbol+:} false; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   save_LDFLAGS="$LDFLAGS"
10419            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10420            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h.  */
10422 int foo (void) { return 0; }
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"; then :
10425   lt_cv_irix_exported_symbol=yes
10426 else
10427   lt_cv_irix_exported_symbol=no
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext \
10430     conftest$ac_exeext conftest.$ac_ext
10431            LDFLAGS="$save_LDFLAGS"
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10434 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10435         if test "$lt_cv_irix_exported_symbol" = yes; then
10436           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'
10437         fi
10438       else
10439         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'
10440         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'
10441       fi
10442       archive_cmds_need_lc='no'
10443       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10444       hardcode_libdir_separator=:
10445       inherit_rpath=yes
10446       link_all_deplibs=yes
10447       ;;
10448
10449     netbsd* | netbsdelf*-gnu)
10450       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10451         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10452       else
10453         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10454       fi
10455       hardcode_libdir_flag_spec='-R$libdir'
10456       hardcode_direct=yes
10457       hardcode_shlibpath_var=no
10458       ;;
10459
10460     newsos6)
10461       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462       hardcode_direct=yes
10463       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10464       hardcode_libdir_separator=:
10465       hardcode_shlibpath_var=no
10466       ;;
10467
10468     *nto* | *qnx*)
10469       ;;
10470
10471     openbsd*)
10472       if test -f /usr/libexec/ld.so; then
10473         hardcode_direct=yes
10474         hardcode_shlibpath_var=no
10475         hardcode_direct_absolute=yes
10476         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10477           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10478           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10479           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10480           export_dynamic_flag_spec='${wl}-E'
10481         else
10482           case $host_os in
10483            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10484              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10485              hardcode_libdir_flag_spec='-R$libdir'
10486              ;;
10487            *)
10488              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10489              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10490              ;;
10491           esac
10492         fi
10493       else
10494         ld_shlibs=no
10495       fi
10496       ;;
10497
10498     os2*)
10499       hardcode_libdir_flag_spec='-L$libdir'
10500       hardcode_minus_L=yes
10501       allow_undefined_flag=unsupported
10502       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10503       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10504       ;;
10505
10506     osf3*)
10507       if test "$GCC" = yes; then
10508         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10509         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'
10510       else
10511         allow_undefined_flag=' -expect_unresolved \*'
10512         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'
10513       fi
10514       archive_cmds_need_lc='no'
10515       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10516       hardcode_libdir_separator=:
10517       ;;
10518
10519     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10520       if test "$GCC" = yes; then
10521         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10522         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'
10523         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10524       else
10525         allow_undefined_flag=' -expect_unresolved \*'
10526         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'
10527         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~
10528         $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'
10529
10530         # Both c and cxx compiler support -rpath directly
10531         hardcode_libdir_flag_spec='-rpath $libdir'
10532       fi
10533       archive_cmds_need_lc='no'
10534       hardcode_libdir_separator=:
10535       ;;
10536
10537     solaris*)
10538       no_undefined_flag=' -z defs'
10539       if test "$GCC" = yes; then
10540         wlarc='${wl}'
10541         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10542         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10543           $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'
10544       else
10545         case `$CC -V 2>&1` in
10546         *"Compilers 5.0"*)
10547           wlarc=''
10548           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10549           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10550           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10551           ;;
10552         *)
10553           wlarc='${wl}'
10554           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10555           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10556           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10557           ;;
10558         esac
10559       fi
10560       hardcode_libdir_flag_spec='-R$libdir'
10561       hardcode_shlibpath_var=no
10562       case $host_os in
10563       solaris2.[0-5] | solaris2.[0-5].*) ;;
10564       *)
10565         # The compiler driver will combine and reorder linker options,
10566         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10567         # but is careful enough not to reorder.
10568         # Supported since Solaris 2.6 (maybe 2.5.1?)
10569         if test "$GCC" = yes; then
10570           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10571         else
10572           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10573         fi
10574         ;;
10575       esac
10576       link_all_deplibs=yes
10577       ;;
10578
10579     sunos4*)
10580       if test "x$host_vendor" = xsequent; then
10581         # Use $CC to link under sequent, because it throws in some extra .o
10582         # files that make .init and .fini sections work.
10583         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10584       else
10585         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10586       fi
10587       hardcode_libdir_flag_spec='-L$libdir'
10588       hardcode_direct=yes
10589       hardcode_minus_L=yes
10590       hardcode_shlibpath_var=no
10591       ;;
10592
10593     sysv4)
10594       case $host_vendor in
10595         sni)
10596           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10597           hardcode_direct=yes # is this really true???
10598         ;;
10599         siemens)
10600           ## LD is ld it makes a PLAMLIB
10601           ## CC just makes a GrossModule.
10602           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10603           reload_cmds='$CC -r -o $output$reload_objs'
10604           hardcode_direct=no
10605         ;;
10606         motorola)
10607           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10609         ;;
10610       esac
10611       runpath_var='LD_RUN_PATH'
10612       hardcode_shlibpath_var=no
10613       ;;
10614
10615     sysv4.3*)
10616       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617       hardcode_shlibpath_var=no
10618       export_dynamic_flag_spec='-Bexport'
10619       ;;
10620
10621     sysv4*MP*)
10622       if test -d /usr/nec; then
10623         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624         hardcode_shlibpath_var=no
10625         runpath_var=LD_RUN_PATH
10626         hardcode_runpath_var=yes
10627         ld_shlibs=yes
10628       fi
10629       ;;
10630
10631     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10632       no_undefined_flag='${wl}-z,text'
10633       archive_cmds_need_lc=no
10634       hardcode_shlibpath_var=no
10635       runpath_var='LD_RUN_PATH'
10636
10637       if test "$GCC" = yes; then
10638         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640       else
10641         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643       fi
10644       ;;
10645
10646     sysv5* | sco3.2v5* | sco5v6*)
10647       # Note: We can NOT use -z defs as we might desire, because we do not
10648       # link with -lc, and that would cause any symbols used from libc to
10649       # always be unresolved, which means just about no library would
10650       # ever link correctly.  If we're not using GNU ld we use -z text
10651       # though, which does catch some bad symbols but isn't as heavy-handed
10652       # as -z defs.
10653       no_undefined_flag='${wl}-z,text'
10654       allow_undefined_flag='${wl}-z,nodefs'
10655       archive_cmds_need_lc=no
10656       hardcode_shlibpath_var=no
10657       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10658       hardcode_libdir_separator=':'
10659       link_all_deplibs=yes
10660       export_dynamic_flag_spec='${wl}-Bexport'
10661       runpath_var='LD_RUN_PATH'
10662
10663       if test "$GCC" = yes; then
10664         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666       else
10667         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669       fi
10670       ;;
10671
10672     uts4*)
10673       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674       hardcode_libdir_flag_spec='-L$libdir'
10675       hardcode_shlibpath_var=no
10676       ;;
10677
10678     *)
10679       ld_shlibs=no
10680       ;;
10681     esac
10682
10683     if test x$host_vendor = xsni; then
10684       case $host in
10685       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10686         export_dynamic_flag_spec='${wl}-Blargedynsym'
10687         ;;
10688       esac
10689     fi
10690   fi
10691
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10693 $as_echo "$ld_shlibs" >&6; }
10694 test "$ld_shlibs" = no && can_build_shared=no
10695
10696 with_gnu_ld=$with_gnu_ld
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712 #
10713 # Do we need to explicitly link libc?
10714 #
10715 case "x$archive_cmds_need_lc" in
10716 x|xyes)
10717   # Assume -lc should be added
10718   archive_cmds_need_lc=yes
10719
10720   if test "$enable_shared" = yes && test "$GCC" = yes; then
10721     case $archive_cmds in
10722     *'~'*)
10723       # FIXME: we may have to deal with multi-command sequences.
10724       ;;
10725     '$CC '*)
10726       # Test whether the compiler implicitly links with -lc since on some
10727       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10728       # to ld, don't add -lc before -lgcc.
10729       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10730 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10731 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10732   $as_echo_n "(cached) " >&6
10733 else
10734   $RM conftest*
10735         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10736
10737         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10738   (eval $ac_compile) 2>&5
10739   ac_status=$?
10740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10741   test $ac_status = 0; } 2>conftest.err; then
10742           soname=conftest
10743           lib=conftest
10744           libobjs=conftest.$ac_objext
10745           deplibs=
10746           wl=$lt_prog_compiler_wl
10747           pic_flag=$lt_prog_compiler_pic
10748           compiler_flags=-v
10749           linker_flags=-v
10750           verstring=
10751           output_objdir=.
10752           libname=conftest
10753           lt_save_allow_undefined_flag=$allow_undefined_flag
10754           allow_undefined_flag=
10755           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10756   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10757   ac_status=$?
10758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10759   test $ac_status = 0; }
10760           then
10761             lt_cv_archive_cmds_need_lc=no
10762           else
10763             lt_cv_archive_cmds_need_lc=yes
10764           fi
10765           allow_undefined_flag=$lt_save_allow_undefined_flag
10766         else
10767           cat conftest.err 1>&5
10768         fi
10769         $RM conftest*
10770
10771 fi
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10773 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10774       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10775       ;;
10776     esac
10777   fi
10778   ;;
10779 esac
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10933 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10934
10935 if test "$GCC" = yes; then
10936   case $host_os in
10937     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10938     *) lt_awk_arg="/^libraries:/" ;;
10939   esac
10940   case $host_os in
10941     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10942     *) lt_sed_strip_eq="s,=/,/,g" ;;
10943   esac
10944   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10945   case $lt_search_path_spec in
10946   *\;*)
10947     # if the path contains ";" then we assume it to be the separator
10948     # otherwise default to the standard path separator (i.e. ":") - it is
10949     # assumed that no part of a normal pathname contains ";" but that should
10950     # okay in the real world where ";" in dirpaths is itself problematic.
10951     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10952     ;;
10953   *)
10954     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10955     ;;
10956   esac
10957   # Ok, now we have the path, separated by spaces, we can step through it
10958   # and add multilib dir if necessary.
10959   lt_tmp_lt_search_path_spec=
10960   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10961   for lt_sys_path in $lt_search_path_spec; do
10962     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10963       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10964     else
10965       test -d "$lt_sys_path" && \
10966         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10967     fi
10968   done
10969   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10970 BEGIN {RS=" "; FS="/|\n";} {
10971   lt_foo="";
10972   lt_count=0;
10973   for (lt_i = NF; lt_i > 0; lt_i--) {
10974     if ($lt_i != "" && $lt_i != ".") {
10975       if ($lt_i == "..") {
10976         lt_count++;
10977       } else {
10978         if (lt_count == 0) {
10979           lt_foo="/" $lt_i lt_foo;
10980         } else {
10981           lt_count--;
10982         }
10983       }
10984     }
10985   }
10986   if (lt_foo != "") { lt_freq[lt_foo]++; }
10987   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10988 }'`
10989   # AWK program above erroneously prepends '/' to C:/dos/paths
10990   # for these hosts.
10991   case $host_os in
10992     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10993       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10994   esac
10995   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10996 else
10997   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10998 fi
10999 library_names_spec=
11000 libname_spec='lib$name'
11001 soname_spec=
11002 shrext_cmds=".so"
11003 postinstall_cmds=
11004 postuninstall_cmds=
11005 finish_cmds=
11006 finish_eval=
11007 shlibpath_var=
11008 shlibpath_overrides_runpath=unknown
11009 version_type=none
11010 dynamic_linker="$host_os ld.so"
11011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11012 need_lib_prefix=unknown
11013 hardcode_into_libs=no
11014
11015 # when you set need_version to no, make sure it does not cause -set_version
11016 # flags to be left without arguments
11017 need_version=unknown
11018
11019 case $host_os in
11020 aix3*)
11021   version_type=linux # correct to gnu/linux during the next big refactor
11022   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11023   shlibpath_var=LIBPATH
11024
11025   # AIX 3 has no versioning support, so we append a major version to the name.
11026   soname_spec='${libname}${release}${shared_ext}$major'
11027   ;;
11028
11029 aix[4-9]*)
11030   version_type=linux # correct to gnu/linux during the next big refactor
11031   need_lib_prefix=no
11032   need_version=no
11033   hardcode_into_libs=yes
11034   if test "$host_cpu" = ia64; then
11035     # AIX 5 supports IA64
11036     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11037     shlibpath_var=LD_LIBRARY_PATH
11038   else
11039     # With GCC up to 2.95.x, collect2 would create an import file
11040     # for dependence libraries.  The import file would start with
11041     # the line `#! .'.  This would cause the generated library to
11042     # depend on `.', always an invalid library.  This was fixed in
11043     # development snapshots of GCC prior to 3.0.
11044     case $host_os in
11045       aix4 | aix4.[01] | aix4.[01].*)
11046       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11047            echo ' yes '
11048            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11049         :
11050       else
11051         can_build_shared=no
11052       fi
11053       ;;
11054     esac
11055     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11056     # soname into executable. Probably we can add versioning support to
11057     # collect2, so additional links can be useful in future.
11058     if test "$aix_use_runtimelinking" = yes; then
11059       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11060       # instead of lib<name>.a to let people know that these are not
11061       # typical AIX shared libraries.
11062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063     else
11064       # We preserve .a as extension for shared libraries through AIX4.2
11065       # and later when we are not doing run time linking.
11066       library_names_spec='${libname}${release}.a $libname.a'
11067       soname_spec='${libname}${release}${shared_ext}$major'
11068     fi
11069     shlibpath_var=LIBPATH
11070   fi
11071   ;;
11072
11073 amigaos*)
11074   case $host_cpu in
11075   powerpc)
11076     # Since July 2007 AmigaOS4 officially supports .so libraries.
11077     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079     ;;
11080   m68k)
11081     library_names_spec='$libname.ixlibrary $libname.a'
11082     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11083     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11084     ;;
11085   esac
11086   ;;
11087
11088 beos*)
11089   library_names_spec='${libname}${shared_ext}'
11090   dynamic_linker="$host_os ld.so"
11091   shlibpath_var=LIBRARY_PATH
11092   ;;
11093
11094 bsdi[45]*)
11095   version_type=linux # correct to gnu/linux during the next big refactor
11096   need_version=no
11097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098   soname_spec='${libname}${release}${shared_ext}$major'
11099   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11100   shlibpath_var=LD_LIBRARY_PATH
11101   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11102   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11103   # the default ld.so.conf also contains /usr/contrib/lib and
11104   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11105   # libtool to hard-code these into programs
11106   ;;
11107
11108 cygwin* | mingw* | pw32* | cegcc*)
11109   version_type=windows
11110   shrext_cmds=".dll"
11111   need_version=no
11112   need_lib_prefix=no
11113
11114   case $GCC,$cc_basename in
11115   yes,*)
11116     # gcc
11117     library_names_spec='$libname.dll.a'
11118     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11119     postinstall_cmds='base_file=`basename \${file}`~
11120       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11121       dldir=$destdir/`dirname \$dlpath`~
11122       test -d \$dldir || mkdir -p \$dldir~
11123       $install_prog $dir/$dlname \$dldir/$dlname~
11124       chmod a+x \$dldir/$dlname~
11125       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11126         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11127       fi'
11128     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11129       dlpath=$dir/\$dldll~
11130        $RM \$dlpath'
11131     shlibpath_overrides_runpath=yes
11132
11133     case $host_os in
11134     cygwin*)
11135       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11136       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11137
11138       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11139       ;;
11140     mingw* | cegcc*)
11141       # MinGW DLLs use traditional 'lib' prefix
11142       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11143       ;;
11144     pw32*)
11145       # pw32 DLLs use 'pw' prefix rather than 'lib'
11146       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11147       ;;
11148     esac
11149     dynamic_linker='Win32 ld.exe'
11150     ;;
11151
11152   *,cl*)
11153     # Native MSVC
11154     libname_spec='$name'
11155     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11156     library_names_spec='${libname}.dll.lib'
11157
11158     case $build_os in
11159     mingw*)
11160       sys_lib_search_path_spec=
11161       lt_save_ifs=$IFS
11162       IFS=';'
11163       for lt_path in $LIB
11164       do
11165         IFS=$lt_save_ifs
11166         # Let DOS variable expansion print the short 8.3 style file name.
11167         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11168         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11169       done
11170       IFS=$lt_save_ifs
11171       # Convert to MSYS style.
11172       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11173       ;;
11174     cygwin*)
11175       # Convert to unix form, then to dos form, then back to unix form
11176       # but this time dos style (no spaces!) so that the unix form looks
11177       # like /cygdrive/c/PROGRA~1:/cygdr...
11178       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11179       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11180       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11181       ;;
11182     *)
11183       sys_lib_search_path_spec="$LIB"
11184       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11185         # It is most probably a Windows format PATH.
11186         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11187       else
11188         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11189       fi
11190       # FIXME: find the short name or the path components, as spaces are
11191       # common. (e.g. "Program Files" -> "PROGRA~1")
11192       ;;
11193     esac
11194
11195     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11196     postinstall_cmds='base_file=`basename \${file}`~
11197       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11198       dldir=$destdir/`dirname \$dlpath`~
11199       test -d \$dldir || mkdir -p \$dldir~
11200       $install_prog $dir/$dlname \$dldir/$dlname'
11201     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11202       dlpath=$dir/\$dldll~
11203        $RM \$dlpath'
11204     shlibpath_overrides_runpath=yes
11205     dynamic_linker='Win32 link.exe'
11206     ;;
11207
11208   *)
11209     # Assume MSVC wrapper
11210     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11211     dynamic_linker='Win32 ld.exe'
11212     ;;
11213   esac
11214   # FIXME: first we should search . and the directory the executable is in
11215   shlibpath_var=PATH
11216   ;;
11217
11218 darwin* | rhapsody*)
11219   dynamic_linker="$host_os dyld"
11220   version_type=darwin
11221   need_lib_prefix=no
11222   need_version=no
11223   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11224   soname_spec='${libname}${release}${major}$shared_ext'
11225   shlibpath_overrides_runpath=yes
11226   shlibpath_var=DYLD_LIBRARY_PATH
11227   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11228
11229   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11230   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11231   ;;
11232
11233 dgux*)
11234   version_type=linux # correct to gnu/linux during the next big refactor
11235   need_lib_prefix=no
11236   need_version=no
11237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11238   soname_spec='${libname}${release}${shared_ext}$major'
11239   shlibpath_var=LD_LIBRARY_PATH
11240   ;;
11241
11242 freebsd* | dragonfly*)
11243   # DragonFly does not have aout.  When/if they implement a new
11244   # versioning mechanism, adjust this.
11245   if test -x /usr/bin/objformat; then
11246     objformat=`/usr/bin/objformat`
11247   else
11248     case $host_os in
11249     freebsd[23].*) objformat=aout ;;
11250     *) objformat=elf ;;
11251     esac
11252   fi
11253   version_type=freebsd-$objformat
11254   case $version_type in
11255     freebsd-elf*)
11256       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257       need_version=no
11258       need_lib_prefix=no
11259       ;;
11260     freebsd-*)
11261       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11262       need_version=yes
11263       ;;
11264   esac
11265   shlibpath_var=LD_LIBRARY_PATH
11266   case $host_os in
11267   freebsd2.*)
11268     shlibpath_overrides_runpath=yes
11269     ;;
11270   freebsd3.[01]* | freebsdelf3.[01]*)
11271     shlibpath_overrides_runpath=yes
11272     hardcode_into_libs=yes
11273     ;;
11274   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11275   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11276     shlibpath_overrides_runpath=no
11277     hardcode_into_libs=yes
11278     ;;
11279   *) # from 4.6 on, and DragonFly
11280     shlibpath_overrides_runpath=yes
11281     hardcode_into_libs=yes
11282     ;;
11283   esac
11284   ;;
11285
11286 haiku*)
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   need_lib_prefix=no
11289   need_version=no
11290   dynamic_linker="$host_os runtime_loader"
11291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11292   soname_spec='${libname}${release}${shared_ext}$major'
11293   shlibpath_var=LIBRARY_PATH
11294   shlibpath_overrides_runpath=yes
11295   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11296   hardcode_into_libs=yes
11297   ;;
11298
11299 hpux9* | hpux10* | hpux11*)
11300   # Give a soname corresponding to the major version so that dld.sl refuses to
11301   # link against other versions.
11302   version_type=sunos
11303   need_lib_prefix=no
11304   need_version=no
11305   case $host_cpu in
11306   ia64*)
11307     shrext_cmds='.so'
11308     hardcode_into_libs=yes
11309     dynamic_linker="$host_os dld.so"
11310     shlibpath_var=LD_LIBRARY_PATH
11311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313     soname_spec='${libname}${release}${shared_ext}$major'
11314     if test "X$HPUX_IA64_MODE" = X32; then
11315       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11316     else
11317       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11318     fi
11319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11320     ;;
11321   hppa*64*)
11322     shrext_cmds='.sl'
11323     hardcode_into_libs=yes
11324     dynamic_linker="$host_os dld.sl"
11325     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11326     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328     soname_spec='${libname}${release}${shared_ext}$major'
11329     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11330     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11331     ;;
11332   *)
11333     shrext_cmds='.sl'
11334     dynamic_linker="$host_os dld.sl"
11335     shlibpath_var=SHLIB_PATH
11336     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338     soname_spec='${libname}${release}${shared_ext}$major'
11339     ;;
11340   esac
11341   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11342   postinstall_cmds='chmod 555 $lib'
11343   # or fails outright, so override atomically:
11344   install_override_mode=555
11345   ;;
11346
11347 interix[3-9]*)
11348   version_type=linux # correct to gnu/linux during the next big refactor
11349   need_lib_prefix=no
11350   need_version=no
11351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11352   soname_spec='${libname}${release}${shared_ext}$major'
11353   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11354   shlibpath_var=LD_LIBRARY_PATH
11355   shlibpath_overrides_runpath=no
11356   hardcode_into_libs=yes
11357   ;;
11358
11359 irix5* | irix6* | nonstopux*)
11360   case $host_os in
11361     nonstopux*) version_type=nonstopux ;;
11362     *)
11363         if test "$lt_cv_prog_gnu_ld" = yes; then
11364                 version_type=linux # correct to gnu/linux during the next big refactor
11365         else
11366                 version_type=irix
11367         fi ;;
11368   esac
11369   need_lib_prefix=no
11370   need_version=no
11371   soname_spec='${libname}${release}${shared_ext}$major'
11372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11373   case $host_os in
11374   irix5* | nonstopux*)
11375     libsuff= shlibsuff=
11376     ;;
11377   *)
11378     case $LD in # libtool.m4 will add one of these switches to LD
11379     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11380       libsuff= shlibsuff= libmagic=32-bit;;
11381     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11382       libsuff=32 shlibsuff=N32 libmagic=N32;;
11383     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11384       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11385     *) libsuff= shlibsuff= libmagic=never-match;;
11386     esac
11387     ;;
11388   esac
11389   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11390   shlibpath_overrides_runpath=no
11391   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11392   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11393   hardcode_into_libs=yes
11394   ;;
11395
11396 # No shared lib support for Linux oldld, aout, or coff.
11397 linux*oldld* | linux*aout* | linux*coff*)
11398   dynamic_linker=no
11399   ;;
11400
11401 # This must be glibc/ELF.
11402 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11403   version_type=linux # correct to gnu/linux during the next big refactor
11404   need_lib_prefix=no
11405   need_version=no
11406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407   soname_spec='${libname}${release}${shared_ext}$major'
11408   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11409   shlibpath_var=LD_LIBRARY_PATH
11410   shlibpath_overrides_runpath=no
11411
11412   # Some binutils ld are patched to set DT_RUNPATH
11413   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11414   $as_echo_n "(cached) " >&6
11415 else
11416   lt_cv_shlibpath_overrides_runpath=no
11417     save_LDFLAGS=$LDFLAGS
11418     save_libdir=$libdir
11419     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11420          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h.  */
11423
11424 int
11425 main ()
11426 {
11427
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"; then :
11433   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11434   lt_cv_shlibpath_overrides_runpath=yes
11435 fi
11436 fi
11437 rm -f core conftest.err conftest.$ac_objext \
11438     conftest$ac_exeext conftest.$ac_ext
11439     LDFLAGS=$save_LDFLAGS
11440     libdir=$save_libdir
11441
11442 fi
11443
11444   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11445
11446   # This implies no fast_install, which is unacceptable.
11447   # Some rework will be needed to allow for fast_install
11448   # before this can be enabled.
11449   hardcode_into_libs=yes
11450
11451   # Append ld.so.conf contents to the search path
11452   if test -f /etc/ld.so.conf; then
11453     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' ' '`
11454     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11455   fi
11456
11457   # We used to test for /lib/ld.so.1 and disable shared libraries on
11458   # powerpc, because MkLinux only supported shared libraries with the
11459   # GNU dynamic linker.  Since this was broken with cross compilers,
11460   # most powerpc-linux boxes support dynamic linking these days and
11461   # people can always --disable-shared, the test was removed, and we
11462   # assume the GNU/Linux dynamic linker is in use.
11463   dynamic_linker='GNU/Linux ld.so'
11464   ;;
11465
11466 netbsdelf*-gnu)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   shlibpath_overrides_runpath=no
11474   hardcode_into_libs=yes
11475   dynamic_linker='NetBSD ld.elf_so'
11476   ;;
11477
11478 netbsd*)
11479   version_type=sunos
11480   need_lib_prefix=no
11481   need_version=no
11482   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11484     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11485     dynamic_linker='NetBSD (a.out) ld.so'
11486   else
11487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488     soname_spec='${libname}${release}${shared_ext}$major'
11489     dynamic_linker='NetBSD ld.elf_so'
11490   fi
11491   shlibpath_var=LD_LIBRARY_PATH
11492   shlibpath_overrides_runpath=yes
11493   hardcode_into_libs=yes
11494   ;;
11495
11496 newsos6)
11497   version_type=linux # correct to gnu/linux during the next big refactor
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499   shlibpath_var=LD_LIBRARY_PATH
11500   shlibpath_overrides_runpath=yes
11501   ;;
11502
11503 *nto* | *qnx*)
11504   version_type=qnx
11505   need_lib_prefix=no
11506   need_version=no
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508   soname_spec='${libname}${release}${shared_ext}$major'
11509   shlibpath_var=LD_LIBRARY_PATH
11510   shlibpath_overrides_runpath=no
11511   hardcode_into_libs=yes
11512   dynamic_linker='ldqnx.so'
11513   ;;
11514
11515 openbsd*)
11516   version_type=sunos
11517   sys_lib_dlsearch_path_spec="/usr/lib"
11518   need_lib_prefix=no
11519   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11520   case $host_os in
11521     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11522     *)                          need_version=no  ;;
11523   esac
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11525   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11528     case $host_os in
11529       openbsd2.[89] | openbsd2.[89].*)
11530         shlibpath_overrides_runpath=no
11531         ;;
11532       *)
11533         shlibpath_overrides_runpath=yes
11534         ;;
11535       esac
11536   else
11537     shlibpath_overrides_runpath=yes
11538   fi
11539   ;;
11540
11541 os2*)
11542   libname_spec='$name'
11543   shrext_cmds=".dll"
11544   need_lib_prefix=no
11545   library_names_spec='$libname${shared_ext} $libname.a'
11546   dynamic_linker='OS/2 ld.exe'
11547   shlibpath_var=LIBPATH
11548   ;;
11549
11550 osf3* | osf4* | osf5*)
11551   version_type=osf
11552   need_lib_prefix=no
11553   need_version=no
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556   shlibpath_var=LD_LIBRARY_PATH
11557   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11558   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11559   ;;
11560
11561 rdos*)
11562   dynamic_linker=no
11563   ;;
11564
11565 solaris*)
11566   version_type=linux # correct to gnu/linux during the next big refactor
11567   need_lib_prefix=no
11568   need_version=no
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   soname_spec='${libname}${release}${shared_ext}$major'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   shlibpath_overrides_runpath=yes
11573   hardcode_into_libs=yes
11574   # ldd complains unless libraries are executable
11575   postinstall_cmds='chmod +x $lib'
11576   ;;
11577
11578 sunos4*)
11579   version_type=sunos
11580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11581   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11582   shlibpath_var=LD_LIBRARY_PATH
11583   shlibpath_overrides_runpath=yes
11584   if test "$with_gnu_ld" = yes; then
11585     need_lib_prefix=no
11586   fi
11587   need_version=yes
11588   ;;
11589
11590 sysv4 | sysv4.3*)
11591   version_type=linux # correct to gnu/linux during the next big refactor
11592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593   soname_spec='${libname}${release}${shared_ext}$major'
11594   shlibpath_var=LD_LIBRARY_PATH
11595   case $host_vendor in
11596     sni)
11597       shlibpath_overrides_runpath=no
11598       need_lib_prefix=no
11599       runpath_var=LD_RUN_PATH
11600       ;;
11601     siemens)
11602       need_lib_prefix=no
11603       ;;
11604     motorola)
11605       need_lib_prefix=no
11606       need_version=no
11607       shlibpath_overrides_runpath=no
11608       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11609       ;;
11610   esac
11611   ;;
11612
11613 sysv4*MP*)
11614   if test -d /usr/nec ;then
11615     version_type=linux # correct to gnu/linux during the next big refactor
11616     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11617     soname_spec='$libname${shared_ext}.$major'
11618     shlibpath_var=LD_LIBRARY_PATH
11619   fi
11620   ;;
11621
11622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11623   version_type=freebsd-elf
11624   need_lib_prefix=no
11625   need_version=no
11626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11627   soname_spec='${libname}${release}${shared_ext}$major'
11628   shlibpath_var=LD_LIBRARY_PATH
11629   shlibpath_overrides_runpath=yes
11630   hardcode_into_libs=yes
11631   if test "$with_gnu_ld" = yes; then
11632     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11633   else
11634     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11635     case $host_os in
11636       sco3.2v5*)
11637         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11638         ;;
11639     esac
11640   fi
11641   sys_lib_dlsearch_path_spec='/usr/lib'
11642   ;;
11643
11644 tpf*)
11645   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11646   version_type=linux # correct to gnu/linux during the next big refactor
11647   need_lib_prefix=no
11648   need_version=no
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650   shlibpath_var=LD_LIBRARY_PATH
11651   shlibpath_overrides_runpath=no
11652   hardcode_into_libs=yes
11653   ;;
11654
11655 uts4*)
11656   version_type=linux # correct to gnu/linux during the next big refactor
11657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658   soname_spec='${libname}${release}${shared_ext}$major'
11659   shlibpath_var=LD_LIBRARY_PATH
11660   ;;
11661
11662 *)
11663   dynamic_linker=no
11664   ;;
11665 esac
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11667 $as_echo "$dynamic_linker" >&6; }
11668 test "$dynamic_linker" = no && can_build_shared=no
11669
11670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11671 if test "$GCC" = yes; then
11672   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11673 fi
11674
11675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11676   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11677 fi
11678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11679   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11680 fi
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11775 hardcode_action=
11776 if test -n "$hardcode_libdir_flag_spec" ||
11777    test -n "$runpath_var" ||
11778    test "X$hardcode_automatic" = "Xyes" ; then
11779
11780   # We can hardcode non-existent directories.
11781   if test "$hardcode_direct" != no &&
11782      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11783      # have to relink, otherwise we might link with an installed library
11784      # when we should be linking with a yet-to-be-installed one
11785      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11786      test "$hardcode_minus_L" != no; then
11787     # Linking always hardcodes the temporary library directory.
11788     hardcode_action=relink
11789   else
11790     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11791     hardcode_action=immediate
11792   fi
11793 else
11794   # We cannot hardcode anything, or else we can only hardcode existing
11795   # directories.
11796   hardcode_action=unsupported
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11799 $as_echo "$hardcode_action" >&6; }
11800
11801 if test "$hardcode_action" = relink ||
11802    test "$inherit_rpath" = yes; then
11803   # Fast installation is not supported
11804   enable_fast_install=no
11805 elif test "$shlibpath_overrides_runpath" = yes ||
11806      test "$enable_shared" = no; then
11807   # Fast installation is not necessary
11808   enable_fast_install=needless
11809 fi
11810
11811
11812
11813
11814
11815
11816   if test "x$enable_dlopen" != xyes; then
11817   enable_dlopen=unknown
11818   enable_dlopen_self=unknown
11819   enable_dlopen_self_static=unknown
11820 else
11821   lt_cv_dlopen=no
11822   lt_cv_dlopen_libs=
11823
11824   case $host_os in
11825   beos*)
11826     lt_cv_dlopen="load_add_on"
11827     lt_cv_dlopen_libs=
11828     lt_cv_dlopen_self=yes
11829     ;;
11830
11831   mingw* | pw32* | cegcc*)
11832     lt_cv_dlopen="LoadLibrary"
11833     lt_cv_dlopen_libs=
11834     ;;
11835
11836   cygwin*)
11837     lt_cv_dlopen="dlopen"
11838     lt_cv_dlopen_libs=
11839     ;;
11840
11841   darwin*)
11842   # if libdl is installed we need to link against it
11843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11845 if ${ac_cv_lib_dl_dlopen+:} false; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   ac_check_lib_save_LIBS=$LIBS
11849 LIBS="-ldl  $LIBS"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h.  */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char dlopen ();
11860 int
11861 main ()
11862 {
11863 return dlopen ();
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869   ac_cv_lib_dl_dlopen=yes
11870 else
11871   ac_cv_lib_dl_dlopen=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874     conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11880   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11881 else
11882
11883     lt_cv_dlopen="dyld"
11884     lt_cv_dlopen_libs=
11885     lt_cv_dlopen_self=yes
11886
11887 fi
11888
11889     ;;
11890
11891   *)
11892     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11893 if test "x$ac_cv_func_shl_load" = xyes; then :
11894   lt_cv_dlopen="shl_load"
11895 else
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11897 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11898 if ${ac_cv_lib_dld_shl_load+:} false; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   ac_check_lib_save_LIBS=$LIBS
11902 LIBS="-ldld  $LIBS"
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h.  */
11905
11906 /* Override any GCC internal prototype to avoid an error.
11907    Use char because int might match the return type of a GCC
11908    builtin and then its argument prototype would still apply.  */
11909 #ifdef __cplusplus
11910 extern "C"
11911 #endif
11912 char shl_load ();
11913 int
11914 main ()
11915 {
11916 return shl_load ();
11917   ;
11918   return 0;
11919 }
11920 _ACEOF
11921 if ac_fn_c_try_link "$LINENO"; then :
11922   ac_cv_lib_dld_shl_load=yes
11923 else
11924   ac_cv_lib_dld_shl_load=no
11925 fi
11926 rm -f core conftest.err conftest.$ac_objext \
11927     conftest$ac_exeext conftest.$ac_ext
11928 LIBS=$ac_check_lib_save_LIBS
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11931 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11932 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11933   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11934 else
11935   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11936 if test "x$ac_cv_func_dlopen" = xyes; then :
11937   lt_cv_dlopen="dlopen"
11938 else
11939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11941 if ${ac_cv_lib_dl_dlopen+:} false; then :
11942   $as_echo_n "(cached) " >&6
11943 else
11944   ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-ldl  $LIBS"
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h.  */
11948
11949 /* Override any GCC internal prototype to avoid an error.
11950    Use char because int might match the return type of a GCC
11951    builtin and then its argument prototype would still apply.  */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char dlopen ();
11956 int
11957 main ()
11958 {
11959 return dlopen ();
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_link "$LINENO"; then :
11965   ac_cv_lib_dl_dlopen=yes
11966 else
11967   ac_cv_lib_dl_dlopen=no
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext \
11970     conftest$ac_exeext conftest.$ac_ext
11971 LIBS=$ac_check_lib_save_LIBS
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11975 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11976   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11977 else
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11979 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11980 if ${ac_cv_lib_svld_dlopen+:} false; then :
11981   $as_echo_n "(cached) " >&6
11982 else
11983   ac_check_lib_save_LIBS=$LIBS
11984 LIBS="-lsvld  $LIBS"
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h.  */
11987
11988 /* Override any GCC internal prototype to avoid an error.
11989    Use char because int might match the return type of a GCC
11990    builtin and then its argument prototype would still apply.  */
11991 #ifdef __cplusplus
11992 extern "C"
11993 #endif
11994 char dlopen ();
11995 int
11996 main ()
11997 {
11998 return dlopen ();
11999   ;
12000   return 0;
12001 }
12002 _ACEOF
12003 if ac_fn_c_try_link "$LINENO"; then :
12004   ac_cv_lib_svld_dlopen=yes
12005 else
12006   ac_cv_lib_svld_dlopen=no
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext \
12009     conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12013 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12014 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12015   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12016 else
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12018 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12019 if ${ac_cv_lib_dld_dld_link+:} false; then :
12020   $as_echo_n "(cached) " >&6
12021 else
12022   ac_check_lib_save_LIBS=$LIBS
12023 LIBS="-ldld  $LIBS"
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028    Use char because int might match the return type of a GCC
12029    builtin and then its argument prototype would still apply.  */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char dld_link ();
12034 int
12035 main ()
12036 {
12037 return dld_link ();
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 if ac_fn_c_try_link "$LINENO"; then :
12043   ac_cv_lib_dld_dld_link=yes
12044 else
12045   ac_cv_lib_dld_dld_link=no
12046 fi
12047 rm -f core conftest.err conftest.$ac_objext \
12048     conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12052 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12053 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12054   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12055 fi
12056
12057
12058 fi
12059
12060
12061 fi
12062
12063
12064 fi
12065
12066
12067 fi
12068
12069
12070 fi
12071
12072     ;;
12073   esac
12074
12075   if test "x$lt_cv_dlopen" != xno; then
12076     enable_dlopen=yes
12077   else
12078     enable_dlopen=no
12079   fi
12080
12081   case $lt_cv_dlopen in
12082   dlopen)
12083     save_CPPFLAGS="$CPPFLAGS"
12084     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12085
12086     save_LDFLAGS="$LDFLAGS"
12087     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12088
12089     save_LIBS="$LIBS"
12090     LIBS="$lt_cv_dlopen_libs $LIBS"
12091
12092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12093 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12094 if ${lt_cv_dlopen_self+:} false; then :
12095   $as_echo_n "(cached) " >&6
12096 else
12097           if test "$cross_compiling" = yes; then :
12098   lt_cv_dlopen_self=cross
12099 else
12100   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12101   lt_status=$lt_dlunknown
12102   cat > conftest.$ac_ext <<_LT_EOF
12103 #line $LINENO "configure"
12104 #include "confdefs.h"
12105
12106 #if HAVE_DLFCN_H
12107 #include <dlfcn.h>
12108 #endif
12109
12110 #include <stdio.h>
12111
12112 #ifdef RTLD_GLOBAL
12113 #  define LT_DLGLOBAL           RTLD_GLOBAL
12114 #else
12115 #  ifdef DL_GLOBAL
12116 #    define LT_DLGLOBAL         DL_GLOBAL
12117 #  else
12118 #    define LT_DLGLOBAL         0
12119 #  endif
12120 #endif
12121
12122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12123    find out it does not work in some platform. */
12124 #ifndef LT_DLLAZY_OR_NOW
12125 #  ifdef RTLD_LAZY
12126 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12127 #  else
12128 #    ifdef DL_LAZY
12129 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12130 #    else
12131 #      ifdef RTLD_NOW
12132 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12133 #      else
12134 #        ifdef DL_NOW
12135 #          define LT_DLLAZY_OR_NOW      DL_NOW
12136 #        else
12137 #          define LT_DLLAZY_OR_NOW      0
12138 #        endif
12139 #      endif
12140 #    endif
12141 #  endif
12142 #endif
12143
12144 /* When -fvisbility=hidden is used, assume the code has been annotated
12145    correspondingly for the symbols needed.  */
12146 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12147 int fnord () __attribute__((visibility("default")));
12148 #endif
12149
12150 int fnord () { return 42; }
12151 int main ()
12152 {
12153   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12154   int status = $lt_dlunknown;
12155
12156   if (self)
12157     {
12158       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12159       else
12160         {
12161           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12162           else puts (dlerror ());
12163         }
12164       /* dlclose (self); */
12165     }
12166   else
12167     puts (dlerror ());
12168
12169   return status;
12170 }
12171 _LT_EOF
12172   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12173   (eval $ac_link) 2>&5
12174   ac_status=$?
12175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12176   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12177     (./conftest; exit; ) >&5 2>/dev/null
12178     lt_status=$?
12179     case x$lt_status in
12180       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12181       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12182       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12183     esac
12184   else :
12185     # compilation failed
12186     lt_cv_dlopen_self=no
12187   fi
12188 fi
12189 rm -fr conftest*
12190
12191
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12194 $as_echo "$lt_cv_dlopen_self" >&6; }
12195
12196     if test "x$lt_cv_dlopen_self" = xyes; then
12197       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12198       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12199 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12200 if ${lt_cv_dlopen_self_static+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203           if test "$cross_compiling" = yes; then :
12204   lt_cv_dlopen_self_static=cross
12205 else
12206   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12207   lt_status=$lt_dlunknown
12208   cat > conftest.$ac_ext <<_LT_EOF
12209 #line $LINENO "configure"
12210 #include "confdefs.h"
12211
12212 #if HAVE_DLFCN_H
12213 #include <dlfcn.h>
12214 #endif
12215
12216 #include <stdio.h>
12217
12218 #ifdef RTLD_GLOBAL
12219 #  define LT_DLGLOBAL           RTLD_GLOBAL
12220 #else
12221 #  ifdef DL_GLOBAL
12222 #    define LT_DLGLOBAL         DL_GLOBAL
12223 #  else
12224 #    define LT_DLGLOBAL         0
12225 #  endif
12226 #endif
12227
12228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12229    find out it does not work in some platform. */
12230 #ifndef LT_DLLAZY_OR_NOW
12231 #  ifdef RTLD_LAZY
12232 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12233 #  else
12234 #    ifdef DL_LAZY
12235 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12236 #    else
12237 #      ifdef RTLD_NOW
12238 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12239 #      else
12240 #        ifdef DL_NOW
12241 #          define LT_DLLAZY_OR_NOW      DL_NOW
12242 #        else
12243 #          define LT_DLLAZY_OR_NOW      0
12244 #        endif
12245 #      endif
12246 #    endif
12247 #  endif
12248 #endif
12249
12250 /* When -fvisbility=hidden is used, assume the code has been annotated
12251    correspondingly for the symbols needed.  */
12252 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12253 int fnord () __attribute__((visibility("default")));
12254 #endif
12255
12256 int fnord () { return 42; }
12257 int main ()
12258 {
12259   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12260   int status = $lt_dlunknown;
12261
12262   if (self)
12263     {
12264       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12265       else
12266         {
12267           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12268           else puts (dlerror ());
12269         }
12270       /* dlclose (self); */
12271     }
12272   else
12273     puts (dlerror ());
12274
12275   return status;
12276 }
12277 _LT_EOF
12278   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12279   (eval $ac_link) 2>&5
12280   ac_status=$?
12281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12282   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12283     (./conftest; exit; ) >&5 2>/dev/null
12284     lt_status=$?
12285     case x$lt_status in
12286       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12287       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12288       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12289     esac
12290   else :
12291     # compilation failed
12292     lt_cv_dlopen_self_static=no
12293   fi
12294 fi
12295 rm -fr conftest*
12296
12297
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12300 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12301     fi
12302
12303     CPPFLAGS="$save_CPPFLAGS"
12304     LDFLAGS="$save_LDFLAGS"
12305     LIBS="$save_LIBS"
12306     ;;
12307   esac
12308
12309   case $lt_cv_dlopen_self in
12310   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12311   *) enable_dlopen_self=unknown ;;
12312   esac
12313
12314   case $lt_cv_dlopen_self_static in
12315   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12316   *) enable_dlopen_self_static=unknown ;;
12317   esac
12318 fi
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336 striplib=
12337 old_striplib=
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12339 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12340 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12341   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12342   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344 $as_echo "yes" >&6; }
12345 else
12346 # FIXME - insert some real tests, host_os isn't really good enough
12347   case $host_os in
12348   darwin*)
12349     if test -n "$STRIP" ; then
12350       striplib="$STRIP -x"
12351       old_striplib="$STRIP -S"
12352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353 $as_echo "yes" >&6; }
12354     else
12355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12357     fi
12358     ;;
12359   *)
12360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362     ;;
12363   esac
12364 fi
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377   # Report which library types will actually be built
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12379 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12381 $as_echo "$can_build_shared" >&6; }
12382
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12384 $as_echo_n "checking whether to build shared libraries... " >&6; }
12385   test "$can_build_shared" = "no" && enable_shared=no
12386
12387   # On AIX, shared libraries and static libraries use the same namespace, and
12388   # are all built from PIC.
12389   case $host_os in
12390   aix3*)
12391     test "$enable_shared" = yes && enable_static=no
12392     if test -n "$RANLIB"; then
12393       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12394       postinstall_cmds='$RANLIB $lib'
12395     fi
12396     ;;
12397
12398   aix[4-9]*)
12399     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12400       test "$enable_shared" = yes && enable_static=no
12401     fi
12402     ;;
12403   esac
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12405 $as_echo "$enable_shared" >&6; }
12406
12407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12408 $as_echo_n "checking whether to build static libraries... " >&6; }
12409   # Make sure either enable_shared or enable_static is yes.
12410   test "$enable_shared" = yes || enable_static=yes
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12412 $as_echo "$enable_static" >&6; }
12413
12414
12415
12416
12417 fi
12418 ac_ext=c
12419 ac_cpp='$CPP $CPPFLAGS'
12420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12423
12424 CC="$lt_save_CC"
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440         ac_config_commands="$ac_config_commands libtool"
12441
12442
12443
12444
12445 # Only expand once:
12446
12447
12448
12449 # Check for programs
12450
12451   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
12452 if test "x$ac_cv_header_minix_config_h" = xyes; then :
12453   MINIX=yes
12454 else
12455   MINIX=
12456 fi
12457
12458
12459   if test "$MINIX" = yes; then
12460
12461 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
12462
12463
12464 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
12465
12466
12467 $as_echo "#define _MINIX 1" >>confdefs.h
12468
12469   fi
12470
12471
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
12473 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
12474 if ${ac_cv_safe_to_define___extensions__+:} false; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h.  */
12479
12480 #         define __EXTENSIONS__ 1
12481           $ac_includes_default
12482 int
12483 main ()
12484 {
12485
12486   ;
12487   return 0;
12488 }
12489 _ACEOF
12490 if ac_fn_c_try_compile "$LINENO"; then :
12491   ac_cv_safe_to_define___extensions__=yes
12492 else
12493   ac_cv_safe_to_define___extensions__=no
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
12498 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
12499   test $ac_cv_safe_to_define___extensions__ = yes &&
12500     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
12501
12502   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
12503
12504   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
12505
12506   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
12507
12508   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
12509
12510
12511 ac_ext=c
12512 ac_cpp='$CPP $CPPFLAGS'
12513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516 if test -n "$ac_tool_prefix"; then
12517   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_prog_CC+:} false; then :
12522   $as_echo_n "(cached) " >&6
12523 else
12524   if test -n "$CC"; then
12525   ac_cv_prog_CC="$CC" # Let the user override the test.
12526 else
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12529 do
12530   IFS=$as_save_IFS
12531   test -z "$as_dir" && as_dir=.
12532     for ac_exec_ext in '' $ac_executable_extensions; do
12533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536     break 2
12537   fi
12538 done
12539   done
12540 IFS=$as_save_IFS
12541
12542 fi
12543 fi
12544 CC=$ac_cv_prog_CC
12545 if test -n "$CC"; then
12546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12547 $as_echo "$CC" >&6; }
12548 else
12549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 fi
12552
12553
12554 fi
12555 if test -z "$ac_cv_prog_CC"; then
12556   ac_ct_CC=$CC
12557   # Extract the first word of "gcc", so it can be a program name with args.
12558 set dummy gcc; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564   if test -n "$ac_ct_CC"; then
12565   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12566 else
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570   IFS=$as_save_IFS
12571   test -z "$as_dir" && as_dir=.
12572     for ac_exec_ext in '' $ac_executable_extensions; do
12573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574     ac_cv_prog_ac_ct_CC="gcc"
12575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576     break 2
12577   fi
12578 done
12579   done
12580 IFS=$as_save_IFS
12581
12582 fi
12583 fi
12584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12585 if test -n "$ac_ct_CC"; then
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12587 $as_echo "$ac_ct_CC" >&6; }
12588 else
12589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591 fi
12592
12593   if test "x$ac_ct_CC" = x; then
12594     CC=""
12595   else
12596     case $cross_compiling:$ac_tool_warned in
12597 yes:)
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12600 ac_tool_warned=yes ;;
12601 esac
12602     CC=$ac_ct_CC
12603   fi
12604 else
12605   CC="$ac_cv_prog_CC"
12606 fi
12607
12608 if test -z "$CC"; then
12609           if test -n "$ac_tool_prefix"; then
12610     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12611 set dummy ${ac_tool_prefix}cc; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if ${ac_cv_prog_CC+:} false; then :
12615   $as_echo_n "(cached) " >&6
12616 else
12617   if test -n "$CC"; then
12618   ac_cv_prog_CC="$CC" # Let the user override the test.
12619 else
12620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621 for as_dir in $PATH
12622 do
12623   IFS=$as_save_IFS
12624   test -z "$as_dir" && as_dir=.
12625     for ac_exec_ext in '' $ac_executable_extensions; do
12626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12627     ac_cv_prog_CC="${ac_tool_prefix}cc"
12628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12629     break 2
12630   fi
12631 done
12632   done
12633 IFS=$as_save_IFS
12634
12635 fi
12636 fi
12637 CC=$ac_cv_prog_CC
12638 if test -n "$CC"; then
12639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12640 $as_echo "$CC" >&6; }
12641 else
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12644 fi
12645
12646
12647   fi
12648 fi
12649 if test -z "$CC"; then
12650   # Extract the first word of "cc", so it can be a program name with args.
12651 set dummy cc; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_prog_CC+:} false; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   if test -n "$CC"; then
12658   ac_cv_prog_CC="$CC" # Let the user override the test.
12659 else
12660   ac_prog_rejected=no
12661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662 for as_dir in $PATH
12663 do
12664   IFS=$as_save_IFS
12665   test -z "$as_dir" && as_dir=.
12666     for ac_exec_ext in '' $ac_executable_extensions; do
12667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12669        ac_prog_rejected=yes
12670        continue
12671      fi
12672     ac_cv_prog_CC="cc"
12673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674     break 2
12675   fi
12676 done
12677   done
12678 IFS=$as_save_IFS
12679
12680 if test $ac_prog_rejected = yes; then
12681   # We found a bogon in the path, so make sure we never use it.
12682   set dummy $ac_cv_prog_CC
12683   shift
12684   if test $# != 0; then
12685     # We chose a different compiler from the bogus one.
12686     # However, it has the same basename, so the bogon will be chosen
12687     # first if we set CC to just the basename; use the full file name.
12688     shift
12689     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12690   fi
12691 fi
12692 fi
12693 fi
12694 CC=$ac_cv_prog_CC
12695 if test -n "$CC"; then
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12697 $as_echo "$CC" >&6; }
12698 else
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 fi
12702
12703
12704 fi
12705 if test -z "$CC"; then
12706   if test -n "$ac_tool_prefix"; then
12707   for ac_prog in cl.exe
12708   do
12709     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if ${ac_cv_prog_CC+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   if test -n "$CC"; then
12717   ac_cv_prog_CC="$CC" # Let the user override the test.
12718 else
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12721 do
12722   IFS=$as_save_IFS
12723   test -z "$as_dir" && as_dir=.
12724     for ac_exec_ext in '' $ac_executable_extensions; do
12725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12726     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728     break 2
12729   fi
12730 done
12731   done
12732 IFS=$as_save_IFS
12733
12734 fi
12735 fi
12736 CC=$ac_cv_prog_CC
12737 if test -n "$CC"; then
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12739 $as_echo "$CC" >&6; }
12740 else
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 fi
12744
12745
12746     test -n "$CC" && break
12747   done
12748 fi
12749 if test -z "$CC"; then
12750   ac_ct_CC=$CC
12751   for ac_prog in cl.exe
12752 do
12753   # Extract the first word of "$ac_prog", so it can be a program name with args.
12754 set dummy $ac_prog; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12758   $as_echo_n "(cached) " >&6
12759 else
12760   if test -n "$ac_ct_CC"; then
12761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12762 else
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12765 do
12766   IFS=$as_save_IFS
12767   test -z "$as_dir" && as_dir=.
12768     for ac_exec_ext in '' $ac_executable_extensions; do
12769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770     ac_cv_prog_ac_ct_CC="$ac_prog"
12771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772     break 2
12773   fi
12774 done
12775   done
12776 IFS=$as_save_IFS
12777
12778 fi
12779 fi
12780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12781 if test -n "$ac_ct_CC"; then
12782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12783 $as_echo "$ac_ct_CC" >&6; }
12784 else
12785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 fi
12788
12789
12790   test -n "$ac_ct_CC" && break
12791 done
12792
12793   if test "x$ac_ct_CC" = x; then
12794     CC=""
12795   else
12796     case $cross_compiling:$ac_tool_warned in
12797 yes:)
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12800 ac_tool_warned=yes ;;
12801 esac
12802     CC=$ac_ct_CC
12803   fi
12804 fi
12805
12806 fi
12807
12808
12809 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12811 as_fn_error $? "no acceptable C compiler found in \$PATH
12812 See \`config.log' for more details" "$LINENO" 5; }
12813
12814 # Provide some information about the compiler.
12815 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12816 set X $ac_compile
12817 ac_compiler=$2
12818 for ac_option in --version -v -V -qversion; do
12819   { { ac_try="$ac_compiler $ac_option >&5"
12820 case "(($ac_try" in
12821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822   *) ac_try_echo=$ac_try;;
12823 esac
12824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12825 $as_echo "$ac_try_echo"; } >&5
12826   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12827   ac_status=$?
12828   if test -s conftest.err; then
12829     sed '10a\
12830 ... rest of stderr output deleted ...
12831          10q' conftest.err >conftest.er1
12832     cat conftest.er1 >&5
12833   fi
12834   rm -f conftest.er1 conftest.err
12835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12836   test $ac_status = 0; }
12837 done
12838
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12840 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12841 if ${ac_cv_c_compiler_gnu+:} false; then :
12842   $as_echo_n "(cached) " >&6
12843 else
12844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846
12847 int
12848 main ()
12849 {
12850 #ifndef __GNUC__
12851        choke me
12852 #endif
12853
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859   ac_compiler_gnu=yes
12860 else
12861   ac_compiler_gnu=no
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12865
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12868 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12869 if test $ac_compiler_gnu = yes; then
12870   GCC=yes
12871 else
12872   GCC=
12873 fi
12874 ac_test_CFLAGS=${CFLAGS+set}
12875 ac_save_CFLAGS=$CFLAGS
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12877 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12878 if ${ac_cv_prog_cc_g+:} false; then :
12879   $as_echo_n "(cached) " >&6
12880 else
12881   ac_save_c_werror_flag=$ac_c_werror_flag
12882    ac_c_werror_flag=yes
12883    ac_cv_prog_cc_g=no
12884    CFLAGS="-g"
12885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h.  */
12887
12888 int
12889 main ()
12890 {
12891
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_compile "$LINENO"; then :
12897   ac_cv_prog_cc_g=yes
12898 else
12899   CFLAGS=""
12900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h.  */
12902
12903 int
12904 main ()
12905 {
12906
12907   ;
12908   return 0;
12909 }
12910 _ACEOF
12911 if ac_fn_c_try_compile "$LINENO"; then :
12912
12913 else
12914   ac_c_werror_flag=$ac_save_c_werror_flag
12915          CFLAGS="-g"
12916          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h.  */
12918
12919 int
12920 main ()
12921 {
12922
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_compile "$LINENO"; then :
12928   ac_cv_prog_cc_g=yes
12929 fi
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933 fi
12934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12935    ac_c_werror_flag=$ac_save_c_werror_flag
12936 fi
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12938 $as_echo "$ac_cv_prog_cc_g" >&6; }
12939 if test "$ac_test_CFLAGS" = set; then
12940   CFLAGS=$ac_save_CFLAGS
12941 elif test $ac_cv_prog_cc_g = yes; then
12942   if test "$GCC" = yes; then
12943     CFLAGS="-g -O2"
12944   else
12945     CFLAGS="-g"
12946   fi
12947 else
12948   if test "$GCC" = yes; then
12949     CFLAGS="-O2"
12950   else
12951     CFLAGS=
12952   fi
12953 fi
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12955 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12956 if ${ac_cv_prog_cc_c89+:} false; then :
12957   $as_echo_n "(cached) " >&6
12958 else
12959   ac_cv_prog_cc_c89=no
12960 ac_save_CC=$CC
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h.  */
12963 #include <stdarg.h>
12964 #include <stdio.h>
12965 struct stat;
12966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12967 struct buf { int x; };
12968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12969 static char *e (p, i)
12970      char **p;
12971      int i;
12972 {
12973   return p[i];
12974 }
12975 static char *f (char * (*g) (char **, int), char **p, ...)
12976 {
12977   char *s;
12978   va_list v;
12979   va_start (v,p);
12980   s = g (p, va_arg (v,int));
12981   va_end (v);
12982   return s;
12983 }
12984
12985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12986    function prototypes and stuff, but not '\xHH' hex character constants.
12987    These don't provoke an error unfortunately, instead are silently treated
12988    as 'x'.  The following induces an error, until -std is added to get
12989    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12990    array size at least.  It's necessary to write '\x00'==0 to get something
12991    that's true only with -std.  */
12992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12993
12994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12995    inside strings and character constants.  */
12996 #define FOO(x) 'x'
12997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12998
12999 int test (int i, double x);
13000 struct s1 {int (*f) (int a);};
13001 struct s2 {int (*f) (double a);};
13002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13003 int argc;
13004 char **argv;
13005 int
13006 main ()
13007 {
13008 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13009   ;
13010   return 0;
13011 }
13012 _ACEOF
13013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13014         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13015 do
13016   CC="$ac_save_CC $ac_arg"
13017   if ac_fn_c_try_compile "$LINENO"; then :
13018   ac_cv_prog_cc_c89=$ac_arg
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext
13021   test "x$ac_cv_prog_cc_c89" != "xno" && break
13022 done
13023 rm -f conftest.$ac_ext
13024 CC=$ac_save_CC
13025
13026 fi
13027 # AC_CACHE_VAL
13028 case "x$ac_cv_prog_cc_c89" in
13029   x)
13030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13031 $as_echo "none needed" >&6; } ;;
13032   xno)
13033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13034 $as_echo "unsupported" >&6; } ;;
13035   *)
13036     CC="$CC $ac_cv_prog_cc_c89"
13037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13039 esac
13040 if test "x$ac_cv_prog_cc_c89" != xno; then :
13041
13042 fi
13043
13044 ac_ext=c
13045 ac_cpp='$CPP $CPPFLAGS'
13046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13049
13050 ac_ext=c
13051 ac_cpp='$CPP $CPPFLAGS'
13052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13056 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13057 if ${am_cv_prog_cc_c_o+:} false; then :
13058   $as_echo_n "(cached) " >&6
13059 else
13060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h.  */
13062
13063 int
13064 main ()
13065 {
13066
13067   ;
13068   return 0;
13069 }
13070 _ACEOF
13071   # Make sure it works both with $CC and with simple cc.
13072   # Following AC_PROG_CC_C_O, we do the test twice because some
13073   # compilers refuse to overwrite an existing .o file with -o,
13074   # though they will create one.
13075   am_cv_prog_cc_c_o=yes
13076   for am_i in 1 2; do
13077     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13078    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13079    ac_status=$?
13080    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081    (exit $ac_status); } \
13082          && test -f conftest2.$ac_objext; then
13083       : OK
13084     else
13085       am_cv_prog_cc_c_o=no
13086       break
13087     fi
13088   done
13089   rm -f core conftest*
13090   unset am_i
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13093 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13094 if test "$am_cv_prog_cc_c_o" != yes; then
13095    # Losing compiler, so override with the script.
13096    # FIXME: It is wrong to rewrite CC.
13097    # But if we don't then we get into trouble of one sort or another.
13098    # A longer-term fix would be to have automake use am__CC in this case,
13099    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13100    CC="$am_aux_dir/compile $CC"
13101 fi
13102 ac_ext=c
13103 ac_cpp='$CPP $CPPFLAGS'
13104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13107
13108
13109 depcc="$CC"   am_compiler_list=
13110
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13112 $as_echo_n "checking dependency style of $depcc... " >&6; }
13113 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13114   $as_echo_n "(cached) " >&6
13115 else
13116   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13117   # We make a subdir and do the tests there.  Otherwise we can end up
13118   # making bogus files that we don't know about and never remove.  For
13119   # instance it was reported that on HP-UX the gcc test will end up
13120   # making a dummy file named 'D' -- because '-MD' means "put the output
13121   # in D".
13122   rm -rf conftest.dir
13123   mkdir conftest.dir
13124   # Copy depcomp to subdir because otherwise we won't find it if we're
13125   # using a relative directory.
13126   cp "$am_depcomp" conftest.dir
13127   cd conftest.dir
13128   # We will build objects and dependencies in a subdirectory because
13129   # it helps to detect inapplicable dependency modes.  For instance
13130   # both Tru64's cc and ICC support -MD to output dependencies as a
13131   # side effect of compilation, but ICC will put the dependencies in
13132   # the current directory while Tru64 will put them in the object
13133   # directory.
13134   mkdir sub
13135
13136   am_cv_CC_dependencies_compiler_type=none
13137   if test "$am_compiler_list" = ""; then
13138      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13139   fi
13140   am__universal=false
13141   case " $depcc " in #(
13142      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13143      esac
13144
13145   for depmode in $am_compiler_list; do
13146     # Setup a source with many dependencies, because some compilers
13147     # like to wrap large dependency lists on column 80 (with \), and
13148     # we should not choose a depcomp mode which is confused by this.
13149     #
13150     # We need to recreate these files for each test, as the compiler may
13151     # overwrite some of them when testing with obscure command lines.
13152     # This happens at least with the AIX C compiler.
13153     : > sub/conftest.c
13154     for i in 1 2 3 4 5 6; do
13155       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13156       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13157       # Solaris 10 /bin/sh.
13158       echo '/* dummy */' > sub/conftst$i.h
13159     done
13160     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13161
13162     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13163     # mode.  It turns out that the SunPro C++ compiler does not properly
13164     # handle '-M -o', and we need to detect this.  Also, some Intel
13165     # versions had trouble with output in subdirs.
13166     am__obj=sub/conftest.${OBJEXT-o}
13167     am__minus_obj="-o $am__obj"
13168     case $depmode in
13169     gcc)
13170       # This depmode causes a compiler race in universal mode.
13171       test "$am__universal" = false || continue
13172       ;;
13173     nosideeffect)
13174       # After this tag, mechanisms are not by side-effect, so they'll
13175       # only be used when explicitly requested.
13176       if test "x$enable_dependency_tracking" = xyes; then
13177         continue
13178       else
13179         break
13180       fi
13181       ;;
13182     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13183       # This compiler won't grok '-c -o', but also, the minuso test has
13184       # not run yet.  These depmodes are late enough in the game, and
13185       # so weak that their functioning should not be impacted.
13186       am__obj=conftest.${OBJEXT-o}
13187       am__minus_obj=
13188       ;;
13189     none) break ;;
13190     esac
13191     if depmode=$depmode \
13192        source=sub/conftest.c object=$am__obj \
13193        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13194        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13195          >/dev/null 2>conftest.err &&
13196        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13197        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13198        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13199        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13200       # icc doesn't choke on unknown options, it will just issue warnings
13201       # or remarks (even with -Werror).  So we grep stderr for any message
13202       # that says an option was ignored or not supported.
13203       # When given -MP, icc 7.0 and 7.1 complain thusly:
13204       #   icc: Command line warning: ignoring option '-M'; no argument required
13205       # The diagnosis changed in icc 8.0:
13206       #   icc: Command line remark: option '-MP' not supported
13207       if (grep 'ignoring option' conftest.err ||
13208           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13209         am_cv_CC_dependencies_compiler_type=$depmode
13210         break
13211       fi
13212     fi
13213   done
13214
13215   cd ..
13216   rm -rf conftest.dir
13217 else
13218   am_cv_CC_dependencies_compiler_type=none
13219 fi
13220
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13225
13226  if
13227   test "x$enable_dependency_tracking" != xno \
13228   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13229   am__fastdepCC_TRUE=
13230   am__fastdepCC_FALSE='#'
13231 else
13232   am__fastdepCC_TRUE='#'
13233   am__fastdepCC_FALSE=
13234 fi
13235
13236
13237
13238 ac_ext=cpp
13239 ac_cpp='$CXXCPP $CPPFLAGS'
13240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13243 if test -z "$CXX"; then
13244   if test -n "$CCC"; then
13245     CXX=$CCC
13246   else
13247     if test -n "$ac_tool_prefix"; then
13248   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13249   do
13250     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if ${ac_cv_prog_CXX+:} false; then :
13255   $as_echo_n "(cached) " >&6
13256 else
13257   if test -n "$CXX"; then
13258   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13262 do
13263   IFS=$as_save_IFS
13264   test -z "$as_dir" && as_dir=.
13265     for ac_exec_ext in '' $ac_executable_extensions; do
13266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13267     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269     break 2
13270   fi
13271 done
13272   done
13273 IFS=$as_save_IFS
13274
13275 fi
13276 fi
13277 CXX=$ac_cv_prog_CXX
13278 if test -n "$CXX"; then
13279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13280 $as_echo "$CXX" >&6; }
13281 else
13282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13284 fi
13285
13286
13287     test -n "$CXX" && break
13288   done
13289 fi
13290 if test -z "$CXX"; then
13291   ac_ct_CXX=$CXX
13292   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13293 do
13294   # Extract the first word of "$ac_prog", so it can be a program name with args.
13295 set dummy $ac_prog; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13299   $as_echo_n "(cached) " >&6
13300 else
13301   if test -n "$ac_ct_CXX"; then
13302   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13303 else
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307   IFS=$as_save_IFS
13308   test -z "$as_dir" && as_dir=.
13309     for ac_exec_ext in '' $ac_executable_extensions; do
13310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311     ac_cv_prog_ac_ct_CXX="$ac_prog"
13312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313     break 2
13314   fi
13315 done
13316   done
13317 IFS=$as_save_IFS
13318
13319 fi
13320 fi
13321 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13322 if test -n "$ac_ct_CXX"; then
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13324 $as_echo "$ac_ct_CXX" >&6; }
13325 else
13326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329
13330
13331   test -n "$ac_ct_CXX" && break
13332 done
13333
13334   if test "x$ac_ct_CXX" = x; then
13335     CXX="g++"
13336   else
13337     case $cross_compiling:$ac_tool_warned in
13338 yes:)
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13341 ac_tool_warned=yes ;;
13342 esac
13343     CXX=$ac_ct_CXX
13344   fi
13345 fi
13346
13347   fi
13348 fi
13349 # Provide some information about the compiler.
13350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13351 set X $ac_compile
13352 ac_compiler=$2
13353 for ac_option in --version -v -V -qversion; do
13354   { { ac_try="$ac_compiler $ac_option >&5"
13355 case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13360 $as_echo "$ac_try_echo"; } >&5
13361   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13362   ac_status=$?
13363   if test -s conftest.err; then
13364     sed '10a\
13365 ... rest of stderr output deleted ...
13366          10q' conftest.err >conftest.er1
13367     cat conftest.er1 >&5
13368   fi
13369   rm -f conftest.er1 conftest.err
13370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371   test $ac_status = 0; }
13372 done
13373
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13375 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13376 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h.  */
13381
13382 int
13383 main ()
13384 {
13385 #ifndef __GNUC__
13386        choke me
13387 #endif
13388
13389   ;
13390   return 0;
13391 }
13392 _ACEOF
13393 if ac_fn_cxx_try_compile "$LINENO"; then :
13394   ac_compiler_gnu=yes
13395 else
13396   ac_compiler_gnu=no
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13400
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13403 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13404 if test $ac_compiler_gnu = yes; then
13405   GXX=yes
13406 else
13407   GXX=
13408 fi
13409 ac_test_CXXFLAGS=${CXXFLAGS+set}
13410 ac_save_CXXFLAGS=$CXXFLAGS
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13412 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13413 if ${ac_cv_prog_cxx_g+:} false; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13417    ac_cxx_werror_flag=yes
13418    ac_cv_prog_cxx_g=no
13419    CXXFLAGS="-g"
13420    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h.  */
13422
13423 int
13424 main ()
13425 {
13426
13427   ;
13428   return 0;
13429 }
13430 _ACEOF
13431 if ac_fn_cxx_try_compile "$LINENO"; then :
13432   ac_cv_prog_cxx_g=yes
13433 else
13434   CXXFLAGS=""
13435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h.  */
13437
13438 int
13439 main ()
13440 {
13441
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 if ac_fn_cxx_try_compile "$LINENO"; then :
13447
13448 else
13449   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13450          CXXFLAGS="-g"
13451          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h.  */
13453
13454 int
13455 main ()
13456 {
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 if ac_fn_cxx_try_compile "$LINENO"; then :
13463   ac_cv_prog_cxx_g=yes
13464 fi
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466 fi
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13471 fi
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13473 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13474 if test "$ac_test_CXXFLAGS" = set; then
13475   CXXFLAGS=$ac_save_CXXFLAGS
13476 elif test $ac_cv_prog_cxx_g = yes; then
13477   if test "$GXX" = yes; then
13478     CXXFLAGS="-g -O2"
13479   else
13480     CXXFLAGS="-g"
13481   fi
13482 else
13483   if test "$GXX" = yes; then
13484     CXXFLAGS="-O2"
13485   else
13486     CXXFLAGS=
13487   fi
13488 fi
13489 ac_ext=c
13490 ac_cpp='$CPP $CPPFLAGS'
13491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494
13495 depcc="$CXX"  am_compiler_list=
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13498 $as_echo_n "checking dependency style of $depcc... " >&6; }
13499 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13503   # We make a subdir and do the tests there.  Otherwise we can end up
13504   # making bogus files that we don't know about and never remove.  For
13505   # instance it was reported that on HP-UX the gcc test will end up
13506   # making a dummy file named 'D' -- because '-MD' means "put the output
13507   # in D".
13508   rm -rf conftest.dir
13509   mkdir conftest.dir
13510   # Copy depcomp to subdir because otherwise we won't find it if we're
13511   # using a relative directory.
13512   cp "$am_depcomp" conftest.dir
13513   cd conftest.dir
13514   # We will build objects and dependencies in a subdirectory because
13515   # it helps to detect inapplicable dependency modes.  For instance
13516   # both Tru64's cc and ICC support -MD to output dependencies as a
13517   # side effect of compilation, but ICC will put the dependencies in
13518   # the current directory while Tru64 will put them in the object
13519   # directory.
13520   mkdir sub
13521
13522   am_cv_CXX_dependencies_compiler_type=none
13523   if test "$am_compiler_list" = ""; then
13524      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13525   fi
13526   am__universal=false
13527   case " $depcc " in #(
13528      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13529      esac
13530
13531   for depmode in $am_compiler_list; do
13532     # Setup a source with many dependencies, because some compilers
13533     # like to wrap large dependency lists on column 80 (with \), and
13534     # we should not choose a depcomp mode which is confused by this.
13535     #
13536     # We need to recreate these files for each test, as the compiler may
13537     # overwrite some of them when testing with obscure command lines.
13538     # This happens at least with the AIX C compiler.
13539     : > sub/conftest.c
13540     for i in 1 2 3 4 5 6; do
13541       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13542       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13543       # Solaris 10 /bin/sh.
13544       echo '/* dummy */' > sub/conftst$i.h
13545     done
13546     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13547
13548     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13549     # mode.  It turns out that the SunPro C++ compiler does not properly
13550     # handle '-M -o', and we need to detect this.  Also, some Intel
13551     # versions had trouble with output in subdirs.
13552     am__obj=sub/conftest.${OBJEXT-o}
13553     am__minus_obj="-o $am__obj"
13554     case $depmode in
13555     gcc)
13556       # This depmode causes a compiler race in universal mode.
13557       test "$am__universal" = false || continue
13558       ;;
13559     nosideeffect)
13560       # After this tag, mechanisms are not by side-effect, so they'll
13561       # only be used when explicitly requested.
13562       if test "x$enable_dependency_tracking" = xyes; then
13563         continue
13564       else
13565         break
13566       fi
13567       ;;
13568     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13569       # This compiler won't grok '-c -o', but also, the minuso test has
13570       # not run yet.  These depmodes are late enough in the game, and
13571       # so weak that their functioning should not be impacted.
13572       am__obj=conftest.${OBJEXT-o}
13573       am__minus_obj=
13574       ;;
13575     none) break ;;
13576     esac
13577     if depmode=$depmode \
13578        source=sub/conftest.c object=$am__obj \
13579        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13580        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13581          >/dev/null 2>conftest.err &&
13582        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13584        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13586       # icc doesn't choke on unknown options, it will just issue warnings
13587       # or remarks (even with -Werror).  So we grep stderr for any message
13588       # that says an option was ignored or not supported.
13589       # When given -MP, icc 7.0 and 7.1 complain thusly:
13590       #   icc: Command line warning: ignoring option '-M'; no argument required
13591       # The diagnosis changed in icc 8.0:
13592       #   icc: Command line remark: option '-MP' not supported
13593       if (grep 'ignoring option' conftest.err ||
13594           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13595         am_cv_CXX_dependencies_compiler_type=$depmode
13596         break
13597       fi
13598     fi
13599   done
13600
13601   cd ..
13602   rm -rf conftest.dir
13603 else
13604   am_cv_CXX_dependencies_compiler_type=none
13605 fi
13606
13607 fi
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13609 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13610 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13611
13612  if
13613   test "x$enable_dependency_tracking" != xno \
13614   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13615   am__fastdepCXX_TRUE=
13616   am__fastdepCXX_FALSE='#'
13617 else
13618   am__fastdepCXX_TRUE='#'
13619   am__fastdepCXX_FALSE=
13620 fi
13621
13622
13623
13624
13625 func_stripname_cnf ()
13626 {
13627   case ${2} in
13628   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13629   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13630   esac
13631 } # func_stripname_cnf
13632
13633       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13634     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13635     (test "X$CXX" != "Xg++"))) ; then
13636   ac_ext=cpp
13637 ac_cpp='$CXXCPP $CPPFLAGS'
13638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13642 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13643 if test -z "$CXXCPP"; then
13644   if ${ac_cv_prog_CXXCPP+:} false; then :
13645   $as_echo_n "(cached) " >&6
13646 else
13647       # Double quotes because CXXCPP needs to be expanded
13648     for CXXCPP in "$CXX -E" "/lib/cpp"
13649     do
13650       ac_preproc_ok=false
13651 for ac_cxx_preproc_warn_flag in '' yes
13652 do
13653   # Use a header file that comes with gcc, so configuring glibc
13654   # with a fresh cross-compiler works.
13655   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13656   # <limits.h> exists even on freestanding compilers.
13657   # On the NeXT, cc -E runs the code through the compiler's parser,
13658   # not just through cpp. "Syntax error" is here to catch this case.
13659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h.  */
13661 #ifdef __STDC__
13662 # include <limits.h>
13663 #else
13664 # include <assert.h>
13665 #endif
13666                      Syntax error
13667 _ACEOF
13668 if ac_fn_cxx_try_cpp "$LINENO"; then :
13669
13670 else
13671   # Broken: fails on valid input.
13672 continue
13673 fi
13674 rm -f conftest.err conftest.i conftest.$ac_ext
13675
13676   # OK, works on sane cases.  Now check whether nonexistent headers
13677   # can be detected and how.
13678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h.  */
13680 #include <ac_nonexistent.h>
13681 _ACEOF
13682 if ac_fn_cxx_try_cpp "$LINENO"; then :
13683   # Broken: success on invalid input.
13684 continue
13685 else
13686   # Passes both tests.
13687 ac_preproc_ok=:
13688 break
13689 fi
13690 rm -f conftest.err conftest.i conftest.$ac_ext
13691
13692 done
13693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13694 rm -f conftest.i conftest.err conftest.$ac_ext
13695 if $ac_preproc_ok; then :
13696   break
13697 fi
13698
13699     done
13700     ac_cv_prog_CXXCPP=$CXXCPP
13701
13702 fi
13703   CXXCPP=$ac_cv_prog_CXXCPP
13704 else
13705   ac_cv_prog_CXXCPP=$CXXCPP
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13708 $as_echo "$CXXCPP" >&6; }
13709 ac_preproc_ok=false
13710 for ac_cxx_preproc_warn_flag in '' yes
13711 do
13712   # Use a header file that comes with gcc, so configuring glibc
13713   # with a fresh cross-compiler works.
13714   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13715   # <limits.h> exists even on freestanding compilers.
13716   # On the NeXT, cc -E runs the code through the compiler's parser,
13717   # not just through cpp. "Syntax error" is here to catch this case.
13718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h.  */
13720 #ifdef __STDC__
13721 # include <limits.h>
13722 #else
13723 # include <assert.h>
13724 #endif
13725                      Syntax error
13726 _ACEOF
13727 if ac_fn_cxx_try_cpp "$LINENO"; then :
13728
13729 else
13730   # Broken: fails on valid input.
13731 continue
13732 fi
13733 rm -f conftest.err conftest.i conftest.$ac_ext
13734
13735   # OK, works on sane cases.  Now check whether nonexistent headers
13736   # can be detected and how.
13737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h.  */
13739 #include <ac_nonexistent.h>
13740 _ACEOF
13741 if ac_fn_cxx_try_cpp "$LINENO"; then :
13742   # Broken: success on invalid input.
13743 continue
13744 else
13745   # Passes both tests.
13746 ac_preproc_ok=:
13747 break
13748 fi
13749 rm -f conftest.err conftest.i conftest.$ac_ext
13750
13751 done
13752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13753 rm -f conftest.i conftest.err conftest.$ac_ext
13754 if $ac_preproc_ok; then :
13755
13756 else
13757   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13759 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13760 See \`config.log' for more details" "$LINENO" 5; }
13761 fi
13762
13763 ac_ext=c
13764 ac_cpp='$CPP $CPPFLAGS'
13765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13768
13769 else
13770   _lt_caught_CXX_error=yes
13771 fi
13772
13773 ac_ext=cpp
13774 ac_cpp='$CXXCPP $CPPFLAGS'
13775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13778
13779 archive_cmds_need_lc_CXX=no
13780 allow_undefined_flag_CXX=
13781 always_export_symbols_CXX=no
13782 archive_expsym_cmds_CXX=
13783 compiler_needs_object_CXX=no
13784 export_dynamic_flag_spec_CXX=
13785 hardcode_direct_CXX=no
13786 hardcode_direct_absolute_CXX=no
13787 hardcode_libdir_flag_spec_CXX=
13788 hardcode_libdir_separator_CXX=
13789 hardcode_minus_L_CXX=no
13790 hardcode_shlibpath_var_CXX=unsupported
13791 hardcode_automatic_CXX=no
13792 inherit_rpath_CXX=no
13793 module_cmds_CXX=
13794 module_expsym_cmds_CXX=
13795 link_all_deplibs_CXX=unknown
13796 old_archive_cmds_CXX=$old_archive_cmds
13797 reload_flag_CXX=$reload_flag
13798 reload_cmds_CXX=$reload_cmds
13799 no_undefined_flag_CXX=
13800 whole_archive_flag_spec_CXX=
13801 enable_shared_with_static_runtimes_CXX=no
13802
13803 # Source file extension for C++ test sources.
13804 ac_ext=cpp
13805
13806 # Object file extension for compiled C++ test sources.
13807 objext=o
13808 objext_CXX=$objext
13809
13810 # No sense in running all these tests if we already determined that
13811 # the CXX compiler isn't working.  Some variables (like enable_shared)
13812 # are currently assumed to apply to all compilers on this platform,
13813 # and will be corrupted by setting them based on a non-working compiler.
13814 if test "$_lt_caught_CXX_error" != yes; then
13815   # Code to be used in simple compile tests
13816   lt_simple_compile_test_code="int some_variable = 0;"
13817
13818   # Code to be used in simple link tests
13819   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13820
13821   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13822
13823
13824
13825
13826
13827
13828 # If no C compiler was specified, use CC.
13829 LTCC=${LTCC-"$CC"}
13830
13831 # If no C compiler flags were specified, use CFLAGS.
13832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13833
13834 # Allow CC to be a program name with arguments.
13835 compiler=$CC
13836
13837
13838   # save warnings/boilerplate of simple test code
13839   ac_outfile=conftest.$ac_objext
13840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13842 _lt_compiler_boilerplate=`cat conftest.err`
13843 $RM conftest*
13844
13845   ac_outfile=conftest.$ac_objext
13846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13848 _lt_linker_boilerplate=`cat conftest.err`
13849 $RM -r conftest*
13850
13851
13852   # Allow CC to be a program name with arguments.
13853   lt_save_CC=$CC
13854   lt_save_CFLAGS=$CFLAGS
13855   lt_save_LD=$LD
13856   lt_save_GCC=$GCC
13857   GCC=$GXX
13858   lt_save_with_gnu_ld=$with_gnu_ld
13859   lt_save_path_LD=$lt_cv_path_LD
13860   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13861     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13862   else
13863     $as_unset lt_cv_prog_gnu_ld
13864   fi
13865   if test -n "${lt_cv_path_LDCXX+set}"; then
13866     lt_cv_path_LD=$lt_cv_path_LDCXX
13867   else
13868     $as_unset lt_cv_path_LD
13869   fi
13870   test -z "${LDCXX+set}" || LD=$LDCXX
13871   CC=${CXX-"c++"}
13872   CFLAGS=$CXXFLAGS
13873   compiler=$CC
13874   compiler_CXX=$CC
13875   for cc_temp in $compiler""; do
13876   case $cc_temp in
13877     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13878     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13879     \-*) ;;
13880     *) break;;
13881   esac
13882 done
13883 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13884
13885
13886   if test -n "$compiler"; then
13887     # We don't want -fno-exception when compiling C++ code, so set the
13888     # no_builtin_flag separately
13889     if test "$GXX" = yes; then
13890       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13891     else
13892       lt_prog_compiler_no_builtin_flag_CXX=
13893     fi
13894
13895     if test "$GXX" = yes; then
13896       # Set up default GNU C++ configuration
13897
13898
13899
13900 # Check whether --with-gnu-ld was given.
13901 if test "${with_gnu_ld+set}" = set; then :
13902   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13903 else
13904   with_gnu_ld=no
13905 fi
13906
13907 ac_prog=ld
13908 if test "$GCC" = yes; then
13909   # Check if gcc -print-prog-name=ld gives a path.
13910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13911 $as_echo_n "checking for ld used by $CC... " >&6; }
13912   case $host in
13913   *-*-mingw*)
13914     # gcc leaves a trailing carriage return which upsets mingw
13915     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13916   *)
13917     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13918   esac
13919   case $ac_prog in
13920     # Accept absolute paths.
13921     [\\/]* | ?:[\\/]*)
13922       re_direlt='/[^/][^/]*/\.\./'
13923       # Canonicalize the pathname of ld
13924       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13925       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13926         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13927       done
13928       test -z "$LD" && LD="$ac_prog"
13929       ;;
13930   "")
13931     # If it fails, then pretend we aren't using GCC.
13932     ac_prog=ld
13933     ;;
13934   *)
13935     # If it is relative, then search for the first ld in PATH.
13936     with_gnu_ld=unknown
13937     ;;
13938   esac
13939 elif test "$with_gnu_ld" = yes; then
13940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13941 $as_echo_n "checking for GNU ld... " >&6; }
13942 else
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13944 $as_echo_n "checking for non-GNU ld... " >&6; }
13945 fi
13946 if ${lt_cv_path_LD+:} false; then :
13947   $as_echo_n "(cached) " >&6
13948 else
13949   if test -z "$LD"; then
13950   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13951   for ac_dir in $PATH; do
13952     IFS="$lt_save_ifs"
13953     test -z "$ac_dir" && ac_dir=.
13954     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13955       lt_cv_path_LD="$ac_dir/$ac_prog"
13956       # Check to see if the program is GNU ld.  I'd rather use --version,
13957       # but apparently some variants of GNU ld only accept -v.
13958       # Break only if it was the GNU/non-GNU ld that we prefer.
13959       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13960       *GNU* | *'with BFD'*)
13961         test "$with_gnu_ld" != no && break
13962         ;;
13963       *)
13964         test "$with_gnu_ld" != yes && break
13965         ;;
13966       esac
13967     fi
13968   done
13969   IFS="$lt_save_ifs"
13970 else
13971   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13972 fi
13973 fi
13974
13975 LD="$lt_cv_path_LD"
13976 if test -n "$LD"; then
13977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13978 $as_echo "$LD" >&6; }
13979 else
13980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13982 fi
13983 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13985 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13986 if ${lt_cv_prog_gnu_ld+:} false; then :
13987   $as_echo_n "(cached) " >&6
13988 else
13989   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13990 case `$LD -v 2>&1 </dev/null` in
13991 *GNU* | *'with BFD'*)
13992   lt_cv_prog_gnu_ld=yes
13993   ;;
13994 *)
13995   lt_cv_prog_gnu_ld=no
13996   ;;
13997 esac
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14000 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14001 with_gnu_ld=$lt_cv_prog_gnu_ld
14002
14003
14004
14005
14006
14007
14008
14009       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14010       # archiving commands below assume that GNU ld is being used.
14011       if test "$with_gnu_ld" = yes; then
14012         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14013         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'
14014
14015         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14016         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14017
14018         # If archive_cmds runs LD, not CC, wlarc should be empty
14019         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14020         #     investigate it a little bit more. (MM)
14021         wlarc='${wl}'
14022
14023         # ancient GNU ld didn't support --whole-archive et. al.
14024         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14025           $GREP 'no-whole-archive' > /dev/null; then
14026           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14027         else
14028           whole_archive_flag_spec_CXX=
14029         fi
14030       else
14031         with_gnu_ld=no
14032         wlarc=
14033
14034         # A generic and very simple default shared library creation
14035         # command for GNU C++ for the case where it uses the native
14036         # linker, instead of GNU ld.  If possible, this setting should
14037         # overridden to take advantage of the native linker features on
14038         # the platform it is being used on.
14039         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14040       fi
14041
14042       # Commands to make compiler produce verbose output that lists
14043       # what "hidden" libraries, object files and flags are used when
14044       # linking a shared library.
14045       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14046
14047     else
14048       GXX=no
14049       with_gnu_ld=no
14050       wlarc=
14051     fi
14052
14053     # PORTME: fill in a description of your system's C++ link characteristics
14054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14055 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14056     ld_shlibs_CXX=yes
14057     case $host_os in
14058       aix3*)
14059         # FIXME: insert proper C++ library support
14060         ld_shlibs_CXX=no
14061         ;;
14062       aix[4-9]*)
14063         if test "$host_cpu" = ia64; then
14064           # On IA64, the linker does run time linking by default, so we don't
14065           # have to do anything special.
14066           aix_use_runtimelinking=no
14067           exp_sym_flag='-Bexport'
14068           no_entry_flag=""
14069         else
14070           aix_use_runtimelinking=no
14071
14072           # Test if we are trying to use run time linking or normal
14073           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14074           # need to do runtime linking.
14075           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14076             for ld_flag in $LDFLAGS; do
14077               case $ld_flag in
14078               *-brtl*)
14079                 aix_use_runtimelinking=yes
14080                 break
14081                 ;;
14082               esac
14083             done
14084             ;;
14085           esac
14086
14087           exp_sym_flag='-bexport'
14088           no_entry_flag='-bnoentry'
14089         fi
14090
14091         # When large executables or shared objects are built, AIX ld can
14092         # have problems creating the table of contents.  If linking a library
14093         # or program results in "error TOC overflow" add -mminimal-toc to
14094         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14095         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14096
14097         archive_cmds_CXX=''
14098         hardcode_direct_CXX=yes
14099         hardcode_direct_absolute_CXX=yes
14100         hardcode_libdir_separator_CXX=':'
14101         link_all_deplibs_CXX=yes
14102         file_list_spec_CXX='${wl}-f,'
14103
14104         if test "$GXX" = yes; then
14105           case $host_os in aix4.[012]|aix4.[012].*)
14106           # We only want to do this on AIX 4.2 and lower, the check
14107           # below for broken collect2 doesn't work under 4.3+
14108           collect2name=`${CC} -print-prog-name=collect2`
14109           if test -f "$collect2name" &&
14110              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14111           then
14112             # We have reworked collect2
14113             :
14114           else
14115             # We have old collect2
14116             hardcode_direct_CXX=unsupported
14117             # It fails to find uninstalled libraries when the uninstalled
14118             # path is not listed in the libpath.  Setting hardcode_minus_L
14119             # to unsupported forces relinking
14120             hardcode_minus_L_CXX=yes
14121             hardcode_libdir_flag_spec_CXX='-L$libdir'
14122             hardcode_libdir_separator_CXX=
14123           fi
14124           esac
14125           shared_flag='-shared'
14126           if test "$aix_use_runtimelinking" = yes; then
14127             shared_flag="$shared_flag "'${wl}-G'
14128           fi
14129         else
14130           # not using gcc
14131           if test "$host_cpu" = ia64; then
14132           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14133           # chokes on -Wl,-G. The following line is correct:
14134           shared_flag='-G'
14135           else
14136             if test "$aix_use_runtimelinking" = yes; then
14137               shared_flag='${wl}-G'
14138             else
14139               shared_flag='${wl}-bM:SRE'
14140             fi
14141           fi
14142         fi
14143
14144         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14145         # It seems that -bexpall does not export symbols beginning with
14146         # underscore (_), so it is better to generate a list of symbols to
14147         # export.
14148         always_export_symbols_CXX=yes
14149         if test "$aix_use_runtimelinking" = yes; then
14150           # Warning - without using the other runtime loading flags (-brtl),
14151           # -berok will link without error, but may produce a broken library.
14152           allow_undefined_flag_CXX='-berok'
14153           # Determine the default libpath from the value encoded in an empty
14154           # executable.
14155           if test "${lt_cv_aix_libpath+set}" = set; then
14156   aix_libpath=$lt_cv_aix_libpath
14157 else
14158   if ${lt_cv_aix_libpath__CXX+:} false; then :
14159   $as_echo_n "(cached) " >&6
14160 else
14161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h.  */
14163
14164 int
14165 main ()
14166 {
14167
14168   ;
14169   return 0;
14170 }
14171 _ACEOF
14172 if ac_fn_cxx_try_link "$LINENO"; then :
14173
14174   lt_aix_libpath_sed='
14175       /Import File Strings/,/^$/ {
14176           /^0/ {
14177               s/^0  *\([^ ]*\) *$/\1/
14178               p
14179           }
14180       }'
14181   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14182   # Check for a 64-bit object if we didn't find anything.
14183   if test -z "$lt_cv_aix_libpath__CXX"; then
14184     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14185   fi
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext \
14188     conftest$ac_exeext conftest.$ac_ext
14189   if test -z "$lt_cv_aix_libpath__CXX"; then
14190     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14191   fi
14192
14193 fi
14194
14195   aix_libpath=$lt_cv_aix_libpath__CXX
14196 fi
14197
14198           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14199
14200           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14201         else
14202           if test "$host_cpu" = ia64; then
14203             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14204             allow_undefined_flag_CXX="-z nodefs"
14205             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"
14206           else
14207             # Determine the default libpath from the value encoded in an
14208             # empty executable.
14209             if test "${lt_cv_aix_libpath+set}" = set; then
14210   aix_libpath=$lt_cv_aix_libpath
14211 else
14212   if ${lt_cv_aix_libpath__CXX+:} false; then :
14213   $as_echo_n "(cached) " >&6
14214 else
14215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h.  */
14217
14218 int
14219 main ()
14220 {
14221
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_cxx_try_link "$LINENO"; then :
14227
14228   lt_aix_libpath_sed='
14229       /Import File Strings/,/^$/ {
14230           /^0/ {
14231               s/^0  *\([^ ]*\) *$/\1/
14232               p
14233           }
14234       }'
14235   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14236   # Check for a 64-bit object if we didn't find anything.
14237   if test -z "$lt_cv_aix_libpath__CXX"; then
14238     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14239   fi
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext \
14242     conftest$ac_exeext conftest.$ac_ext
14243   if test -z "$lt_cv_aix_libpath__CXX"; then
14244     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14245   fi
14246
14247 fi
14248
14249   aix_libpath=$lt_cv_aix_libpath__CXX
14250 fi
14251
14252             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14253             # Warning - without using the other run time loading flags,
14254             # -berok will link without error, but may produce a broken library.
14255             no_undefined_flag_CXX=' ${wl}-bernotok'
14256             allow_undefined_flag_CXX=' ${wl}-berok'
14257             if test "$with_gnu_ld" = yes; then
14258               # We only use this code for GNU lds that support --whole-archive.
14259               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14260             else
14261               # Exported symbols can be pulled into shared objects from archives
14262               whole_archive_flag_spec_CXX='$convenience'
14263             fi
14264             archive_cmds_need_lc_CXX=yes
14265             # This is similar to how AIX traditionally builds its shared
14266             # libraries.
14267             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14268           fi
14269         fi
14270         ;;
14271
14272       beos*)
14273         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14274           allow_undefined_flag_CXX=unsupported
14275           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14276           # support --undefined.  This deserves some investigation.  FIXME
14277           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14278         else
14279           ld_shlibs_CXX=no
14280         fi
14281         ;;
14282
14283       chorus*)
14284         case $cc_basename in
14285           *)
14286           # FIXME: insert proper C++ library support
14287           ld_shlibs_CXX=no
14288           ;;
14289         esac
14290         ;;
14291
14292       cygwin* | mingw* | pw32* | cegcc*)
14293         case $GXX,$cc_basename in
14294         ,cl* | no,cl*)
14295           # Native MSVC
14296           # hardcode_libdir_flag_spec is actually meaningless, as there is
14297           # no search path for DLLs.
14298           hardcode_libdir_flag_spec_CXX=' '
14299           allow_undefined_flag_CXX=unsupported
14300           always_export_symbols_CXX=yes
14301           file_list_spec_CXX='@'
14302           # Tell ltmain to make .lib files, not .a files.
14303           libext=lib
14304           # Tell ltmain to make .dll files, not .so files.
14305           shrext_cmds=".dll"
14306           # FIXME: Setting linknames here is a bad hack.
14307           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14308           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14309               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14310             else
14311               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14312             fi~
14313             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14314             linknames='
14315           # The linker will not automatically build a static lib if we build a DLL.
14316           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14317           enable_shared_with_static_runtimes_CXX=yes
14318           # Don't use ranlib
14319           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14320           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14321             lt_tool_outputfile="@TOOL_OUTPUT@"~
14322             case $lt_outputfile in
14323               *.exe|*.EXE) ;;
14324               *)
14325                 lt_outputfile="$lt_outputfile.exe"
14326                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14327                 ;;
14328             esac~
14329             func_to_tool_file "$lt_outputfile"~
14330             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14331               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14332               $RM "$lt_outputfile.manifest";
14333             fi'
14334           ;;
14335         *)
14336           # g++
14337           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14338           # as there is no search path for DLLs.
14339           hardcode_libdir_flag_spec_CXX='-L$libdir'
14340           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14341           allow_undefined_flag_CXX=unsupported
14342           always_export_symbols_CXX=no
14343           enable_shared_with_static_runtimes_CXX=yes
14344
14345           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14346             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'
14347             # If the export-symbols file already is a .def file (1st line
14348             # is EXPORTS), use it as is; otherwise, prepend...
14349             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14350               cp $export_symbols $output_objdir/$soname.def;
14351             else
14352               echo EXPORTS > $output_objdir/$soname.def;
14353               cat $export_symbols >> $output_objdir/$soname.def;
14354             fi~
14355             $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'
14356           else
14357             ld_shlibs_CXX=no
14358           fi
14359           ;;
14360         esac
14361         ;;
14362       darwin* | rhapsody*)
14363
14364
14365   archive_cmds_need_lc_CXX=no
14366   hardcode_direct_CXX=no
14367   hardcode_automatic_CXX=yes
14368   hardcode_shlibpath_var_CXX=unsupported
14369   if test "$lt_cv_ld_force_load" = "yes"; then
14370     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\"`'
14371
14372   else
14373     whole_archive_flag_spec_CXX=''
14374   fi
14375   link_all_deplibs_CXX=yes
14376   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14377   case $cc_basename in
14378      ifort*) _lt_dar_can_shared=yes ;;
14379      *) _lt_dar_can_shared=$GCC ;;
14380   esac
14381   if test "$_lt_dar_can_shared" = "yes"; then
14382     output_verbose_link_cmd=func_echo_all
14383     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}"
14384     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14385     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}"
14386     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}"
14387        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14388       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}"
14389       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}"
14390     fi
14391
14392   else
14393   ld_shlibs_CXX=no
14394   fi
14395
14396         ;;
14397
14398       dgux*)
14399         case $cc_basename in
14400           ec++*)
14401             # FIXME: insert proper C++ library support
14402             ld_shlibs_CXX=no
14403             ;;
14404           ghcx*)
14405             # Green Hills C++ Compiler
14406             # FIXME: insert proper C++ library support
14407             ld_shlibs_CXX=no
14408             ;;
14409           *)
14410             # FIXME: insert proper C++ library support
14411             ld_shlibs_CXX=no
14412             ;;
14413         esac
14414         ;;
14415
14416       freebsd2.*)
14417         # C++ shared libraries reported to be fairly broken before
14418         # switch to ELF
14419         ld_shlibs_CXX=no
14420         ;;
14421
14422       freebsd-elf*)
14423         archive_cmds_need_lc_CXX=no
14424         ;;
14425
14426       freebsd* | dragonfly*)
14427         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14428         # conventions
14429         ld_shlibs_CXX=yes
14430         ;;
14431
14432       haiku*)
14433         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14434         link_all_deplibs_CXX=yes
14435         ;;
14436
14437       hpux9*)
14438         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14439         hardcode_libdir_separator_CXX=:
14440         export_dynamic_flag_spec_CXX='${wl}-E'
14441         hardcode_direct_CXX=yes
14442         hardcode_minus_L_CXX=yes # Not in the search PATH,
14443                                              # but as the default
14444                                              # location of the library.
14445
14446         case $cc_basename in
14447           CC*)
14448             # FIXME: insert proper C++ library support
14449             ld_shlibs_CXX=no
14450             ;;
14451           aCC*)
14452             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14453             # Commands to make compiler produce verbose output that lists
14454             # what "hidden" libraries, object files and flags are used when
14455             # linking a shared library.
14456             #
14457             # There doesn't appear to be a way to prevent this compiler from
14458             # explicitly linking system object files so we need to strip them
14459             # from the output so that they don't get included in the library
14460             # dependencies.
14461             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"'
14462             ;;
14463           *)
14464             if test "$GXX" = yes; then
14465               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14466             else
14467               # FIXME: insert proper C++ library support
14468               ld_shlibs_CXX=no
14469             fi
14470             ;;
14471         esac
14472         ;;
14473
14474       hpux10*|hpux11*)
14475         if test $with_gnu_ld = no; then
14476           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14477           hardcode_libdir_separator_CXX=:
14478
14479           case $host_cpu in
14480             hppa*64*|ia64*)
14481               ;;
14482             *)
14483               export_dynamic_flag_spec_CXX='${wl}-E'
14484               ;;
14485           esac
14486         fi
14487         case $host_cpu in
14488           hppa*64*|ia64*)
14489             hardcode_direct_CXX=no
14490             hardcode_shlibpath_var_CXX=no
14491             ;;
14492           *)
14493             hardcode_direct_CXX=yes
14494             hardcode_direct_absolute_CXX=yes
14495             hardcode_minus_L_CXX=yes # Not in the search PATH,
14496                                                  # but as the default
14497                                                  # location of the library.
14498             ;;
14499         esac
14500
14501         case $cc_basename in
14502           CC*)
14503             # FIXME: insert proper C++ library support
14504             ld_shlibs_CXX=no
14505             ;;
14506           aCC*)
14507             case $host_cpu in
14508               hppa*64*)
14509                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14510                 ;;
14511               ia64*)
14512                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14513                 ;;
14514               *)
14515                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14516                 ;;
14517             esac
14518             # Commands to make compiler produce verbose output that lists
14519             # what "hidden" libraries, object files and flags are used when
14520             # linking a shared library.
14521             #
14522             # There doesn't appear to be a way to prevent this compiler from
14523             # explicitly linking system object files so we need to strip them
14524             # from the output so that they don't get included in the library
14525             # dependencies.
14526             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"'
14527             ;;
14528           *)
14529             if test "$GXX" = yes; then
14530               if test $with_gnu_ld = no; then
14531                 case $host_cpu in
14532                   hppa*64*)
14533                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14534                     ;;
14535                   ia64*)
14536                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14537                     ;;
14538                   *)
14539                     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'
14540                     ;;
14541                 esac
14542               fi
14543             else
14544               # FIXME: insert proper C++ library support
14545               ld_shlibs_CXX=no
14546             fi
14547             ;;
14548         esac
14549         ;;
14550
14551       interix[3-9]*)
14552         hardcode_direct_CXX=no
14553         hardcode_shlibpath_var_CXX=no
14554         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14555         export_dynamic_flag_spec_CXX='${wl}-E'
14556         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14557         # Instead, shared libraries are loaded at an image base (0x10000000 by
14558         # default) and relocated if they conflict, which is a slow very memory
14559         # consuming and fragmenting process.  To avoid this, we pick a random,
14560         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14561         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14562         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'
14563         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'
14564         ;;
14565       irix5* | irix6*)
14566         case $cc_basename in
14567           CC*)
14568             # SGI C++
14569             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'
14570
14571             # Archives containing C++ object files must be created using
14572             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14573             # necessary to make sure instantiated templates are included
14574             # in the archive.
14575             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14576             ;;
14577           *)
14578             if test "$GXX" = yes; then
14579               if test "$with_gnu_ld" = no; then
14580                 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'
14581               else
14582                 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'
14583               fi
14584             fi
14585             link_all_deplibs_CXX=yes
14586             ;;
14587         esac
14588         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14589         hardcode_libdir_separator_CXX=:
14590         inherit_rpath_CXX=yes
14591         ;;
14592
14593       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14594         case $cc_basename in
14595           KCC*)
14596             # Kuck and Associates, Inc. (KAI) C++ Compiler
14597
14598             # KCC will only create a shared library if the output file
14599             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14600             # to its proper name (with version) after linking.
14601             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'
14602             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'
14603             # Commands to make compiler produce verbose output that lists
14604             # what "hidden" libraries, object files and flags are used when
14605             # linking a shared library.
14606             #
14607             # There doesn't appear to be a way to prevent this compiler from
14608             # explicitly linking system object files so we need to strip them
14609             # from the output so that they don't get included in the library
14610             # dependencies.
14611             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"'
14612
14613             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14614             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14615
14616             # Archives containing C++ object files must be created using
14617             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14618             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14619             ;;
14620           icpc* | ecpc* )
14621             # Intel C++
14622             with_gnu_ld=yes
14623             # version 8.0 and above of icpc choke on multiply defined symbols
14624             # if we add $predep_objects and $postdep_objects, however 7.1 and
14625             # earlier do not add the objects themselves.
14626             case `$CC -V 2>&1` in
14627               *"Version 7."*)
14628                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14629                 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'
14630                 ;;
14631               *)  # Version 8.0 or newer
14632                 tmp_idyn=
14633                 case $host_cpu in
14634                   ia64*) tmp_idyn=' -i_dynamic';;
14635                 esac
14636                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14637                 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'
14638                 ;;
14639             esac
14640             archive_cmds_need_lc_CXX=no
14641             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14642             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14643             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14644             ;;
14645           pgCC* | pgcpp*)
14646             # Portland Group C++ compiler
14647             case `$CC -V` in
14648             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14649               prelink_cmds_CXX='tpldir=Template.dir~
14650                 rm -rf $tpldir~
14651                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14652                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14653               old_archive_cmds_CXX='tpldir=Template.dir~
14654                 rm -rf $tpldir~
14655                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14656                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14657                 $RANLIB $oldlib'
14658               archive_cmds_CXX='tpldir=Template.dir~
14659                 rm -rf $tpldir~
14660                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14661                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14662               archive_expsym_cmds_CXX='tpldir=Template.dir~
14663                 rm -rf $tpldir~
14664                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14665                 $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'
14666               ;;
14667             *) # Version 6 and above use weak symbols
14668               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14669               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'
14670               ;;
14671             esac
14672
14673             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14674             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14675             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'
14676             ;;
14677           cxx*)
14678             # Compaq C++
14679             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14680             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'
14681
14682             runpath_var=LD_RUN_PATH
14683             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14684             hardcode_libdir_separator_CXX=:
14685
14686             # Commands to make compiler produce verbose output that lists
14687             # what "hidden" libraries, object files and flags are used when
14688             # linking a shared library.
14689             #
14690             # There doesn't appear to be a way to prevent this compiler from
14691             # explicitly linking system object files so we need to strip them
14692             # from the output so that they don't get included in the library
14693             # dependencies.
14694             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'
14695             ;;
14696           xl* | mpixl* | bgxl*)
14697             # IBM XL 8.0 on PPC, with GNU ld
14698             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14699             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14700             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14701             if test "x$supports_anon_versioning" = xyes; then
14702               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14703                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14704                 echo "local: *; };" >> $output_objdir/$libname.ver~
14705                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14706             fi
14707             ;;
14708           *)
14709             case `$CC -V 2>&1 | sed 5q` in
14710             *Sun\ C*)
14711               # Sun C++ 5.9
14712               no_undefined_flag_CXX=' -zdefs'
14713               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14714               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'
14715               hardcode_libdir_flag_spec_CXX='-R$libdir'
14716               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'
14717               compiler_needs_object_CXX=yes
14718
14719               # Not sure whether something based on
14720               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14721               # would be better.
14722               output_verbose_link_cmd='func_echo_all'
14723
14724               # Archives containing C++ object files must be created using
14725               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14726               # necessary to make sure instantiated templates are included
14727               # in the archive.
14728               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14729               ;;
14730             esac
14731             ;;
14732         esac
14733         ;;
14734
14735       lynxos*)
14736         # FIXME: insert proper C++ library support
14737         ld_shlibs_CXX=no
14738         ;;
14739
14740       m88k*)
14741         # FIXME: insert proper C++ library support
14742         ld_shlibs_CXX=no
14743         ;;
14744
14745       mvs*)
14746         case $cc_basename in
14747           cxx*)
14748             # FIXME: insert proper C++ library support
14749             ld_shlibs_CXX=no
14750             ;;
14751           *)
14752             # FIXME: insert proper C++ library support
14753             ld_shlibs_CXX=no
14754             ;;
14755         esac
14756         ;;
14757
14758       netbsd*)
14759         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14760           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14761           wlarc=
14762           hardcode_libdir_flag_spec_CXX='-R$libdir'
14763           hardcode_direct_CXX=yes
14764           hardcode_shlibpath_var_CXX=no
14765         fi
14766         # Workaround some broken pre-1.5 toolchains
14767         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14768         ;;
14769
14770       *nto* | *qnx*)
14771         ld_shlibs_CXX=yes
14772         ;;
14773
14774       openbsd2*)
14775         # C++ shared libraries are fairly broken
14776         ld_shlibs_CXX=no
14777         ;;
14778
14779       openbsd*)
14780         if test -f /usr/libexec/ld.so; then
14781           hardcode_direct_CXX=yes
14782           hardcode_shlibpath_var_CXX=no
14783           hardcode_direct_absolute_CXX=yes
14784           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14785           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14786           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14787             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14788             export_dynamic_flag_spec_CXX='${wl}-E'
14789             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14790           fi
14791           output_verbose_link_cmd=func_echo_all
14792         else
14793           ld_shlibs_CXX=no
14794         fi
14795         ;;
14796
14797       osf3* | osf4* | osf5*)
14798         case $cc_basename in
14799           KCC*)
14800             # Kuck and Associates, Inc. (KAI) C++ Compiler
14801
14802             # KCC will only create a shared library if the output file
14803             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14804             # to its proper name (with version) after linking.
14805             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'
14806
14807             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14808             hardcode_libdir_separator_CXX=:
14809
14810             # Archives containing C++ object files must be created using
14811             # the KAI C++ compiler.
14812             case $host in
14813               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14814               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14815             esac
14816             ;;
14817           RCC*)
14818             # Rational C++ 2.4.1
14819             # FIXME: insert proper C++ library support
14820             ld_shlibs_CXX=no
14821             ;;
14822           cxx*)
14823             case $host in
14824               osf3*)
14825                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14826                 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'
14827                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14828                 ;;
14829               *)
14830                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14831                 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'
14832                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14833                   echo "-hidden">> $lib.exp~
14834                   $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~
14835                   $RM $lib.exp'
14836                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14837                 ;;
14838             esac
14839
14840             hardcode_libdir_separator_CXX=:
14841
14842             # Commands to make compiler produce verbose output that lists
14843             # what "hidden" libraries, object files and flags are used when
14844             # linking a shared library.
14845             #
14846             # There doesn't appear to be a way to prevent this compiler from
14847             # explicitly linking system object files so we need to strip them
14848             # from the output so that they don't get included in the library
14849             # dependencies.
14850             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"'
14851             ;;
14852           *)
14853             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14854               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14855               case $host in
14856                 osf3*)
14857                   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'
14858                   ;;
14859                 *)
14860                   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'
14861                   ;;
14862               esac
14863
14864               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14865               hardcode_libdir_separator_CXX=:
14866
14867               # Commands to make compiler produce verbose output that lists
14868               # what "hidden" libraries, object files and flags are used when
14869               # linking a shared library.
14870               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14871
14872             else
14873               # FIXME: insert proper C++ library support
14874               ld_shlibs_CXX=no
14875             fi
14876             ;;
14877         esac
14878         ;;
14879
14880       psos*)
14881         # FIXME: insert proper C++ library support
14882         ld_shlibs_CXX=no
14883         ;;
14884
14885       sunos4*)
14886         case $cc_basename in
14887           CC*)
14888             # Sun C++ 4.x
14889             # FIXME: insert proper C++ library support
14890             ld_shlibs_CXX=no
14891             ;;
14892           lcc*)
14893             # Lucid
14894             # FIXME: insert proper C++ library support
14895             ld_shlibs_CXX=no
14896             ;;
14897           *)
14898             # FIXME: insert proper C++ library support
14899             ld_shlibs_CXX=no
14900             ;;
14901         esac
14902         ;;
14903
14904       solaris*)
14905         case $cc_basename in
14906           CC* | sunCC*)
14907             # Sun C++ 4.2, 5.x and Centerline C++
14908             archive_cmds_need_lc_CXX=yes
14909             no_undefined_flag_CXX=' -zdefs'
14910             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14911             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14912               $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'
14913
14914             hardcode_libdir_flag_spec_CXX='-R$libdir'
14915             hardcode_shlibpath_var_CXX=no
14916             case $host_os in
14917               solaris2.[0-5] | solaris2.[0-5].*) ;;
14918               *)
14919                 # The compiler driver will combine and reorder linker options,
14920                 # but understands `-z linker_flag'.
14921                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14922                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14923                 ;;
14924             esac
14925             link_all_deplibs_CXX=yes
14926
14927             output_verbose_link_cmd='func_echo_all'
14928
14929             # Archives containing C++ object files must be created using
14930             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14931             # necessary to make sure instantiated templates are included
14932             # in the archive.
14933             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14934             ;;
14935           gcx*)
14936             # Green Hills C++ Compiler
14937             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14938
14939             # The C++ compiler must be used to create the archive.
14940             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14941             ;;
14942           *)
14943             # GNU C++ compiler with Solaris linker
14944             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14945               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14946               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14947                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14948                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14949                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14950
14951                 # Commands to make compiler produce verbose output that lists
14952                 # what "hidden" libraries, object files and flags are used when
14953                 # linking a shared library.
14954                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14955               else
14956                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14957                 # platform.
14958                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14959                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14960                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14961
14962                 # Commands to make compiler produce verbose output that lists
14963                 # what "hidden" libraries, object files and flags are used when
14964                 # linking a shared library.
14965                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14966               fi
14967
14968               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14969               case $host_os in
14970                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14971                 *)
14972                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14973                   ;;
14974               esac
14975             fi
14976             ;;
14977         esac
14978         ;;
14979
14980     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14981       no_undefined_flag_CXX='${wl}-z,text'
14982       archive_cmds_need_lc_CXX=no
14983       hardcode_shlibpath_var_CXX=no
14984       runpath_var='LD_RUN_PATH'
14985
14986       case $cc_basename in
14987         CC*)
14988           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14989           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14990           ;;
14991         *)
14992           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994           ;;
14995       esac
14996       ;;
14997
14998       sysv5* | sco3.2v5* | sco5v6*)
14999         # Note: We can NOT use -z defs as we might desire, because we do not
15000         # link with -lc, and that would cause any symbols used from libc to
15001         # always be unresolved, which means just about no library would
15002         # ever link correctly.  If we're not using GNU ld we use -z text
15003         # though, which does catch some bad symbols but isn't as heavy-handed
15004         # as -z defs.
15005         no_undefined_flag_CXX='${wl}-z,text'
15006         allow_undefined_flag_CXX='${wl}-z,nodefs'
15007         archive_cmds_need_lc_CXX=no
15008         hardcode_shlibpath_var_CXX=no
15009         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15010         hardcode_libdir_separator_CXX=':'
15011         link_all_deplibs_CXX=yes
15012         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15013         runpath_var='LD_RUN_PATH'
15014
15015         case $cc_basename in
15016           CC*)
15017             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15018             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15019             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15020               '"$old_archive_cmds_CXX"
15021             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15022               '"$reload_cmds_CXX"
15023             ;;
15024           *)
15025             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15026             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15027             ;;
15028         esac
15029       ;;
15030
15031       tandem*)
15032         case $cc_basename in
15033           NCC*)
15034             # NonStop-UX NCC 3.20
15035             # FIXME: insert proper C++ library support
15036             ld_shlibs_CXX=no
15037             ;;
15038           *)
15039             # FIXME: insert proper C++ library support
15040             ld_shlibs_CXX=no
15041             ;;
15042         esac
15043         ;;
15044
15045       vxworks*)
15046         # FIXME: insert proper C++ library support
15047         ld_shlibs_CXX=no
15048         ;;
15049
15050       *)
15051         # FIXME: insert proper C++ library support
15052         ld_shlibs_CXX=no
15053         ;;
15054     esac
15055
15056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15057 $as_echo "$ld_shlibs_CXX" >&6; }
15058     test "$ld_shlibs_CXX" = no && can_build_shared=no
15059
15060     GCC_CXX="$GXX"
15061     LD_CXX="$LD"
15062
15063     ## CAVEAT EMPTOR:
15064     ## There is no encapsulation within the following macros, do not change
15065     ## the running order or otherwise move them around unless you know exactly
15066     ## what you are doing...
15067     # Dependencies to place before and after the object being linked:
15068 predep_objects_CXX=
15069 postdep_objects_CXX=
15070 predeps_CXX=
15071 postdeps_CXX=
15072 compiler_lib_search_path_CXX=
15073
15074 cat > conftest.$ac_ext <<_LT_EOF
15075 class Foo
15076 {
15077 public:
15078   Foo (void) { a = 0; }
15079 private:
15080   int a;
15081 };
15082 _LT_EOF
15083
15084
15085 _lt_libdeps_save_CFLAGS=$CFLAGS
15086 case "$CC $CFLAGS " in #(
15087 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15088 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15089 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15090 esac
15091
15092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15093   (eval $ac_compile) 2>&5
15094   ac_status=$?
15095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15096   test $ac_status = 0; }; then
15097   # Parse the compiler output and extract the necessary
15098   # objects, libraries and library flags.
15099
15100   # Sentinel used to keep track of whether or not we are before
15101   # the conftest object file.
15102   pre_test_object_deps_done=no
15103
15104   for p in `eval "$output_verbose_link_cmd"`; do
15105     case ${prev}${p} in
15106
15107     -L* | -R* | -l*)
15108        # Some compilers place space between "-{L,R}" and the path.
15109        # Remove the space.
15110        if test $p = "-L" ||
15111           test $p = "-R"; then
15112          prev=$p
15113          continue
15114        fi
15115
15116        # Expand the sysroot to ease extracting the directories later.
15117        if test -z "$prev"; then
15118          case $p in
15119          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15120          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15121          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15122          esac
15123        fi
15124        case $p in
15125        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15126        esac
15127        if test "$pre_test_object_deps_done" = no; then
15128          case ${prev} in
15129          -L | -R)
15130            # Internal compiler library paths should come after those
15131            # provided the user.  The postdeps already come after the
15132            # user supplied libs so there is no need to process them.
15133            if test -z "$compiler_lib_search_path_CXX"; then
15134              compiler_lib_search_path_CXX="${prev}${p}"
15135            else
15136              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15137            fi
15138            ;;
15139          # The "-l" case would never come before the object being
15140          # linked, so don't bother handling this case.
15141          esac
15142        else
15143          if test -z "$postdeps_CXX"; then
15144            postdeps_CXX="${prev}${p}"
15145          else
15146            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15147          fi
15148        fi
15149        prev=
15150        ;;
15151
15152     *.lto.$objext) ;; # Ignore GCC LTO objects
15153     *.$objext)
15154        # This assumes that the test object file only shows up
15155        # once in the compiler output.
15156        if test "$p" = "conftest.$objext"; then
15157          pre_test_object_deps_done=yes
15158          continue
15159        fi
15160
15161        if test "$pre_test_object_deps_done" = no; then
15162          if test -z "$predep_objects_CXX"; then
15163            predep_objects_CXX="$p"
15164          else
15165            predep_objects_CXX="$predep_objects_CXX $p"
15166          fi
15167        else
15168          if test -z "$postdep_objects_CXX"; then
15169            postdep_objects_CXX="$p"
15170          else
15171            postdep_objects_CXX="$postdep_objects_CXX $p"
15172          fi
15173        fi
15174        ;;
15175
15176     *) ;; # Ignore the rest.
15177
15178     esac
15179   done
15180
15181   # Clean up.
15182   rm -f a.out a.exe
15183 else
15184   echo "libtool.m4: error: problem compiling CXX test program"
15185 fi
15186
15187 $RM -f confest.$objext
15188 CFLAGS=$_lt_libdeps_save_CFLAGS
15189
15190 # PORTME: override above test on systems where it is broken
15191 case $host_os in
15192 interix[3-9]*)
15193   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15194   # hack all around it, let's just trust "g++" to DTRT.
15195   predep_objects_CXX=
15196   postdep_objects_CXX=
15197   postdeps_CXX=
15198   ;;
15199
15200 linux*)
15201   case `$CC -V 2>&1 | sed 5q` in
15202   *Sun\ C*)
15203     # Sun C++ 5.9
15204
15205     # The more standards-conforming stlport4 library is
15206     # incompatible with the Cstd library. Avoid specifying
15207     # it if it's in CXXFLAGS. Ignore libCrun as
15208     # -library=stlport4 depends on it.
15209     case " $CXX $CXXFLAGS " in
15210     *" -library=stlport4 "*)
15211       solaris_use_stlport4=yes
15212       ;;
15213     esac
15214
15215     if test "$solaris_use_stlport4" != yes; then
15216       postdeps_CXX='-library=Cstd -library=Crun'
15217     fi
15218     ;;
15219   esac
15220   ;;
15221
15222 solaris*)
15223   case $cc_basename in
15224   CC* | sunCC*)
15225     # The more standards-conforming stlport4 library is
15226     # incompatible with the Cstd library. Avoid specifying
15227     # it if it's in CXXFLAGS. Ignore libCrun as
15228     # -library=stlport4 depends on it.
15229     case " $CXX $CXXFLAGS " in
15230     *" -library=stlport4 "*)
15231       solaris_use_stlport4=yes
15232       ;;
15233     esac
15234
15235     # Adding this requires a known-good setup of shared libraries for
15236     # Sun compiler versions before 5.6, else PIC objects from an old
15237     # archive will be linked into the output, leading to subtle bugs.
15238     if test "$solaris_use_stlport4" != yes; then
15239       postdeps_CXX='-library=Cstd -library=Crun'
15240     fi
15241     ;;
15242   esac
15243   ;;
15244 esac
15245
15246
15247 case " $postdeps_CXX " in
15248 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15249 esac
15250  compiler_lib_search_dirs_CXX=
15251 if test -n "${compiler_lib_search_path_CXX}"; then
15252  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15253 fi
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285     lt_prog_compiler_wl_CXX=
15286 lt_prog_compiler_pic_CXX=
15287 lt_prog_compiler_static_CXX=
15288
15289
15290   # C++ specific cases for pic, static, wl, etc.
15291   if test "$GXX" = yes; then
15292     lt_prog_compiler_wl_CXX='-Wl,'
15293     lt_prog_compiler_static_CXX='-static'
15294
15295     case $host_os in
15296     aix*)
15297       # All AIX code is PIC.
15298       if test "$host_cpu" = ia64; then
15299         # AIX 5 now supports IA64 processor
15300         lt_prog_compiler_static_CXX='-Bstatic'
15301       fi
15302       ;;
15303
15304     amigaos*)
15305       case $host_cpu in
15306       powerpc)
15307             # see comment about AmigaOS4 .so support
15308             lt_prog_compiler_pic_CXX='-fPIC'
15309         ;;
15310       m68k)
15311             # FIXME: we need at least 68020 code to build shared libraries, but
15312             # adding the `-m68020' flag to GCC prevents building anything better,
15313             # like `-m68040'.
15314             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15315         ;;
15316       esac
15317       ;;
15318
15319     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15320       # PIC is the default for these OSes.
15321       ;;
15322     mingw* | cygwin* | os2* | pw32* | cegcc*)
15323       # This hack is so that the source file can tell whether it is being
15324       # built for inclusion in a dll (and should export symbols for example).
15325       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15326       # (--disable-auto-import) libraries
15327       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15328       ;;
15329     darwin* | rhapsody*)
15330       # PIC is the default on this platform
15331       # Common symbols not allowed in MH_DYLIB files
15332       lt_prog_compiler_pic_CXX='-fno-common'
15333       ;;
15334     *djgpp*)
15335       # DJGPP does not support shared libraries at all
15336       lt_prog_compiler_pic_CXX=
15337       ;;
15338     haiku*)
15339       # PIC is the default for Haiku.
15340       # The "-static" flag exists, but is broken.
15341       lt_prog_compiler_static_CXX=
15342       ;;
15343     interix[3-9]*)
15344       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15345       # Instead, we relocate shared libraries at runtime.
15346       ;;
15347     sysv4*MP*)
15348       if test -d /usr/nec; then
15349         lt_prog_compiler_pic_CXX=-Kconform_pic
15350       fi
15351       ;;
15352     hpux*)
15353       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15354       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15355       # sets the default TLS model and affects inlining.
15356       case $host_cpu in
15357       hppa*64*)
15358         ;;
15359       *)
15360         lt_prog_compiler_pic_CXX='-fPIC'
15361         ;;
15362       esac
15363       ;;
15364     *qnx* | *nto*)
15365       # QNX uses GNU C++, but need to define -shared option too, otherwise
15366       # it will coredump.
15367       lt_prog_compiler_pic_CXX='-fPIC -shared'
15368       ;;
15369     *)
15370       lt_prog_compiler_pic_CXX='-fPIC'
15371       ;;
15372     esac
15373   else
15374     case $host_os in
15375       aix[4-9]*)
15376         # All AIX code is PIC.
15377         if test "$host_cpu" = ia64; then
15378           # AIX 5 now supports IA64 processor
15379           lt_prog_compiler_static_CXX='-Bstatic'
15380         else
15381           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15382         fi
15383         ;;
15384       chorus*)
15385         case $cc_basename in
15386         cxch68*)
15387           # Green Hills C++ Compiler
15388           # _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"
15389           ;;
15390         esac
15391         ;;
15392       mingw* | cygwin* | os2* | pw32* | cegcc*)
15393         # This hack is so that the source file can tell whether it is being
15394         # built for inclusion in a dll (and should export symbols for example).
15395         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15396         ;;
15397       dgux*)
15398         case $cc_basename in
15399           ec++*)
15400             lt_prog_compiler_pic_CXX='-KPIC'
15401             ;;
15402           ghcx*)
15403             # Green Hills C++ Compiler
15404             lt_prog_compiler_pic_CXX='-pic'
15405             ;;
15406           *)
15407             ;;
15408         esac
15409         ;;
15410       freebsd* | dragonfly*)
15411         # FreeBSD uses GNU C++
15412         ;;
15413       hpux9* | hpux10* | hpux11*)
15414         case $cc_basename in
15415           CC*)
15416             lt_prog_compiler_wl_CXX='-Wl,'
15417             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15418             if test "$host_cpu" != ia64; then
15419               lt_prog_compiler_pic_CXX='+Z'
15420             fi
15421             ;;
15422           aCC*)
15423             lt_prog_compiler_wl_CXX='-Wl,'
15424             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15425             case $host_cpu in
15426             hppa*64*|ia64*)
15427               # +Z the default
15428               ;;
15429             *)
15430               lt_prog_compiler_pic_CXX='+Z'
15431               ;;
15432             esac
15433             ;;
15434           *)
15435             ;;
15436         esac
15437         ;;
15438       interix*)
15439         # This is c89, which is MS Visual C++ (no shared libs)
15440         # Anyone wants to do a port?
15441         ;;
15442       irix5* | irix6* | nonstopux*)
15443         case $cc_basename in
15444           CC*)
15445             lt_prog_compiler_wl_CXX='-Wl,'
15446             lt_prog_compiler_static_CXX='-non_shared'
15447             # CC pic flag -KPIC is the default.
15448             ;;
15449           *)
15450             ;;
15451         esac
15452         ;;
15453       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15454         case $cc_basename in
15455           KCC*)
15456             # KAI C++ Compiler
15457             lt_prog_compiler_wl_CXX='--backend -Wl,'
15458             lt_prog_compiler_pic_CXX='-fPIC'
15459             ;;
15460           ecpc* )
15461             # old Intel C++ for x86_64 which still supported -KPIC.
15462             lt_prog_compiler_wl_CXX='-Wl,'
15463             lt_prog_compiler_pic_CXX='-KPIC'
15464             lt_prog_compiler_static_CXX='-static'
15465             ;;
15466           icpc* )
15467             # Intel C++, used to be incompatible with GCC.
15468             # ICC 10 doesn't accept -KPIC any more.
15469             lt_prog_compiler_wl_CXX='-Wl,'
15470             lt_prog_compiler_pic_CXX='-fPIC'
15471             lt_prog_compiler_static_CXX='-static'
15472             ;;
15473           pgCC* | pgcpp*)
15474             # Portland Group C++ compiler
15475             lt_prog_compiler_wl_CXX='-Wl,'
15476             lt_prog_compiler_pic_CXX='-fpic'
15477             lt_prog_compiler_static_CXX='-Bstatic'
15478             ;;
15479           cxx*)
15480             # Compaq C++
15481             # Make sure the PIC flag is empty.  It appears that all Alpha
15482             # Linux and Compaq Tru64 Unix objects are PIC.
15483             lt_prog_compiler_pic_CXX=
15484             lt_prog_compiler_static_CXX='-non_shared'
15485             ;;
15486           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15487             # IBM XL 8.0, 9.0 on PPC and BlueGene
15488             lt_prog_compiler_wl_CXX='-Wl,'
15489             lt_prog_compiler_pic_CXX='-qpic'
15490             lt_prog_compiler_static_CXX='-qstaticlink'
15491             ;;
15492           *)
15493             case `$CC -V 2>&1 | sed 5q` in
15494             *Sun\ C*)
15495               # Sun C++ 5.9
15496               lt_prog_compiler_pic_CXX='-KPIC'
15497               lt_prog_compiler_static_CXX='-Bstatic'
15498               lt_prog_compiler_wl_CXX='-Qoption ld '
15499               ;;
15500             esac
15501             ;;
15502         esac
15503         ;;
15504       lynxos*)
15505         ;;
15506       m88k*)
15507         ;;
15508       mvs*)
15509         case $cc_basename in
15510           cxx*)
15511             lt_prog_compiler_pic_CXX='-W c,exportall'
15512             ;;
15513           *)
15514             ;;
15515         esac
15516         ;;
15517       netbsd* | netbsdelf*-gnu)
15518         ;;
15519       *qnx* | *nto*)
15520         # QNX uses GNU C++, but need to define -shared option too, otherwise
15521         # it will coredump.
15522         lt_prog_compiler_pic_CXX='-fPIC -shared'
15523         ;;
15524       osf3* | osf4* | osf5*)
15525         case $cc_basename in
15526           KCC*)
15527             lt_prog_compiler_wl_CXX='--backend -Wl,'
15528             ;;
15529           RCC*)
15530             # Rational C++ 2.4.1
15531             lt_prog_compiler_pic_CXX='-pic'
15532             ;;
15533           cxx*)
15534             # Digital/Compaq C++
15535             lt_prog_compiler_wl_CXX='-Wl,'
15536             # Make sure the PIC flag is empty.  It appears that all Alpha
15537             # Linux and Compaq Tru64 Unix objects are PIC.
15538             lt_prog_compiler_pic_CXX=
15539             lt_prog_compiler_static_CXX='-non_shared'
15540             ;;
15541           *)
15542             ;;
15543         esac
15544         ;;
15545       psos*)
15546         ;;
15547       solaris*)
15548         case $cc_basename in
15549           CC* | sunCC*)
15550             # Sun C++ 4.2, 5.x and Centerline C++
15551             lt_prog_compiler_pic_CXX='-KPIC'
15552             lt_prog_compiler_static_CXX='-Bstatic'
15553             lt_prog_compiler_wl_CXX='-Qoption ld '
15554             ;;
15555           gcx*)
15556             # Green Hills C++ Compiler
15557             lt_prog_compiler_pic_CXX='-PIC'
15558             ;;
15559           *)
15560             ;;
15561         esac
15562         ;;
15563       sunos4*)
15564         case $cc_basename in
15565           CC*)
15566             # Sun C++ 4.x
15567             lt_prog_compiler_pic_CXX='-pic'
15568             lt_prog_compiler_static_CXX='-Bstatic'
15569             ;;
15570           lcc*)
15571             # Lucid
15572             lt_prog_compiler_pic_CXX='-pic'
15573             ;;
15574           *)
15575             ;;
15576         esac
15577         ;;
15578       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15579         case $cc_basename in
15580           CC*)
15581             lt_prog_compiler_wl_CXX='-Wl,'
15582             lt_prog_compiler_pic_CXX='-KPIC'
15583             lt_prog_compiler_static_CXX='-Bstatic'
15584             ;;
15585         esac
15586         ;;
15587       tandem*)
15588         case $cc_basename in
15589           NCC*)
15590             # NonStop-UX NCC 3.20
15591             lt_prog_compiler_pic_CXX='-KPIC'
15592             ;;
15593           *)
15594             ;;
15595         esac
15596         ;;
15597       vxworks*)
15598         ;;
15599       *)
15600         lt_prog_compiler_can_build_shared_CXX=no
15601         ;;
15602     esac
15603   fi
15604
15605 case $host_os in
15606   # For platforms which do not support PIC, -DPIC is meaningless:
15607   *djgpp*)
15608     lt_prog_compiler_pic_CXX=
15609     ;;
15610   *)
15611     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15612     ;;
15613 esac
15614
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15616 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15617 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15618   $as_echo_n "(cached) " >&6
15619 else
15620   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15621 fi
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15623 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15624 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15625
15626 #
15627 # Check to make sure the PIC flag actually works.
15628 #
15629 if test -n "$lt_prog_compiler_pic_CXX"; then
15630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15631 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15632 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15633   $as_echo_n "(cached) " >&6
15634 else
15635   lt_cv_prog_compiler_pic_works_CXX=no
15636    ac_outfile=conftest.$ac_objext
15637    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15638    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15639    # Insert the option either (1) after the last *FLAGS variable, or
15640    # (2) before a word containing "conftest.", or (3) at the end.
15641    # Note that $ac_compile itself does not contain backslashes and begins
15642    # with a dollar sign (not a hyphen), so the echo should work correctly.
15643    # The option is referenced via a variable to avoid confusing sed.
15644    lt_compile=`echo "$ac_compile" | $SED \
15645    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15647    -e 's:$: $lt_compiler_flag:'`
15648    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15649    (eval "$lt_compile" 2>conftest.err)
15650    ac_status=$?
15651    cat conftest.err >&5
15652    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653    if (exit $ac_status) && test -s "$ac_outfile"; then
15654      # The compiler can only warn and ignore the option if not recognized
15655      # So say no if there are warnings other than the usual output.
15656      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15657      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15658      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15659        lt_cv_prog_compiler_pic_works_CXX=yes
15660      fi
15661    fi
15662    $RM conftest*
15663
15664 fi
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15666 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15667
15668 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15669     case $lt_prog_compiler_pic_CXX in
15670      "" | " "*) ;;
15671      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15672      esac
15673 else
15674     lt_prog_compiler_pic_CXX=
15675      lt_prog_compiler_can_build_shared_CXX=no
15676 fi
15677
15678 fi
15679
15680
15681
15682
15683
15684 #
15685 # Check to make sure the static flag actually works.
15686 #
15687 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15690 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15691   $as_echo_n "(cached) " >&6
15692 else
15693   lt_cv_prog_compiler_static_works_CXX=no
15694    save_LDFLAGS="$LDFLAGS"
15695    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15696    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15697    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15698      # The linker can only warn and ignore the option if not recognized
15699      # So say no if there are warnings
15700      if test -s conftest.err; then
15701        # Append any errors to the config.log.
15702        cat conftest.err 1>&5
15703        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15704        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15705        if diff conftest.exp conftest.er2 >/dev/null; then
15706          lt_cv_prog_compiler_static_works_CXX=yes
15707        fi
15708      else
15709        lt_cv_prog_compiler_static_works_CXX=yes
15710      fi
15711    fi
15712    $RM -r conftest*
15713    LDFLAGS="$save_LDFLAGS"
15714
15715 fi
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15717 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15718
15719 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15720     :
15721 else
15722     lt_prog_compiler_static_CXX=
15723 fi
15724
15725
15726
15727
15728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15729 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15730 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15731   $as_echo_n "(cached) " >&6
15732 else
15733   lt_cv_prog_compiler_c_o_CXX=no
15734    $RM -r conftest 2>/dev/null
15735    mkdir conftest
15736    cd conftest
15737    mkdir out
15738    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15739
15740    lt_compiler_flag="-o out/conftest2.$ac_objext"
15741    # Insert the option either (1) after the last *FLAGS variable, or
15742    # (2) before a word containing "conftest.", or (3) at the end.
15743    # Note that $ac_compile itself does not contain backslashes and begins
15744    # with a dollar sign (not a hyphen), so the echo should work correctly.
15745    lt_compile=`echo "$ac_compile" | $SED \
15746    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15748    -e 's:$: $lt_compiler_flag:'`
15749    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15750    (eval "$lt_compile" 2>out/conftest.err)
15751    ac_status=$?
15752    cat out/conftest.err >&5
15753    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15755    then
15756      # The compiler can only warn and ignore the option if not recognized
15757      # So say no if there are warnings
15758      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15759      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15760      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15761        lt_cv_prog_compiler_c_o_CXX=yes
15762      fi
15763    fi
15764    chmod u+w . 2>&5
15765    $RM conftest*
15766    # SGI C++ compiler will create directory out/ii_files/ for
15767    # template instantiation
15768    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15769    $RM out/* && rmdir out
15770    cd ..
15771    $RM -r conftest
15772    $RM conftest*
15773
15774 fi
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15776 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15777
15778
15779
15780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15782 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15783   $as_echo_n "(cached) " >&6
15784 else
15785   lt_cv_prog_compiler_c_o_CXX=no
15786    $RM -r conftest 2>/dev/null
15787    mkdir conftest
15788    cd conftest
15789    mkdir out
15790    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15791
15792    lt_compiler_flag="-o out/conftest2.$ac_objext"
15793    # Insert the option either (1) after the last *FLAGS variable, or
15794    # (2) before a word containing "conftest.", or (3) at the end.
15795    # Note that $ac_compile itself does not contain backslashes and begins
15796    # with a dollar sign (not a hyphen), so the echo should work correctly.
15797    lt_compile=`echo "$ac_compile" | $SED \
15798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15800    -e 's:$: $lt_compiler_flag:'`
15801    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15802    (eval "$lt_compile" 2>out/conftest.err)
15803    ac_status=$?
15804    cat out/conftest.err >&5
15805    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15807    then
15808      # The compiler can only warn and ignore the option if not recognized
15809      # So say no if there are warnings
15810      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15811      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15812      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15813        lt_cv_prog_compiler_c_o_CXX=yes
15814      fi
15815    fi
15816    chmod u+w . 2>&5
15817    $RM conftest*
15818    # SGI C++ compiler will create directory out/ii_files/ for
15819    # template instantiation
15820    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15821    $RM out/* && rmdir out
15822    cd ..
15823    $RM -r conftest
15824    $RM conftest*
15825
15826 fi
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15828 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15829
15830
15831
15832
15833 hard_links="nottested"
15834 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15835   # do not overwrite the value of need_locks provided by the user
15836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15837 $as_echo_n "checking if we can lock with hard links... " >&6; }
15838   hard_links=yes
15839   $RM conftest*
15840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15841   touch conftest.a
15842   ln conftest.a conftest.b 2>&5 || hard_links=no
15843   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15845 $as_echo "$hard_links" >&6; }
15846   if test "$hard_links" = no; then
15847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15848 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15849     need_locks=warn
15850   fi
15851 else
15852   need_locks=no
15853 fi
15854
15855
15856
15857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15858 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15859
15860   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15861   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15862   case $host_os in
15863   aix[4-9]*)
15864     # If we're using GNU nm, then we don't want the "-C" option.
15865     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15866     # Also, AIX nm treats weak defined symbols like other global defined
15867     # symbols, whereas GNU nm marks them as "W".
15868     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15869       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15870     else
15871       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15872     fi
15873     ;;
15874   pw32*)
15875     export_symbols_cmds_CXX="$ltdll_cmds"
15876     ;;
15877   cygwin* | mingw* | cegcc*)
15878     case $cc_basename in
15879     cl*)
15880       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15881       ;;
15882     *)
15883       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'
15884       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15885       ;;
15886     esac
15887     ;;
15888   linux* | k*bsd*-gnu | gnu*)
15889     link_all_deplibs_CXX=no
15890     ;;
15891   *)
15892     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15893     ;;
15894   esac
15895
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15897 $as_echo "$ld_shlibs_CXX" >&6; }
15898 test "$ld_shlibs_CXX" = no && can_build_shared=no
15899
15900 with_gnu_ld_CXX=$with_gnu_ld
15901
15902
15903
15904
15905
15906
15907 #
15908 # Do we need to explicitly link libc?
15909 #
15910 case "x$archive_cmds_need_lc_CXX" in
15911 x|xyes)
15912   # Assume -lc should be added
15913   archive_cmds_need_lc_CXX=yes
15914
15915   if test "$enable_shared" = yes && test "$GCC" = yes; then
15916     case $archive_cmds_CXX in
15917     *'~'*)
15918       # FIXME: we may have to deal with multi-command sequences.
15919       ;;
15920     '$CC '*)
15921       # Test whether the compiler implicitly links with -lc since on some
15922       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15923       # to ld, don't add -lc before -lgcc.
15924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15925 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15926 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15927   $as_echo_n "(cached) " >&6
15928 else
15929   $RM conftest*
15930         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15931
15932         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15933   (eval $ac_compile) 2>&5
15934   ac_status=$?
15935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15936   test $ac_status = 0; } 2>conftest.err; then
15937           soname=conftest
15938           lib=conftest
15939           libobjs=conftest.$ac_objext
15940           deplibs=
15941           wl=$lt_prog_compiler_wl_CXX
15942           pic_flag=$lt_prog_compiler_pic_CXX
15943           compiler_flags=-v
15944           linker_flags=-v
15945           verstring=
15946           output_objdir=.
15947           libname=conftest
15948           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15949           allow_undefined_flag_CXX=
15950           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15951   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15952   ac_status=$?
15953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954   test $ac_status = 0; }
15955           then
15956             lt_cv_archive_cmds_need_lc_CXX=no
15957           else
15958             lt_cv_archive_cmds_need_lc_CXX=yes
15959           fi
15960           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15961         else
15962           cat conftest.err 1>&5
15963         fi
15964         $RM conftest*
15965
15966 fi
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15968 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15969       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15970       ;;
15971     esac
15972   fi
15973   ;;
15974 esac
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16038 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16039
16040 library_names_spec=
16041 libname_spec='lib$name'
16042 soname_spec=
16043 shrext_cmds=".so"
16044 postinstall_cmds=
16045 postuninstall_cmds=
16046 finish_cmds=
16047 finish_eval=
16048 shlibpath_var=
16049 shlibpath_overrides_runpath=unknown
16050 version_type=none
16051 dynamic_linker="$host_os ld.so"
16052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16053 need_lib_prefix=unknown
16054 hardcode_into_libs=no
16055
16056 # when you set need_version to no, make sure it does not cause -set_version
16057 # flags to be left without arguments
16058 need_version=unknown
16059
16060 case $host_os in
16061 aix3*)
16062   version_type=linux # correct to gnu/linux during the next big refactor
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16064   shlibpath_var=LIBPATH
16065
16066   # AIX 3 has no versioning support, so we append a major version to the name.
16067   soname_spec='${libname}${release}${shared_ext}$major'
16068   ;;
16069
16070 aix[4-9]*)
16071   version_type=linux # correct to gnu/linux during the next big refactor
16072   need_lib_prefix=no
16073   need_version=no
16074   hardcode_into_libs=yes
16075   if test "$host_cpu" = ia64; then
16076     # AIX 5 supports IA64
16077     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16078     shlibpath_var=LD_LIBRARY_PATH
16079   else
16080     # With GCC up to 2.95.x, collect2 would create an import file
16081     # for dependence libraries.  The import file would start with
16082     # the line `#! .'.  This would cause the generated library to
16083     # depend on `.', always an invalid library.  This was fixed in
16084     # development snapshots of GCC prior to 3.0.
16085     case $host_os in
16086       aix4 | aix4.[01] | aix4.[01].*)
16087       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16088            echo ' yes '
16089            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16090         :
16091       else
16092         can_build_shared=no
16093       fi
16094       ;;
16095     esac
16096     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16097     # soname into executable. Probably we can add versioning support to
16098     # collect2, so additional links can be useful in future.
16099     if test "$aix_use_runtimelinking" = yes; then
16100       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16101       # instead of lib<name>.a to let people know that these are not
16102       # typical AIX shared libraries.
16103       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104     else
16105       # We preserve .a as extension for shared libraries through AIX4.2
16106       # and later when we are not doing run time linking.
16107       library_names_spec='${libname}${release}.a $libname.a'
16108       soname_spec='${libname}${release}${shared_ext}$major'
16109     fi
16110     shlibpath_var=LIBPATH
16111   fi
16112   ;;
16113
16114 amigaos*)
16115   case $host_cpu in
16116   powerpc)
16117     # Since July 2007 AmigaOS4 officially supports .so libraries.
16118     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120     ;;
16121   m68k)
16122     library_names_spec='$libname.ixlibrary $libname.a'
16123     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16124     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16125     ;;
16126   esac
16127   ;;
16128
16129 beos*)
16130   library_names_spec='${libname}${shared_ext}'
16131   dynamic_linker="$host_os ld.so"
16132   shlibpath_var=LIBRARY_PATH
16133   ;;
16134
16135 bsdi[45]*)
16136   version_type=linux # correct to gnu/linux during the next big refactor
16137   need_version=no
16138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139   soname_spec='${libname}${release}${shared_ext}$major'
16140   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16141   shlibpath_var=LD_LIBRARY_PATH
16142   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16143   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16144   # the default ld.so.conf also contains /usr/contrib/lib and
16145   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16146   # libtool to hard-code these into programs
16147   ;;
16148
16149 cygwin* | mingw* | pw32* | cegcc*)
16150   version_type=windows
16151   shrext_cmds=".dll"
16152   need_version=no
16153   need_lib_prefix=no
16154
16155   case $GCC,$cc_basename in
16156   yes,*)
16157     # gcc
16158     library_names_spec='$libname.dll.a'
16159     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16160     postinstall_cmds='base_file=`basename \${file}`~
16161       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16162       dldir=$destdir/`dirname \$dlpath`~
16163       test -d \$dldir || mkdir -p \$dldir~
16164       $install_prog $dir/$dlname \$dldir/$dlname~
16165       chmod a+x \$dldir/$dlname~
16166       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16167         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16168       fi'
16169     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16170       dlpath=$dir/\$dldll~
16171        $RM \$dlpath'
16172     shlibpath_overrides_runpath=yes
16173
16174     case $host_os in
16175     cygwin*)
16176       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16177       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16178
16179       ;;
16180     mingw* | cegcc*)
16181       # MinGW DLLs use traditional 'lib' prefix
16182       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16183       ;;
16184     pw32*)
16185       # pw32 DLLs use 'pw' prefix rather than 'lib'
16186       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16187       ;;
16188     esac
16189     dynamic_linker='Win32 ld.exe'
16190     ;;
16191
16192   *,cl*)
16193     # Native MSVC
16194     libname_spec='$name'
16195     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16196     library_names_spec='${libname}.dll.lib'
16197
16198     case $build_os in
16199     mingw*)
16200       sys_lib_search_path_spec=
16201       lt_save_ifs=$IFS
16202       IFS=';'
16203       for lt_path in $LIB
16204       do
16205         IFS=$lt_save_ifs
16206         # Let DOS variable expansion print the short 8.3 style file name.
16207         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16208         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16209       done
16210       IFS=$lt_save_ifs
16211       # Convert to MSYS style.
16212       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16213       ;;
16214     cygwin*)
16215       # Convert to unix form, then to dos form, then back to unix form
16216       # but this time dos style (no spaces!) so that the unix form looks
16217       # like /cygdrive/c/PROGRA~1:/cygdr...
16218       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16219       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16220       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16221       ;;
16222     *)
16223       sys_lib_search_path_spec="$LIB"
16224       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16225         # It is most probably a Windows format PATH.
16226         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16227       else
16228         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16229       fi
16230       # FIXME: find the short name or the path components, as spaces are
16231       # common. (e.g. "Program Files" -> "PROGRA~1")
16232       ;;
16233     esac
16234
16235     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16236     postinstall_cmds='base_file=`basename \${file}`~
16237       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16238       dldir=$destdir/`dirname \$dlpath`~
16239       test -d \$dldir || mkdir -p \$dldir~
16240       $install_prog $dir/$dlname \$dldir/$dlname'
16241     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16242       dlpath=$dir/\$dldll~
16243        $RM \$dlpath'
16244     shlibpath_overrides_runpath=yes
16245     dynamic_linker='Win32 link.exe'
16246     ;;
16247
16248   *)
16249     # Assume MSVC wrapper
16250     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16251     dynamic_linker='Win32 ld.exe'
16252     ;;
16253   esac
16254   # FIXME: first we should search . and the directory the executable is in
16255   shlibpath_var=PATH
16256   ;;
16257
16258 darwin* | rhapsody*)
16259   dynamic_linker="$host_os dyld"
16260   version_type=darwin
16261   need_lib_prefix=no
16262   need_version=no
16263   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16264   soname_spec='${libname}${release}${major}$shared_ext'
16265   shlibpath_overrides_runpath=yes
16266   shlibpath_var=DYLD_LIBRARY_PATH
16267   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16268
16269   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16270   ;;
16271
16272 dgux*)
16273   version_type=linux # correct to gnu/linux during the next big refactor
16274   need_lib_prefix=no
16275   need_version=no
16276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16277   soname_spec='${libname}${release}${shared_ext}$major'
16278   shlibpath_var=LD_LIBRARY_PATH
16279   ;;
16280
16281 freebsd* | dragonfly*)
16282   # DragonFly does not have aout.  When/if they implement a new
16283   # versioning mechanism, adjust this.
16284   if test -x /usr/bin/objformat; then
16285     objformat=`/usr/bin/objformat`
16286   else
16287     case $host_os in
16288     freebsd[23].*) objformat=aout ;;
16289     *) objformat=elf ;;
16290     esac
16291   fi
16292   version_type=freebsd-$objformat
16293   case $version_type in
16294     freebsd-elf*)
16295       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16296       need_version=no
16297       need_lib_prefix=no
16298       ;;
16299     freebsd-*)
16300       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16301       need_version=yes
16302       ;;
16303   esac
16304   shlibpath_var=LD_LIBRARY_PATH
16305   case $host_os in
16306   freebsd2.*)
16307     shlibpath_overrides_runpath=yes
16308     ;;
16309   freebsd3.[01]* | freebsdelf3.[01]*)
16310     shlibpath_overrides_runpath=yes
16311     hardcode_into_libs=yes
16312     ;;
16313   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16314   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16315     shlibpath_overrides_runpath=no
16316     hardcode_into_libs=yes
16317     ;;
16318   *) # from 4.6 on, and DragonFly
16319     shlibpath_overrides_runpath=yes
16320     hardcode_into_libs=yes
16321     ;;
16322   esac
16323   ;;
16324
16325 haiku*)
16326   version_type=linux # correct to gnu/linux during the next big refactor
16327   need_lib_prefix=no
16328   need_version=no
16329   dynamic_linker="$host_os runtime_loader"
16330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16331   soname_spec='${libname}${release}${shared_ext}$major'
16332   shlibpath_var=LIBRARY_PATH
16333   shlibpath_overrides_runpath=yes
16334   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16335   hardcode_into_libs=yes
16336   ;;
16337
16338 hpux9* | hpux10* | hpux11*)
16339   # Give a soname corresponding to the major version so that dld.sl refuses to
16340   # link against other versions.
16341   version_type=sunos
16342   need_lib_prefix=no
16343   need_version=no
16344   case $host_cpu in
16345   ia64*)
16346     shrext_cmds='.so'
16347     hardcode_into_libs=yes
16348     dynamic_linker="$host_os dld.so"
16349     shlibpath_var=LD_LIBRARY_PATH
16350     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352     soname_spec='${libname}${release}${shared_ext}$major'
16353     if test "X$HPUX_IA64_MODE" = X32; then
16354       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16355     else
16356       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16357     fi
16358     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16359     ;;
16360   hppa*64*)
16361     shrext_cmds='.sl'
16362     hardcode_into_libs=yes
16363     dynamic_linker="$host_os dld.sl"
16364     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16365     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367     soname_spec='${libname}${release}${shared_ext}$major'
16368     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16369     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16370     ;;
16371   *)
16372     shrext_cmds='.sl'
16373     dynamic_linker="$host_os dld.sl"
16374     shlibpath_var=SHLIB_PATH
16375     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377     soname_spec='${libname}${release}${shared_ext}$major'
16378     ;;
16379   esac
16380   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16381   postinstall_cmds='chmod 555 $lib'
16382   # or fails outright, so override atomically:
16383   install_override_mode=555
16384   ;;
16385
16386 interix[3-9]*)
16387   version_type=linux # correct to gnu/linux during the next big refactor
16388   need_lib_prefix=no
16389   need_version=no
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   shlibpath_overrides_runpath=no
16395   hardcode_into_libs=yes
16396   ;;
16397
16398 irix5* | irix6* | nonstopux*)
16399   case $host_os in
16400     nonstopux*) version_type=nonstopux ;;
16401     *)
16402         if test "$lt_cv_prog_gnu_ld" = yes; then
16403                 version_type=linux # correct to gnu/linux during the next big refactor
16404         else
16405                 version_type=irix
16406         fi ;;
16407   esac
16408   need_lib_prefix=no
16409   need_version=no
16410   soname_spec='${libname}${release}${shared_ext}$major'
16411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16412   case $host_os in
16413   irix5* | nonstopux*)
16414     libsuff= shlibsuff=
16415     ;;
16416   *)
16417     case $LD in # libtool.m4 will add one of these switches to LD
16418     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16419       libsuff= shlibsuff= libmagic=32-bit;;
16420     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16421       libsuff=32 shlibsuff=N32 libmagic=N32;;
16422     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16423       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16424     *) libsuff= shlibsuff= libmagic=never-match;;
16425     esac
16426     ;;
16427   esac
16428   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16429   shlibpath_overrides_runpath=no
16430   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16431   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16432   hardcode_into_libs=yes
16433   ;;
16434
16435 # No shared lib support for Linux oldld, aout, or coff.
16436 linux*oldld* | linux*aout* | linux*coff*)
16437   dynamic_linker=no
16438   ;;
16439
16440 # This must be glibc/ELF.
16441 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16442   version_type=linux # correct to gnu/linux during the next big refactor
16443   need_lib_prefix=no
16444   need_version=no
16445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16446   soname_spec='${libname}${release}${shared_ext}$major'
16447   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16448   shlibpath_var=LD_LIBRARY_PATH
16449   shlibpath_overrides_runpath=no
16450
16451   # Some binutils ld are patched to set DT_RUNPATH
16452   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16453   $as_echo_n "(cached) " >&6
16454 else
16455   lt_cv_shlibpath_overrides_runpath=no
16456     save_LDFLAGS=$LDFLAGS
16457     save_libdir=$libdir
16458     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16459          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h.  */
16462
16463 int
16464 main ()
16465 {
16466
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 if ac_fn_cxx_try_link "$LINENO"; then :
16472   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16473   lt_cv_shlibpath_overrides_runpath=yes
16474 fi
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext \
16477     conftest$ac_exeext conftest.$ac_ext
16478     LDFLAGS=$save_LDFLAGS
16479     libdir=$save_libdir
16480
16481 fi
16482
16483   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16484
16485   # This implies no fast_install, which is unacceptable.
16486   # Some rework will be needed to allow for fast_install
16487   # before this can be enabled.
16488   hardcode_into_libs=yes
16489
16490   # Append ld.so.conf contents to the search path
16491   if test -f /etc/ld.so.conf; then
16492     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' ' '`
16493     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16494   fi
16495
16496   # We used to test for /lib/ld.so.1 and disable shared libraries on
16497   # powerpc, because MkLinux only supported shared libraries with the
16498   # GNU dynamic linker.  Since this was broken with cross compilers,
16499   # most powerpc-linux boxes support dynamic linking these days and
16500   # people can always --disable-shared, the test was removed, and we
16501   # assume the GNU/Linux dynamic linker is in use.
16502   dynamic_linker='GNU/Linux ld.so'
16503   ;;
16504
16505 netbsdelf*-gnu)
16506   version_type=linux
16507   need_lib_prefix=no
16508   need_version=no
16509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16510   soname_spec='${libname}${release}${shared_ext}$major'
16511   shlibpath_var=LD_LIBRARY_PATH
16512   shlibpath_overrides_runpath=no
16513   hardcode_into_libs=yes
16514   dynamic_linker='NetBSD ld.elf_so'
16515   ;;
16516
16517 netbsd*)
16518   version_type=sunos
16519   need_lib_prefix=no
16520   need_version=no
16521   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16523     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16524     dynamic_linker='NetBSD (a.out) ld.so'
16525   else
16526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527     soname_spec='${libname}${release}${shared_ext}$major'
16528     dynamic_linker='NetBSD ld.elf_so'
16529   fi
16530   shlibpath_var=LD_LIBRARY_PATH
16531   shlibpath_overrides_runpath=yes
16532   hardcode_into_libs=yes
16533   ;;
16534
16535 newsos6)
16536   version_type=linux # correct to gnu/linux during the next big refactor
16537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   shlibpath_overrides_runpath=yes
16540   ;;
16541
16542 *nto* | *qnx*)
16543   version_type=qnx
16544   need_lib_prefix=no
16545   need_version=no
16546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547   soname_spec='${libname}${release}${shared_ext}$major'
16548   shlibpath_var=LD_LIBRARY_PATH
16549   shlibpath_overrides_runpath=no
16550   hardcode_into_libs=yes
16551   dynamic_linker='ldqnx.so'
16552   ;;
16553
16554 openbsd*)
16555   version_type=sunos
16556   sys_lib_dlsearch_path_spec="/usr/lib"
16557   need_lib_prefix=no
16558   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16559   case $host_os in
16560     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16561     *)                          need_version=no  ;;
16562   esac
16563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16564   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16565   shlibpath_var=LD_LIBRARY_PATH
16566   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16567     case $host_os in
16568       openbsd2.[89] | openbsd2.[89].*)
16569         shlibpath_overrides_runpath=no
16570         ;;
16571       *)
16572         shlibpath_overrides_runpath=yes
16573         ;;
16574       esac
16575   else
16576     shlibpath_overrides_runpath=yes
16577   fi
16578   ;;
16579
16580 os2*)
16581   libname_spec='$name'
16582   shrext_cmds=".dll"
16583   need_lib_prefix=no
16584   library_names_spec='$libname${shared_ext} $libname.a'
16585   dynamic_linker='OS/2 ld.exe'
16586   shlibpath_var=LIBPATH
16587   ;;
16588
16589 osf3* | osf4* | osf5*)
16590   version_type=osf
16591   need_lib_prefix=no
16592   need_version=no
16593   soname_spec='${libname}${release}${shared_ext}$major'
16594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595   shlibpath_var=LD_LIBRARY_PATH
16596   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16597   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16598   ;;
16599
16600 rdos*)
16601   dynamic_linker=no
16602   ;;
16603
16604 solaris*)
16605   version_type=linux # correct to gnu/linux during the next big refactor
16606   need_lib_prefix=no
16607   need_version=no
16608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609   soname_spec='${libname}${release}${shared_ext}$major'
16610   shlibpath_var=LD_LIBRARY_PATH
16611   shlibpath_overrides_runpath=yes
16612   hardcode_into_libs=yes
16613   # ldd complains unless libraries are executable
16614   postinstall_cmds='chmod +x $lib'
16615   ;;
16616
16617 sunos4*)
16618   version_type=sunos
16619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16620   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16621   shlibpath_var=LD_LIBRARY_PATH
16622   shlibpath_overrides_runpath=yes
16623   if test "$with_gnu_ld" = yes; then
16624     need_lib_prefix=no
16625   fi
16626   need_version=yes
16627   ;;
16628
16629 sysv4 | sysv4.3*)
16630   version_type=linux # correct to gnu/linux during the next big refactor
16631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632   soname_spec='${libname}${release}${shared_ext}$major'
16633   shlibpath_var=LD_LIBRARY_PATH
16634   case $host_vendor in
16635     sni)
16636       shlibpath_overrides_runpath=no
16637       need_lib_prefix=no
16638       runpath_var=LD_RUN_PATH
16639       ;;
16640     siemens)
16641       need_lib_prefix=no
16642       ;;
16643     motorola)
16644       need_lib_prefix=no
16645       need_version=no
16646       shlibpath_overrides_runpath=no
16647       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16648       ;;
16649   esac
16650   ;;
16651
16652 sysv4*MP*)
16653   if test -d /usr/nec ;then
16654     version_type=linux # correct to gnu/linux during the next big refactor
16655     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16656     soname_spec='$libname${shared_ext}.$major'
16657     shlibpath_var=LD_LIBRARY_PATH
16658   fi
16659   ;;
16660
16661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16662   version_type=freebsd-elf
16663   need_lib_prefix=no
16664   need_version=no
16665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16666   soname_spec='${libname}${release}${shared_ext}$major'
16667   shlibpath_var=LD_LIBRARY_PATH
16668   shlibpath_overrides_runpath=yes
16669   hardcode_into_libs=yes
16670   if test "$with_gnu_ld" = yes; then
16671     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16672   else
16673     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16674     case $host_os in
16675       sco3.2v5*)
16676         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16677         ;;
16678     esac
16679   fi
16680   sys_lib_dlsearch_path_spec='/usr/lib'
16681   ;;
16682
16683 tpf*)
16684   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16685   version_type=linux # correct to gnu/linux during the next big refactor
16686   need_lib_prefix=no
16687   need_version=no
16688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=no
16691   hardcode_into_libs=yes
16692   ;;
16693
16694 uts4*)
16695   version_type=linux # correct to gnu/linux during the next big refactor
16696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697   soname_spec='${libname}${release}${shared_ext}$major'
16698   shlibpath_var=LD_LIBRARY_PATH
16699   ;;
16700
16701 *)
16702   dynamic_linker=no
16703   ;;
16704 esac
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16706 $as_echo "$dynamic_linker" >&6; }
16707 test "$dynamic_linker" = no && can_build_shared=no
16708
16709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16710 if test "$GCC" = yes; then
16711   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16712 fi
16713
16714 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16715   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16716 fi
16717 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16718   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16719 fi
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16759 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16760 hardcode_action_CXX=
16761 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16762    test -n "$runpath_var_CXX" ||
16763    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16764
16765   # We can hardcode non-existent directories.
16766   if test "$hardcode_direct_CXX" != no &&
16767      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16768      # have to relink, otherwise we might link with an installed library
16769      # when we should be linking with a yet-to-be-installed one
16770      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16771      test "$hardcode_minus_L_CXX" != no; then
16772     # Linking always hardcodes the temporary library directory.
16773     hardcode_action_CXX=relink
16774   else
16775     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16776     hardcode_action_CXX=immediate
16777   fi
16778 else
16779   # We cannot hardcode anything, or else we can only hardcode existing
16780   # directories.
16781   hardcode_action_CXX=unsupported
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16784 $as_echo "$hardcode_action_CXX" >&6; }
16785
16786 if test "$hardcode_action_CXX" = relink ||
16787    test "$inherit_rpath_CXX" = yes; then
16788   # Fast installation is not supported
16789   enable_fast_install=no
16790 elif test "$shlibpath_overrides_runpath" = yes ||
16791      test "$enable_shared" = no; then
16792   # Fast installation is not necessary
16793   enable_fast_install=needless
16794 fi
16795
16796
16797
16798
16799
16800
16801
16802   fi # test -n "$compiler"
16803
16804   CC=$lt_save_CC
16805   CFLAGS=$lt_save_CFLAGS
16806   LDCXX=$LD
16807   LD=$lt_save_LD
16808   GCC=$lt_save_GCC
16809   with_gnu_ld=$lt_save_with_gnu_ld
16810   lt_cv_path_LDCXX=$lt_cv_path_LD
16811   lt_cv_path_LD=$lt_save_path_LD
16812   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16813   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16814 fi # test "$_lt_caught_CXX_error" != yes
16815
16816 ac_ext=c
16817 ac_cpp='$CPP $CPPFLAGS'
16818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16821
16822
16823 # Check whether --enable-largefile was given.
16824 if test "${enable_largefile+set}" = set; then :
16825   enableval=$enable_largefile;
16826 fi
16827
16828 if test "$enable_largefile" != no; then
16829
16830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16831 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16832 if ${ac_cv_sys_largefile_CC+:} false; then :
16833   $as_echo_n "(cached) " >&6
16834 else
16835   ac_cv_sys_largefile_CC=no
16836      if test "$GCC" != yes; then
16837        ac_save_CC=$CC
16838        while :; do
16839          # IRIX 6.2 and later do not support large files by default,
16840          # so use the C compiler's -n32 option if that helps.
16841          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16842 /* end confdefs.h.  */
16843 #include <sys/types.h>
16844  /* Check that off_t can represent 2**63 - 1 correctly.
16845     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16846     since some C++ compilers masquerading as C compilers
16847     incorrectly reject 9223372036854775807.  */
16848 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16849   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16850                        && LARGE_OFF_T % 2147483647 == 1)
16851                       ? 1 : -1];
16852 int
16853 main ()
16854 {
16855
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860          if ac_fn_c_try_compile "$LINENO"; then :
16861   break
16862 fi
16863 rm -f core conftest.err conftest.$ac_objext
16864          CC="$CC -n32"
16865          if ac_fn_c_try_compile "$LINENO"; then :
16866   ac_cv_sys_largefile_CC=' -n32'; break
16867 fi
16868 rm -f core conftest.err conftest.$ac_objext
16869          break
16870        done
16871        CC=$ac_save_CC
16872        rm -f conftest.$ac_ext
16873     fi
16874 fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16876 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16877   if test "$ac_cv_sys_largefile_CC" != no; then
16878     CC=$CC$ac_cv_sys_largefile_CC
16879   fi
16880
16881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16882 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16883 if ${ac_cv_sys_file_offset_bits+:} false; then :
16884   $as_echo_n "(cached) " >&6
16885 else
16886   while :; do
16887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h.  */
16889 #include <sys/types.h>
16890  /* Check that off_t can represent 2**63 - 1 correctly.
16891     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16892     since some C++ compilers masquerading as C compilers
16893     incorrectly reject 9223372036854775807.  */
16894 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16895   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16896                        && LARGE_OFF_T % 2147483647 == 1)
16897                       ? 1 : -1];
16898 int
16899 main ()
16900 {
16901
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906 if ac_fn_c_try_compile "$LINENO"; then :
16907   ac_cv_sys_file_offset_bits=no; break
16908 fi
16909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h.  */
16912 #define _FILE_OFFSET_BITS 64
16913 #include <sys/types.h>
16914  /* Check that off_t can represent 2**63 - 1 correctly.
16915     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16916     since some C++ compilers masquerading as C compilers
16917     incorrectly reject 9223372036854775807.  */
16918 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16919   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16920                        && LARGE_OFF_T % 2147483647 == 1)
16921                       ? 1 : -1];
16922 int
16923 main ()
16924 {
16925
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 if ac_fn_c_try_compile "$LINENO"; then :
16931   ac_cv_sys_file_offset_bits=64; break
16932 fi
16933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16934   ac_cv_sys_file_offset_bits=unknown
16935   break
16936 done
16937 fi
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16939 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16940 case $ac_cv_sys_file_offset_bits in #(
16941   no | unknown) ;;
16942   *)
16943 cat >>confdefs.h <<_ACEOF
16944 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16945 _ACEOF
16946 ;;
16947 esac
16948 rm -rf conftest*
16949   if test $ac_cv_sys_file_offset_bits = unknown; then
16950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16951 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16952 if ${ac_cv_sys_large_files+:} false; then :
16953   $as_echo_n "(cached) " >&6
16954 else
16955   while :; do
16956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h.  */
16958 #include <sys/types.h>
16959  /* Check that off_t can represent 2**63 - 1 correctly.
16960     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16961     since some C++ compilers masquerading as C compilers
16962     incorrectly reject 9223372036854775807.  */
16963 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16964   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16965                        && LARGE_OFF_T % 2147483647 == 1)
16966                       ? 1 : -1];
16967 int
16968 main ()
16969 {
16970
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976   ac_cv_sys_large_files=no; break
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h.  */
16981 #define _LARGE_FILES 1
16982 #include <sys/types.h>
16983  /* Check that off_t can represent 2**63 - 1 correctly.
16984     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16985     since some C++ compilers masquerading as C compilers
16986     incorrectly reject 9223372036854775807.  */
16987 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16988   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16989                        && LARGE_OFF_T % 2147483647 == 1)
16990                       ? 1 : -1];
16991 int
16992 main ()
16993 {
16994
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 if ac_fn_c_try_compile "$LINENO"; then :
17000   ac_cv_sys_large_files=1; break
17001 fi
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003   ac_cv_sys_large_files=unknown
17004   break
17005 done
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17008 $as_echo "$ac_cv_sys_large_files" >&6; }
17009 case $ac_cv_sys_large_files in #(
17010   no | unknown) ;;
17011   *)
17012 cat >>confdefs.h <<_ACEOF
17013 #define _LARGE_FILES $ac_cv_sys_large_files
17014 _ACEOF
17015 ;;
17016 esac
17017 rm -rf conftest*
17018   fi
17019
17020
17021 fi
17022
17023
17024
17025 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17026         if test -n "$ac_tool_prefix"; then
17027   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17028 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17030 $as_echo_n "checking for $ac_word... " >&6; }
17031 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17032   $as_echo_n "(cached) " >&6
17033 else
17034   case $PKG_CONFIG in
17035   [\\/]* | ?:[\\/]*)
17036   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17037   ;;
17038   *)
17039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17040 for as_dir in $PATH
17041 do
17042   IFS=$as_save_IFS
17043   test -z "$as_dir" && as_dir=.
17044     for ac_exec_ext in '' $ac_executable_extensions; do
17045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17046     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17048     break 2
17049   fi
17050 done
17051   done
17052 IFS=$as_save_IFS
17053
17054   ;;
17055 esac
17056 fi
17057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17058 if test -n "$PKG_CONFIG"; then
17059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17060 $as_echo "$PKG_CONFIG" >&6; }
17061 else
17062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17064 fi
17065
17066
17067 fi
17068 if test -z "$ac_cv_path_PKG_CONFIG"; then
17069   ac_pt_PKG_CONFIG=$PKG_CONFIG
17070   # Extract the first word of "pkg-config", so it can be a program name with args.
17071 set dummy pkg-config; ac_word=$2
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17073 $as_echo_n "checking for $ac_word... " >&6; }
17074 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17075   $as_echo_n "(cached) " >&6
17076 else
17077   case $ac_pt_PKG_CONFIG in
17078   [\\/]* | ?:[\\/]*)
17079   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17080   ;;
17081   *)
17082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17083 for as_dir in $PATH
17084 do
17085   IFS=$as_save_IFS
17086   test -z "$as_dir" && as_dir=.
17087     for ac_exec_ext in '' $ac_executable_extensions; do
17088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17089     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17091     break 2
17092   fi
17093 done
17094   done
17095 IFS=$as_save_IFS
17096
17097   ;;
17098 esac
17099 fi
17100 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17101 if test -n "$ac_pt_PKG_CONFIG"; then
17102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17103 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17104 else
17105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17106 $as_echo "no" >&6; }
17107 fi
17108
17109   if test "x$ac_pt_PKG_CONFIG" = x; then
17110     PKG_CONFIG=""
17111   else
17112     case $cross_compiling:$ac_tool_warned in
17113 yes:)
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17116 ac_tool_warned=yes ;;
17117 esac
17118     PKG_CONFIG=$ac_pt_PKG_CONFIG
17119   fi
17120 else
17121   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17122 fi
17123
17124 fi
17125 if test -n "$PKG_CONFIG"; then
17126         _pkg_min_version=0.20
17127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17128 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17129         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17130                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17131 $as_echo "yes" >&6; }
17132         else
17133                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134 $as_echo "no" >&6; }
17135                 PKG_CONFIG=""
17136         fi
17137
17138 fi
17139
17140 RAGEL=${RAGEL-"${am_missing_run}ragel"}
17141
17142
17143 GIT=${GIT-"${am_missing_run}git"}
17144
17145
17146 # Version
17147
17148
17149
17150
17151 HB_VERSION_MAJOR=1
17152 HB_VERSION_MINOR=4
17153 HB_VERSION_MICRO=6
17154 HB_VERSION=1.4.6
17155
17156
17157
17158
17159
17160 # Libtool version
17161
17162
17163
17164
17165 HB_LIBTOOL_VERSION_INFO=10400:6:10400
17166
17167
17168 # Documentation
17169 have_gtk_doc=false
17170
17171
17172
17173
17174   gtk_doc_requires="gtk-doc >= 1.15"
17175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
17176 $as_echo_n "checking for gtk-doc... " >&6; }
17177   if test -n "$PKG_CONFIG" && \
17178     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
17179   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
17180   ac_status=$?
17181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17182   test $ac_status = 0; }; then
17183   have_gtk_doc=yes
17184 else
17185   have_gtk_doc=no
17186 fi
17187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
17188 $as_echo "$have_gtk_doc" >&6; }
17189
17190   if test "$have_gtk_doc" = "no"; then
17191       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17192   You will not be able to create source packages with 'make dist'
17193   because $gtk_doc_requires is not found." >&5
17194 $as_echo "$as_me: WARNING:
17195   You will not be able to create source packages with 'make dist'
17196   because $gtk_doc_requires is not found." >&2;}
17197   fi
17198
17199             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
17200 set dummy gtkdoc-check; ac_word=$2
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17202 $as_echo_n "checking for $ac_word... " >&6; }
17203 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
17204   $as_echo_n "(cached) " >&6
17205 else
17206   if test -n "$GTKDOC_CHECK"; then
17207   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
17208 else
17209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210 for as_dir in $PATH
17211 do
17212   IFS=$as_save_IFS
17213   test -z "$as_dir" && as_dir=.
17214     for ac_exec_ext in '' $ac_executable_extensions; do
17215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17216     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
17217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17218     break 2
17219   fi
17220 done
17221   done
17222 IFS=$as_save_IFS
17223
17224 fi
17225 fi
17226 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
17227 if test -n "$GTKDOC_CHECK"; then
17228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
17229 $as_echo "$GTKDOC_CHECK" >&6; }
17230 else
17231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17232 $as_echo "no" >&6; }
17233 fi
17234
17235
17236   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
17237 set dummy gtkdoc-check; ac_word=$2
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17239 $as_echo_n "checking for $ac_word... " >&6; }
17240 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
17241   $as_echo_n "(cached) " >&6
17242 else
17243   case $GTKDOC_CHECK_PATH in
17244   [\\/]* | ?:[\\/]*)
17245   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
17246   ;;
17247   *)
17248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17249 for as_dir in $PATH
17250 do
17251   IFS=$as_save_IFS
17252   test -z "$as_dir" && as_dir=.
17253     for ac_exec_ext in '' $ac_executable_extensions; do
17254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17255     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
17256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17257     break 2
17258   fi
17259 done
17260   done
17261 IFS=$as_save_IFS
17262
17263   ;;
17264 esac
17265 fi
17266 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
17267 if test -n "$GTKDOC_CHECK_PATH"; then
17268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
17269 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
17270 else
17271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272 $as_echo "no" >&6; }
17273 fi
17274
17275
17276   for ac_prog in gtkdoc-rebase
17277 do
17278   # Extract the first word of "$ac_prog", so it can be a program name with args.
17279 set dummy $ac_prog; ac_word=$2
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17281 $as_echo_n "checking for $ac_word... " >&6; }
17282 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
17283   $as_echo_n "(cached) " >&6
17284 else
17285   case $GTKDOC_REBASE in
17286   [\\/]* | ?:[\\/]*)
17287   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
17288   ;;
17289   *)
17290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17291 for as_dir in $PATH
17292 do
17293   IFS=$as_save_IFS
17294   test -z "$as_dir" && as_dir=.
17295     for ac_exec_ext in '' $ac_executable_extensions; do
17296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17297     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
17298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17299     break 2
17300   fi
17301 done
17302   done
17303 IFS=$as_save_IFS
17304
17305   ;;
17306 esac
17307 fi
17308 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
17309 if test -n "$GTKDOC_REBASE"; then
17310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
17311 $as_echo "$GTKDOC_REBASE" >&6; }
17312 else
17313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314 $as_echo "no" >&6; }
17315 fi
17316
17317
17318   test -n "$GTKDOC_REBASE" && break
17319 done
17320 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
17321
17322   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
17323 set dummy gtkdoc-mkpdf; ac_word=$2
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17325 $as_echo_n "checking for $ac_word... " >&6; }
17326 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
17327   $as_echo_n "(cached) " >&6
17328 else
17329   case $GTKDOC_MKPDF in
17330   [\\/]* | ?:[\\/]*)
17331   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
17332   ;;
17333   *)
17334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17335 for as_dir in $PATH
17336 do
17337   IFS=$as_save_IFS
17338   test -z "$as_dir" && as_dir=.
17339     for ac_exec_ext in '' $ac_executable_extensions; do
17340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17341     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17343     break 2
17344   fi
17345 done
17346   done
17347 IFS=$as_save_IFS
17348
17349   ;;
17350 esac
17351 fi
17352 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
17353 if test -n "$GTKDOC_MKPDF"; then
17354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
17355 $as_echo "$GTKDOC_MKPDF" >&6; }
17356 else
17357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358 $as_echo "no" >&6; }
17359 fi
17360
17361
17362
17363
17364 # Check whether --with-html-dir was given.
17365 if test "${with_html_dir+set}" = set; then :
17366   withval=$with_html_dir;
17367 else
17368   with_html_dir='${datadir}/gtk-doc/html'
17369 fi
17370
17371   HTML_DIR="$with_html_dir"
17372
17373
17374     # Check whether --enable-gtk-doc was given.
17375 if test "${enable_gtk_doc+set}" = set; then :
17376   enableval=$enable_gtk_doc;
17377 else
17378   enable_gtk_doc=no
17379 fi
17380
17381
17382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
17383 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
17384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
17385 $as_echo "$enable_gtk_doc" >&6; }
17386
17387   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
17388     as_fn_error $? "
17389   You must have $gtk_doc_requires installed to build documentation for
17390   $PACKAGE_NAME. Please install gtk-doc or disable building the
17391   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
17392   fi
17393
17394     if test "x$PACKAGE_NAME" != "xglib"; then
17395
17396 pkg_failed=no
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17398 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17399
17400 if test -n "$PKG_CONFIG"; then
17401     if test -n "$GTKDOC_DEPS_CFLAGS"; then
17402         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17403     else
17404         if test -n "$PKG_CONFIG" && \
17405     { { $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
17406   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17407   ac_status=$?
17408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17409   test $ac_status = 0; }; then
17410   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17411 else
17412   pkg_failed=yes
17413 fi
17414     fi
17415 else
17416         pkg_failed=untried
17417 fi
17418 if test -n "$PKG_CONFIG"; then
17419     if test -n "$GTKDOC_DEPS_LIBS"; then
17420         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17421     else
17422         if test -n "$PKG_CONFIG" && \
17423     { { $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
17424   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17425   ac_status=$?
17426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17427   test $ac_status = 0; }; then
17428   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17429 else
17430   pkg_failed=yes
17431 fi
17432     fi
17433 else
17434         pkg_failed=untried
17435 fi
17436
17437
17438
17439 if test $pkg_failed = yes; then
17440
17441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17442         _pkg_short_errors_supported=yes
17443 else
17444         _pkg_short_errors_supported=no
17445 fi
17446         if test $_pkg_short_errors_supported = yes; then
17447                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17448         else
17449                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17450         fi
17451         # Put the nasty error message in config.log where it belongs
17452         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17453
17454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 $as_echo "no" >&6; }
17456                 :
17457 elif test $pkg_failed = untried; then
17458         :
17459 else
17460         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17461         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17463 $as_echo "yes" >&6; }
17464         :
17465 fi
17466   fi
17467
17468     # Check whether --enable-gtk-doc-html was given.
17469 if test "${enable_gtk_doc_html+set}" = set; then :
17470   enableval=$enable_gtk_doc_html;
17471 else
17472   enable_gtk_doc_html=yes
17473 fi
17474
17475     # Check whether --enable-gtk-doc-pdf was given.
17476 if test "${enable_gtk_doc_pdf+set}" = set; then :
17477   enableval=$enable_gtk_doc_pdf;
17478 else
17479   enable_gtk_doc_pdf=no
17480 fi
17481
17482
17483   if test -z "$GTKDOC_MKPDF"; then
17484     enable_gtk_doc_pdf=no
17485   fi
17486
17487   if test -z "$AM_DEFAULT_VERBOSITY"; then
17488     AM_DEFAULT_VERBOSITY=1
17489   fi
17490
17491
17492    if test x$have_gtk_doc = xyes; then
17493   HAVE_GTK_DOC_TRUE=
17494   HAVE_GTK_DOC_FALSE='#'
17495 else
17496   HAVE_GTK_DOC_TRUE='#'
17497   HAVE_GTK_DOC_FALSE=
17498 fi
17499
17500    if test x$enable_gtk_doc = xyes; then
17501   ENABLE_GTK_DOC_TRUE=
17502   ENABLE_GTK_DOC_FALSE='#'
17503 else
17504   ENABLE_GTK_DOC_TRUE='#'
17505   ENABLE_GTK_DOC_FALSE=
17506 fi
17507
17508    if test x$enable_gtk_doc_html = xyes; then
17509   GTK_DOC_BUILD_HTML_TRUE=
17510   GTK_DOC_BUILD_HTML_FALSE='#'
17511 else
17512   GTK_DOC_BUILD_HTML_TRUE='#'
17513   GTK_DOC_BUILD_HTML_FALSE=
17514 fi
17515
17516    if test x$enable_gtk_doc_pdf = xyes; then
17517   GTK_DOC_BUILD_PDF_TRUE=
17518   GTK_DOC_BUILD_PDF_FALSE='#'
17519 else
17520   GTK_DOC_BUILD_PDF_TRUE='#'
17521   GTK_DOC_BUILD_PDF_FALSE=
17522 fi
17523
17524    if test -n "$LIBTOOL"; then
17525   GTK_DOC_USE_LIBTOOL_TRUE=
17526   GTK_DOC_USE_LIBTOOL_FALSE='#'
17527 else
17528   GTK_DOC_USE_LIBTOOL_TRUE='#'
17529   GTK_DOC_USE_LIBTOOL_FALSE=
17530 fi
17531
17532    if test -n "$GTKDOC_REBASE"; then
17533   GTK_DOC_USE_REBASE_TRUE=
17534   GTK_DOC_USE_REBASE_FALSE='#'
17535 else
17536   GTK_DOC_USE_REBASE_TRUE='#'
17537   GTK_DOC_USE_REBASE_FALSE=
17538 fi
17539
17540
17541         if test "x$enable_gtk_doc" = xyes; then
17542                 have_gtk_doc=true
17543         fi
17544
17545
17546 # Functions and headers
17547 for ac_func in atexit mprotect sysconf getpagesize mmap isatty
17548 do :
17549   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17550 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17551 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17552   cat >>confdefs.h <<_ACEOF
17553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17554 _ACEOF
17555
17556 fi
17557 done
17558
17559 for ac_header in unistd.h sys/mman.h
17560 do :
17561   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17562 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17564   cat >>confdefs.h <<_ACEOF
17565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17566 _ACEOF
17567
17568 fi
17569
17570 done
17571
17572
17573 # Compiler flags
17574
17575 # The cast to long int works around a bug in the HP C Compiler,
17576 # see AC_CHECK_SIZEOF for more information.
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
17578 $as_echo_n "checking alignment of struct{char;}... " >&6; }
17579 if ${ac_cv_alignof_struct_char__+:} false; then :
17580   $as_echo_n "(cached) " >&6
17581 else
17582   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
17583 #ifndef offsetof
17584 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17585 #endif
17586 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
17587
17588 else
17589   if test "$ac_cv_type_struct_char__" = yes; then
17590      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17592 as_fn_error 77 "cannot compute alignment of struct{char;}
17593 See \`config.log' for more details" "$LINENO" 5; }
17594    else
17595      ac_cv_alignof_struct_char__=0
17596    fi
17597 fi
17598
17599 fi
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
17601 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
17602
17603
17604
17605 cat >>confdefs.h <<_ACEOF
17606 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
17607 _ACEOF
17608
17609
17610 if test "x$GCC" = "xyes"; then
17611
17612         # Make symbols link locally
17613         LDFLAGS="$LDFLAGS -Bsymbolic-functions"
17614
17615         # Make sure we don't link to libstdc++
17616         CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
17617
17618         # Assorted warnings
17619         CXXFLAGS="$CXXFLAGS -Wcast-align"
17620
17621         case "$host" in
17622                 *-*-mingw*)
17623                 ;;
17624                 *)
17625                         # Hide inline methods
17626                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
17627                 ;;
17628         esac
17629
17630         case "$host" in
17631                 arm-*-*)
17632                         if test "x$ac_cv_alignof_struct_char__" != x1; then
17633                                 # Request byte alignment
17634                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
17635                         fi
17636                 ;;
17637         esac
17638 fi
17639
17640  if test "x$GCC" = "xyes"; then
17641   HAVE_GCC_TRUE=
17642   HAVE_GCC_FALSE='#'
17643 else
17644   HAVE_GCC_TRUE='#'
17645   HAVE_GCC_FALSE=
17646 fi
17647
17648
17649 hb_os_win32=no
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
17651 $as_echo_n "checking for native Win32... " >&6; }
17652 case "$host" in
17653   *-*-mingw*)
17654     hb_os_win32=yes
17655     ;;
17656 esac
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
17658 $as_echo "$hb_os_win32" >&6; }
17659  if test "$hb_os_win32" = "yes"; then
17660   OS_WIN32_TRUE=
17661   OS_WIN32_FALSE='#'
17662 else
17663   OS_WIN32_TRUE='#'
17664   OS_WIN32_FALSE=
17665 fi
17666
17667
17668 have_pthread=false
17669 if test "$hb_os_win32" = no; then
17670
17671
17672
17673
17674 ac_ext=c
17675 ac_cpp='$CPP $CPPFLAGS'
17676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17679
17680 ax_pthread_ok=no
17681
17682 # We used to check for pthread.h first, but this fails if pthread.h
17683 # requires special compiler flags (e.g. on Tru64 or Sequent).
17684 # It gets checked for in the link test anyway.
17685
17686 # First of all, check if the user has set any of the PTHREAD_LIBS,
17687 # etcetera environment variables, and if threads linking works using
17688 # them:
17689 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
17690         ax_pthread_save_CC="$CC"
17691         ax_pthread_save_CFLAGS="$CFLAGS"
17692         ax_pthread_save_LIBS="$LIBS"
17693         if test "x$PTHREAD_CC" != "x"; then :
17694   CC="$PTHREAD_CC"
17695 fi
17696         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17697         LIBS="$PTHREAD_LIBS $LIBS"
17698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
17699 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
17700         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h.  */
17702
17703 /* Override any GCC internal prototype to avoid an error.
17704    Use char because int might match the return type of a GCC
17705    builtin and then its argument prototype would still apply.  */
17706 #ifdef __cplusplus
17707 extern "C"
17708 #endif
17709 char pthread_join ();
17710 int
17711 main ()
17712 {
17713 return pthread_join ();
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 if ac_fn_c_try_link "$LINENO"; then :
17719   ax_pthread_ok=yes
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext \
17722     conftest$ac_exeext conftest.$ac_ext
17723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17724 $as_echo "$ax_pthread_ok" >&6; }
17725         if test "x$ax_pthread_ok" = "xno"; then
17726                 PTHREAD_LIBS=""
17727                 PTHREAD_CFLAGS=""
17728         fi
17729         CC="$ax_pthread_save_CC"
17730         CFLAGS="$ax_pthread_save_CFLAGS"
17731         LIBS="$ax_pthread_save_LIBS"
17732 fi
17733
17734 # We must check for the threads library under a number of different
17735 # names; the ordering is very important because some systems
17736 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17737 # libraries is broken (non-POSIX).
17738
17739 # Create a list of thread flags to try.  Items starting with a "-" are
17740 # C compiler flags, and other items are library names, except for "none"
17741 # which indicates that we try without any flags at all, and "pthread-config"
17742 # which is a program returning the flags for the Pth emulation library.
17743
17744 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17745
17746 # The ordering *is* (sometimes) important.  Some notes on the
17747 # individual items follow:
17748
17749 # pthreads: AIX (must check this before -lpthread)
17750 # none: in case threads are in libc; should be tried before -Kthread and
17751 #       other compiler flags to prevent continual compiler warnings
17752 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17753 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
17754 #           (Note: HP C rejects this with "bad form for `-t' option")
17755 # -pthreads: Solaris/gcc (Note: HP C also rejects)
17756 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17757 #      doesn't hurt to check since this sometimes defines pthreads and
17758 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
17759 #      is present but should not be used directly; and before -mthreads,
17760 #      because the compiler interprets this as "-mt" + "-hreads")
17761 # -mthreads: Mingw32/gcc, Lynx/gcc
17762 # pthread: Linux, etcetera
17763 # --thread-safe: KAI C++
17764 # pthread-config: use pthread-config program (for GNU Pth library)
17765
17766 case $host_os in
17767
17768         freebsd*)
17769
17770         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17771         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17772
17773         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
17774         ;;
17775
17776         hpux*)
17777
17778         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
17779         # multi-threading and also sets -lpthread."
17780
17781         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
17782         ;;
17783
17784         openedition*)
17785
17786         # IBM z/OS requires a feature-test macro to be defined in order to
17787         # enable POSIX threads at all, so give the user a hint if this is
17788         # not set. (We don't define these ourselves, as they can affect
17789         # other portions of the system API in unpredictable ways.)
17790
17791         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h.  */
17793
17794 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
17795              AX_PTHREAD_ZOS_MISSING
17796 #            endif
17797
17798 _ACEOF
17799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17800   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
17801   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
17802 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
17803 fi
17804 rm -f conftest*
17805
17806         ;;
17807
17808         solaris*)
17809
17810         # On Solaris (at least, for some versions), libc contains stubbed
17811         # (non-functional) versions of the pthreads routines, so link-based
17812         # tests will erroneously succeed. (N.B.: The stubs are missing
17813         # pthread_cleanup_push, or rather a function called by this macro,
17814         # so we could check for that, but who knows whether they'll stub
17815         # that too in a future libc.)  So we'll check first for the
17816         # standard Solaris way of linking pthreads (-mt -lpthread).
17817
17818         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
17819         ;;
17820 esac
17821
17822 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
17823
17824 if test "x$GCC" = "xyes"; then :
17825   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
17826 fi
17827
17828 # The presence of a feature test macro requesting re-entrant function
17829 # definitions is, on some systems, a strong hint that pthreads support is
17830 # correctly enabled
17831
17832 case $host_os in
17833         darwin* | hpux* | linux* | osf* | solaris*)
17834         ax_pthread_check_macro="_REENTRANT"
17835         ;;
17836
17837         aix*)
17838         ax_pthread_check_macro="_THREAD_SAFE"
17839         ;;
17840
17841         *)
17842         ax_pthread_check_macro="--"
17843         ;;
17844 esac
17845 if test "x$ax_pthread_check_macro" = "x--"; then :
17846   ax_pthread_check_cond=0
17847 else
17848   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
17849 fi
17850
17851 # Are we compiling with Clang?
17852
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
17854 $as_echo_n "checking whether $CC is Clang... " >&6; }
17855 if ${ax_cv_PTHREAD_CLANG+:} false; then :
17856   $as_echo_n "(cached) " >&6
17857 else
17858   ax_cv_PTHREAD_CLANG=no
17859      # Note that Autoconf sets GCC=yes for Clang as well as GCC
17860      if test "x$GCC" = "xyes"; then
17861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h.  */
17863 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
17864 #            if defined(__clang__) && defined(__llvm__)
17865              AX_PTHREAD_CC_IS_CLANG
17866 #            endif
17867
17868 _ACEOF
17869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17870   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
17871   ax_cv_PTHREAD_CLANG=yes
17872 fi
17873 rm -f conftest*
17874
17875      fi
17876
17877 fi
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
17879 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
17880 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
17881
17882 ax_pthread_clang_warning=no
17883
17884 # Clang needs special handling, because older versions handle the -pthread
17885 # option in a rather... idiosyncratic way
17886
17887 if test "x$ax_pthread_clang" = "xyes"; then
17888
17889         # Clang takes -pthread; it has never supported any other flag
17890
17891         # (Note 1: This will need to be revisited if a system that Clang
17892         # supports has POSIX threads in a separate library.  This tends not
17893         # to be the way of modern systems, but it's conceivable.)
17894
17895         # (Note 2: On some systems, notably Darwin, -pthread is not needed
17896         # to get POSIX threads support; the API is always present and
17897         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
17898         # -pthread does define _REENTRANT, and while the Darwin headers
17899         # ignore this macro, third-party headers might not.)
17900
17901         PTHREAD_CFLAGS="-pthread"
17902         PTHREAD_LIBS=
17903
17904         ax_pthread_ok=yes
17905
17906         # However, older versions of Clang make a point of warning the user
17907         # that, in an invocation where only linking and no compilation is
17908         # taking place, the -pthread option has no effect ("argument unused
17909         # during compilation").  They expect -pthread to be passed in only
17910         # when source code is being compiled.
17911         #
17912         # Problem is, this is at odds with the way Automake and most other
17913         # C build frameworks function, which is that the same flags used in
17914         # compilation (CFLAGS) are also used in linking.  Many systems
17915         # supported by AX_PTHREAD require exactly this for POSIX threads
17916         # support, and in fact it is often not straightforward to specify a
17917         # flag that is used only in the compilation phase and not in
17918         # linking.  Such a scenario is extremely rare in practice.
17919         #
17920         # Even though use of the -pthread flag in linking would only print
17921         # a warning, this can be a nuisance for well-run software projects
17922         # that build with -Werror.  So if the active version of Clang has
17923         # this misfeature, we search for an option to squash it.
17924
17925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
17926 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
17927 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
17928   $as_echo_n "(cached) " >&6
17929 else
17930   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
17931              # Create an alternate version of $ac_link that compiles and
17932              # links in two steps (.c -> .o, .o -> exe) instead of one
17933              # (.c -> exe), because the warning occurs only in the second
17934              # step
17935              ax_pthread_save_ac_link="$ac_link"
17936              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
17937              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
17938              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
17939              ax_pthread_save_CFLAGS="$CFLAGS"
17940              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
17941                 if test "x$ax_pthread_try" = "xunknown"; then :
17942   break
17943 fi
17944                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
17945                 ac_link="$ax_pthread_save_ac_link"
17946                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h.  */
17948 int main(void){return 0;}
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"; then :
17951   ac_link="$ax_pthread_2step_ac_link"
17952                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h.  */
17954 int main(void){return 0;}
17955 _ACEOF
17956 if ac_fn_c_try_link "$LINENO"; then :
17957   break
17958 fi
17959 rm -f core conftest.err conftest.$ac_objext \
17960     conftest$ac_exeext conftest.$ac_ext
17961
17962 fi
17963 rm -f core conftest.err conftest.$ac_objext \
17964     conftest$ac_exeext conftest.$ac_ext
17965              done
17966              ac_link="$ax_pthread_save_ac_link"
17967              CFLAGS="$ax_pthread_save_CFLAGS"
17968              if test "x$ax_pthread_try" = "x"; then :
17969   ax_pthread_try=no
17970 fi
17971              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
17972
17973 fi
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
17975 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
17976
17977         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
17978                 no | unknown) ;;
17979                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
17980         esac
17981
17982 fi # $ax_pthread_clang = yes
17983
17984 if test "x$ax_pthread_ok" = "xno"; then
17985 for ax_pthread_try_flag in $ax_pthread_flags; do
17986
17987         case $ax_pthread_try_flag in
17988                 none)
17989                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17990 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17991                 ;;
17992
17993                 -mt,pthread)
17994                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
17995 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
17996                 PTHREAD_CFLAGS="-mt"
17997                 PTHREAD_LIBS="-lpthread"
17998                 ;;
17999
18000                 -*)
18001                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
18002 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
18003                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
18004                 ;;
18005
18006                 pthread-config)
18007                 # Extract the first word of "pthread-config", so it can be a program name with args.
18008 set dummy pthread-config; ac_word=$2
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18010 $as_echo_n "checking for $ac_word... " >&6; }
18011 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18012   $as_echo_n "(cached) " >&6
18013 else
18014   if test -n "$ax_pthread_config"; then
18015   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18016 else
18017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18018 for as_dir in $PATH
18019 do
18020   IFS=$as_save_IFS
18021   test -z "$as_dir" && as_dir=.
18022     for ac_exec_ext in '' $ac_executable_extensions; do
18023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18024     ac_cv_prog_ax_pthread_config="yes"
18025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18026     break 2
18027   fi
18028 done
18029   done
18030 IFS=$as_save_IFS
18031
18032   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18033 fi
18034 fi
18035 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18036 if test -n "$ax_pthread_config"; then
18037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18038 $as_echo "$ax_pthread_config" >&6; }
18039 else
18040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041 $as_echo "no" >&6; }
18042 fi
18043
18044
18045                 if test "x$ax_pthread_config" = "xno"; then :
18046   continue
18047 fi
18048                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18049                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18050                 ;;
18051
18052                 *)
18053                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
18054 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
18055                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
18056                 ;;
18057         esac
18058
18059         ax_pthread_save_CFLAGS="$CFLAGS"
18060         ax_pthread_save_LIBS="$LIBS"
18061         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18062         LIBS="$PTHREAD_LIBS $LIBS"
18063
18064         # Check for various functions.  We must include pthread.h,
18065         # since some functions may be macros.  (On the Sequent, we
18066         # need a special flag -Kthread to make this header compile.)
18067         # We check for pthread_join because it is in -lpthread on IRIX
18068         # while pthread_create is in libc.  We check for pthread_attr_init
18069         # due to DEC craziness with -lpthreads.  We check for
18070         # pthread_cleanup_push because it is one of the few pthread
18071         # functions on Solaris that doesn't have a non-functional libc stub.
18072         # We try pthread_create on general principles.
18073
18074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h.  */
18076 #include <pthread.h>
18077 #                       if $ax_pthread_check_cond
18078 #                        error "$ax_pthread_check_macro must be defined"
18079 #                       endif
18080                         static void routine(void *a) { a = 0; }
18081                         static void *start_routine(void *a) { return a; }
18082 int
18083 main ()
18084 {
18085 pthread_t th; pthread_attr_t attr;
18086                         pthread_create(&th, 0, start_routine, 0);
18087                         pthread_join(th, 0);
18088                         pthread_attr_init(&attr);
18089                         pthread_cleanup_push(routine, 0);
18090                         pthread_cleanup_pop(0) /* ; */
18091   ;
18092   return 0;
18093 }
18094 _ACEOF
18095 if ac_fn_c_try_link "$LINENO"; then :
18096   ax_pthread_ok=yes
18097 fi
18098 rm -f core conftest.err conftest.$ac_objext \
18099     conftest$ac_exeext conftest.$ac_ext
18100
18101         CFLAGS="$ax_pthread_save_CFLAGS"
18102         LIBS="$ax_pthread_save_LIBS"
18103
18104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18105 $as_echo "$ax_pthread_ok" >&6; }
18106         if test "x$ax_pthread_ok" = "xyes"; then :
18107   break
18108 fi
18109
18110         PTHREAD_LIBS=""
18111         PTHREAD_CFLAGS=""
18112 done
18113 fi
18114
18115 # Various other checks:
18116 if test "x$ax_pthread_ok" = "xyes"; then
18117         ax_pthread_save_CFLAGS="$CFLAGS"
18118         ax_pthread_save_LIBS="$LIBS"
18119         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18120         LIBS="$PTHREAD_LIBS $LIBS"
18121
18122         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18124 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18125 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
18126   $as_echo_n "(cached) " >&6
18127 else
18128   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
18129              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18130                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h.  */
18132 #include <pthread.h>
18133 int
18134 main ()
18135 {
18136 int attr = $ax_pthread_attr; return attr /* ; */
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 if ac_fn_c_try_link "$LINENO"; then :
18142   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext \
18145     conftest$ac_exeext conftest.$ac_ext
18146              done
18147
18148 fi
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
18150 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
18151         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
18152                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
18153                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
18154
18155 cat >>confdefs.h <<_ACEOF
18156 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
18157 _ACEOF
18158
18159                ax_pthread_joinable_attr_defined=yes
18160
18161 fi
18162
18163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
18164 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
18165 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
18166   $as_echo_n "(cached) " >&6
18167 else
18168   ax_cv_PTHREAD_SPECIAL_FLAGS=no
18169              case $host_os in
18170              solaris*)
18171              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
18172              ;;
18173              esac
18174
18175 fi
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
18177 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
18178         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
18179                test "x$ax_pthread_special_flags_added" != "xyes"; then :
18180   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
18181                ax_pthread_special_flags_added=yes
18182 fi
18183
18184         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18185 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18186 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18187   $as_echo_n "(cached) " >&6
18188 else
18189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h.  */
18191 #include <pthread.h>
18192 int
18193 main ()
18194 {
18195 int i = PTHREAD_PRIO_INHERIT;
18196   ;
18197   return 0;
18198 }
18199 _ACEOF
18200 if ac_fn_c_try_link "$LINENO"; then :
18201   ax_cv_PTHREAD_PRIO_INHERIT=yes
18202 else
18203   ax_cv_PTHREAD_PRIO_INHERIT=no
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext \
18206     conftest$ac_exeext conftest.$ac_ext
18207
18208 fi
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18210 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18211         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
18212                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
18213
18214 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18215
18216                ax_pthread_prio_inherit_defined=yes
18217
18218 fi
18219
18220         CFLAGS="$ax_pthread_save_CFLAGS"
18221         LIBS="$ax_pthread_save_LIBS"
18222
18223         # More AIX lossage: compile with *_r variant
18224         if test "x$GCC" != "xyes"; then
18225             case $host_os in
18226                 aix*)
18227                 case "x/$CC" in #(
18228   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18229     #handle absolute path differently from PATH based program lookup
18230                      case "x$CC" in #(
18231   x/*) :
18232     if as_fn_executable_p ${CC}_r; then :
18233   PTHREAD_CC="${CC}_r"
18234 fi ;; #(
18235   *) :
18236     for ac_prog in ${CC}_r
18237 do
18238   # Extract the first word of "$ac_prog", so it can be a program name with args.
18239 set dummy $ac_prog; ac_word=$2
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18241 $as_echo_n "checking for $ac_word... " >&6; }
18242 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18243   $as_echo_n "(cached) " >&6
18244 else
18245   if test -n "$PTHREAD_CC"; then
18246   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18247 else
18248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18249 for as_dir in $PATH
18250 do
18251   IFS=$as_save_IFS
18252   test -z "$as_dir" && as_dir=.
18253     for ac_exec_ext in '' $ac_executable_extensions; do
18254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18255     ac_cv_prog_PTHREAD_CC="$ac_prog"
18256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18257     break 2
18258   fi
18259 done
18260   done
18261 IFS=$as_save_IFS
18262
18263 fi
18264 fi
18265 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18266 if test -n "$PTHREAD_CC"; then
18267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18268 $as_echo "$PTHREAD_CC" >&6; }
18269 else
18270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18271 $as_echo "no" >&6; }
18272 fi
18273
18274
18275   test -n "$PTHREAD_CC" && break
18276 done
18277 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18278  ;;
18279 esac ;; #(
18280   *) :
18281      ;;
18282 esac
18283                 ;;
18284             esac
18285         fi
18286 fi
18287
18288 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18289
18290
18291
18292
18293
18294 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18295 if test "x$ax_pthread_ok" = "xyes"; then
18296         have_pthread=true
18297         :
18298 else
18299         ax_pthread_ok=no
18300
18301 fi
18302 ac_ext=c
18303 ac_cpp='$CPP $CPPFLAGS'
18304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18307
18308
18309 fi
18310 if $have_pthread; then
18311
18312 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18313
18314 fi
18315  if $have_pthread; then
18316   HAVE_PTHREAD_TRUE=
18317   HAVE_PTHREAD_FALSE='#'
18318 else
18319   HAVE_PTHREAD_TRUE='#'
18320   HAVE_PTHREAD_FALSE=
18321 fi
18322
18323
18324
18325 have_ot=true
18326 if $have_ot; then
18327
18328 $as_echo "#define HAVE_OT 1" >>confdefs.h
18329
18330 fi
18331  if $have_ot; then
18332   HAVE_OT_TRUE=
18333   HAVE_OT_FALSE='#'
18334 else
18335   HAVE_OT_TRUE='#'
18336   HAVE_OT_FALSE=
18337 fi
18338
18339
18340 have_fallback=true
18341 if $have_fallback; then
18342
18343 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
18344
18345 fi
18346  if $have_fallback; then
18347   HAVE_FALLBACK_TRUE=
18348   HAVE_FALLBACK_FALSE='#'
18349 else
18350   HAVE_FALLBACK_TRUE='#'
18351   HAVE_FALLBACK_FALSE=
18352 fi
18353
18354
18355
18356
18357 # Check whether --with-glib was given.
18358 if test "${with_glib+set}" = set; then :
18359   withval=$with_glib;
18360 else
18361   with_glib=auto
18362 fi
18363
18364 have_glib=false
18365 GLIB_DEPS="glib-2.0 >= 2.19.1"
18366
18367 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
18368
18369 pkg_failed=no
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
18371 $as_echo_n "checking for GLIB... " >&6; }
18372
18373 if test -n "$PKG_CONFIG"; then
18374     if test -n "$GLIB_CFLAGS"; then
18375         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
18376     else
18377         if test -n "$PKG_CONFIG" && \
18378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
18379   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
18380   ac_status=$?
18381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18382   test $ac_status = 0; }; then
18383   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
18384 else
18385   pkg_failed=yes
18386 fi
18387     fi
18388 else
18389         pkg_failed=untried
18390 fi
18391 if test -n "$PKG_CONFIG"; then
18392     if test -n "$GLIB_LIBS"; then
18393         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
18394     else
18395         if test -n "$PKG_CONFIG" && \
18396     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
18397   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
18398   ac_status=$?
18399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18400   test $ac_status = 0; }; then
18401   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
18402 else
18403   pkg_failed=yes
18404 fi
18405     fi
18406 else
18407         pkg_failed=untried
18408 fi
18409
18410
18411
18412 if test $pkg_failed = yes; then
18413
18414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18415         _pkg_short_errors_supported=yes
18416 else
18417         _pkg_short_errors_supported=no
18418 fi
18419         if test $_pkg_short_errors_supported = yes; then
18420                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
18421         else
18422                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
18423         fi
18424         # Put the nasty error message in config.log where it belongs
18425         echo "$GLIB_PKG_ERRORS" >&5
18426
18427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18428 $as_echo "no" >&6; }
18429                 :
18430 elif test $pkg_failed = untried; then
18431         :
18432 else
18433         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
18434         GLIB_LIBS=$pkg_cv_GLIB_LIBS
18435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18436 $as_echo "yes" >&6; }
18437         have_glib=true
18438 fi
18439 fi
18440 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
18441         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
18442 fi
18443 if $have_glib; then
18444
18445 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
18446
18447 fi
18448  if $have_glib; then
18449   HAVE_GLIB_TRUE=
18450   HAVE_GLIB_FALSE='#'
18451 else
18452   HAVE_GLIB_TRUE='#'
18453   HAVE_GLIB_FALSE=
18454 fi
18455
18456
18457
18458
18459 # Check whether --with-gobject was given.
18460 if test "${with_gobject+set}" = set; then :
18461   withval=$with_gobject;
18462 else
18463   with_gobject=no
18464 fi
18465
18466 have_gobject=false
18467 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
18468
18469 pkg_failed=no
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
18471 $as_echo_n "checking for GOBJECT... " >&6; }
18472
18473 if test -n "$PKG_CONFIG"; then
18474     if test -n "$GOBJECT_CFLAGS"; then
18475         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
18476     else
18477         if test -n "$PKG_CONFIG" && \
18478     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
18479   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
18480   ac_status=$?
18481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18482   test $ac_status = 0; }; then
18483   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
18484 else
18485   pkg_failed=yes
18486 fi
18487     fi
18488 else
18489         pkg_failed=untried
18490 fi
18491 if test -n "$PKG_CONFIG"; then
18492     if test -n "$GOBJECT_LIBS"; then
18493         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
18494     else
18495         if test -n "$PKG_CONFIG" && \
18496     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
18497   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
18498   ac_status=$?
18499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18500   test $ac_status = 0; }; then
18501   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
18502 else
18503   pkg_failed=yes
18504 fi
18505     fi
18506 else
18507         pkg_failed=untried
18508 fi
18509
18510
18511
18512 if test $pkg_failed = yes; then
18513
18514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18515         _pkg_short_errors_supported=yes
18516 else
18517         _pkg_short_errors_supported=no
18518 fi
18519         if test $_pkg_short_errors_supported = yes; then
18520                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18521         else
18522                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18523         fi
18524         # Put the nasty error message in config.log where it belongs
18525         echo "$GOBJECT_PKG_ERRORS" >&5
18526
18527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18528 $as_echo "no" >&6; }
18529                 :
18530 elif test $pkg_failed = untried; then
18531         :
18532 else
18533         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
18534         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
18535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18536 $as_echo "yes" >&6; }
18537         have_gobject=true
18538 fi
18539 fi
18540 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
18541         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
18542 fi
18543 if $have_gobject; then
18544
18545 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
18546
18547         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
18548
18549 fi
18550  if $have_gobject; then
18551   HAVE_GOBJECT_TRUE=
18552   HAVE_GOBJECT_FALSE='#'
18553 else
18554   HAVE_GOBJECT_TRUE='#'
18555   HAVE_GOBJECT_FALSE=
18556 fi
18557
18558
18559
18560
18561 # Gobject-Introspection
18562 have_introspection=false
18563
18564         if $have_gobject; then
18565
18566
18567
18568                 # Check whether --enable-introspection was given.
18569 if test "${enable_introspection+set}" = set; then :
18570   enableval=$enable_introspection;
18571 else
18572   enable_introspection=auto
18573 fi
18574
18575
18576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
18577 $as_echo_n "checking for gobject-introspection... " >&6; }
18578
18579         case $enable_introspection in #(
18580   no) :
18581             found_introspection="no (disabled, use --enable-introspection to enable)"
18582      ;; #(
18583       yes) :
18584             if test -n "$PKG_CONFIG" && \
18585     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
18586   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
18587   ac_status=$?
18588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18589   test $ac_status = 0; }; then
18590   :
18591 else
18592   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
18593 fi
18594         if test -n "$PKG_CONFIG" && \
18595     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18596   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18597   ac_status=$?
18598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18599   test $ac_status = 0; }; then
18600   found_introspection=yes
18601 else
18602   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
18603 fi
18604      ;; #(
18605       auto) :
18606             if test -n "$PKG_CONFIG" && \
18607     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18608   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18609   ac_status=$?
18610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18611   test $ac_status = 0; }; then
18612   found_introspection=yes
18613 else
18614   found_introspection=no
18615 fi
18616                 enable_introspection=$found_introspection
18617      ;; #(
18618   *) :
18619                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
18620      ;;
18621 esac
18622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
18623 $as_echo "$found_introspection" >&6; }
18624
18625     INTROSPECTION_SCANNER=
18626     INTROSPECTION_COMPILER=
18627     INTROSPECTION_GENERATE=
18628     INTROSPECTION_GIRDIR=
18629     INTROSPECTION_TYPELIBDIR=
18630     if test "x$found_introspection" = "xyes"; then
18631        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
18632        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
18633        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
18634        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
18635        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
18636        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
18637        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
18638        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
18639     fi
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649      if test "x$found_introspection" = "xyes"; then
18650   HAVE_INTROSPECTION_TRUE=
18651   HAVE_INTROSPECTION_FALSE='#'
18652 else
18653   HAVE_INTROSPECTION_TRUE='#'
18654   HAVE_INTROSPECTION_FALSE=
18655 fi
18656
18657
18658
18659                 if test "x$found_introspection" = xyes; then
18660                         have_introspection=true
18661                 fi
18662         else
18663                  if false; then
18664   HAVE_INTROSPECTION_TRUE=
18665   HAVE_INTROSPECTION_FALSE='#'
18666 else
18667   HAVE_INTROSPECTION_TRUE='#'
18668   HAVE_INTROSPECTION_FALSE=
18669 fi
18670
18671         fi
18672
18673
18674
18675
18676 # Check whether --with-cairo was given.
18677 if test "${with_cairo+set}" = set; then :
18678   withval=$with_cairo;
18679 else
18680   with_cairo=auto
18681 fi
18682
18683 have_cairo=false
18684 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
18685
18686 pkg_failed=no
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
18688 $as_echo_n "checking for CAIRO... " >&6; }
18689
18690 if test -n "$PKG_CONFIG"; then
18691     if test -n "$CAIRO_CFLAGS"; then
18692         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
18693     else
18694         if test -n "$PKG_CONFIG" && \
18695     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18696   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18697   ac_status=$?
18698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18699   test $ac_status = 0; }; then
18700   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
18701 else
18702   pkg_failed=yes
18703 fi
18704     fi
18705 else
18706         pkg_failed=untried
18707 fi
18708 if test -n "$PKG_CONFIG"; then
18709     if test -n "$CAIRO_LIBS"; then
18710         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
18711     else
18712         if test -n "$PKG_CONFIG" && \
18713     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18714   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18715   ac_status=$?
18716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18717   test $ac_status = 0; }; then
18718   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
18719 else
18720   pkg_failed=yes
18721 fi
18722     fi
18723 else
18724         pkg_failed=untried
18725 fi
18726
18727
18728
18729 if test $pkg_failed = yes; then
18730
18731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18732         _pkg_short_errors_supported=yes
18733 else
18734         _pkg_short_errors_supported=no
18735 fi
18736         if test $_pkg_short_errors_supported = yes; then
18737                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18738         else
18739                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18740         fi
18741         # Put the nasty error message in config.log where it belongs
18742         echo "$CAIRO_PKG_ERRORS" >&5
18743
18744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745 $as_echo "no" >&6; }
18746                 :
18747 elif test $pkg_failed = untried; then
18748         :
18749 else
18750         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
18751         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
18752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18754         have_cairo=true
18755 fi
18756 fi
18757 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
18758         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
18759 fi
18760 if $have_cairo; then
18761
18762 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
18763
18764 fi
18765  if $have_cairo; then
18766   HAVE_CAIRO_TRUE=
18767   HAVE_CAIRO_FALSE='#'
18768 else
18769   HAVE_CAIRO_TRUE='#'
18770   HAVE_CAIRO_FALSE=
18771 fi
18772
18773
18774 have_cairo_ft=false
18775 if $have_cairo; then
18776
18777 pkg_failed=no
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
18779 $as_echo_n "checking for CAIRO_FT... " >&6; }
18780
18781 if test -n "$PKG_CONFIG"; then
18782     if test -n "$CAIRO_FT_CFLAGS"; then
18783         pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
18784     else
18785         if test -n "$PKG_CONFIG" && \
18786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18787   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18788   ac_status=$?
18789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18790   test $ac_status = 0; }; then
18791   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
18792 else
18793   pkg_failed=yes
18794 fi
18795     fi
18796 else
18797         pkg_failed=untried
18798 fi
18799 if test -n "$PKG_CONFIG"; then
18800     if test -n "$CAIRO_FT_LIBS"; then
18801         pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
18802     else
18803         if test -n "$PKG_CONFIG" && \
18804     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18805   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18806   ac_status=$?
18807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18808   test $ac_status = 0; }; then
18809   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
18810 else
18811   pkg_failed=yes
18812 fi
18813     fi
18814 else
18815         pkg_failed=untried
18816 fi
18817
18818
18819
18820 if test $pkg_failed = yes; then
18821
18822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18823         _pkg_short_errors_supported=yes
18824 else
18825         _pkg_short_errors_supported=no
18826 fi
18827         if test $_pkg_short_errors_supported = yes; then
18828                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
18829         else
18830                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
18831         fi
18832         # Put the nasty error message in config.log where it belongs
18833         echo "$CAIRO_FT_PKG_ERRORS" >&5
18834
18835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836 $as_echo "no" >&6; }
18837                 :
18838 elif test $pkg_failed = untried; then
18839         :
18840 else
18841         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
18842         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
18843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18844 $as_echo "yes" >&6; }
18845         have_cairo_ft=true
18846 fi
18847 fi
18848 if $have_cairo_ft; then
18849
18850 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
18851
18852 fi
18853  if $have_cairo_ft; then
18854   HAVE_CAIRO_FT_TRUE=
18855   HAVE_CAIRO_FT_FALSE='#'
18856 else
18857   HAVE_CAIRO_FT_TRUE='#'
18858   HAVE_CAIRO_FT_FALSE=
18859 fi
18860
18861
18862
18863
18864 # Check whether --with-fontconfig was given.
18865 if test "${with_fontconfig+set}" = set; then :
18866   withval=$with_fontconfig;
18867 else
18868   with_fontconfig=auto
18869 fi
18870
18871 have_fontconfig=false
18872 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
18873
18874 pkg_failed=no
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18876 $as_echo_n "checking for FONTCONFIG... " >&6; }
18877
18878 if test -n "$PKG_CONFIG"; then
18879     if test -n "$FONTCONFIG_CFLAGS"; then
18880         pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18881     else
18882         if test -n "$PKG_CONFIG" && \
18883     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18884   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18885   ac_status=$?
18886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18887   test $ac_status = 0; }; then
18888   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
18889 else
18890   pkg_failed=yes
18891 fi
18892     fi
18893 else
18894         pkg_failed=untried
18895 fi
18896 if test -n "$PKG_CONFIG"; then
18897     if test -n "$FONTCONFIG_LIBS"; then
18898         pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18899     else
18900         if test -n "$PKG_CONFIG" && \
18901     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18902   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18903   ac_status=$?
18904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18905   test $ac_status = 0; }; then
18906   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
18907 else
18908   pkg_failed=yes
18909 fi
18910     fi
18911 else
18912         pkg_failed=untried
18913 fi
18914
18915
18916
18917 if test $pkg_failed = yes; then
18918
18919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18920         _pkg_short_errors_supported=yes
18921 else
18922         _pkg_short_errors_supported=no
18923 fi
18924         if test $_pkg_short_errors_supported = yes; then
18925                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
18926         else
18927                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
18928         fi
18929         # Put the nasty error message in config.log where it belongs
18930         echo "$FONTCONFIG_PKG_ERRORS" >&5
18931
18932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18933 $as_echo "no" >&6; }
18934                 :
18935 elif test $pkg_failed = untried; then
18936         :
18937 else
18938         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18939         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18941 $as_echo "yes" >&6; }
18942         have_fontconfig=true
18943 fi
18944 fi
18945 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
18946         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
18947 fi
18948 if $have_fontconfig; then
18949
18950 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
18951
18952 fi
18953  if $have_fontconfig; then
18954   HAVE_FONTCONFIG_TRUE=
18955   HAVE_FONTCONFIG_FALSE='#'
18956 else
18957   HAVE_FONTCONFIG_TRUE='#'
18958   HAVE_FONTCONFIG_FALSE=
18959 fi
18960
18961
18962
18963
18964 # Check whether --with-icu was given.
18965 if test "${with_icu+set}" = set; then :
18966   withval=$with_icu;
18967 else
18968   with_icu=auto
18969 fi
18970
18971 have_icu=false
18972 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
18973
18974 pkg_failed=no
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18976 $as_echo_n "checking for ICU... " >&6; }
18977
18978 if test -n "$PKG_CONFIG"; then
18979     if test -n "$ICU_CFLAGS"; then
18980         pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18981     else
18982         if test -n "$PKG_CONFIG" && \
18983     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18984   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18985   ac_status=$?
18986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18987   test $ac_status = 0; }; then
18988   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18989 else
18990   pkg_failed=yes
18991 fi
18992     fi
18993 else
18994         pkg_failed=untried
18995 fi
18996 if test -n "$PKG_CONFIG"; then
18997     if test -n "$ICU_LIBS"; then
18998         pkg_cv_ICU_LIBS="$ICU_LIBS"
18999     else
19000         if test -n "$PKG_CONFIG" && \
19001     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
19002   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
19003   ac_status=$?
19004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19005   test $ac_status = 0; }; then
19006   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
19007 else
19008   pkg_failed=yes
19009 fi
19010     fi
19011 else
19012         pkg_failed=untried
19013 fi
19014
19015
19016
19017 if test $pkg_failed = yes; then
19018
19019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19020         _pkg_short_errors_supported=yes
19021 else
19022         _pkg_short_errors_supported=no
19023 fi
19024         if test $_pkg_short_errors_supported = yes; then
19025                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
19026         else
19027                 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
19028         fi
19029         # Put the nasty error message in config.log where it belongs
19030         echo "$ICU_PKG_ERRORS" >&5
19031
19032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19033 $as_echo "no" >&6; }
19034                 :
19035 elif test $pkg_failed = untried; then
19036         :
19037 else
19038         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
19039         ICU_LIBS=$pkg_cv_ICU_LIBS
19040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19041 $as_echo "yes" >&6; }
19042         have_icu=true
19043 fi
19044
19045                 if test "$have_icu" != "true"; then
19046                 if test -n "$ac_tool_prefix"; then
19047   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
19048 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19050 $as_echo_n "checking for $ac_word... " >&6; }
19051 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
19052   $as_echo_n "(cached) " >&6
19053 else
19054   if test -n "$ICU_CONFIG"; then
19055   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
19056 else
19057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19058 for as_dir in $PATH
19059 do
19060   IFS=$as_save_IFS
19061   test -z "$as_dir" && as_dir=.
19062     for ac_exec_ext in '' $ac_executable_extensions; do
19063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19064     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
19065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19066     break 2
19067   fi
19068 done
19069   done
19070 IFS=$as_save_IFS
19071
19072 fi
19073 fi
19074 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
19075 if test -n "$ICU_CONFIG"; then
19076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
19077 $as_echo "$ICU_CONFIG" >&6; }
19078 else
19079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19080 $as_echo "no" >&6; }
19081 fi
19082
19083
19084 fi
19085 if test -z "$ac_cv_prog_ICU_CONFIG"; then
19086   ac_ct_ICU_CONFIG=$ICU_CONFIG
19087   # Extract the first word of "icu-config", so it can be a program name with args.
19088 set dummy icu-config; ac_word=$2
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19090 $as_echo_n "checking for $ac_word... " >&6; }
19091 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
19092   $as_echo_n "(cached) " >&6
19093 else
19094   if test -n "$ac_ct_ICU_CONFIG"; then
19095   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
19096 else
19097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19098 for as_dir in $PATH
19099 do
19100   IFS=$as_save_IFS
19101   test -z "$as_dir" && as_dir=.
19102     for ac_exec_ext in '' $ac_executable_extensions; do
19103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19104     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
19105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19106     break 2
19107   fi
19108 done
19109   done
19110 IFS=$as_save_IFS
19111
19112 fi
19113 fi
19114 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
19115 if test -n "$ac_ct_ICU_CONFIG"; then
19116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
19117 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
19118 else
19119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19120 $as_echo "no" >&6; }
19121 fi
19122
19123   if test "x$ac_ct_ICU_CONFIG" = x; then
19124     ICU_CONFIG="no"
19125   else
19126     case $cross_compiling:$ac_tool_warned in
19127 yes:)
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19130 ac_tool_warned=yes ;;
19131 esac
19132     ICU_CONFIG=$ac_ct_ICU_CONFIG
19133   fi
19134 else
19135   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
19136 fi
19137
19138                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
19139 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
19140                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
19141                         have_icu=true
19142                         # We don't use --cflags as this gives us a lot of things that we don't
19143                         # necessarily want, like debugging and optimization flags
19144                         # See man (1) icu-config for more info.
19145                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
19146                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
19147
19148
19149                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19150 $as_echo "yes" >&6; }
19151                 else
19152                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19153 $as_echo "no" >&6; }
19154                 fi
19155         fi
19156 fi
19157 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
19158         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
19159 fi
19160
19161 if $have_icu; then
19162         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
19163
19164 $as_echo "#define HAVE_ICU 1" >>confdefs.h
19165
19166         if test "x$with_icu" = "xbuiltin"; then
19167
19168 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
19169
19170         fi
19171 fi
19172  if $have_icu; then
19173   HAVE_ICU_TRUE=
19174   HAVE_ICU_FALSE='#'
19175 else
19176   HAVE_ICU_TRUE='#'
19177   HAVE_ICU_FALSE=
19178 fi
19179
19180  if $have_icu && test "x$with_icu" = "xbuiltin"; then
19181   HAVE_ICU_BUILTIN_TRUE=
19182   HAVE_ICU_BUILTIN_FALSE='#'
19183 else
19184   HAVE_ICU_BUILTIN_TRUE='#'
19185   HAVE_ICU_BUILTIN_FALSE=
19186 fi
19187
19188
19189
19190
19191 # Check whether --with-ucdn was given.
19192 if test "${with_ucdn+set}" = set; then :
19193   withval=$with_ucdn;
19194 else
19195   with_ucdn=yes
19196 fi
19197
19198 have_ucdn=false
19199 if test "x$with_ucdn" = "xyes"; then
19200         have_ucdn=true
19201 fi
19202 if $have_ucdn; then
19203
19204 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
19205
19206 fi
19207  if $have_ucdn; then
19208   HAVE_UCDN_TRUE=
19209   HAVE_UCDN_FALSE='#'
19210 else
19211   HAVE_UCDN_TRUE='#'
19212   HAVE_UCDN_FALSE=
19213 fi
19214
19215
19216
19217
19218 # Check whether --with-graphite2 was given.
19219 if test "${with_graphite2+set}" = set; then :
19220   withval=$with_graphite2;
19221 else
19222   with_graphite2=no
19223 fi
19224
19225 have_graphite2=false
19226 GRAPHITE2_DEPS="graphite2"
19227
19228 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
19229
19230 pkg_failed=no
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
19232 $as_echo_n "checking for GRAPHITE2... " >&6; }
19233
19234 if test -n "$PKG_CONFIG"; then
19235     if test -n "$GRAPHITE2_CFLAGS"; then
19236         pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
19237     else
19238         if test -n "$PKG_CONFIG" && \
19239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
19240   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
19241   ac_status=$?
19242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19243   test $ac_status = 0; }; then
19244   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
19245 else
19246   pkg_failed=yes
19247 fi
19248     fi
19249 else
19250         pkg_failed=untried
19251 fi
19252 if test -n "$PKG_CONFIG"; then
19253     if test -n "$GRAPHITE2_LIBS"; then
19254         pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
19255     else
19256         if test -n "$PKG_CONFIG" && \
19257     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
19258   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
19259   ac_status=$?
19260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19261   test $ac_status = 0; }; then
19262   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
19263 else
19264   pkg_failed=yes
19265 fi
19266     fi
19267 else
19268         pkg_failed=untried
19269 fi
19270
19271
19272
19273 if test $pkg_failed = yes; then
19274
19275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19276         _pkg_short_errors_supported=yes
19277 else
19278         _pkg_short_errors_supported=no
19279 fi
19280         if test $_pkg_short_errors_supported = yes; then
19281                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
19282         else
19283                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
19284         fi
19285         # Put the nasty error message in config.log where it belongs
19286         echo "$GRAPHITE2_PKG_ERRORS" >&5
19287
19288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19289 $as_echo "no" >&6; }
19290                 :
19291 elif test $pkg_failed = untried; then
19292         :
19293 else
19294         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
19295         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
19296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19297 $as_echo "yes" >&6; }
19298         have_graphite2=true
19299 fi
19300         if test "x$have_graphite2" != "xtrue"; then
19301                 # If pkg-config is not available, graphite2 can still be there
19302                 ac_save_CFLAGS="$CFLAGS"
19303                 ac_save_CPPFLAGS="$CPPFLAGS"
19304                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
19305                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
19306                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
19307 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
19308   have_graphite2=true
19309 else
19310   :
19311 fi
19312
19313
19314                 CPPFLAGS="$ac_save_CPPFLAGS"
19315                 CFLAGS="$ac_save_CFLAGS"
19316         fi
19317 fi
19318 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
19319         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
19320 fi
19321 if $have_graphite2; then
19322
19323 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
19324
19325 fi
19326  if $have_graphite2; then
19327   HAVE_GRAPHITE2_TRUE=
19328   HAVE_GRAPHITE2_FALSE='#'
19329 else
19330   HAVE_GRAPHITE2_TRUE='#'
19331   HAVE_GRAPHITE2_FALSE=
19332 fi
19333
19334
19335
19336
19337 # Check whether --with-freetype was given.
19338 if test "${with_freetype+set}" = set; then :
19339   withval=$with_freetype;
19340 else
19341   with_freetype=auto
19342 fi
19343
19344 have_freetype=false
19345 FREETYPE_DEPS="freetype2 >= 12.0.6"
19346
19347 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
19348         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
19349
19350 pkg_failed=no
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
19352 $as_echo_n "checking for FREETYPE... " >&6; }
19353
19354 if test -n "$PKG_CONFIG"; then
19355     if test -n "$FREETYPE_CFLAGS"; then
19356         pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
19357     else
19358         if test -n "$PKG_CONFIG" && \
19359     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
19360   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
19361   ac_status=$?
19362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19363   test $ac_status = 0; }; then
19364   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
19365 else
19366   pkg_failed=yes
19367 fi
19368     fi
19369 else
19370         pkg_failed=untried
19371 fi
19372 if test -n "$PKG_CONFIG"; then
19373     if test -n "$FREETYPE_LIBS"; then
19374         pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
19375     else
19376         if test -n "$PKG_CONFIG" && \
19377     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
19378   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
19379   ac_status=$?
19380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19381   test $ac_status = 0; }; then
19382   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
19383 else
19384   pkg_failed=yes
19385 fi
19386     fi
19387 else
19388         pkg_failed=untried
19389 fi
19390
19391
19392
19393 if test $pkg_failed = yes; then
19394
19395 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19396         _pkg_short_errors_supported=yes
19397 else
19398         _pkg_short_errors_supported=no
19399 fi
19400         if test $_pkg_short_errors_supported = yes; then
19401                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
19402         else
19403                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
19404         fi
19405         # Put the nasty error message in config.log where it belongs
19406         echo "$FREETYPE_PKG_ERRORS" >&5
19407
19408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19409 $as_echo "no" >&6; }
19410                 :
19411 elif test $pkg_failed = untried; then
19412         :
19413 else
19414         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
19415         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
19416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417 $as_echo "yes" >&6; }
19418         have_freetype=true
19419 fi
19420 fi
19421 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
19422         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
19423 fi
19424 if $have_freetype; then
19425
19426 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19427
19428         save_libs=$LIBS
19429         LIBS="$LIBS $FREETYPE_LIBS"
19430         for ac_func in FT_Get_Var_Blend_Coordinates
19431 do :
19432   ac_fn_c_check_func "$LINENO" "FT_Get_Var_Blend_Coordinates" "ac_cv_func_FT_Get_Var_Blend_Coordinates"
19433 if test "x$ac_cv_func_FT_Get_Var_Blend_Coordinates" = xyes; then :
19434   cat >>confdefs.h <<_ACEOF
19435 #define HAVE_FT_GET_VAR_BLEND_COORDINATES 1
19436 _ACEOF
19437
19438 fi
19439 done
19440
19441         LIBS=$save_libs
19442 fi
19443  if $have_freetype; then
19444   HAVE_FREETYPE_TRUE=
19445   HAVE_FREETYPE_FALSE='#'
19446 else
19447   HAVE_FREETYPE_TRUE='#'
19448   HAVE_FREETYPE_FALSE=
19449 fi
19450
19451
19452
19453
19454 # Check whether --with-uniscribe was given.
19455 if test "${with_uniscribe+set}" = set; then :
19456   withval=$with_uniscribe;
19457 else
19458   with_uniscribe=no
19459 fi
19460
19461 have_uniscribe=false
19462 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
19463         for ac_header in usp10.h windows.h
19464 do :
19465   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19466 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19468   cat >>confdefs.h <<_ACEOF
19469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19470 _ACEOF
19471  have_uniscribe=true
19472 fi
19473
19474 done
19475
19476 fi
19477 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
19478         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
19479 fi
19480 if $have_uniscribe; then
19481         UNISCRIBE_CFLAGS=
19482         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
19483
19484
19485
19486 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
19487
19488 fi
19489  if $have_uniscribe; then
19490   HAVE_UNISCRIBE_TRUE=
19491   HAVE_UNISCRIBE_FALSE='#'
19492 else
19493   HAVE_UNISCRIBE_TRUE='#'
19494   HAVE_UNISCRIBE_FALSE=
19495 fi
19496
19497
19498
19499
19500 # Check whether --with-directwrite was given.
19501 if test "${with_directwrite+set}" = set; then :
19502   withval=$with_directwrite;
19503 else
19504   with_directwrite=no
19505 fi
19506
19507 have_directwrite=false
19508 ac_ext=cpp
19509 ac_cpp='$CXXCPP $CPPFLAGS'
19510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19513
19514 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
19515
19516 for ac_header in dwrite.h
19517 do :
19518   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
19519 if test "x$ac_cv_header_dwrite_h" = xyes; then :
19520   cat >>confdefs.h <<_ACEOF
19521 #define HAVE_DWRITE_H 1
19522 _ACEOF
19523  have_directwrite=true
19524 fi
19525
19526 done
19527
19528 fi
19529 ac_ext=c
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
19536         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
19537 fi
19538 if $have_directwrite; then
19539         DIRECTWRITE_CXXFLAGS=
19540         DIRECTWRITE_LIBS="-ldwrite"
19541
19542
19543
19544 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
19545
19546 fi
19547  if $have_directwrite; then
19548   HAVE_DIRECTWRITE_TRUE=
19549   HAVE_DIRECTWRITE_FALSE='#'
19550 else
19551   HAVE_DIRECTWRITE_TRUE='#'
19552   HAVE_DIRECTWRITE_FALSE=
19553 fi
19554
19555
19556
19557
19558 # Check whether --with-coretext was given.
19559 if test "${with_coretext+set}" = set; then :
19560   withval=$with_coretext;
19561 else
19562   with_coretext=no
19563 fi
19564
19565 have_coretext=false
19566 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
19567         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
19568 "
19569 if test "x$ac_cv_type_CTFontRef" = xyes; then :
19570   have_coretext=true
19571 fi
19572
19573
19574         if $have_coretext; then
19575                 CORETEXT_CFLAGS=
19576                 CORETEXT_LIBS="-framework ApplicationServices"
19577
19578
19579         else
19580                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
19581                 if test "x$have_coretext" != "xtrue"; then
19582                         # Check for a different symbol to avoid getting cached result.
19583                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
19584 "
19585 if test "x$ac_cv_type_CTRunRef" = xyes; then :
19586   have_coretext=true
19587 fi
19588
19589                 fi
19590
19591                 if $have_coretext; then
19592                         CORETEXT_CFLAGS=
19593                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
19594
19595
19596                 fi
19597         fi
19598 fi
19599 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
19600         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
19601 fi
19602 if $have_coretext; then
19603
19604 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
19605
19606 fi
19607  if $have_coretext; then
19608   HAVE_CORETEXT_TRUE=
19609   HAVE_CORETEXT_FALSE='#'
19610 else
19611   HAVE_CORETEXT_TRUE='#'
19612   HAVE_CORETEXT_FALSE=
19613 fi
19614
19615
19616
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19618 $as_echo_n "checking for Intel atomic primitives... " >&6; }
19619 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
19620   $as_echo_n "(cached) " >&6
19621 else
19622
19623         hb_cv_have_intel_atomic_primitives=false
19624         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h.  */
19626
19627                 void memory_barrier (void) { __sync_synchronize (); }
19628                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19629                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19630                 void mutex_unlock (int *m) { __sync_lock_release (m); }
19631
19632 int
19633 main ()
19634 {
19635
19636   ;
19637   return 0;
19638 }
19639 _ACEOF
19640 if ac_fn_c_try_link "$LINENO"; then :
19641   hb_cv_have_intel_atomic_primitives=true
19642
19643 fi
19644 rm -f core conftest.err conftest.$ac_objext \
19645     conftest$ac_exeext conftest.$ac_ext
19646
19647 fi
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
19649 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
19650 if $hb_cv_have_intel_atomic_primitives; then
19651
19652 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19653
19654 fi
19655
19656
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19658 $as_echo_n "checking for Solaris atomic operations... " >&6; }
19659 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
19660   $as_echo_n "(cached) " >&6
19661 else
19662
19663         hb_cv_have_solaris_atomic_ops=false
19664         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h.  */
19666
19667                 #include <atomic.h>
19668                 /* This requires Solaris Studio 12.2 or newer: */
19669                 #include <mbarrier.h>
19670                 void memory_barrier (void) { __machine_rw_barrier (); }
19671                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19672                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19673
19674 int
19675 main ()
19676 {
19677
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 if ac_fn_c_try_link "$LINENO"; then :
19683   hb_cv_have_solaris_atomic_ops=true
19684
19685 fi
19686 rm -f core conftest.err conftest.$ac_objext \
19687     conftest$ac_exeext conftest.$ac_ext
19688
19689 fi
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
19691 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
19692 if $hb_cv_have_solaris_atomic_ops; then
19693
19694 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19695
19696 fi
19697
19698 if test "$os_win32" = no && ! $have_pthread; then
19699         for ac_header in sched.h
19700 do :
19701   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19702 if test "x$ac_cv_header_sched_h" = xyes; then :
19703   cat >>confdefs.h <<_ACEOF
19704 #define HAVE_SCHED_H 1
19705 _ACEOF
19706
19707 fi
19708
19709 done
19710
19711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19712 $as_echo_n "checking for library containing sched_yield... " >&6; }
19713 if ${ac_cv_search_sched_yield+:} false; then :
19714   $as_echo_n "(cached) " >&6
19715 else
19716   ac_func_search_save_LIBS=$LIBS
19717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h.  */
19719
19720 /* Override any GCC internal prototype to avoid an error.
19721    Use char because int might match the return type of a GCC
19722    builtin and then its argument prototype would still apply.  */
19723 #ifdef __cplusplus
19724 extern "C"
19725 #endif
19726 char sched_yield ();
19727 int
19728 main ()
19729 {
19730 return sched_yield ();
19731   ;
19732   return 0;
19733 }
19734 _ACEOF
19735 for ac_lib in '' rt; do
19736   if test -z "$ac_lib"; then
19737     ac_res="none required"
19738   else
19739     ac_res=-l$ac_lib
19740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19741   fi
19742   if ac_fn_c_try_link "$LINENO"; then :
19743   ac_cv_search_sched_yield=$ac_res
19744 fi
19745 rm -f core conftest.err conftest.$ac_objext \
19746     conftest$ac_exeext
19747   if ${ac_cv_search_sched_yield+:} false; then :
19748   break
19749 fi
19750 done
19751 if ${ac_cv_search_sched_yield+:} false; then :
19752
19753 else
19754   ac_cv_search_sched_yield=no
19755 fi
19756 rm conftest.$ac_ext
19757 LIBS=$ac_func_search_save_LIBS
19758 fi
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19760 $as_echo "$ac_cv_search_sched_yield" >&6; }
19761 ac_res=$ac_cv_search_sched_yield
19762 if test "$ac_res" != no; then :
19763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19764
19765 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19766
19767 fi
19768
19769 fi
19770
19771
19772 ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile docs/Makefile docs/version.xml win32/Makefile win32/config.h.win32"
19773
19774
19775 cat >confcache <<\_ACEOF
19776 # This file is a shell script that caches the results of configure
19777 # tests run on this system so they can be shared between configure
19778 # scripts and configure runs, see configure's option --config-cache.
19779 # It is not useful on other systems.  If it contains results you don't
19780 # want to keep, you may remove or edit it.
19781 #
19782 # config.status only pays attention to the cache file if you give it
19783 # the --recheck option to rerun configure.
19784 #
19785 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19786 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19787 # following values.
19788
19789 _ACEOF
19790
19791 # The following way of writing the cache mishandles newlines in values,
19792 # but we know of no workaround that is simple, portable, and efficient.
19793 # So, we kill variables containing newlines.
19794 # Ultrix sh set writes to stderr and can't be redirected directly,
19795 # and sets the high bit in the cache file unless we assign to the vars.
19796 (
19797   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19798     eval ac_val=\$$ac_var
19799     case $ac_val in #(
19800     *${as_nl}*)
19801       case $ac_var in #(
19802       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19804       esac
19805       case $ac_var in #(
19806       _ | IFS | as_nl) ;; #(
19807       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19808       *) { eval $ac_var=; unset $ac_var;} ;;
19809       esac ;;
19810     esac
19811   done
19812
19813   (set) 2>&1 |
19814     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19815     *${as_nl}ac_space=\ *)
19816       # `set' does not quote correctly, so add quotes: double-quote
19817       # substitution turns \\\\ into \\, and sed turns \\ into \.
19818       sed -n \
19819         "s/'/'\\\\''/g;
19820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19821       ;; #(
19822     *)
19823       # `set' quotes correctly as required by POSIX, so do not add quotes.
19824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19825       ;;
19826     esac |
19827     sort
19828 ) |
19829   sed '
19830      /^ac_cv_env_/b end
19831      t clear
19832      :clear
19833      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19834      t end
19835      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19836      :end' >>confcache
19837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19838   if test -w "$cache_file"; then
19839     if test "x$cache_file" != "x/dev/null"; then
19840       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19841 $as_echo "$as_me: updating cache $cache_file" >&6;}
19842       if test ! -f "$cache_file" || test -h "$cache_file"; then
19843         cat confcache >"$cache_file"
19844       else
19845         case $cache_file in #(
19846         */* | ?:*)
19847           mv -f confcache "$cache_file"$$ &&
19848           mv -f "$cache_file"$$ "$cache_file" ;; #(
19849         *)
19850           mv -f confcache "$cache_file" ;;
19851         esac
19852       fi
19853     fi
19854   else
19855     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19856 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19857   fi
19858 fi
19859 rm -f confcache
19860
19861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19862 # Let make expand exec_prefix.
19863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19864
19865 DEFS=-DHAVE_CONFIG_H
19866
19867 ac_libobjs=
19868 ac_ltlibobjs=
19869 U=
19870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19871   # 1. Remove the extension, and $U if already installed.
19872   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19873   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19874   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19875   #    will be set to the directory where LIBOBJS objects are built.
19876   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19877   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19878 done
19879 LIBOBJS=$ac_libobjs
19880
19881 LTLIBOBJS=$ac_ltlibobjs
19882
19883
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19885 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19886    if test -n "$am_sleep_pid"; then
19887      # Hide warnings about reused PIDs.
19888      wait $am_sleep_pid 2>/dev/null
19889    fi
19890    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19891 $as_echo "done" >&6; }
19892  if test -n "$EXEEXT"; then
19893   am__EXEEXT_TRUE=
19894   am__EXEEXT_FALSE='#'
19895 else
19896   am__EXEEXT_TRUE='#'
19897   am__EXEEXT_FALSE=
19898 fi
19899
19900 if test -z "${AUTOMAKE_OLDER_THAN_1_13_TRUE}" && test -z "${AUTOMAKE_OLDER_THAN_1_13_FALSE}"; then
19901   as_fn_error $? "conditional \"AUTOMAKE_OLDER_THAN_1_13\" was never defined.
19902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19903 fi
19904 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19905   as_fn_error $? "conditional \"AMDEP\" was never defined.
19906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19907 fi
19908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19909   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19911 fi
19912 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19913   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19915 fi
19916 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19917   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19919 fi
19920 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
19921   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
19922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19923 fi
19924 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19925   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19927 fi
19928 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
19929   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
19930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19931 fi
19932 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
19933   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
19934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19935 fi
19936 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
19937   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
19938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19939 fi
19940 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
19941   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
19942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19943 fi
19944 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
19945   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
19946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19947 fi
19948 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19949   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19951 fi
19952 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19953   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19955 fi
19956 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
19957   as_fn_error $? "conditional \"HAVE_OT\" was never defined.
19958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19959 fi
19960 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
19961   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
19962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19963 fi
19964 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
19965   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
19966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19967 fi
19968 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
19969   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
19970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19971 fi
19972 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19973   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19975 fi
19976 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19977   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19979 fi
19980 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
19981   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
19982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19983 fi
19984 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
19985   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
19986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19987 fi
19988 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
19989   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
19990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19991 fi
19992 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
19993   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
19994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19995 fi
19996 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
19997   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
19998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19999 fi
20000 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
20001   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
20002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20003 fi
20004 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
20005   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
20006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20007 fi
20008 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
20009   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
20010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20011 fi
20012 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
20013   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
20014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20015 fi
20016 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
20017   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
20018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20019 fi
20020 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
20021   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
20022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20023 fi
20024
20025 : "${CONFIG_STATUS=./config.status}"
20026 ac_write_fail=0
20027 ac_clean_files_save=$ac_clean_files
20028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20030 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20031 as_write_fail=0
20032 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20033 #! $SHELL
20034 # Generated by $as_me.
20035 # Run this file to recreate the current configuration.
20036 # Compiler output produced by configure, useful for debugging
20037 # configure, is in config.log if it exists.
20038
20039 debug=false
20040 ac_cs_recheck=false
20041 ac_cs_silent=false
20042
20043 SHELL=\${CONFIG_SHELL-$SHELL}
20044 export SHELL
20045 _ASEOF
20046 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20047 ## -------------------- ##
20048 ## M4sh Initialization. ##
20049 ## -------------------- ##
20050
20051 # Be more Bourne compatible
20052 DUALCASE=1; export DUALCASE # for MKS sh
20053 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20054   emulate sh
20055   NULLCMD=:
20056   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20057   # is contrary to our usage.  Disable this feature.
20058   alias -g '${1+"$@"}'='"$@"'
20059   setopt NO_GLOB_SUBST
20060 else
20061   case `(set -o) 2>/dev/null` in #(
20062   *posix*) :
20063     set -o posix ;; #(
20064   *) :
20065      ;;
20066 esac
20067 fi
20068
20069
20070 as_nl='
20071 '
20072 export as_nl
20073 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20074 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20077 # Prefer a ksh shell builtin over an external printf program on Solaris,
20078 # but without wasting forks for bash or zsh.
20079 if test -z "$BASH_VERSION$ZSH_VERSION" \
20080     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20081   as_echo='print -r --'
20082   as_echo_n='print -rn --'
20083 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20084   as_echo='printf %s\n'
20085   as_echo_n='printf %s'
20086 else
20087   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20088     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20089     as_echo_n='/usr/ucb/echo -n'
20090   else
20091     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20092     as_echo_n_body='eval
20093       arg=$1;
20094       case $arg in #(
20095       *"$as_nl"*)
20096         expr "X$arg" : "X\\(.*\\)$as_nl";
20097         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20098       esac;
20099       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20100     '
20101     export as_echo_n_body
20102     as_echo_n='sh -c $as_echo_n_body as_echo'
20103   fi
20104   export as_echo_body
20105   as_echo='sh -c $as_echo_body as_echo'
20106 fi
20107
20108 # The user is always right.
20109 if test "${PATH_SEPARATOR+set}" != set; then
20110   PATH_SEPARATOR=:
20111   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20112     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20113       PATH_SEPARATOR=';'
20114   }
20115 fi
20116
20117
20118 # IFS
20119 # We need space, tab and new line, in precisely that order.  Quoting is
20120 # there to prevent editors from complaining about space-tab.
20121 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20122 # splitting by setting IFS to empty value.)
20123 IFS=" ""        $as_nl"
20124
20125 # Find who we are.  Look in the path if we contain no directory separator.
20126 as_myself=
20127 case $0 in #((
20128   *[\\/]* ) as_myself=$0 ;;
20129   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20130 for as_dir in $PATH
20131 do
20132   IFS=$as_save_IFS
20133   test -z "$as_dir" && as_dir=.
20134     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20135   done
20136 IFS=$as_save_IFS
20137
20138      ;;
20139 esac
20140 # We did not find ourselves, most probably we were run as `sh COMMAND'
20141 # in which case we are not to be found in the path.
20142 if test "x$as_myself" = x; then
20143   as_myself=$0
20144 fi
20145 if test ! -f "$as_myself"; then
20146   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20147   exit 1
20148 fi
20149
20150 # Unset variables that we do not need and which cause bugs (e.g. in
20151 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20152 # suppresses any "Segmentation fault" message there.  '((' could
20153 # trigger a bug in pdksh 5.2.14.
20154 for as_var in BASH_ENV ENV MAIL MAILPATH
20155 do eval test x\${$as_var+set} = xset \
20156   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20157 done
20158 PS1='$ '
20159 PS2='> '
20160 PS4='+ '
20161
20162 # NLS nuisances.
20163 LC_ALL=C
20164 export LC_ALL
20165 LANGUAGE=C
20166 export LANGUAGE
20167
20168 # CDPATH.
20169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20170
20171
20172 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20173 # ----------------------------------------
20174 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20175 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20176 # script with STATUS, using 1 if that was 0.
20177 as_fn_error ()
20178 {
20179   as_status=$1; test $as_status -eq 0 && as_status=1
20180   if test "$4"; then
20181     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20182     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20183   fi
20184   $as_echo "$as_me: error: $2" >&2
20185   as_fn_exit $as_status
20186 } # as_fn_error
20187
20188
20189 # as_fn_set_status STATUS
20190 # -----------------------
20191 # Set $? to STATUS, without forking.
20192 as_fn_set_status ()
20193 {
20194   return $1
20195 } # as_fn_set_status
20196
20197 # as_fn_exit STATUS
20198 # -----------------
20199 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20200 as_fn_exit ()
20201 {
20202   set +e
20203   as_fn_set_status $1
20204   exit $1
20205 } # as_fn_exit
20206
20207 # as_fn_unset VAR
20208 # ---------------
20209 # Portably unset VAR.
20210 as_fn_unset ()
20211 {
20212   { eval $1=; unset $1;}
20213 }
20214 as_unset=as_fn_unset
20215 # as_fn_append VAR VALUE
20216 # ----------------------
20217 # Append the text in VALUE to the end of the definition contained in VAR. Take
20218 # advantage of any shell optimizations that allow amortized linear growth over
20219 # repeated appends, instead of the typical quadratic growth present in naive
20220 # implementations.
20221 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20222   eval 'as_fn_append ()
20223   {
20224     eval $1+=\$2
20225   }'
20226 else
20227   as_fn_append ()
20228   {
20229     eval $1=\$$1\$2
20230   }
20231 fi # as_fn_append
20232
20233 # as_fn_arith ARG...
20234 # ------------------
20235 # Perform arithmetic evaluation on the ARGs, and store the result in the
20236 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20237 # must be portable across $(()) and expr.
20238 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20239   eval 'as_fn_arith ()
20240   {
20241     as_val=$(( $* ))
20242   }'
20243 else
20244   as_fn_arith ()
20245   {
20246     as_val=`expr "$@" || test $? -eq 1`
20247   }
20248 fi # as_fn_arith
20249
20250
20251 if expr a : '\(a\)' >/dev/null 2>&1 &&
20252    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20253   as_expr=expr
20254 else
20255   as_expr=false
20256 fi
20257
20258 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20259   as_basename=basename
20260 else
20261   as_basename=false
20262 fi
20263
20264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20265   as_dirname=dirname
20266 else
20267   as_dirname=false
20268 fi
20269
20270 as_me=`$as_basename -- "$0" ||
20271 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20272          X"$0" : 'X\(//\)$' \| \
20273          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20274 $as_echo X/"$0" |
20275     sed '/^.*\/\([^/][^/]*\)\/*$/{
20276             s//\1/
20277             q
20278           }
20279           /^X\/\(\/\/\)$/{
20280             s//\1/
20281             q
20282           }
20283           /^X\/\(\/\).*/{
20284             s//\1/
20285             q
20286           }
20287           s/.*/./; q'`
20288
20289 # Avoid depending upon Character Ranges.
20290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20293 as_cr_digits='0123456789'
20294 as_cr_alnum=$as_cr_Letters$as_cr_digits
20295
20296 ECHO_C= ECHO_N= ECHO_T=
20297 case `echo -n x` in #(((((
20298 -n*)
20299   case `echo 'xy\c'` in
20300   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20301   xy)  ECHO_C='\c';;
20302   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20303        ECHO_T=' ';;
20304   esac;;
20305 *)
20306   ECHO_N='-n';;
20307 esac
20308
20309 rm -f conf$$ conf$$.exe conf$$.file
20310 if test -d conf$$.dir; then
20311   rm -f conf$$.dir/conf$$.file
20312 else
20313   rm -f conf$$.dir
20314   mkdir conf$$.dir 2>/dev/null
20315 fi
20316 if (echo >conf$$.file) 2>/dev/null; then
20317   if ln -s conf$$.file conf$$ 2>/dev/null; then
20318     as_ln_s='ln -s'
20319     # ... but there are two gotchas:
20320     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20321     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20322     # In both cases, we have to default to `cp -pR'.
20323     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20324       as_ln_s='cp -pR'
20325   elif ln conf$$.file conf$$ 2>/dev/null; then
20326     as_ln_s=ln
20327   else
20328     as_ln_s='cp -pR'
20329   fi
20330 else
20331   as_ln_s='cp -pR'
20332 fi
20333 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20334 rmdir conf$$.dir 2>/dev/null
20335
20336
20337 # as_fn_mkdir_p
20338 # -------------
20339 # Create "$as_dir" as a directory, including parents if necessary.
20340 as_fn_mkdir_p ()
20341 {
20342
20343   case $as_dir in #(
20344   -*) as_dir=./$as_dir;;
20345   esac
20346   test -d "$as_dir" || eval $as_mkdir_p || {
20347     as_dirs=
20348     while :; do
20349       case $as_dir in #(
20350       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20351       *) as_qdir=$as_dir;;
20352       esac
20353       as_dirs="'$as_qdir' $as_dirs"
20354       as_dir=`$as_dirname -- "$as_dir" ||
20355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20356          X"$as_dir" : 'X\(//\)[^/]' \| \
20357          X"$as_dir" : 'X\(//\)$' \| \
20358          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20359 $as_echo X"$as_dir" |
20360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20361             s//\1/
20362             q
20363           }
20364           /^X\(\/\/\)[^/].*/{
20365             s//\1/
20366             q
20367           }
20368           /^X\(\/\/\)$/{
20369             s//\1/
20370             q
20371           }
20372           /^X\(\/\).*/{
20373             s//\1/
20374             q
20375           }
20376           s/.*/./; q'`
20377       test -d "$as_dir" && break
20378     done
20379     test -z "$as_dirs" || eval "mkdir $as_dirs"
20380   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20381
20382
20383 } # as_fn_mkdir_p
20384 if mkdir -p . 2>/dev/null; then
20385   as_mkdir_p='mkdir -p "$as_dir"'
20386 else
20387   test -d ./-p && rmdir ./-p
20388   as_mkdir_p=false
20389 fi
20390
20391
20392 # as_fn_executable_p FILE
20393 # -----------------------
20394 # Test if FILE is an executable regular file.
20395 as_fn_executable_p ()
20396 {
20397   test -f "$1" && test -x "$1"
20398 } # as_fn_executable_p
20399 as_test_x='test -x'
20400 as_executable_p=as_fn_executable_p
20401
20402 # Sed expression to map a string onto a valid CPP name.
20403 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20404
20405 # Sed expression to map a string onto a valid variable name.
20406 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20407
20408
20409 exec 6>&1
20410 ## ----------------------------------- ##
20411 ## Main body of $CONFIG_STATUS script. ##
20412 ## ----------------------------------- ##
20413 _ASEOF
20414 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20415
20416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20417 # Save the log message, to keep $0 and so on meaningful, and to
20418 # report actual input values of CONFIG_FILES etc. instead of their
20419 # values after options handling.
20420 ac_log="
20421 This file was extended by HarfBuzz $as_me 1.4.6, which was
20422 generated by GNU Autoconf 2.69.  Invocation command line was
20423
20424   CONFIG_FILES    = $CONFIG_FILES
20425   CONFIG_HEADERS  = $CONFIG_HEADERS
20426   CONFIG_LINKS    = $CONFIG_LINKS
20427   CONFIG_COMMANDS = $CONFIG_COMMANDS
20428   $ $0 $@
20429
20430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20431 "
20432
20433 _ACEOF
20434
20435 case $ac_config_files in *"
20436 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20437 esac
20438
20439 case $ac_config_headers in *"
20440 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20441 esac
20442
20443
20444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20445 # Files that config.status was made for.
20446 config_files="$ac_config_files"
20447 config_headers="$ac_config_headers"
20448 config_commands="$ac_config_commands"
20449
20450 _ACEOF
20451
20452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20453 ac_cs_usage="\
20454 \`$as_me' instantiates files and other configuration actions
20455 from templates according to the current configuration.  Unless the files
20456 and actions are specified as TAGs, all are instantiated by default.
20457
20458 Usage: $0 [OPTION]... [TAG]...
20459
20460   -h, --help       print this help, then exit
20461   -V, --version    print version number and configuration settings, then exit
20462       --config     print configuration, then exit
20463   -q, --quiet, --silent
20464                    do not print progress messages
20465   -d, --debug      don't remove temporary files
20466       --recheck    update $as_me by reconfiguring in the same conditions
20467       --file=FILE[:TEMPLATE]
20468                    instantiate the configuration file FILE
20469       --header=FILE[:TEMPLATE]
20470                    instantiate the configuration header FILE
20471
20472 Configuration files:
20473 $config_files
20474
20475 Configuration headers:
20476 $config_headers
20477
20478 Configuration commands:
20479 $config_commands
20480
20481 Report bugs to <https://github.com/behdad/harfbuzz/issues/new>.
20482 HarfBuzz home page: <http://harfbuzz.org/>."
20483
20484 _ACEOF
20485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20487 ac_cs_version="\\
20488 HarfBuzz config.status 1.4.6
20489 configured by $0, generated by GNU Autoconf 2.69,
20490   with options \\"\$ac_cs_config\\"
20491
20492 Copyright (C) 2012 Free Software Foundation, Inc.
20493 This config.status script is free software; the Free Software Foundation
20494 gives unlimited permission to copy, distribute and modify it."
20495
20496 ac_pwd='$ac_pwd'
20497 srcdir='$srcdir'
20498 INSTALL='$INSTALL'
20499 MKDIR_P='$MKDIR_P'
20500 AWK='$AWK'
20501 test -n "\$AWK" || AWK=awk
20502 _ACEOF
20503
20504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20505 # The default lists apply if the user does not specify any file.
20506 ac_need_defaults=:
20507 while test $# != 0
20508 do
20509   case $1 in
20510   --*=?*)
20511     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20512     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20513     ac_shift=:
20514     ;;
20515   --*=)
20516     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20517     ac_optarg=
20518     ac_shift=:
20519     ;;
20520   *)
20521     ac_option=$1
20522     ac_optarg=$2
20523     ac_shift=shift
20524     ;;
20525   esac
20526
20527   case $ac_option in
20528   # Handling of the options.
20529   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20530     ac_cs_recheck=: ;;
20531   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20532     $as_echo "$ac_cs_version"; exit ;;
20533   --config | --confi | --conf | --con | --co | --c )
20534     $as_echo "$ac_cs_config"; exit ;;
20535   --debug | --debu | --deb | --de | --d | -d )
20536     debug=: ;;
20537   --file | --fil | --fi | --f )
20538     $ac_shift
20539     case $ac_optarg in
20540     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20541     '') as_fn_error $? "missing file argument" ;;
20542     esac
20543     as_fn_append CONFIG_FILES " '$ac_optarg'"
20544     ac_need_defaults=false;;
20545   --header | --heade | --head | --hea )
20546     $ac_shift
20547     case $ac_optarg in
20548     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20549     esac
20550     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20551     ac_need_defaults=false;;
20552   --he | --h)
20553     # Conflict between --help and --header
20554     as_fn_error $? "ambiguous option: \`$1'
20555 Try \`$0 --help' for more information.";;
20556   --help | --hel | -h )
20557     $as_echo "$ac_cs_usage"; exit ;;
20558   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20559   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20560     ac_cs_silent=: ;;
20561
20562   # This is an error.
20563   -*) as_fn_error $? "unrecognized option: \`$1'
20564 Try \`$0 --help' for more information." ;;
20565
20566   *) as_fn_append ac_config_targets " $1"
20567      ac_need_defaults=false ;;
20568
20569   esac
20570   shift
20571 done
20572
20573 ac_configure_extra_args=
20574
20575 if $ac_cs_silent; then
20576   exec 6>/dev/null
20577   ac_configure_extra_args="$ac_configure_extra_args --silent"
20578 fi
20579
20580 _ACEOF
20581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20582 if \$ac_cs_recheck; then
20583   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20584   shift
20585   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20586   CONFIG_SHELL='$SHELL'
20587   export CONFIG_SHELL
20588   exec "\$@"
20589 fi
20590
20591 _ACEOF
20592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20593 exec 5>>config.log
20594 {
20595   echo
20596   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20597 ## Running $as_me. ##
20598 _ASBOX
20599   $as_echo "$ac_log"
20600 } >&5
20601
20602 _ACEOF
20603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20604 #
20605 # INIT-COMMANDS
20606 #
20607 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20608
20609
20610 # The HP-UX ksh and POSIX shell print the target directory to stdout
20611 # if CDPATH is set.
20612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20613
20614 sed_quote_subst='$sed_quote_subst'
20615 double_quote_subst='$double_quote_subst'
20616 delay_variable_subst='$delay_variable_subst'
20617 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20618 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20619 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20620 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20621 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20622 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20623 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20624 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20625 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20626 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20627 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20628 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20629 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20630 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20631 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20632 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20633 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20634 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20635 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20636 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20637 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20638 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20639 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20640 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20641 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20642 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20643 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20644 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20645 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20646 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20647 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20648 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20649 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20650 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20651 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20652 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20653 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20654 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20655 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20656 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20657 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20658 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20659 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20660 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20661 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20662 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20663 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20664 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20665 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20666 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20667 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20668 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20669 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20670 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20671 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20672 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20673 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"`'
20674 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20675 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20679 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20680 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20684 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20685 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20686 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20687 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20688 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20689 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20690 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20691 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20692 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20693 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20694 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20695 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20696 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20697 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20698 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20699 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20700 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20701 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20702 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20703 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20704 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20705 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20706 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20707 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20716 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20717 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20718 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20719 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20720 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20721 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20747 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20748 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20749 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20750 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20751 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20752 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20753 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20754 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20755 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20756 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20757 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20758 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20759 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20760 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20761 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20762 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20763 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20764 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20765 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20766 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20767 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20768 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20769 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20770 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20771 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20772 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20773 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20774 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20775 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20776 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20777 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20778 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20779 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20780 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20781 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20782 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20783 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20784 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20785 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20786 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20787 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20788 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20789 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20790 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20791 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20792 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20793 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20794 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20795 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20796 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20797 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20798 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20799 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20800 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20801
20802 LTCC='$LTCC'
20803 LTCFLAGS='$LTCFLAGS'
20804 compiler='$compiler_DEFAULT'
20805
20806 # A function that is used when there is no print builtin or printf.
20807 func_fallback_echo ()
20808 {
20809   eval 'cat <<_LTECHO_EOF
20810 \$1
20811 _LTECHO_EOF'
20812 }
20813
20814 # Quote evaled strings.
20815 for var in SHELL \
20816 ECHO \
20817 PATH_SEPARATOR \
20818 SED \
20819 GREP \
20820 EGREP \
20821 FGREP \
20822 LD \
20823 NM \
20824 LN_S \
20825 lt_SP2NL \
20826 lt_NL2SP \
20827 reload_flag \
20828 OBJDUMP \
20829 deplibs_check_method \
20830 file_magic_cmd \
20831 file_magic_glob \
20832 want_nocaseglob \
20833 DLLTOOL \
20834 sharedlib_from_linklib_cmd \
20835 AR \
20836 AR_FLAGS \
20837 archiver_list_spec \
20838 STRIP \
20839 RANLIB \
20840 CC \
20841 CFLAGS \
20842 compiler \
20843 lt_cv_sys_global_symbol_pipe \
20844 lt_cv_sys_global_symbol_to_cdecl \
20845 lt_cv_sys_global_symbol_to_c_name_address \
20846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20847 nm_file_list_spec \
20848 lt_prog_compiler_no_builtin_flag \
20849 lt_prog_compiler_pic \
20850 lt_prog_compiler_wl \
20851 lt_prog_compiler_static \
20852 lt_cv_prog_compiler_c_o \
20853 need_locks \
20854 MANIFEST_TOOL \
20855 DSYMUTIL \
20856 NMEDIT \
20857 LIPO \
20858 OTOOL \
20859 OTOOL64 \
20860 shrext_cmds \
20861 export_dynamic_flag_spec \
20862 whole_archive_flag_spec \
20863 compiler_needs_object \
20864 with_gnu_ld \
20865 allow_undefined_flag \
20866 no_undefined_flag \
20867 hardcode_libdir_flag_spec \
20868 hardcode_libdir_separator \
20869 exclude_expsyms \
20870 include_expsyms \
20871 file_list_spec \
20872 variables_saved_for_relink \
20873 libname_spec \
20874 library_names_spec \
20875 soname_spec \
20876 install_override_mode \
20877 finish_eval \
20878 old_striplib \
20879 striplib \
20880 compiler_lib_search_dirs \
20881 predep_objects \
20882 postdep_objects \
20883 predeps \
20884 postdeps \
20885 compiler_lib_search_path \
20886 LD_CXX \
20887 reload_flag_CXX \
20888 compiler_CXX \
20889 lt_prog_compiler_no_builtin_flag_CXX \
20890 lt_prog_compiler_pic_CXX \
20891 lt_prog_compiler_wl_CXX \
20892 lt_prog_compiler_static_CXX \
20893 lt_cv_prog_compiler_c_o_CXX \
20894 export_dynamic_flag_spec_CXX \
20895 whole_archive_flag_spec_CXX \
20896 compiler_needs_object_CXX \
20897 with_gnu_ld_CXX \
20898 allow_undefined_flag_CXX \
20899 no_undefined_flag_CXX \
20900 hardcode_libdir_flag_spec_CXX \
20901 hardcode_libdir_separator_CXX \
20902 exclude_expsyms_CXX \
20903 include_expsyms_CXX \
20904 file_list_spec_CXX \
20905 compiler_lib_search_dirs_CXX \
20906 predep_objects_CXX \
20907 postdep_objects_CXX \
20908 predeps_CXX \
20909 postdeps_CXX \
20910 compiler_lib_search_path_CXX; do
20911     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20912     *[\\\\\\\`\\"\\\$]*)
20913       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20914       ;;
20915     *)
20916       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20917       ;;
20918     esac
20919 done
20920
20921 # Double-quote double-evaled strings.
20922 for var in reload_cmds \
20923 old_postinstall_cmds \
20924 old_postuninstall_cmds \
20925 old_archive_cmds \
20926 extract_expsyms_cmds \
20927 old_archive_from_new_cmds \
20928 old_archive_from_expsyms_cmds \
20929 archive_cmds \
20930 archive_expsym_cmds \
20931 module_cmds \
20932 module_expsym_cmds \
20933 export_symbols_cmds \
20934 prelink_cmds \
20935 postlink_cmds \
20936 postinstall_cmds \
20937 postuninstall_cmds \
20938 finish_cmds \
20939 sys_lib_search_path_spec \
20940 sys_lib_dlsearch_path_spec \
20941 reload_cmds_CXX \
20942 old_archive_cmds_CXX \
20943 old_archive_from_new_cmds_CXX \
20944 old_archive_from_expsyms_cmds_CXX \
20945 archive_cmds_CXX \
20946 archive_expsym_cmds_CXX \
20947 module_cmds_CXX \
20948 module_expsym_cmds_CXX \
20949 export_symbols_cmds_CXX \
20950 prelink_cmds_CXX \
20951 postlink_cmds_CXX; do
20952     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20953     *[\\\\\\\`\\"\\\$]*)
20954       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20955       ;;
20956     *)
20957       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20958       ;;
20959     esac
20960 done
20961
20962 ac_aux_dir='$ac_aux_dir'
20963 xsi_shell='$xsi_shell'
20964 lt_shell_append='$lt_shell_append'
20965
20966 # See if we are running on zsh, and set the options which allow our
20967 # commands through without removal of \ escapes INIT.
20968 if test -n "\${ZSH_VERSION+set}" ; then
20969    setopt NO_GLOB_SUBST
20970 fi
20971
20972
20973     PACKAGE='$PACKAGE'
20974     VERSION='$VERSION'
20975     TIMESTAMP='$TIMESTAMP'
20976     RM='$RM'
20977     ofile='$ofile'
20978
20979
20980
20981
20982
20983
20984 _ACEOF
20985
20986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20987
20988 # Handling of arguments.
20989 for ac_config_target in $ac_config_targets
20990 do
20991   case $ac_config_target in
20992     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20993     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20994     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20995     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20996     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20997     "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
20998     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
20999     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
21000     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21001     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
21002     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
21003     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
21004     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21005     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
21006     "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
21007     "win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES win32/config.h.win32" ;;
21008
21009   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21010   esac
21011 done
21012
21013
21014 # If the user did not use the arguments to specify the items to instantiate,
21015 # then the envvar interface is used.  Set only those that are not.
21016 # We use the long form for the default assignment because of an extremely
21017 # bizarre bug on SunOS 4.1.3.
21018 if $ac_need_defaults; then
21019   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21020   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21021   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21022 fi
21023
21024 # Have a temporary directory for convenience.  Make it in the build tree
21025 # simply because there is no reason against having it here, and in addition,
21026 # creating and moving files from /tmp can sometimes cause problems.
21027 # Hook for its removal unless debugging.
21028 # Note that there is a small window in which the directory will not be cleaned:
21029 # after its creation but before its name has been assigned to `$tmp'.
21030 $debug ||
21031 {
21032   tmp= ac_tmp=
21033   trap 'exit_status=$?
21034   : "${ac_tmp:=$tmp}"
21035   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21036 ' 0
21037   trap 'as_fn_exit 1' 1 2 13 15
21038 }
21039 # Create a (secure) tmp directory for tmp files.
21040
21041 {
21042   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21043   test -d "$tmp"
21044 }  ||
21045 {
21046   tmp=./conf$$-$RANDOM
21047   (umask 077 && mkdir "$tmp")
21048 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21049 ac_tmp=$tmp
21050
21051 # Set up the scripts for CONFIG_FILES section.
21052 # No need to generate them if there are no CONFIG_FILES.
21053 # This happens for instance with `./config.status config.h'.
21054 if test -n "$CONFIG_FILES"; then
21055
21056
21057 ac_cr=`echo X | tr X '\015'`
21058 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21059 # But we know of no other shell where ac_cr would be empty at this
21060 # point, so we can use a bashism as a fallback.
21061 if test "x$ac_cr" = x; then
21062   eval ac_cr=\$\'\\r\'
21063 fi
21064 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21065 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21066   ac_cs_awk_cr='\\r'
21067 else
21068   ac_cs_awk_cr=$ac_cr
21069 fi
21070
21071 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21072 _ACEOF
21073
21074
21075 {
21076   echo "cat >conf$$subs.awk <<_ACEOF" &&
21077   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21078   echo "_ACEOF"
21079 } >conf$$subs.sh ||
21080   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21081 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21082 ac_delim='%!_!# '
21083 for ac_last_try in false false false false false :; do
21084   . ./conf$$subs.sh ||
21085     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21086
21087   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21088   if test $ac_delim_n = $ac_delim_num; then
21089     break
21090   elif $ac_last_try; then
21091     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21092   else
21093     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21094   fi
21095 done
21096 rm -f conf$$subs.sh
21097
21098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21099 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21100 _ACEOF
21101 sed -n '
21102 h
21103 s/^/S["/; s/!.*/"]=/
21104 p
21105 g
21106 s/^[^!]*!//
21107 :repl
21108 t repl
21109 s/'"$ac_delim"'$//
21110 t delim
21111 :nl
21112 h
21113 s/\(.\{148\}\)..*/\1/
21114 t more1
21115 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21116 p
21117 n
21118 b repl
21119 :more1
21120 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21121 p
21122 g
21123 s/.\{148\}//
21124 t nl
21125 :delim
21126 h
21127 s/\(.\{148\}\)..*/\1/
21128 t more2
21129 s/["\\]/\\&/g; s/^/"/; s/$/"/
21130 p
21131 b
21132 :more2
21133 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21134 p
21135 g
21136 s/.\{148\}//
21137 t delim
21138 ' <conf$$subs.awk | sed '
21139 /^[^""]/{
21140   N
21141   s/\n//
21142 }
21143 ' >>$CONFIG_STATUS || ac_write_fail=1
21144 rm -f conf$$subs.awk
21145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21146 _ACAWK
21147 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21148   for (key in S) S_is_set[key] = 1
21149   FS = "\a"
21150
21151 }
21152 {
21153   line = $ 0
21154   nfields = split(line, field, "@")
21155   substed = 0
21156   len = length(field[1])
21157   for (i = 2; i < nfields; i++) {
21158     key = field[i]
21159     keylen = length(key)
21160     if (S_is_set[key]) {
21161       value = S[key]
21162       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21163       len += length(value) + length(field[++i])
21164       substed = 1
21165     } else
21166       len += 1 + keylen
21167   }
21168
21169   print line
21170 }
21171
21172 _ACAWK
21173 _ACEOF
21174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21175 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21176   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21177 else
21178   cat
21179 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21180   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21181 _ACEOF
21182
21183 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21184 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21185 # trailing colons and then remove the whole line if VPATH becomes empty
21186 # (actually we leave an empty line to preserve line numbers).
21187 if test "x$srcdir" = x.; then
21188   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21189 h
21190 s///
21191 s/^/:/
21192 s/[      ]*$/:/
21193 s/:\$(srcdir):/:/g
21194 s/:\${srcdir}:/:/g
21195 s/:@srcdir@:/:/g
21196 s/^:*//
21197 s/:*$//
21198 x
21199 s/\(=[   ]*\).*/\1/
21200 G
21201 s/\n//
21202 s/^[^=]*=[       ]*$//
21203 }'
21204 fi
21205
21206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21207 fi # test -n "$CONFIG_FILES"
21208
21209 # Set up the scripts for CONFIG_HEADERS section.
21210 # No need to generate them if there are no CONFIG_HEADERS.
21211 # This happens for instance with `./config.status Makefile'.
21212 if test -n "$CONFIG_HEADERS"; then
21213 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21214 BEGIN {
21215 _ACEOF
21216
21217 # Transform confdefs.h into an awk script `defines.awk', embedded as
21218 # here-document in config.status, that substitutes the proper values into
21219 # config.h.in to produce config.h.
21220
21221 # Create a delimiter string that does not exist in confdefs.h, to ease
21222 # handling of long lines.
21223 ac_delim='%!_!# '
21224 for ac_last_try in false false :; do
21225   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21226   if test -z "$ac_tt"; then
21227     break
21228   elif $ac_last_try; then
21229     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21230   else
21231     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21232   fi
21233 done
21234
21235 # For the awk script, D is an array of macro values keyed by name,
21236 # likewise P contains macro parameters if any.  Preserve backslash
21237 # newline sequences.
21238
21239 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21240 sed -n '
21241 s/.\{148\}/&'"$ac_delim"'/g
21242 t rset
21243 :rset
21244 s/^[     ]*#[    ]*define[       ][      ]*/ /
21245 t def
21246 d
21247 :def
21248 s/\\$//
21249 t bsnl
21250 s/["\\]/\\&/g
21251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21252 D["\1"]=" \3"/p
21253 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21254 d
21255 :bsnl
21256 s/["\\]/\\&/g
21257 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21258 D["\1"]=" \3\\\\\\n"\\/p
21259 t cont
21260 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21261 t cont
21262 d
21263 :cont
21264 n
21265 s/.\{148\}/&'"$ac_delim"'/g
21266 t clear
21267 :clear
21268 s/\\$//
21269 t bsnlc
21270 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21271 d
21272 :bsnlc
21273 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21274 b cont
21275 ' <confdefs.h | sed '
21276 s/'"$ac_delim"'/"\\\
21277 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21278
21279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21280   for (key in D) D_is_set[key] = 1
21281   FS = "\a"
21282 }
21283 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21284   line = \$ 0
21285   split(line, arg, " ")
21286   if (arg[1] == "#") {
21287     defundef = arg[2]
21288     mac1 = arg[3]
21289   } else {
21290     defundef = substr(arg[1], 2)
21291     mac1 = arg[2]
21292   }
21293   split(mac1, mac2, "(") #)
21294   macro = mac2[1]
21295   prefix = substr(line, 1, index(line, defundef) - 1)
21296   if (D_is_set[macro]) {
21297     # Preserve the white space surrounding the "#".
21298     print prefix "define", macro P[macro] D[macro]
21299     next
21300   } else {
21301     # Replace #undef with comments.  This is necessary, for example,
21302     # in the case of _POSIX_SOURCE, which is predefined and required
21303     # on some systems where configure will not decide to define it.
21304     if (defundef == "undef") {
21305       print "/*", prefix defundef, macro, "*/"
21306       next
21307     }
21308   }
21309 }
21310 { print }
21311 _ACAWK
21312 _ACEOF
21313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21314   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21315 fi # test -n "$CONFIG_HEADERS"
21316
21317
21318 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21319 shift
21320 for ac_tag
21321 do
21322   case $ac_tag in
21323   :[FHLC]) ac_mode=$ac_tag; continue;;
21324   esac
21325   case $ac_mode$ac_tag in
21326   :[FHL]*:*);;
21327   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21328   :[FH]-) ac_tag=-:-;;
21329   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21330   esac
21331   ac_save_IFS=$IFS
21332   IFS=:
21333   set x $ac_tag
21334   IFS=$ac_save_IFS
21335   shift
21336   ac_file=$1
21337   shift
21338
21339   case $ac_mode in
21340   :L) ac_source=$1;;
21341   :[FH])
21342     ac_file_inputs=
21343     for ac_f
21344     do
21345       case $ac_f in
21346       -) ac_f="$ac_tmp/stdin";;
21347       *) # Look for the file first in the build tree, then in the source tree
21348          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21349          # because $ac_f cannot contain `:'.
21350          test -f "$ac_f" ||
21351            case $ac_f in
21352            [\\/$]*) false;;
21353            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21354            esac ||
21355            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21356       esac
21357       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21358       as_fn_append ac_file_inputs " '$ac_f'"
21359     done
21360
21361     # Let's still pretend it is `configure' which instantiates (i.e., don't
21362     # use $as_me), people would be surprised to read:
21363     #    /* config.h.  Generated by config.status.  */
21364     configure_input='Generated from '`
21365           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21366         `' by configure.'
21367     if test x"$ac_file" != x-; then
21368       configure_input="$ac_file.  $configure_input"
21369       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21370 $as_echo "$as_me: creating $ac_file" >&6;}
21371     fi
21372     # Neutralize special characters interpreted by sed in replacement strings.
21373     case $configure_input in #(
21374     *\&* | *\|* | *\\* )
21375        ac_sed_conf_input=`$as_echo "$configure_input" |
21376        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21377     *) ac_sed_conf_input=$configure_input;;
21378     esac
21379
21380     case $ac_tag in
21381     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21382       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21383     esac
21384     ;;
21385   esac
21386
21387   ac_dir=`$as_dirname -- "$ac_file" ||
21388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21389          X"$ac_file" : 'X\(//\)[^/]' \| \
21390          X"$ac_file" : 'X\(//\)$' \| \
21391          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21392 $as_echo X"$ac_file" |
21393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21394             s//\1/
21395             q
21396           }
21397           /^X\(\/\/\)[^/].*/{
21398             s//\1/
21399             q
21400           }
21401           /^X\(\/\/\)$/{
21402             s//\1/
21403             q
21404           }
21405           /^X\(\/\).*/{
21406             s//\1/
21407             q
21408           }
21409           s/.*/./; q'`
21410   as_dir="$ac_dir"; as_fn_mkdir_p
21411   ac_builddir=.
21412
21413 case "$ac_dir" in
21414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21415 *)
21416   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21417   # A ".." for each directory in $ac_dir_suffix.
21418   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21419   case $ac_top_builddir_sub in
21420   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21421   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21422   esac ;;
21423 esac
21424 ac_abs_top_builddir=$ac_pwd
21425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21426 # for backward compatibility:
21427 ac_top_builddir=$ac_top_build_prefix
21428
21429 case $srcdir in
21430   .)  # We are building in place.
21431     ac_srcdir=.
21432     ac_top_srcdir=$ac_top_builddir_sub
21433     ac_abs_top_srcdir=$ac_pwd ;;
21434   [\\/]* | ?:[\\/]* )  # Absolute name.
21435     ac_srcdir=$srcdir$ac_dir_suffix;
21436     ac_top_srcdir=$srcdir
21437     ac_abs_top_srcdir=$srcdir ;;
21438   *) # Relative name.
21439     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21440     ac_top_srcdir=$ac_top_build_prefix$srcdir
21441     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21442 esac
21443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21444
21445
21446   case $ac_mode in
21447   :F)
21448   #
21449   # CONFIG_FILE
21450   #
21451
21452   case $INSTALL in
21453   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21454   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21455   esac
21456   ac_MKDIR_P=$MKDIR_P
21457   case $MKDIR_P in
21458   [\\/$]* | ?:[\\/]* ) ;;
21459   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21460   esac
21461 _ACEOF
21462
21463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21464 # If the template does not know about datarootdir, expand it.
21465 # FIXME: This hack should be removed a few years after 2.60.
21466 ac_datarootdir_hack=; ac_datarootdir_seen=
21467 ac_sed_dataroot='
21468 /datarootdir/ {
21469   p
21470   q
21471 }
21472 /@datadir@/p
21473 /@docdir@/p
21474 /@infodir@/p
21475 /@localedir@/p
21476 /@mandir@/p'
21477 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21478 *datarootdir*) ac_datarootdir_seen=yes;;
21479 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21480   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21481 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21482 _ACEOF
21483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21484   ac_datarootdir_hack='
21485   s&@datadir@&$datadir&g
21486   s&@docdir@&$docdir&g
21487   s&@infodir@&$infodir&g
21488   s&@localedir@&$localedir&g
21489   s&@mandir@&$mandir&g
21490   s&\\\${datarootdir}&$datarootdir&g' ;;
21491 esac
21492 _ACEOF
21493
21494 # Neutralize VPATH when `$srcdir' = `.'.
21495 # Shell code in configure.ac might set extrasub.
21496 # FIXME: do we really want to maintain this feature?
21497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21498 ac_sed_extra="$ac_vpsub
21499 $extrasub
21500 _ACEOF
21501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21502 :t
21503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21504 s|@configure_input@|$ac_sed_conf_input|;t t
21505 s&@top_builddir@&$ac_top_builddir_sub&;t t
21506 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21507 s&@srcdir@&$ac_srcdir&;t t
21508 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21509 s&@top_srcdir@&$ac_top_srcdir&;t t
21510 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21511 s&@builddir@&$ac_builddir&;t t
21512 s&@abs_builddir@&$ac_abs_builddir&;t t
21513 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21514 s&@INSTALL@&$ac_INSTALL&;t t
21515 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21516 $ac_datarootdir_hack
21517 "
21518 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21519   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21520
21521 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21522   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21523   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21524       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21525   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21526 which seems to be undefined.  Please make sure it is defined" >&5
21527 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21528 which seems to be undefined.  Please make sure it is defined" >&2;}
21529
21530   rm -f "$ac_tmp/stdin"
21531   case $ac_file in
21532   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21533   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21534   esac \
21535   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21536  ;;
21537   :H)
21538   #
21539   # CONFIG_HEADER
21540   #
21541   if test x"$ac_file" != x-; then
21542     {
21543       $as_echo "/* $configure_input  */" \
21544       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21545     } >"$ac_tmp/config.h" \
21546       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21547     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21548       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21549 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21550     else
21551       rm -f "$ac_file"
21552       mv "$ac_tmp/config.h" "$ac_file" \
21553         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21554     fi
21555   else
21556     $as_echo "/* $configure_input  */" \
21557       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21558       || as_fn_error $? "could not create -" "$LINENO" 5
21559   fi
21560 # Compute "$ac_file"'s index in $config_headers.
21561 _am_arg="$ac_file"
21562 _am_stamp_count=1
21563 for _am_header in $config_headers :; do
21564   case $_am_header in
21565     $_am_arg | $_am_arg:* )
21566       break ;;
21567     * )
21568       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21569   esac
21570 done
21571 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21572 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21573          X"$_am_arg" : 'X\(//\)[^/]' \| \
21574          X"$_am_arg" : 'X\(//\)$' \| \
21575          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21576 $as_echo X"$_am_arg" |
21577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21578             s//\1/
21579             q
21580           }
21581           /^X\(\/\/\)[^/].*/{
21582             s//\1/
21583             q
21584           }
21585           /^X\(\/\/\)$/{
21586             s//\1/
21587             q
21588           }
21589           /^X\(\/\).*/{
21590             s//\1/
21591             q
21592           }
21593           s/.*/./; q'`/stamp-h$_am_stamp_count
21594  ;;
21595
21596   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21597 $as_echo "$as_me: executing $ac_file commands" >&6;}
21598  ;;
21599   esac
21600
21601
21602   case $ac_file$ac_mode in
21603     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21604   # Older Autoconf quotes --file arguments for eval, but not when files
21605   # are listed without --file.  Let's play safe and only enable the eval
21606   # if we detect the quoting.
21607   case $CONFIG_FILES in
21608   *\'*) eval set x "$CONFIG_FILES" ;;
21609   *)   set x $CONFIG_FILES ;;
21610   esac
21611   shift
21612   for mf
21613   do
21614     # Strip MF so we end up with the name of the file.
21615     mf=`echo "$mf" | sed -e 's/:.*$//'`
21616     # Check whether this is an Automake generated Makefile or not.
21617     # We used to match only the files named 'Makefile.in', but
21618     # some people rename them; so instead we look at the file content.
21619     # Grep'ing the first line is not enough: some people post-process
21620     # each Makefile.in and add a new line on top of each file to say so.
21621     # Grep'ing the whole file is not good either: AIX grep has a line
21622     # limit of 2048, but all sed's we know have understand at least 4000.
21623     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21624       dirpart=`$as_dirname -- "$mf" ||
21625 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21626          X"$mf" : 'X\(//\)[^/]' \| \
21627          X"$mf" : 'X\(//\)$' \| \
21628          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21629 $as_echo X"$mf" |
21630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21631             s//\1/
21632             q
21633           }
21634           /^X\(\/\/\)[^/].*/{
21635             s//\1/
21636             q
21637           }
21638           /^X\(\/\/\)$/{
21639             s//\1/
21640             q
21641           }
21642           /^X\(\/\).*/{
21643             s//\1/
21644             q
21645           }
21646           s/.*/./; q'`
21647     else
21648       continue
21649     fi
21650     # Extract the definition of DEPDIR, am__include, and am__quote
21651     # from the Makefile without running 'make'.
21652     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21653     test -z "$DEPDIR" && continue
21654     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21655     test -z "$am__include" && continue
21656     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21657     # Find all dependency output files, they are included files with
21658     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21659     # simplest approach to changing $(DEPDIR) to its actual value in the
21660     # expansion.
21661     for file in `sed -n "
21662       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21663          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21664       # Make sure the directory exists.
21665       test -f "$dirpart/$file" && continue
21666       fdir=`$as_dirname -- "$file" ||
21667 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21668          X"$file" : 'X\(//\)[^/]' \| \
21669          X"$file" : 'X\(//\)$' \| \
21670          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21671 $as_echo X"$file" |
21672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21673             s//\1/
21674             q
21675           }
21676           /^X\(\/\/\)[^/].*/{
21677             s//\1/
21678             q
21679           }
21680           /^X\(\/\/\)$/{
21681             s//\1/
21682             q
21683           }
21684           /^X\(\/\).*/{
21685             s//\1/
21686             q
21687           }
21688           s/.*/./; q'`
21689       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21690       # echo "creating $dirpart/$file"
21691       echo '# dummy' > "$dirpart/$file"
21692     done
21693   done
21694 }
21695  ;;
21696     "libtool":C)
21697
21698     # See if we are running on zsh, and set the options which allow our
21699     # commands through without removal of \ escapes.
21700     if test -n "${ZSH_VERSION+set}" ; then
21701       setopt NO_GLOB_SUBST
21702     fi
21703
21704     cfgfile="${ofile}T"
21705     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21706     $RM "$cfgfile"
21707
21708     cat <<_LT_EOF >> "$cfgfile"
21709 #! $SHELL
21710
21711 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21712 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21714 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21715 #
21716 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21717 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21718 #                 Foundation, Inc.
21719 #   Written by Gordon Matzigkeit, 1996
21720 #
21721 #   This file is part of GNU Libtool.
21722 #
21723 # GNU Libtool is free software; you can redistribute it and/or
21724 # modify it under the terms of the GNU General Public License as
21725 # published by the Free Software Foundation; either version 2 of
21726 # the License, or (at your option) any later version.
21727 #
21728 # As a special exception to the GNU General Public License,
21729 # if you distribute this file as part of a program or library that
21730 # is built using GNU Libtool, you may include this file under the
21731 # same distribution terms that you use for the rest of that program.
21732 #
21733 # GNU Libtool is distributed in the hope that it will be useful,
21734 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21735 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21736 # GNU General Public License for more details.
21737 #
21738 # You should have received a copy of the GNU General Public License
21739 # along with GNU Libtool; see the file COPYING.  If not, a copy
21740 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21741 # obtained by writing to the Free Software Foundation, Inc.,
21742 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21743
21744
21745 # The names of the tagged configurations supported by this script.
21746 available_tags="CXX "
21747
21748 # ### BEGIN LIBTOOL CONFIG
21749
21750 # Which release of libtool.m4 was used?
21751 macro_version=$macro_version
21752 macro_revision=$macro_revision
21753
21754 # Whether or not to build static libraries.
21755 build_old_libs=$enable_static
21756
21757 # Whether or not to build shared libraries.
21758 build_libtool_libs=$enable_shared
21759
21760 # What type of objects to build.
21761 pic_mode=$pic_mode
21762
21763 # Whether or not to optimize for fast installation.
21764 fast_install=$enable_fast_install
21765
21766 # Shell to use when invoking shell scripts.
21767 SHELL=$lt_SHELL
21768
21769 # An echo program that protects backslashes.
21770 ECHO=$lt_ECHO
21771
21772 # The PATH separator for the build system.
21773 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21774
21775 # The host system.
21776 host_alias=$host_alias
21777 host=$host
21778 host_os=$host_os
21779
21780 # The build system.
21781 build_alias=$build_alias
21782 build=$build
21783 build_os=$build_os
21784
21785 # A sed program that does not truncate output.
21786 SED=$lt_SED
21787
21788 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21789 Xsed="\$SED -e 1s/^X//"
21790
21791 # A grep program that handles long lines.
21792 GREP=$lt_GREP
21793
21794 # An ERE matcher.
21795 EGREP=$lt_EGREP
21796
21797 # A literal string matcher.
21798 FGREP=$lt_FGREP
21799
21800 # A BSD- or MS-compatible name lister.
21801 NM=$lt_NM
21802
21803 # Whether we need soft or hard links.
21804 LN_S=$lt_LN_S
21805
21806 # What is the maximum length of a command?
21807 max_cmd_len=$max_cmd_len
21808
21809 # Object file suffix (normally "o").
21810 objext=$ac_objext
21811
21812 # Executable file suffix (normally "").
21813 exeext=$exeext
21814
21815 # whether the shell understands "unset".
21816 lt_unset=$lt_unset
21817
21818 # turn spaces into newlines.
21819 SP2NL=$lt_lt_SP2NL
21820
21821 # turn newlines into spaces.
21822 NL2SP=$lt_lt_NL2SP
21823
21824 # convert \$build file names to \$host format.
21825 to_host_file_cmd=$lt_cv_to_host_file_cmd
21826
21827 # convert \$build files to toolchain format.
21828 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21829
21830 # An object symbol dumper.
21831 OBJDUMP=$lt_OBJDUMP
21832
21833 # Method to check whether dependent libraries are shared objects.
21834 deplibs_check_method=$lt_deplibs_check_method
21835
21836 # Command to use when deplibs_check_method = "file_magic".
21837 file_magic_cmd=$lt_file_magic_cmd
21838
21839 # How to find potential files when deplibs_check_method = "file_magic".
21840 file_magic_glob=$lt_file_magic_glob
21841
21842 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21843 want_nocaseglob=$lt_want_nocaseglob
21844
21845 # DLL creation program.
21846 DLLTOOL=$lt_DLLTOOL
21847
21848 # Command to associate shared and link libraries.
21849 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21850
21851 # The archiver.
21852 AR=$lt_AR
21853
21854 # Flags to create an archive.
21855 AR_FLAGS=$lt_AR_FLAGS
21856
21857 # How to feed a file listing to the archiver.
21858 archiver_list_spec=$lt_archiver_list_spec
21859
21860 # A symbol stripping program.
21861 STRIP=$lt_STRIP
21862
21863 # Commands used to install an old-style archive.
21864 RANLIB=$lt_RANLIB
21865 old_postinstall_cmds=$lt_old_postinstall_cmds
21866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21867
21868 # Whether to use a lock for old archive extraction.
21869 lock_old_archive_extraction=$lock_old_archive_extraction
21870
21871 # A C compiler.
21872 LTCC=$lt_CC
21873
21874 # LTCC compiler flags.
21875 LTCFLAGS=$lt_CFLAGS
21876
21877 # Take the output of nm and produce a listing of raw symbols and C names.
21878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21879
21880 # Transform the output of nm in a proper C declaration.
21881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21882
21883 # Transform the output of nm in a C name address pair.
21884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21885
21886 # Transform the output of nm in a C name address pair when lib prefix is needed.
21887 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21888
21889 # Specify filename containing input files for \$NM.
21890 nm_file_list_spec=$lt_nm_file_list_spec
21891
21892 # The root where to search for dependent libraries,and in which our libraries should be installed.
21893 lt_sysroot=$lt_sysroot
21894
21895 # The name of the directory that contains temporary libtool files.
21896 objdir=$objdir
21897
21898 # Used to examine libraries when file_magic_cmd begins with "file".
21899 MAGIC_CMD=$MAGIC_CMD
21900
21901 # Must we lock files when doing compilation?
21902 need_locks=$lt_need_locks
21903
21904 # Manifest tool.
21905 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21906
21907 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21908 DSYMUTIL=$lt_DSYMUTIL
21909
21910 # Tool to change global to local symbols on Mac OS X.
21911 NMEDIT=$lt_NMEDIT
21912
21913 # Tool to manipulate fat objects and archives on Mac OS X.
21914 LIPO=$lt_LIPO
21915
21916 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21917 OTOOL=$lt_OTOOL
21918
21919 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21920 OTOOL64=$lt_OTOOL64
21921
21922 # Old archive suffix (normally "a").
21923 libext=$libext
21924
21925 # Shared library suffix (normally ".so").
21926 shrext_cmds=$lt_shrext_cmds
21927
21928 # The commands to extract the exported symbol list from a shared archive.
21929 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21930
21931 # Variables whose values should be saved in libtool wrapper scripts and
21932 # restored at link time.
21933 variables_saved_for_relink=$lt_variables_saved_for_relink
21934
21935 # Do we need the "lib" prefix for modules?
21936 need_lib_prefix=$need_lib_prefix
21937
21938 # Do we need a version for libraries?
21939 need_version=$need_version
21940
21941 # Library versioning type.
21942 version_type=$version_type
21943
21944 # Shared library runtime path variable.
21945 runpath_var=$runpath_var
21946
21947 # Shared library path variable.
21948 shlibpath_var=$shlibpath_var
21949
21950 # Is shlibpath searched before the hard-coded library search path?
21951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21952
21953 # Format of library name prefix.
21954 libname_spec=$lt_libname_spec
21955
21956 # List of archive names.  First name is the real one, the rest are links.
21957 # The last name is the one that the linker finds with -lNAME
21958 library_names_spec=$lt_library_names_spec
21959
21960 # The coded name of the library, if different from the real name.
21961 soname_spec=$lt_soname_spec
21962
21963 # Permission mode override for installation of shared libraries.
21964 install_override_mode=$lt_install_override_mode
21965
21966 # Command to use after installation of a shared archive.
21967 postinstall_cmds=$lt_postinstall_cmds
21968
21969 # Command to use after uninstallation of a shared archive.
21970 postuninstall_cmds=$lt_postuninstall_cmds
21971
21972 # Commands used to finish a libtool library installation in a directory.
21973 finish_cmds=$lt_finish_cmds
21974
21975 # As "finish_cmds", except a single script fragment to be evaled but
21976 # not shown.
21977 finish_eval=$lt_finish_eval
21978
21979 # Whether we should hardcode library paths into libraries.
21980 hardcode_into_libs=$hardcode_into_libs
21981
21982 # Compile-time system search path for libraries.
21983 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21984
21985 # Run-time system search path for libraries.
21986 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21987
21988 # Whether dlopen is supported.
21989 dlopen_support=$enable_dlopen
21990
21991 # Whether dlopen of programs is supported.
21992 dlopen_self=$enable_dlopen_self
21993
21994 # Whether dlopen of statically linked programs is supported.
21995 dlopen_self_static=$enable_dlopen_self_static
21996
21997 # Commands to strip libraries.
21998 old_striplib=$lt_old_striplib
21999 striplib=$lt_striplib
22000
22001
22002 # The linker used to build libraries.
22003 LD=$lt_LD
22004
22005 # How to create reloadable object files.
22006 reload_flag=$lt_reload_flag
22007 reload_cmds=$lt_reload_cmds
22008
22009 # Commands used to build an old-style archive.
22010 old_archive_cmds=$lt_old_archive_cmds
22011
22012 # A language specific compiler.
22013 CC=$lt_compiler
22014
22015 # Is the compiler the GNU compiler?
22016 with_gcc=$GCC
22017
22018 # Compiler flag to turn off builtin functions.
22019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22020
22021 # Additional compiler flags for building library objects.
22022 pic_flag=$lt_lt_prog_compiler_pic
22023
22024 # How to pass a linker flag through the compiler.
22025 wl=$lt_lt_prog_compiler_wl
22026
22027 # Compiler flag to prevent dynamic linking.
22028 link_static_flag=$lt_lt_prog_compiler_static
22029
22030 # Does compiler simultaneously support -c and -o options?
22031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22032
22033 # Whether or not to add -lc for building shared libraries.
22034 build_libtool_need_lc=$archive_cmds_need_lc
22035
22036 # Whether or not to disallow shared libs when runtime libs are static.
22037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22038
22039 # Compiler flag to allow reflexive dlopens.
22040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22041
22042 # Compiler flag to generate shared objects directly from archives.
22043 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22044
22045 # Whether the compiler copes with passing no objects directly.
22046 compiler_needs_object=$lt_compiler_needs_object
22047
22048 # Create an old-style archive from a shared archive.
22049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22050
22051 # Create a temporary old-style archive to link instead of a shared archive.
22052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22053
22054 # Commands used to build a shared archive.
22055 archive_cmds=$lt_archive_cmds
22056 archive_expsym_cmds=$lt_archive_expsym_cmds
22057
22058 # Commands used to build a loadable module if different from building
22059 # a shared archive.
22060 module_cmds=$lt_module_cmds
22061 module_expsym_cmds=$lt_module_expsym_cmds
22062
22063 # Whether we are building with GNU ld or not.
22064 with_gnu_ld=$lt_with_gnu_ld
22065
22066 # Flag that allows shared libraries with undefined symbols to be built.
22067 allow_undefined_flag=$lt_allow_undefined_flag
22068
22069 # Flag that enforces no undefined symbols.
22070 no_undefined_flag=$lt_no_undefined_flag
22071
22072 # Flag to hardcode \$libdir into a binary during linking.
22073 # This must work even if \$libdir does not exist
22074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22075
22076 # Whether we need a single "-rpath" flag with a separated argument.
22077 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22078
22079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22080 # DIR into the resulting binary.
22081 hardcode_direct=$hardcode_direct
22082
22083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22084 # DIR into the resulting binary and the resulting library dependency is
22085 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22086 # library is relocated.
22087 hardcode_direct_absolute=$hardcode_direct_absolute
22088
22089 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22090 # into the resulting binary.
22091 hardcode_minus_L=$hardcode_minus_L
22092
22093 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22094 # into the resulting binary.
22095 hardcode_shlibpath_var=$hardcode_shlibpath_var
22096
22097 # Set to "yes" if building a shared library automatically hardcodes DIR
22098 # into the library and all subsequent libraries and executables linked
22099 # against it.
22100 hardcode_automatic=$hardcode_automatic
22101
22102 # Set to yes if linker adds runtime paths of dependent libraries
22103 # to runtime path list.
22104 inherit_rpath=$inherit_rpath
22105
22106 # Whether libtool must link a program against all its dependency libraries.
22107 link_all_deplibs=$link_all_deplibs
22108
22109 # Set to "yes" if exported symbols are required.
22110 always_export_symbols=$always_export_symbols
22111
22112 # The commands to list exported symbols.
22113 export_symbols_cmds=$lt_export_symbols_cmds
22114
22115 # Symbols that should not be listed in the preloaded symbols.
22116 exclude_expsyms=$lt_exclude_expsyms
22117
22118 # Symbols that must always be exported.
22119 include_expsyms=$lt_include_expsyms
22120
22121 # Commands necessary for linking programs (against libraries) with templates.
22122 prelink_cmds=$lt_prelink_cmds
22123
22124 # Commands necessary for finishing linking programs.
22125 postlink_cmds=$lt_postlink_cmds
22126
22127 # Specify filename containing input files.
22128 file_list_spec=$lt_file_list_spec
22129
22130 # How to hardcode a shared library path into an executable.
22131 hardcode_action=$hardcode_action
22132
22133 # The directories searched by this compiler when creating a shared library.
22134 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22135
22136 # Dependencies to place before and after the objects being linked to
22137 # create a shared library.
22138 predep_objects=$lt_predep_objects
22139 postdep_objects=$lt_postdep_objects
22140 predeps=$lt_predeps
22141 postdeps=$lt_postdeps
22142
22143 # The library search path used internally by the compiler when linking
22144 # a shared library.
22145 compiler_lib_search_path=$lt_compiler_lib_search_path
22146
22147 # ### END LIBTOOL CONFIG
22148
22149 _LT_EOF
22150
22151   case $host_os in
22152   aix3*)
22153     cat <<\_LT_EOF >> "$cfgfile"
22154 # AIX sometimes has problems with the GCC collect2 program.  For some
22155 # reason, if we set the COLLECT_NAMES environment variable, the problems
22156 # vanish in a puff of smoke.
22157 if test "X${COLLECT_NAMES+set}" != Xset; then
22158   COLLECT_NAMES=
22159   export COLLECT_NAMES
22160 fi
22161 _LT_EOF
22162     ;;
22163   esac
22164
22165
22166 ltmain="$ac_aux_dir/ltmain.sh"
22167
22168
22169   # We use sed instead of cat because bash on DJGPP gets confused if
22170   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22171   # text mode, it properly converts lines to CR/LF.  This bash problem
22172   # is reportedly fixed, but why not run on old versions too?
22173   sed '$q' "$ltmain" >> "$cfgfile" \
22174      || (rm -f "$cfgfile"; exit 1)
22175
22176   if test x"$xsi_shell" = xyes; then
22177   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22178 func_dirname ()\
22179 {\
22180 \    case ${1} in\
22181 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22182 \      *  ) func_dirname_result="${3}" ;;\
22183 \    esac\
22184 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22185   && mv -f "$cfgfile.tmp" "$cfgfile" \
22186     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22187 test 0 -eq $? || _lt_function_replace_fail=:
22188
22189
22190   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22191 func_basename ()\
22192 {\
22193 \    func_basename_result="${1##*/}"\
22194 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22195   && mv -f "$cfgfile.tmp" "$cfgfile" \
22196     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22197 test 0 -eq $? || _lt_function_replace_fail=:
22198
22199
22200   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22201 func_dirname_and_basename ()\
22202 {\
22203 \    case ${1} in\
22204 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22205 \      *  ) func_dirname_result="${3}" ;;\
22206 \    esac\
22207 \    func_basename_result="${1##*/}"\
22208 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22209   && mv -f "$cfgfile.tmp" "$cfgfile" \
22210     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22211 test 0 -eq $? || _lt_function_replace_fail=:
22212
22213
22214   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22215 func_stripname ()\
22216 {\
22217 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22218 \    # positional parameters, so assign one to ordinary parameter first.\
22219 \    func_stripname_result=${3}\
22220 \    func_stripname_result=${func_stripname_result#"${1}"}\
22221 \    func_stripname_result=${func_stripname_result%"${2}"}\
22222 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22223   && mv -f "$cfgfile.tmp" "$cfgfile" \
22224     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22225 test 0 -eq $? || _lt_function_replace_fail=:
22226
22227
22228   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22229 func_split_long_opt ()\
22230 {\
22231 \    func_split_long_opt_name=${1%%=*}\
22232 \    func_split_long_opt_arg=${1#*=}\
22233 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22234   && mv -f "$cfgfile.tmp" "$cfgfile" \
22235     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22236 test 0 -eq $? || _lt_function_replace_fail=:
22237
22238
22239   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22240 func_split_short_opt ()\
22241 {\
22242 \    func_split_short_opt_arg=${1#??}\
22243 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22244 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22245   && mv -f "$cfgfile.tmp" "$cfgfile" \
22246     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22247 test 0 -eq $? || _lt_function_replace_fail=:
22248
22249
22250   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22251 func_lo2o ()\
22252 {\
22253 \    case ${1} in\
22254 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22255 \      *)    func_lo2o_result=${1} ;;\
22256 \    esac\
22257 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22258   && mv -f "$cfgfile.tmp" "$cfgfile" \
22259     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22260 test 0 -eq $? || _lt_function_replace_fail=:
22261
22262
22263   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22264 func_xform ()\
22265 {\
22266     func_xform_result=${1%.*}.lo\
22267 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22268   && mv -f "$cfgfile.tmp" "$cfgfile" \
22269     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22270 test 0 -eq $? || _lt_function_replace_fail=:
22271
22272
22273   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22274 func_arith ()\
22275 {\
22276     func_arith_result=$(( $* ))\
22277 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22278   && mv -f "$cfgfile.tmp" "$cfgfile" \
22279     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22280 test 0 -eq $? || _lt_function_replace_fail=:
22281
22282
22283   sed -e '/^func_len ()$/,/^} # func_len /c\
22284 func_len ()\
22285 {\
22286     func_len_result=${#1}\
22287 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22288   && mv -f "$cfgfile.tmp" "$cfgfile" \
22289     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22290 test 0 -eq $? || _lt_function_replace_fail=:
22291
22292 fi
22293
22294 if test x"$lt_shell_append" = xyes; then
22295   sed -e '/^func_append ()$/,/^} # func_append /c\
22296 func_append ()\
22297 {\
22298     eval "${1}+=\\${2}"\
22299 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22300   && mv -f "$cfgfile.tmp" "$cfgfile" \
22301     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22302 test 0 -eq $? || _lt_function_replace_fail=:
22303
22304
22305   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22306 func_append_quoted ()\
22307 {\
22308 \    func_quote_for_eval "${2}"\
22309 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22310 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22311   && mv -f "$cfgfile.tmp" "$cfgfile" \
22312     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22313 test 0 -eq $? || _lt_function_replace_fail=:
22314
22315
22316   # Save a `func_append' function call where possible by direct use of '+='
22317   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22318     && mv -f "$cfgfile.tmp" "$cfgfile" \
22319       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22320   test 0 -eq $? || _lt_function_replace_fail=:
22321 else
22322   # Save a `func_append' function call even when '+=' is not available
22323   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22324     && mv -f "$cfgfile.tmp" "$cfgfile" \
22325       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22326   test 0 -eq $? || _lt_function_replace_fail=:
22327 fi
22328
22329 if test x"$_lt_function_replace_fail" = x":"; then
22330   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22331 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22332 fi
22333
22334
22335    mv -f "$cfgfile" "$ofile" ||
22336     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22337   chmod +x "$ofile"
22338
22339
22340     cat <<_LT_EOF >> "$ofile"
22341
22342 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22343
22344 # The linker used to build libraries.
22345 LD=$lt_LD_CXX
22346
22347 # How to create reloadable object files.
22348 reload_flag=$lt_reload_flag_CXX
22349 reload_cmds=$lt_reload_cmds_CXX
22350
22351 # Commands used to build an old-style archive.
22352 old_archive_cmds=$lt_old_archive_cmds_CXX
22353
22354 # A language specific compiler.
22355 CC=$lt_compiler_CXX
22356
22357 # Is the compiler the GNU compiler?
22358 with_gcc=$GCC_CXX
22359
22360 # Compiler flag to turn off builtin functions.
22361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22362
22363 # Additional compiler flags for building library objects.
22364 pic_flag=$lt_lt_prog_compiler_pic_CXX
22365
22366 # How to pass a linker flag through the compiler.
22367 wl=$lt_lt_prog_compiler_wl_CXX
22368
22369 # Compiler flag to prevent dynamic linking.
22370 link_static_flag=$lt_lt_prog_compiler_static_CXX
22371
22372 # Does compiler simultaneously support -c and -o options?
22373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22374
22375 # Whether or not to add -lc for building shared libraries.
22376 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22377
22378 # Whether or not to disallow shared libs when runtime libs are static.
22379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22380
22381 # Compiler flag to allow reflexive dlopens.
22382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22383
22384 # Compiler flag to generate shared objects directly from archives.
22385 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22386
22387 # Whether the compiler copes with passing no objects directly.
22388 compiler_needs_object=$lt_compiler_needs_object_CXX
22389
22390 # Create an old-style archive from a shared archive.
22391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22392
22393 # Create a temporary old-style archive to link instead of a shared archive.
22394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22395
22396 # Commands used to build a shared archive.
22397 archive_cmds=$lt_archive_cmds_CXX
22398 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22399
22400 # Commands used to build a loadable module if different from building
22401 # a shared archive.
22402 module_cmds=$lt_module_cmds_CXX
22403 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22404
22405 # Whether we are building with GNU ld or not.
22406 with_gnu_ld=$lt_with_gnu_ld_CXX
22407
22408 # Flag that allows shared libraries with undefined symbols to be built.
22409 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22410
22411 # Flag that enforces no undefined symbols.
22412 no_undefined_flag=$lt_no_undefined_flag_CXX
22413
22414 # Flag to hardcode \$libdir into a binary during linking.
22415 # This must work even if \$libdir does not exist
22416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22417
22418 # Whether we need a single "-rpath" flag with a separated argument.
22419 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22420
22421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22422 # DIR into the resulting binary.
22423 hardcode_direct=$hardcode_direct_CXX
22424
22425 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22426 # DIR into the resulting binary and the resulting library dependency is
22427 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22428 # library is relocated.
22429 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22430
22431 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22432 # into the resulting binary.
22433 hardcode_minus_L=$hardcode_minus_L_CXX
22434
22435 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22436 # into the resulting binary.
22437 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22438
22439 # Set to "yes" if building a shared library automatically hardcodes DIR
22440 # into the library and all subsequent libraries and executables linked
22441 # against it.
22442 hardcode_automatic=$hardcode_automatic_CXX
22443
22444 # Set to yes if linker adds runtime paths of dependent libraries
22445 # to runtime path list.
22446 inherit_rpath=$inherit_rpath_CXX
22447
22448 # Whether libtool must link a program against all its dependency libraries.
22449 link_all_deplibs=$link_all_deplibs_CXX
22450
22451 # Set to "yes" if exported symbols are required.
22452 always_export_symbols=$always_export_symbols_CXX
22453
22454 # The commands to list exported symbols.
22455 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22456
22457 # Symbols that should not be listed in the preloaded symbols.
22458 exclude_expsyms=$lt_exclude_expsyms_CXX
22459
22460 # Symbols that must always be exported.
22461 include_expsyms=$lt_include_expsyms_CXX
22462
22463 # Commands necessary for linking programs (against libraries) with templates.
22464 prelink_cmds=$lt_prelink_cmds_CXX
22465
22466 # Commands necessary for finishing linking programs.
22467 postlink_cmds=$lt_postlink_cmds_CXX
22468
22469 # Specify filename containing input files.
22470 file_list_spec=$lt_file_list_spec_CXX
22471
22472 # How to hardcode a shared library path into an executable.
22473 hardcode_action=$hardcode_action_CXX
22474
22475 # The directories searched by this compiler when creating a shared library.
22476 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22477
22478 # Dependencies to place before and after the objects being linked to
22479 # create a shared library.
22480 predep_objects=$lt_predep_objects_CXX
22481 postdep_objects=$lt_postdep_objects_CXX
22482 predeps=$lt_predeps_CXX
22483 postdeps=$lt_postdeps_CXX
22484
22485 # The library search path used internally by the compiler when linking
22486 # a shared library.
22487 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22488
22489 # ### END LIBTOOL TAG CONFIG: CXX
22490 _LT_EOF
22491
22492  ;;
22493
22494   esac
22495 done # for ac_tag
22496
22497
22498 as_fn_exit 0
22499 _ACEOF
22500 ac_clean_files=$ac_clean_files_save
22501
22502 test $ac_write_fail = 0 ||
22503   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22504
22505
22506 # configure is writing to config.log, and then calls config.status.
22507 # config.status does its own redirection, appending to config.log.
22508 # Unfortunately, on DOS this fails, as config.log is still kept open
22509 # by configure, so config.status won't be able to write to it; its
22510 # output is simply discarded.  So we exec the FD to /dev/null,
22511 # effectively closing config.log, so it can be properly (re)opened and
22512 # appended to by config.status.  When coming back to configure, we
22513 # need to make the FD available again.
22514 if test "$no_create" != yes; then
22515   ac_cs_success=:
22516   ac_config_status_args=
22517   test "$silent" = yes &&
22518     ac_config_status_args="$ac_config_status_args --quiet"
22519   exec 5>/dev/null
22520   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22521   exec 5>>config.log
22522   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22523   # would make configure fail if this is the last instruction.
22524   $ac_cs_success || as_fn_exit 1
22525 fi
22526 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22527   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22528 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22529 fi
22530
22531
22532 { $as_echo "$as_me:${as_lineno-$LINENO}:
22533
22534 Build configuration:
22535
22536 Unicode callbacks (you want at least one):
22537         Builtin (UCDN):         ${have_ucdn}
22538         Glib:                   ${have_glib}
22539         ICU:                    ${have_icu}
22540
22541 Font callbacks (the more the better):
22542         FreeType:               ${have_freetype}
22543
22544 Tools used for command-line utilities:
22545         Cairo:                  ${have_cairo}
22546         Fontconfig:             ${have_fontconfig}
22547
22548 Additional shapers (the more the better):
22549         Graphite2:              ${have_graphite2}
22550
22551 Platform shapers (not normally needed):
22552         CoreText:               ${have_coretext}
22553         Uniscribe:              ${have_uniscribe}
22554         DirectWrite:            ${have_directwrite}
22555
22556 Other features:
22557         Documentation:          ${have_gtk_doc}
22558         GObject bindings:       ${have_gobject}
22559         Introspection:          ${have_introspection}
22560 " >&5
22561 $as_echo "$as_me:
22562
22563 Build configuration:
22564
22565 Unicode callbacks (you want at least one):
22566         Builtin (UCDN):         ${have_ucdn}
22567         Glib:                   ${have_glib}
22568         ICU:                    ${have_icu}
22569
22570 Font callbacks (the more the better):
22571         FreeType:               ${have_freetype}
22572
22573 Tools used for command-line utilities:
22574         Cairo:                  ${have_cairo}
22575         Fontconfig:             ${have_fontconfig}
22576
22577 Additional shapers (the more the better):
22578         Graphite2:              ${have_graphite2}
22579
22580 Platform shapers (not normally needed):
22581         CoreText:               ${have_coretext}
22582         Uniscribe:              ${have_uniscribe}
22583         DirectWrite:            ${have_directwrite}
22584
22585 Other features:
22586         Documentation:          ${have_gtk_doc}
22587         GObject bindings:       ${have_gobject}
22588         Introspection:          ${have_introspection}
22589 " >&6;}